gnulib-tool.py: import mktemp
[gnulib.git] / ChangeLog
blob1b2505a1a27dfde77d5f1bc7d491ac059b48a8bf
1 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
3         regex: port to recently proposed glibc regex merge
4         This patch is inspired by Adhemerval Zanella's recent proposal
5         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
6         to merge glibc and Gnulib regex.  It aims to simplify the merge on
7         the glibc side, without keeping Gnulib portable.
8         * lib/regex.h: Fix a problem with glibc installed-header checking,
9         as follows:
10         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
11         (_Restrict_arr_): Prefer __restrict_arr if defined,
12         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
13         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
14         (build_wcs_upper_buffer, build_upper_buffer)
15         (re_string_translate_buffer, re_string_context_at):
16         Move decls here from lib/regex_internal.h, for glibc internal tests.
17         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
18         glibc BZ #18496.
19         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
20         -Wunused-value.
21         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
22         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
23         (bitset_mask): Now static inline, and without any __attribute__
24         ((unused)) decoration, for glibc internal tests.
26 2018-06-25  Bruno Haible  <bruno@clisp.org>
28         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
29         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
30         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
31         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
32         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
33         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
34         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
35         / -lthread / -lpth does not get optimized away by a preceding
36         --as-needed option.
38 2018-06-25  Bruno Haible  <bruno@clisp.org>
40         Continue to use spaces for indentation, not tabs.
41         * MODULES.html.sh: Untabify.
42         * doc/regex.texi: Likewise.
43         * lib/acl-internal.c: Likewise.
44         * lib/dfa.c: Likewise.
45         * lib/exclude.c: Likewise.
46         * lib/exclude.h: Likewise.
47         * lib/get-permissions.c: Likewise.
48         * lib/gettimeofday.c: Likewise.
49         * lib/parse-datetime.y: Likewise.
50         * lib/pselect.c: Likewise.
51         * lib/set-permissions.c: Likewise.
52         * lib/time.in.h: Likewise.
53         * m4/canonicalize.m4: Likewise.
54         * m4/gc.m4: Likewise.
55         * m4/gnulib-common.m4: Likewise.
56         * m4/pthread_sigmask.m4: Likewise.
57         * m4/vararrays.m4: Likewise.
58         * tests/test-digest.h: Likewise.
59         * tests/test-fcntl-h.c: Likewise.
60         * tests/test-timespec.c: Likewise.
61         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
63 2018-06-25  Bruno Haible  <bruno@clisp.org>
65         manywarnings: Don't enable -Wjump-misses-init warnings by default.
66         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
67         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
68         -Wjump-misses-init.
70 2018-06-25  Jim Meyering  <meyering@fb.com>
72         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
73         * lib/acl-internal.h (free_permission_context): Remove that
74         attribute directive.  Otherwise, it would provoke this from GCC 9:
75         lib/acl-internal.h:300:3: error: 'const' attribute on function \
76           returning 'void' [-Werror=attributes]
78 2018-06-24  Jim Meyering  <meyering@fb.com>
80         parse-datetime: accommodate gcc-4.8.5
81         Bruno Haible reported the build failure in
82         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
83         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
84         on declaration of new local.
86 2018-06-24  Bruno Haible  <bruno@clisp.org>
88         af_alg: Fail in continuable manner on Linux/powerpc64le.
89         Reported by Assaf Gordon <assafgordon@gmail.com>
90         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
91         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
92         byte send() as the first round.
94 2018-06-24  Bruno Haible  <bruno@clisp.org>
96         af_alg: Fix state of stream after sendfile() succeeds.
97         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
98         the stream is correctly positioned afterwards.
99         * modules/crypto/af_alg (Depends-on): Add fflush.
100         * tests/test-digest.h (test_digest_on_files): Verify that after the
101         operation the stream is positioned at end of file.
103 2018-06-24  Jim Meyering  <meyering@fb.com>
105         canon-host: take GCC9's advice rather than ignoring warning
106         Pádraig Brady suggested not to ignore this GCC9 advice.
107         * lib/canon-host.c: Undo preceding change.
108         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
110         parse-datetime.y: avoid spurious GCC 9 warning
111         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
112         a function local prior to the first "goto fail".  The prior use would
113         evoke this:
114         parse-datetime.y: In function 'parse_datetime2':
115         parse-datetime.y:1791:19: error: jump skips variable initialization \
116           [-Werror=jump-misses-init]
117         parse-datetime.y:2385:2: note: label 'fail' defined here
118         parse-datetime.y:188:43: note: '({anonymous})' declared here
119         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
121         canon-host.c: avoid spurious GCC 9 warning
122         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
124         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
125         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
126         * m4/manywarnings.m4: Remove them.
127         Otherwise, building coreutils, I would see this:
128         cc1: error: deprecated command line option '-Wchkp' [-Werror]
129         cc1: error: -Wabi won't warn about anything [-Werror=abi]
130         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
131           which is also used by default
132         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
134 2018-06-24  Bruno Haible  <bruno@clisp.org>
136         af_alg tests: Add another test.
137         * tests/test-digest.h (test_digest_on_files): Also check a large file
138         with a skipped header.
139         * tests/test-md5.c: Include macros.h.
140         * tests/test-sha1.c: Likewise.
141         * tests/test-sha256.c: Likewise.
142         * tests/test-sha512.c: Likewise.
143         * modules/crypto/md5-tests (Files): Add tests/macros.h.
144         * modules/crypto/sha1-tests (Files): Likewise.
145         * modules/crypto/sha256-tests (Files): Likewise.
146         * modules/crypto/sha512-tests (Files): Likewise.
148 2018-06-24  Pádraig Brady  <P@draigBrady.com>
150         maint: clarify comments about sticky EOF
151         * lib/af_alg.c: Be more direct that we can't
152         assume stickiness of EOF for portability reasons.
153         * lib/md5.c: Clarify that this isn't just a glibc issue.
154         * lib/sha1.c: Likewise.
155         * lib/sha256.c: Likewise.
156         * lib/sha512.c: Likewise.
158 2018-06-24  Bruno Haible  <bruno@clisp.org>
160         af_alg: Comment and style improvements.
161         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
162         (afalg_buffer, afalg_stream): Improve comments.
164 2018-06-24  Pádraig Brady  <P@draigBrady.com>
166         af_alg: disable kernel hash functions by default
167         All the kernel routines were seen to be significantly slower
168         with these relatively recent components on an i3-2310M system:
169           kernel-4.10.6-200.fc25.x86_64
170           openssl-1.0.2m-1.fc25.x86_64
171         sha1 was nearly twice as slow in the kernel for example.
172         Further considerations why this should not be the default, at:
173         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
175         * m4/af_alg.m4: Require --with-linux-crypto to enable.
176         * m4/gl-openssl.m4: Tweak accordingly.
178 2018-06-24  Pádraig Brady  <P@draigBrady.com>
180         af_alg: avoid hangs when reading from streams
181         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
182         and thus avoid doing a fread() when feof() is set.
183         * lib/md5.c: Ensure feof() is called before fread().
184         * lib/sha1.c: Likewise.
185         * lib/sha256.c: Likewise.
186         * lib/sha512.c: Likewise.
188 2018-06-24  Pádraig Brady  <P@draigBrady.com>
190         af_alg: fix error handling when hash not returned
191         * lib/af_alg.c (afalg_stream): Handle the case where we've
192         successfully written data to the kernel in the read/write loop,
193         but the kernel doesn't respond with the hash.
195 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
197         libc-config: merge from glibc
198         * lib/cdefs.h (__inline, __restrict):
199         Copy from current glibc.  This fixes glibc bug 17721,
200         which Gnulib had already fixed in a different way.
201         (__nonnull): Lessen the distance from glibc by using the
202         glibc definition inside an ‘#ifndef __nonnull’.
203         (__attribute_nonstring__): New macro, copied from
204         current glibc.
205         * lib/libc-config.h (__attribute_nonstring__): New undef.
206         (__restrict): Remove; workaround no longer needed.
207         Keep the __inline workaround, though, as it uses HAVE___INLINE to
208         support more compilers than the glibc __inline can.
210 2018-06-24  Bruno Haible  <bruno@clisp.org>
212         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
213         * lib/mbrtowc.c (enc_t): New enum type.
214         (locale_enc, locale_enc_cached): New functions.
215         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
216         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
217         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
218         instead.
219         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
220         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
221         * modules/wcwidth (configure.ac): Invoke it.
223 2018-06-24  Bruno Haible  <bruno@clisp.org>
225         wchar-single: Fix test failure in wcwidth tests.
226         * tests/test-wcwidth.c (main): If the wchar-single module is present,
227         skip the tests in the C locale.
229 2018-06-23  Pádraig Brady  <P@draigBrady.com>
231         crypto: mention --without-linux-crypto in --with-openssl --help
232         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
233         routines take precedence in --with-openssl help output.
235 2018-06-23  Pádraig Brady  <P@draigBrady.com>
237         wchar-single: a new module to enable optimizations in wchar replacements
238         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
239         GNULIB_WCHAR_SINGLE is enabled.
240         * lib/wcwidth.c (wcwidth): Likewise.
242 2018-06-23  Bruno Haible  <bruno@clisp.org>
244         libc-config: Fix conflict with FreeBSD include files.
245         * lib/cdefs.h (__nonnull): Remove definition.
246         * lib/libc-config.h (__nonnull): Remove undefinition.
248 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
250         random_r: do not crash if state is unaligned
251         Problem reported by Bruce Korb in:
252         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
253         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
254         with 'cc -O2 -xmemalign=8s'.
255         * lib/random_r.c: Include string.h, for memcpy.
256         (get_int32, set_int32): New functions.
257         (__srandom_r, __initstate_r, __setstate_r, __random_r):
258         Use them to avoid assumption that state pointer is aligned.
259         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
260         * tests/test-random_r.c (test_failed): New function.
261         (main): Use it, to test for alignment bugs.
263         random_r: omit unnecessary include
264         * lib/random_r.c: Do not include limits.h.
266         random, random_r: merge from glibc
267         * lib/random.c, lib/random_r.c:
268         Include libc-config.h if !_LIBC, not config.h unilaterally.
269         * lib/random.c:
270         Do not include stdint.h or time.h; not needed.
271         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
272         (unsafe_state): Rename from generator.  All uses changed.
273         Use C99-style initializers.
274         (__random, __srandom, __initstate, __setstate): Rename from
275         non-underscored version, but define it to non-underscored version
276         on Gnulib.  Add a lock.
277         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
278         Likewise.
279         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
280         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
281         (__srandom_r): Use int32_t instead of long int where int32_t will do.
282         (__random_r): Use uint32 to fix glibc bug 17343.
283         * modules/random, modules/random_r (Depends-on): Add libc-config.
284         Depend on stdint only if $HAVE_RANDOM = 0.
286 2018-06-19  Jim Meyering  <meyering@fb.com>
288         README-release: also run any check-very-expensive tests
289         * top/README-release: Adjust instructions so they run the
290         check-very-expensive tests when there is such a target.
292 2018-06-18  Bruno Haible  <bruno@clisp.org>
294         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
295         * m4/pthread_rwlock_rdlock.m4: Add comment.
296         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
297         are reader-preferring in glibc.
298         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
299         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
301 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
303         crypto: use byteswap
304         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
305         * lib/sm3.c: Include <byteswap.h>.
306         (SWAP): Use its macros rather than reinventing the wheel.
307         * modules/crypto/md4, modules/crypto/md5-buffer:
308         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
309         * modules/crypto/sha512-buffer, modules/crypto/sm3:
310         (Depends-on): Add byteswap.
312 2018-06-17  Pádraig Brady  <P@draigBrady.com>
314         gendocs.sh: fix support for legacy --texi2html
315         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
316         to the default makeinfo invocation.
317         Reported by Bruce Korb
319 2018-06-17  Bruno Haible  <bruno@clisp.org>
321         gettext po infrastructure: Update from current gettext git.
322         Reported by Akim Demaille <akim@lrde.epita.fr>.
323         * build-aux/po/Makefile.in.in: Update from current gettext git.
324         * build-aux/po/remove-potcdate.sin: Likewise.
325         * config/srclist.txt: Temporarily disable sync for these files.
327 2018-06-17  Bruno Haible  <bruno@clisp.org>
329         getloadavg: Return 0 on Windows without Cygwin.
330         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
332 2018-06-17  Paul Smith  <psmith@gnu.org>
334         getloadavg: Allow building on Windows without Cygwin
335         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
336         * m4/getloadavg.m4: Check for unistd.h.
338 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
340         Port crypto/af_alg to GCC 4.8.4
341         Problem reported by Peter Simons in:
342         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
343         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
345 2018-05-27  Colin Watson  <cjwatson@debian.org>
347         bootstrap: document source fetching in --help
348         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
350 2018-04-09  Colin Watson  <cjwatson@debian.org>
352         bootstrap: allow non-submodule control of gnulib
353         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
354         bootstrap.conf when fetching gnulib using "git clone" or via
355         GNULIB_SRCDIR.
357 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
359         crypto: omit stream ops Emacs doesn’t need
360         * lib/md5.c (md5_stream):
361         * lib/sha1.c (sha1_stream):
362         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
363         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
364         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
365         defined.  Emacs needs this, as it does not use the stream
366         operations and doesn’t need all the af_alg stuff we’ve recently
367         added.  Perhaps a similar change is needed to the other crypto
368         modules, but this patch changes only those needed for Emacs.
369         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
370         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
371         New modules, used by Emacs.
372         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
373         * modules/crypto/sha512: Rewrite to depend on the new modules.
375 2018-05-20  Pádraig Brady  <P@draigBrady.com>
377         fts: avoid a memory leak edge case
378         * lib/fts.c (fts_open): Set an appropriate fts_level
379         so that an immediate fts_close() will free the allocation.
380         * tests/test-fts.c (fts_dealloc): Add a test case which
381         will trigger under valgrind or address sanitizer.
382         Fixes https://bugs.gnu.org/31439
384 2018-05-20  Bruno Haible  <bruno@clisp.org>
386         wcwidth tests: Fix link error.
387         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
388         $(LIBUNISTRING).
390 2018-05-20  Bruno Haible  <bruno@clisp.org>
392         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
393         * modules/regex (Files): Add m4/glibc21.m4.
395 2018-05-20  Bruno Haible  <bruno@clisp.org>
397         localcharset: Optimize.
398         * lib/localcharset.c (alias_table): Comment out no-op mappings for
399         platforms where these don't matter. This reduces the table size,
400         which in turn reduces the lookup time.
402 2018-05-19  Bruno Haible  <bruno@clisp.org>
404         localcharset: Map the locale encodings found in newer OSes.
405         * lib/localcharset.c (alias_table): Add mapping for locale encodings
406         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
407         IRIX 6.5, Minix 3.3.
408         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
410 2018-05-19  Bruno Haible  <bruno@clisp.org>
412         localcharset: Move mapping tables into the code. Use a binary search.
413         * lib/localcharset.h: Document the GNU canonical names for character
414         encodings here.
415         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
416         relocatable.h, configmake.h.
417         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
418         macros.
419         (charset_aliases): Remove variable.
420         (get_charset_aliases): Remove function.
421         (struct table_entry): New type.
422         (alias_table, locale_table): New constants.
423         (locale_charset): Use the alias_table or locale_table to get the
424         canonicalized encoding name.
425         * lib/config.charset: Remove file.
426         * lib/ref-add.sin: Remove file.
427         * lib/ref-del.sin: Remove file.
428         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
429         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
430         * modules/localcharset (Notice): Remove.
431         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
432         glibc21.m4.
433         (Depends-on): Remove configmake.
434         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
435         (Makefile.am): Simplify.
436         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
438 2018-05-19  Bruno Haible  <bruno@clisp.org>
440         localcharset: Add a manual test.
441         * tests/test-localcharset.c: New file.
442         * modules/localcharset-tests: New file.
444 2018-05-19  Bruno Haible  <bruno@clisp.org>
446         localcharset: Remove support for obsolete platforms.
447         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
448         Mac OS X 10.2. Comment out dubious entry for Solaris.
450 2018-05-19  Jim Meyering  <meyering@fb.com>
452         gnupload: adjust comment
453         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
454         more likely we'll remove the just-added code in a year or two.
456 2018-05-19  Bruno Haible  <bruno@clisp.org>
458         gnupload: Fix "gpg-agent is not available in this session" error.
459         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
461 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
463         crypto/af_alg: fix --help
464         * m4/af_alg.m4: Avoid spurious newline in --help output.
466 2018-05-13  Bruno Haible  <bruno@clisp.org>
468         nl_langinfo: Fix compilation error on Android.
469         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
470         INT_CURR_SYMBOL, etc. only if these items are defined.
472 2018-05-13  Bruno Haible  <bruno@clisp.org>
474         truncate: Fix compilation error on Android.
475         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
476         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
477         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
478         HAVE_TRUNCATE.
479         * modules/truncate: Likewise.
480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
481         not HAVE_TRUNCATE.
482         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
483         HAVE_TRUNCATE.
484         * doc/posix-functions/truncate.texi: Mention the issue.
486 2018-05-13  Bruno Haible  <bruno@clisp.org>
488         pthread: Fix compilation error on Android.
489         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
490         recursive inclusion of this file.
492 2018-05-13  Bruno Haible  <bruno@clisp.org>
494         posix_spawn: Fix compilation error on Android.
495         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
496         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
497         (posix_spawn_file_actions_t): Consider also the case
498         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
500 2018-05-13  Bruno Haible  <bruno@clisp.org>
502         tsearch: Move from K&R C to ANSI C.
503         * lib/tsearch.c (tfind): Convert definition to ANSI C.
505 2018-05-13  Bruno Haible  <bruno@clisp.org>
507         tsearch: Fix compilation error on Android.
508         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
509         is 0.
510         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
511         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
512         GNULIB_defined_tsearch is true.
513         (twalk): Define only if GNULIB_defined_twalk is true.
514         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
515         is 0.
516         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
517         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
518         * modules/search (Makefile.am): Substitute HAVE_TWALK.
520 2018-05-13  Bruno Haible  <bruno@clisp.org>
522         imaxdiv: Fix compilation error on Android.
523         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
524         is not defined.
525         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
526         HAVE_DECL_IMAXDIV, is 0.
527         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
528         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
530 2018-05-13  Bruno Haible  <bruno@clisp.org>
532         Support selective inclusion mechanism of recent mingw.org header files.
533         Reported by Eli Zaretskii <eliz@gnu.org>.
534         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
535         __need_ssize_t, or __need_time_t is defined, just include the system's
536         <sys/types.h>.
537         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
538         include the system's <locale.h>.
540 2018-05-13  Bruno Haible  <bruno@clisp.org>
542         Avoid compilation error due to 'mmap' on Android.
543         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
544         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
545         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
546         Undefine on Android.
548 2018-05-13  Bruno Haible  <bruno@clisp.org>
550         Add cross-compilation guesses for Linux systems without glibc.
551         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
552         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
553         * m4/link.m4 (gl_FUNC_LINK): Likewise.
554         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
555         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
556         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
557         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
558         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
559         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
560         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
561         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
562         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
563         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
564         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
565         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
566         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
567         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
568         * m4/utimens.m4 (gl_UTIMENS): Likewise.
570 2018-05-13  Bruno Haible  <bruno@clisp.org>
572         getpagesize: Fix compilation error on Android.
573         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
574         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
575         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
576         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
577         HAVE_GETPAGESIZE accordingly.
578         * modules/getcwd (Files): Add m4/getpagesize.m4.
580 2018-05-13  Bruno Haible  <bruno@clisp.org>
582         tcgetsid: Fix compilation error on Android.
583         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
584         AC_CHECK_FUNC.
586 2018-05-13  Bruno Haible  <bruno@clisp.org>
588         getpass: Fix configure test for Android.
589         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
590         AC_CHECK_FUNC.
592 2018-05-13  Bruno Haible  <bruno@clisp.org>
594         ffs: Fix compilation error on Android.
595         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
597 2018-05-13  Bruno Haible  <bruno@clisp.org>
599         mkfifo: Fix compilation error on Android.
600         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
601         AC_CHECK_FUNC.
603 2018-05-13  Bruno Haible  <bruno@clisp.org>
605         c-strtod: Fix configure test for Android.
606         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
607         AC_CHECK_FUNC.
609 2018-05-13  Bruno Haible  <bruno@clisp.org>
611         random: Fix compilation error on Android.
612         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
613         AC_CHECK_FUNC.
615 2018-05-13  Bruno Haible  <bruno@clisp.org>
617         grantpt: Fix compilation error on Android.
618         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
619         AC_CHECK_FUNC.
621 2018-05-13  Bruno Haible  <bruno@clisp.org>
623         stdioext: Fix compilation errors with newer Android headers.
624         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
625         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
626         fallbacks for Android.
627         * lib/fpending.c: Update comments.
628         * lib/fpurge.c: Likewise.
629         * lib/freadable.h: Likewise.
630         * lib/freadable.c: Likewise.
631         * lib/freadahead.c: Likewise.
632         * lib/freading.h: Likewise.
633         * lib/freadptr.c: Likewise.
634         * lib/fseterr.c: Likewise.
635         * lib/fwritable.h: Likewise.
636         * lib/fwritable.c: Likewise.
637         * lib/fwriting.h: Likewise.
638         * lib/fwriting.c: Likewise.
640 2018-05-13  Bruno Haible  <bruno@clisp.org>
642         doc: Add info about Android versions 2.0 to 8.1.
643         * doc/**/*.texi: Add info about functions in all released versions of
644         Bionic.
646 2018-05-12  Bruno Haible  <bruno@clisp.org>
648         fseeko: On mingw, don't use the hidden function _fseeki64.
649         Reported by Eli Zaretskii <eliz@gnu.org>.
650         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
651         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
653 2018-05-12  Bruno Haible  <bruno@clisp.org>
655         glob: Choose 'dirent_type' in a way that works better on mingw.
656         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
657         * lib/glob.c (dirent_type): Define as uint_fast32_t.
659 2018-05-12  Bruno Haible  <bruno@clisp.org>
661         execute, spawn-pipe: Avoid warning about redefining 'close'.
662         Reported by Eli Zaretskii <eliz@gnu.org>.
663         * lib/execute.c: Undefine 'close' before redefining it.
664         * lib/spawn-pipe.c: Likewise.
666 2018-05-12  Bruno Haible  <bruno@clisp.org>
668         nanosleep: Avoid test failure on mingw when it has nanosleep.
669         Reported by Eli Zaretskii <eliz@gnu.org>.
670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
671         If it does not exist, use a simpler test program that does not call
672         alarm().
674 2018-05-10  Bruno Haible  <bruno@clisp.org>
676         lock, cond, thread, tls: Use a different symbol as libpthread witness.
677         Reported by Devin Hussey <husseydevin@gmail.com>.
678         Based on a patch by Paul Eggert.
679         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
680         as witness of libpthread.
681         * lib/glthread/cond.h (pthread_in_use): Likewise.
682         * lib/glthread/thread.h (pthread_in_use): Likewise.
683         * lib/glthread/tls.h (pthread_in_use): Likewise.
685 2018-05-10  Bruno Haible  <bruno@clisp.org>
687         cond tests: Fix compilation error on Solaris.
688         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
689         macro.
691 2018-05-10  Bruno Haible  <bruno@clisp.org>
693         doc: Add partial info about Android 4.3.
694         * doc/*-functions/*.texi: Add info about functions that were added
695         to Bionic between Android 4.3 and Android 9.0.
697 2018-05-10  Bruno Haible  <bruno@clisp.org>
699         doc: Add info about Android 9.0.
700         * doc/**/*.texi: Add info about functions and headers in Bionic from
701         Android 9.0.
703 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
705         af_alg: fix my typo in afalg_buffer
706         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
707         (afalg_stream): Simplify and avoid the need for a runtime test
708         at the end.
710         af_alg: recover better from crypto failures
711         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
712         input stream is seekable, by repositioning the stream back to
713         where it was, possibly by just calling sendfile with an offset
714         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
715         cases, which lets our callers try again with user-mode code.
716         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
717         instead of on fflush and lseek.
719         af_alg: distiguish I/O errors better
720         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
721         not -EIO, if it’s OK for the caller to try again with user-mode code.
722         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
723         some other error number) if fflush fails, as the caller should not
724         try again that case.
726         af_alg: avoid gotos
727         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
728         gotos, as they were a source of unreliability and made the code a
729         bit harder to follow.
731         af_alg: don’t leak file descriptors into children
732         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
733         This code should be compiled only on recent GNU/Linux platforms
734         so we shouldn’t have to also depend on the accept4 module.
736         af_alg: coalesce socket creation
737         * lib/af_alg.c (alg_socket): New function.
738         (afalg_buffer, afalg_stream): Use it.  This avoids some
739         code duplication and gotos.
741         af_alg: fix file descriptor leak
742         * lib/af_alg.c (afalg_stream): Close leak.
744         af_alg: Pacify --enable-gcc-warnings on GCC 8
745         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
746         and checking to pacify gcc -Wjump-misses-init on GCC 8.
748 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
750         af_alg: Pacify --enable-gcc-warnings
751         Problem reported by Assaf Gordon in:
752         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
753         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
754         gcc -Wjump-misses-init.
755         * lib/sha512.c (shaxxx_stream): Now static.
757 2018-05-06  Bruno Haible  <bruno@clisp.org>
759         af_alg: Add ability to use Linux kernel crypto API on data in memory.
760         * lib/af_alg.h (afalg_buffer): New declaration.
761         * lib/af_alg.c (afalg_buffer): New function.
763 2018-05-06  Bruno Haible  <bruno@clisp.org>
765         af_alg: Avoid warnings.
766         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
767         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
769 2018-05-06  Bruno Haible  <bruno@clisp.org>
771         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
772         * tests/bench-digest.h: New file.
773         * tests/bench-md5.c: New file.
774         * tests/bench-sha1.c: New file.
775         * tests/bench-sha224.c: New file.
776         * tests/bench-sha256.c: New file.
777         * tests/bench-sha384.c: New file.
778         * tests/bench-sha512.c: New file.
779         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
780         tests/bench-digest.h.
781         (Depends-on): Add getrusage, gettimeofday.
782         (Makefile.am): Add variables to build bench-md5.
783         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
784         tests/bench-digest.h.
785         (Depends-on): Add getrusage, gettimeofday.
786         (Makefile.am): Add variables to build bench-sha1.
787         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
788         tests/bench-sha256.c, tests/bench-digest.h.
789         (Depends-on): Add getrusage, gettimeofday.
790         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
791         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
792         tests/bench-sha512.c, tests/bench-digest.h.
793         (Depends-on): Add getrusage, gettimeofday.
794         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
796 2018-05-06  Bruno Haible  <bruno@clisp.org>
798         af_alg: Fix a resource leak.
799         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
800         New local variable 'result'.
802 2018-05-06  Bruno Haible  <bruno@clisp.org>
804         af_alg: Fix bug with streams that are not at position 0.
805         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
806         assume that the stream is positioned at position 0.
807         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
808         of the stream.
809         * lib/md5.h (md5_stream): Likewise.
810         * lib/sha1.h (sha1_stream): Likewise.
811         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
812         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
813         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
815         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
816         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
817         stream that is not positioned at the beginning.
819 2018-05-06  Bruno Haible  <bruno@clisp.org>
821         af_alg: Add configure option to enable/disable use of Linux crypto API.
822         Suggested by Assaf Gordon <assafgordon@gmail.com>.
823         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
824         USE_LINUX_CRYPTO_API.
825         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
826         * lib/af_alg.c: Likewise.
828 2018-05-06  Bruno Haible  <bruno@clisp.org>
830         Followup to 'af_alg: New module.'.
831         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
832         * modules/crypto/sha1 (Depends-on): Likewise.
833         * modules/crypto/sha256 (Depends-on): Likewise.
834         * modules/crypto/sha512 (Depends-on): Likewise.
836 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
838         crypto/{md5,sha1,sha256,sha512}: simplify
839         * lib/md5.c (md5_stream):
840         * lib/sha1.c (sha1_stream):
841         * lib/sha256.c (shaxxx_stream):
842         Simplify, partly by assuming C99.
843         * lib/sha256.c (shaxxx_stream):
844         New function, which implements both sha256 and sha224.
845         Simplify, partly by assuming C99.
846         (sha256_stream, sha224_stream):
847         Use it to avoid code duplication, removing a FIXME.
848         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
849         Likewise.
851         af_alg: Improve comments.
852         * lib/af_alg.h: Use imperatives and tighten up wording.
854 2018-05-05  Bruno Haible  <bruno@clisp.org>
856         af_alg: Improve comments.
857         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
859 2018-05-05  Bruno Haible  <bruno@clisp.org>
861         af_alg: New module.
862         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
863         * lib/af_alg.c: Include "af_alg.h" before the other header files.
864         * lib/md5.c: Include "af_alg.h" unconditionally.
865         (md5_stream): Invoke afalg_stream unconditionally.
866         * lib/sha1.c: Include "af_alg.h" unconditionally.
867         (sha1_stream): Invoke afalg_stream unconditionally.
868         * lib/sha256.c: Include "af_alg.h" unconditionally.
869         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
870         * lib/sha512.c: Include "af_alg.h" unconditionally.
871         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
872         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
873         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
874         * modules/crypto/af_alg: New file.
875         * modules/crypto/md5 (Files): Remove files that are now in the
876         'crypto/af_alg' module.
877         (Depends-on): Add crypto/af_alg.
878         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
879         (Makefile.am): Don't mention af_alg.c here.
880         * modules/crypto/sha1 (Files): Remove files that are now in the
881         'crypto/af_alg' module.
882         (Depends-on): Add crypto/af_alg.
883         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
884         (Makefile.am): Don't mention af_alg.c here.
885         * modules/crypto/sha256 (Files): Remove files that are now in the
886         'crypto/af_alg' module.
887         (Depends-on): Add crypto/af_alg.
888         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
889         (Makefile.am): Don't mention af_alg.c here.
890         * modules/crypto/sha512 (Files): Remove files that are now in the
891         'crypto/af_alg' module.
892         (Depends-on): Add crypto/af_alg.
893         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
894         (Makefile.am): Don't mention af_alg.c here.
896 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
898         crypto tests: pacify GCC
899         * tests/test-digest.h (test_digest_on_files):
900         Don’t assume digest size fits in int (!).
902         af_alg: minor style improvements
903         * lib/af_alg.c (afalg_stream): Prefer C99 style
904         decl-after-statement, since we’re already assuming C99.  Clarify
905         by strengthening the bind test and omit unnecessary assignment.
907 2018-05-05  Bruno Haible  <bruno@clisp.org>
909         af_alg: Fix bug on empty files.
910         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
911         stream is empty.
913 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
915         sys-limits.h: new file for crypto and safe I/O
916         * lib/af_alg.c: Include sys-limits.h.
917         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
918         (afalg_stream): Also reject negative sizes for sendfile; they
919         should not happen and the code is a bit cleaner and faster this way.
920         * lib/safe-read.c: Include sys-limits.h.
921         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
922         * lib/sys-limits.h: New file, with values and commentary derived
923         from the old safe-read.c and from GNU Emacs sysdep.c.
924         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
925         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
926         Add lib/sys-limits.h to Files section.
928 2018-05-05  Bruno Haible  <bruno@clisp.org>
930         af_alg: Improve function signature.
931         * lib/af_alg.h (afalg_stream): Swap second and third argument.
932         * lib/af_alg.c (afalg_stream): Likewise.
933         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
935 2018-05-05  Bruno Haible  <bruno@clisp.org>
937         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
938         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
939         * modules/crypto/sha1 (Depends-on): Likewise.
940         * modules/crypto/sha256 (Depends-on): Likewise.
941         * modules/crypto/sha512 (Depends-on): Likewise.
943 2018-05-05  Bruno Haible  <bruno@clisp.org>
945         crypto/{md5,sha1,sha256,sha512}: Fix module description.
946         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
947         * modules/crypto/sha1 (Depends-on): Likewise.
948         * modules/crypto/sha256 (Depends-on): Likewise.
949         * modules/crypto/sha512 (Depends-on): Likewise.
951 2018-05-05  Bruno Haible  <bruno@clisp.org>
953         af_alg: Add documentation.
954         * lib/af_alg.h: Add comments.
956 2018-05-05  Bruno Haible  <bruno@clisp.org>
958         sha512: Add tests.
959         * tests/test-sha512.c: New file.
960         * modules/crypto/sha512-tests: New file.
962 2018-05-05  Bruno Haible  <bruno@clisp.org>
964         sha256: Add tests.
965         * tests/test-sha256.c: New file.
966         * modules/crypto/sha256-tests: New file.
968 2018-05-05  Bruno Haible  <bruno@clisp.org>
970         sha1 tests: Add test for sha1_stream.
971         * tests/test-sha1.c: Include test-digest.h.
972         (main): Invoke test_digest_on_files on 'sha1_stream'.
973         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
975 2018-05-05  Bruno Haible  <bruno@clisp.org>
977         md5 tests: Add test for md5_stream.
978         * tests/test-digest.h: New file.
979         * tests/test-md5.c: Include test-digest.h.
980         (main): Invoke test_digest_on_files on 'md5_stream'.
981         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
983 2018-04-28  Matteo Croce  <mcroce@redhat.com>
985         md5sum: Use AF_ALG when available.
986         * lib/md5.c: Include af_alg.h.
987         (md5_stream): Use afalg_stream when available.
988         * modules/crypto/md5 (Files): Add the af_alg files.
989         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
990         (Makefile.am): Add af_alg.c.
992 2018-04-28  Matteo Croce  <mcroce@redhat.com>
994         sha512sum: Use AF_ALG when available.
995         * lib/sha512.c: Include af_alg.h.
996         (sha512_stream, sha384_stream): Use afalg_stream when available.
997         * modules/crypto/sha512 (Files): Add the af_alg files.
998         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
999         (Makefile.am): Add af_alg.c.
1001 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1003         sha256sum: Use AF_ALG when available.
1004         * lib/sha256.c: Include af_alg.h.
1005         (sha256_stream, sha224_stream): Use afalg_stream when available.
1006         * modules/crypto/sha256 (Files): Add the af_alg files.
1007         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1008         (Makefile.am): Add af_alg.c.
1010 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1012         sha1sum: Use AF_ALG when available.
1013         * lib/af_alg.h: New file.
1014         * lib/af_alg.c: New file.
1015         * lib/sha1.c: Include af_alg.h.
1016         (sha1_stream): Use afalg_stream when available.
1017         * m4/linux-if-alg.m4: New file.
1018         * modules/crypto/sha1 (Files): Add the new files.
1019         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1020         (Makefile.am): Add af_alg.c.
1022 2018-05-05  Bruno Haible  <bruno@clisp.org>
1024         all: Replace more http URLs by https URLs.
1025         * lib/localename.c: Use https: URL.
1026         * lib/timespec.h: Likewise.
1028 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
1030         maint: port more modules to GCC 8
1031         * lib/dirname.h (base_name):
1032         * lib/exclude.h (new_exclude):
1033         * lib/xstrndup.h (xstrndup):
1034         Add malloc attribute.
1035         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
1036         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
1037         This pacifies GCC 8.
1038         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1039         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
1041 2018-05-03  Bruno Haible  <bruno@clisp.org>
1043         Simplify code. Drop support for Borland C++ on Windows.
1044         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
1045         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
1046         'defined _WIN32'.
1047         * lib/canonicalize-lgpl.c: Likewise.
1048         * lib/classpath.c: Likewise.
1049         * lib/clean-temp.c: Likewise.
1050         * lib/csharpexec.c: Likewise.
1051         * lib/ctime.c: Likewise.
1052         * lib/dosname.h: Likewise.
1053         * lib/dup2.c: Likewise.
1054         * lib/errno.in.h: Likewise.
1055         * lib/error.c: Likewise.
1056         * lib/euidaccess.c: Likewise.
1057         * lib/execute.c: Likewise.
1058         * lib/fcntl.in.h: Likewise.
1059         * lib/fcntl.c: Likewise.
1060         * lib/filename.h: Likewise.
1061         * lib/findprog.c: Likewise.
1062         * lib/flock.c: Likewise.
1063         * lib/fopen.c: Likewise.
1064         * lib/freopen.c: Likewise.
1065         * lib/fstat.c: Likewise.
1066         * lib/fsync.c: Likewise.
1067         * lib/gc-gnulib.c: Likewise.
1068         * lib/get-rusage-data.c: Likewise.
1069         * lib/getaddrinfo.c: Likewise.
1070         * lib/getdelim.c: Likewise.
1071         * lib/getdtablesize.c: Likewise.
1072         * lib/gethostname.c: Likewise.
1073         * lib/getlogin.c: Likewise.
1074         * lib/getlogin_r.c: Likewise.
1075         * lib/getopt.c: Likewise.
1076         * lib/getpagesize.c: Likewise.
1077         * lib/getpass.c: Likewise.
1078         * lib/getrusage.c: Likewise.
1079         * lib/gettimeofday.c: Likewise.
1080         * lib/glob.c: Likewise.
1081         * lib/inttypes.in.h: Likewise.
1082         * lib/isapipe.c: Likewise.
1083         * lib/javaexec.c: Likewise.
1084         * lib/link.c: Likewise.
1085         * lib/localcharset.c: Likewise.
1086         * lib/localename.h: Likewise.
1087         * lib/localename.c: Likewise.
1088         * lib/localtime.c: Likewise.
1089         * lib/lseek.c: Likewise.
1090         * lib/mbsinit.c: Likewise.
1091         * lib/mkdir.c: Likewise.
1092         * lib/msvc-nothrow.h: Likewise.
1093         * lib/nanosleep.c: Likewise.
1094         * lib/nl_langinfo.c: Likewise.
1095         * lib/nonblocking.c: Likewise.
1096         * lib/nproc.c: Likewise.
1097         * lib/open.c: Likewise.
1098         * lib/openpty.c: Likewise.
1099         * lib/pathmax.h: Likewise.
1100         * lib/pipe-filter-aux.c: Likewise.
1101         * lib/pipe-filter-gi.c: Likewise.
1102         * lib/pipe-filter-ii.c: Likewise.
1103         * lib/pipe.c: Likewise.
1104         * lib/pipe2.c: Likewise.
1105         * lib/poll.c: Likewise.
1106         * lib/popen.c: Likewise.
1107         * lib/posix_openpt.c: Likewise.
1108         * lib/printf-parse.c: Likewise.
1109         * lib/progreloc.c: Likewise.
1110         * lib/putenv.c: Likewise.
1111         * lib/read.c: Likewise.
1112         * lib/relocatable.c: Likewise.
1113         * lib/rename.c: Likewise.
1114         * lib/same-inode.h: Likewise.
1115         * lib/secure_getenv.c: Likewise.
1116         * lib/select.c: Likewise.
1117         * lib/sethostname.c: Likewise.
1118         * lib/setlocale.c: Likewise.
1119         * lib/sigaction.c: Likewise.
1120         * lib/sigprocmask.c: Likewise.
1121         * lib/sleep.c: Likewise.
1122         * lib/spawn-pipe.h: Likewise.
1123         * lib/spawn-pipe.c: Likewise.
1124         * lib/spawni.c: Likewise.
1125         * lib/stat-time.h: Likewise.
1126         * lib/stat-w32.c: Likewise.
1127         * lib/stat.c: Likewise.
1128         * lib/stdio.in.h: Likewise.
1129         * lib/stdio-impl.h: Likewise.
1130         * lib/stdio-read.c: Likewise.
1131         * lib/stdio-write.c: Likewise.
1132         * lib/stdlib.in.h: Likewise.
1133         * lib/strerror_r.c: Likewise.
1134         * lib/strftime-fixes.c: Likewise.
1135         * lib/sys_stat.in.h: Likewise.
1136         * lib/sys_types.in.h: Likewise.
1137         * lib/sys_wait.in.h : Likewise.
1138         * lib/system-quote.h: Likewise.
1139         * lib/system-quote.c: Likewise.
1140         * lib/tmpdir.c: Likewise.
1141         * lib/tzset.c: Likewise.
1142         * lib/uname.c: Likewise.
1143         * lib/unistd.in.h: Likewise.
1144         * lib/utime.in.h: Likewise.
1145         * lib/utime.c: Likewise.
1146         * lib/utimecmp.c: Likewise.
1147         * lib/utimens.c: Likewise.
1148         * lib/vasnprintf.c: Likewise.
1149         * lib/vma-iter.h: Likewise.
1150         * lib/vma-iter.c: Likewise.
1151         * lib/wait-process.c: Likewise.
1152         * lib/wcsftime.c: Likewise.
1153         * lib/wctype.in.h: Likewise.
1154         * lib/write.c: Likewise.
1155         * tests/nap.h: Likewise.
1156         * tests/test-cloexec.c: Likewise.
1157         * tests/test-dup-safer.c: Likewise.
1158         * tests/test-dup2.c: Likewise.
1159         * tests/test-dup3.c: Likewise.
1160         * tests/test-fcntl.c: Likewise.
1161         * tests/test-get-rusage-data.c: Likewise.
1162         * tests/test-getaddrinfo.c: Likewise.
1163         * tests/test-getlogin.h: Likewise.
1164         * tests/test-isatty.c: Likewise.
1165         * tests/test-localename.c: Likewise.
1166         * tests/test-mbrtowc-w32.c: Likewise.
1167         * tests/test-nonblocking.c: Likewise.
1168         * tests/test-nonblocking-pipe-main.c: Likewise.
1169         * tests/test-nonblocking-socket-main.c: Likewise.
1170         * tests/test-nonblocking-socket.h: Likewise.
1171         * tests/test-pipe.c: Likewise.
1172         * tests/test-pipe2.c: Likewise.
1173         * tests/test-poll.c: Likewise.
1174         * tests/test-pthread_sigmask1.c: Likewise.
1175         * tests/test-select.h: Likewise.
1176         * tests/test-sethostname2.c: Likewise.
1177         * tests/test-sigprocmask.c: Likewise.
1178         * tests/test-spawn-pipe-child.c: Likewise.
1179         * tests/test-stat-time.c: Likewise.
1180         * tests/test-system-quote-main.c: Likewise.
1181         * tests/test-utimens-common.h: Likewise.
1182         * tests/test-wcrtomb-w32.c: Likewise.
1183         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
1184         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
1185         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
1186         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
1187         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
1188         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1189         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1190         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1191         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1192         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1193         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
1194         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
1195         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
1196         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1197         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
1198         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1200 2018-05-02  Bruno Haible  <bruno@clisp.org>
1202         localename: Fix test failures on mingw.
1203         * lib/localename.c (gl_locale_name_thread): Remove code specific to
1204         native Windows.
1205         (gl_locale_name_posix): Move code specific to native Windows here.
1206         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
1207         Accept result without charset suffix, as it appears on mingw.
1209 2018-04-28  Paul Smith  <psmith@gnu.org>
1211         bootstrap: Avoid gnulib operations if not needed
1212         * build-aux/bootstrap: Remove unused variable gnulib_mk.
1213         Set $gnulib_extra_files early so it can be overridden in .conf.
1214         Remove redundant --import flag from $gnulib_tool_options.
1215         Set $use_gnulib to false if no gnulib modules or files are needed.
1216         If $use_gnulib is false, don't do anything related to gnulib.
1217         A lot of this is just whitespace (indentation) changes.
1219 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1221         manywarnings: port to GCC 8.0
1222         * build-aux/gcc-warning.spec: Add -Wcatch-value,
1223         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
1224         fact that the GCC help message now mentions operands for
1225         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
1226         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
1227         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
1228         and -Wunused-const-variable.
1229         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
1230         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
1231         -Wmissing-attributes, -Wmultistatement-macros,
1232         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
1233         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
1235 2018-04-24  Bruno Haible  <bruno@clisp.org>
1237         sys_socket: Make SO_REUSEPORT available across platforms.
1238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1239         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
1240         * doc/posix-headers/sys_socket.texi: Mention the issue.
1241         * tests/test-poll.c (SO_REUSEPORT): Remove.
1242         * tests/test-select.h: Include <sys/socket.h>.
1243         (SO_REUSEPORT): Remove.
1244         * modules/select-tests (Depends-on): Add 'sys_socket'.
1246 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
1248         localcharset: short-circuit the search for an alias on a Mac
1249         * lib/localcharset.c (get_charset_aliases): Add a tautological
1250         UTF-8 entry to speed up the search for this case.
1251         Most machines default to a UTF-8 locale nowadays, so begin the
1252         list of aliases with a dummy UTF-8 entry so it will be found
1253         immediately and a time-consuming search through the rest of
1254         the list is avoided.
1256 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
1258         fts: add comment
1259         * lib/fts.c (fts_build): Explain why ==, not >.
1260         See remark by Bernhard Voelker in:
1261         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
1263         fts: fix bug in find across filesystems
1264         This fixes a bug I introduced last summer.
1265         Problem reported by Kamil Dudka in:
1266         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
1267         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
1268         (leaf_optimization):
1269         New arg for file descriptor.  All callers changed.
1270         (fts_build): Check for whether inodes should be sorted
1271         before closing the directory.
1273 2018-04-07  Bruno Haible  <bruno@clisp.org>
1275         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
1276         Reported by Genki Sky <sky@genki.is>.
1277         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
1278         version 0.9.10 or newer.
1279         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
1280         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
1281         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
1282         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
1283         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
1285 2018-04-07  Bruno Haible  <bruno@clisp.org>
1287         execute: Update comment.
1288         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
1290 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1292         fts: treat CIFS like NFS
1293         Problem reported by Kamil Dudka in:
1294         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
1295         * lib/fts.c (S_MAGIC_CIFS): New macro.
1296         (dirent_inode_sort_may_be_useful, leaf_optimization):
1297         Treat CIFS like NFS.
1299 2018-03-28  Bruno Haible  <bruno@clisp.org>
1301         c-stack: Fix possible build failure on some platforms.
1302         * lib/c-stack.c (die): Define whenever this function is referenced.
1304 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
1306         time_rz: fix workaround for Mac OS X 10.6 infloop
1307         Problems reported by Charles A. Roelli (Bug#27736#117).
1308         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
1309         Also, discard output, which clutters the 'configure' log.
1311 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
1313         havelib: port to Solaris 10 /bin/sh
1314         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
1315         instead of '! test EXPR'.
1317 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
1319         time_rz: work around Mac OS X 10.6 infloop
1320         * doc/posix-functions/localtime.texi:
1321         * doc/posix-functions/localtime_r.texi: Mention the bug.
1322         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
1323         better to fix localtime and localtime_r instead, but that would be
1324         more work and is not needed to fix the Emacs problem.
1325         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
1327 2018-03-24  Jim Meyering  <meyering@fb.com>
1329         test-version-etc.sh: don't use diff directly: use init.sh's compare
1330         We'd rather not sacrifice readable "diff -u" output even for
1331         "diff -c" output (not supported by busybox) or for even less
1332         readable ed-style "diff" output.  So use init.sh's compare function
1333         * tests/test-version-etc.sh: Source init.sh and add "." to path.
1334         Remove "./" from invocation of test-version-etc, so we use path.
1335         And s/diff/compare/.
1336         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
1337         to get init.sh.
1338         Prompted by Eric Blake's comments in
1339         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
1341 2018-03-24  Bruno Haible  <bruno@clisp.org>
1343         javacomp-script, javacomp: Add support for Java 10.
1344         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
1345         target-version 10.
1346         * lib/javaversion.h: Update comments.
1347         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1348         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1349         TARGET_VERSION_BOUND, target_version_index,
1350         corresponding_classfile_version): Accept source_version 10 and
1351         target_version 10.
1352         * lib/javacomp.h: Update comments accordingly.
1354 2018-03-24  Bruno Haible  <bruno@clisp.org>
1356         javacomp-script, javacomp: Update comments.
1357         * m4/javacomp.m4: Update comments regarding gcj.
1358         * lib/javacomp.h: Likewise.
1360 2018-03-24  Bruno Haible  <bruno@clisp.org>
1362         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
1363         * lib/javaversion.h: Update comments.
1364         * lib/javacomp.h: Likewise.
1365         * lib/javacomp.c (default_target_version, source_version_index,
1366         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
1367         "1.9".
1368         (TARGET_VERSION_BOUND): Bump to 9.
1369         (target_version_index, corresponding_classfile_version): Recognize "9"
1370         instead of "1.9".
1371         (get_source_version_for_javac): New function.
1372         (is_envjavac_nongcj_usable, is_javac_usable): Add
1373         source_version_for_javac argument.
1374         (compile_java_class): Determine and pass source_version_for_javac.
1375         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
1376         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
1377         appropriate.
1379 2018-03-23  Jim Meyering  <meyering@fb.com>
1381         test-version-etc.sh: port to diff without -c
1382         * tests/test-version-etc.sh: Don't use diff's -c option.
1383         This caused spurious test failure on Alpine Linux, which
1384         uses busybox's diff. Reported by Assaf Gordon in
1385         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
1387 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
1389         c-stack: port to recent GCC build
1390         Problem reported by The Fireplace (Bug#30913).
1391         * lib/c-stack.c (die): Define only if used.
1393 2018-03-20  Bruno Haible  <bruno@clisp.org>
1395         euidaccess: Port to native Windows.
1396         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
1397         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
1399 2018-03-19  Bruno Haible  <bruno@clisp.org>
1401         javacomp: Add support for Java 7, 8, 9.
1402         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1403         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1404         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
1405         and target_version 1,7, 1.8, 1.9.
1406         * lib/javacomp.h: Update comments accordingly.
1408 2018-03-19  Bruno Haible  <bruno@clisp.org>
1410         javacomp-script: Add support for Java 9.
1411         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
1412         target-version 1.9.
1414 2018-03-16  Bruno Haible  <bruno@clisp.org>
1416         glob: Don't compile replacements on recent glibc systems.
1417         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
1418         REPLACE_GLOB is 0, include the system's <glob.h> and use
1419         _GL_CXXALIAS_SYS.
1420         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
1421         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
1422         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
1423         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
1424         Remove snippet/warn-on-use.
1425         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
1426         (Makefile.am): Create glob.h always. Update list of substitutions in
1427         glob.h. Don't depend on $(WARN_ON_USE_H).
1429 2018-03-16  Bruno Haible  <bruno@clisp.org>
1431         glob: Fix link error on native Windows.
1432         * modules/glob (Depends-on): Add 'lstat'.
1434 2018-03-15  Bruno Haible  <bruno@clisp.org>
1436         glob: Fix compilation error in C++ mode.
1437         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
1439 2018-03-15  Bruno Haible  <bruno@clisp.org>
1441         host-cpu-c-abi: Support for RISC-V CPU.
1442         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
1443         riscv32 and riscv64 ABIs.
1444         References:
1445         https://github.com/riscv/riscv-toolchain-conventions
1446         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
1447         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
1449 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1451         fflush: be more paranoid about libio.h change
1452         Suggested by Eli Zaretskii in:
1453         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
1454         * lib/fbufmode.c (fbufmode):
1455         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1456         (disable_seek_optimization, rpl_fflush):
1457         * lib/fpending.c (__fpending):
1458         * lib/fpurge.c (fpurge):
1459         * lib/freadable.c (freadable):
1460         * lib/freadahead.c (freadahead):
1461         * lib/freading.c (freading):
1462         * lib/freadptr.c (freadptr):
1463         * lib/freadseek.c (freadptrinc):
1464         * lib/fseeko.c (fseeko):
1465         * lib/fseterr.c (fseterr):
1466         * lib/fwritable.c (fwritable):
1467         * lib/fwriting.c (fwriting):
1468         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
1470 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
1472         maint: write-file-hooks -> before-save-hook
1473         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
1474         it's time to use the recommended replacement.
1475         Problem reported by Glenn Morris in:
1476         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
1477         * build-aux/announce-gen, build-aux/bootstrap:
1478         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
1479         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
1480         * build-aux/gnu-web-doc-update, build-aux/gnupload:
1481         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
1482         * build-aux/update-copyright, build-aux/useless-if-before-free:
1483         * build-aux/vc-list-files:
1484         Update hook usage for files where Gnulib is the canonical source.
1486 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
1488         binary-io: pacify gcc -Wunused-parameter
1489         Problem reported by Reuben Thomas in:
1490         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
1491         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
1492         Use _GL_UNUSED where appropriate.
1494         fflush: adjust to glibc 2.28 libio.h removal
1495         Problem reported by Daniel P. Berrangé in:
1496         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
1497         * lib/fbufmode.c (fbufmode):
1498         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1499         (disable_seek_optimization, rpl_fflush):
1500         * lib/fpending.c (__fpending):
1501         * lib/fpurge.c (fpurge):
1502         * lib/freadable.c (freadable):
1503         * lib/freadahead.c (freadahead):
1504         * lib/freading.c (freading):
1505         * lib/freadptr.c (freadptr):
1506         * lib/freadseek.c (freadptrinc):
1507         * lib/fseeko.c (fseeko):
1508         * lib/fseterr.c (fseterr):
1509         * lib/fwritable.c (fwritable):
1510         * lib/fwriting.c (fwriting):
1511         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
1512         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
1513         Define if not already defined.
1515 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
1517         environ: fix link error on 32-bit Cygwin
1518         Problem reported for GNU Emacs by Ken Brown in:
1519         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
1520         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
1522 2018-02-24  Bruno Haible  <bruno@clisp.org>
1524         mbrtowc tests: Fix regression on glibc.
1525         Reported by Bernhard Voelker.
1526         * tests/test-mbrtowc.c (main): Fix expected value of wc.
1528 2018-02-24  Bruno Haible  <bruno@clisp.org>
1530         striconveha, uniconv/*: Avoid test failures on musl libc.
1531         * tests/iconvsupport.c: New file.
1532         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
1533         does not support the ISO-2022-JP-2 encoding.
1534         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
1535         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
1536         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
1537         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
1538         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
1539         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
1540         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
1541         (Makefile.am): Link test-striconveha with iconvsupport.o.
1542         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
1543         tests/iconvsupport.c.
1544         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
1545         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
1546         tests/iconvsupport.c.
1547         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
1548         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
1549         tests/iconvsupport.c.
1550         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
1551         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
1552         tests/iconvsupport.c.
1553         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
1554         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
1555         tests/iconvsupport.c.
1556         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
1557         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
1558         tests/iconvsupport.c.
1559         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
1561 2018-02-24  Bruno Haible  <bruno@clisp.org>
1563         localename: Add support for musl libc.
1564         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
1565         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
1566         on Linux platforms which define NL_LOCALE_NAME.
1568 2018-02-24  Bruno Haible  <bruno@clisp.org>
1570         mbrtowc tests: Don't make assumptions about the charset the C locale.
1571         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
1572         particular mapping in the C locale.
1574 2018-02-24  Bruno Haible  <bruno@clisp.org>
1576         ptsname_r: Don't expect that this function sets errno.
1577         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
1578         from ptsname_r().
1579         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
1581 2018-02-23  Bruno Haible  <bruno@clisp.org>
1583         xmalloca: pacify gcc -Wbad-function-cast
1584         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
1586 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
1588         nl_langinfo: pacify gcc -Wunused-function
1589         * lib/nl_langinfo.c (ctype_codeset): Do not define if
1590         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
1591         this case.  Without this change, I got a diagnostic when building
1592         coreutils on Fedora 27 with gcc 7.3.1 20180130.
1594         same: pacify gcc -Wunused-variable
1595         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
1596         Omit unused variable.
1598         malloca: pacify gcc -Wbad-function-cast
1599         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
1600         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
1601         To pacify GCC, I had to cast alloca’s result to some type other
1602         than void * before casting that to uintptr_t.
1604 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1606         utimecmp: new function utimecmpat
1607         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
1608         Do not include utimens.h.
1609         (utimecmpat): New function, generalizing utimecmp.
1610         (utimecmp): Now a thin layer around utimecmpat.
1611         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
1612         utimensat instead of on lstat and utimens.
1614         same: new function same_nameat
1615         * lib/same.c: Include fcntl.h.
1616         * lib/same.c (same_nameat): New function, generalizing same_name.
1617         (same_name): Now a thin layer around same_nameat.
1618         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
1619         * modules/same (Depends-on): Depend on fstatat, openat.
1621 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
1623         warnings: Add support for Objective C.
1624         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
1625         macro.
1627 2018-02-17  Bruno Haible  <bruno@clisp.org>
1629         lock: Fix test-once1 crash on FreeBSD11.
1630         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
1631         'pthread_create', not 'pthread_cancel'.
1633 2018-02-17  Bruno Haible  <bruno@clisp.org>
1635         lock: Add test of gl_once.
1636         * tests/test-once.c: New file.
1637         * modules/lock-tests (Files): Add it.
1638         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
1640 2018-02-17  Bruno Haible  <bruno@clisp.org>
1642         thread: Fix compilation error on IRIX.
1643         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
1644         needed; include it outside the C++ extern "C" {} block.
1645         * doc/posix-headers/pthread.texi: Mention the problem with
1646         pthread_atfork on IRIX.
1648 2018-02-04  Bruno Haible  <bruno@clisp.org>
1650         nl_langinfo: Override the system's nl_langinfo() when needed.
1651         Reported by Jim Meyering.
1652         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
1653         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
1655 2018-02-04  Bruno Haible  <bruno@clisp.org>
1657         signal-h, monetary, strings: Fix build failure in some cases.
1658         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1659         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
1660         as delimiter in sed command, not '|'.
1661         * modules/monetary (Makefile.am): Likewise.
1662         * modules/strings (Makefile.am): Likewise.
1664 2018-02-03  Jim Meyering  <meyering@fb.com>
1666         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
1667         * top/maint.mk (sc_file_system): Don't complain about
1668         "/proc/filesystems".
1670 2018-02-03  Bruno Haible  <bruno@clisp.org>
1672         stdlib: Fix compilation error on OpenIndiana.
1673         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
1674         <sys/time.h>.
1675         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1676         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
1678 2018-02-03  Bruno Haible  <bruno@clisp.org>
1680         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
1681         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
1682         and use $EGREP instead of 'grep -E'.
1683         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
1684         'grep -E'.
1686 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
1688         malloca: Add a compile-time verification.
1689         * lib/malloca.c (small_t): Verify that it is wide enough.
1690         * modules/malloca (Depends-on): Add verify.
1692 2018-02-02  Bruno Haible  <bruno@clisp.org>
1694         malloca: Add an argument check.
1695         Suggested by Paul Eggert.
1696         * lib/malloca.c (freea): Check against an invalid argument.
1698 2018-02-02  Bruno Haible  <bruno@clisp.org>
1700         localename: Add support for OpenIndiana.
1701         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
1702         Solaris 11 variants with uselocale() but without getlocalename_l().
1704 2018-02-02  Bruno Haible  <bruno@clisp.org>
1706         malloca, xmalloca: Make multithread-safe.
1707         Reported by Florian Weimer <fweimer@redhat.com>.
1708         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
1709         * lib/malloca.h (malloca): In the stack allocation case, return a
1710         pointer that is a multiple of 2 * sa_alignment_max.
1711         (sa_increment): Remove enum item.
1712         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
1713         a pointer that is a multiple of 2 * sa_alignment_max.
1714         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
1715         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
1716         HASH_TABLE_SIZE, mmalloca_results): Remove.
1717         (small_t): New type.
1718         (mmalloca, free): Rewritten.
1719         * lib/malloca.valgrind: Remove file.
1720         * modules/malloca (Files): Remove it.
1721         (Depends-on): Remove verify.
1723 2018-01-31  Bruno Haible  <bruno@clisp.org>
1725         environ: Fix link error on 64-bit Cygwin.
1726         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
1727         __declspec(dllimport) attribute.
1728         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
1730 2018-01-30  Bruno Haible  <bruno@clisp.org>
1732         get-rusage-data: Add support for Minix 3.
1733         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
1735 2018-01-30  Bruno Haible  <bruno@clisp.org>
1737         vma-iter: Add support for Minix 3.
1738         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
1739         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
1741 2018-01-27  Bruno Haible  <bruno@clisp.org>
1743         Fix malfunction of socket functions on HP-UX in 64-bit mode.
1744         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
1745         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
1746         _HPUX_ALT_XOPEN_SOCKET_API.
1747         * modules/accept (Depends-on): Add 'extensions'.
1748         * modules/getpeername (Depends-on): Likewise.
1749         * modules/getsockname (Depends-on): Likewise.
1750         * modules/getsockopt (Depends-on): Likewise.
1751         * modules/recvfrom (Depends-on): Likewise.
1752         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
1753         * doc/posix-functions/getpeername.texi: Likewise.
1754         * doc/posix-functions/getsockname.texi: Likewise.
1755         * doc/posix-functions/getsockopt.texi: Likewise.
1756         * doc/posix-functions/recvfrom.texi: Likewise.
1758 2018-01-27  Bruno Haible  <bruno@clisp.org>
1760         getsockname tests: More tests.
1761         * tests/test-getsockname.c (open_server_socket): New function, mostly
1762         copied from test-poll.c.
1763         (main): Check that getsockname fills in addr.
1764         * modules/getsockname-tests (Depends-on): Add the necessary
1765         dependencies.
1766         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
1768 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
1770         manywarnings: fix maintainer comment
1771         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
1772         it does not mistakenly think that ‘-1)’ is an option.
1774 2018-01-26  Bruno Haible  <bruno@clisp.org>
1776         langinfo: Fix last commit.
1777         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1778         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
1780 2018-01-24  Bruno Haible  <bruno@clisp.org>
1782         langinfo, nl_langinfo: Add support for alternative month names.
1783         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
1784         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
1785         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
1786         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
1787         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
1788         * doc/posix-functions/nl_langinfo.texi: Likewise.
1790 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1792         Merge strftime.c changes from glibc
1793         This incorporates:
1794         2017-11-14 [BZ #10871] Implement alternative month names
1795         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
1796         2017-06-20 Use locale_t, not __locale_t, throughout glibc
1797         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
1798         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
1799         Use locale_t, not __locale_t.
1800         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
1801         (__strftime_internal): Add support for alternate months.
1803 2018-01-23  Bruno Haible  <bruno@clisp.org>
1805         doc: Mention another prerequisite for using Gnulib.
1806         Reported at <https://stackoverflow.com/questions/48378214/>.
1807         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
1808         AC_CONFIG_HEADERS.
1810 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
1812         build: GuixSD doesn't have /bin/bash
1813         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
1815 2018-01-21  Bruno Haible  <bruno@clisp.org>
1817         Avoid test failures on Microsoft Windows Subsystem for Linux.
1818         * tests/test-fcntl.c (main): Allow a different errno.
1819         * tests/test-rename.h (test_rename): Likewise.
1820         * tests/test-renameat.c (main): Likewise.
1821         * tests/test-renameat2.c (main): Likewise.
1823 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
1825         filenamecat: make base a suffix of result
1826         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
1827         (mfile_name_concat): Always make BASE a suffix of the result, as
1828         cp expects this.  To implement this, separate with '.' instead of
1829         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
1830         * tests/test-filenamecat.c (main): Adjust tests to match
1831         current behavior.  Check that BASE_IN_RESULT points to
1832         a copy of BASE and is a suffix of the resultk, and that DIR
1833         is a prefix of the result that is no longer than the prefix
1834         indicated by BASE_IN_RESULT.
1836 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
1838         update-copyright: Handle use of ©
1839         * build-aux/update-copyright ($circle_c_re): Update regex to
1840         handle use of © in headers.
1842 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
1844         Fix -Wundef warning in user-included header lib/cdefs.h.
1845         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
1847 2018-01-04  Bruno Haible  <bruno@clisp.org>
1849         pthread_sigmask: Avoid compilation error on mingw.
1850         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1851         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
1852         macro.
1854 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1856         test-framework-sh: ‘ps -ef’, not ‘ps ef’
1857         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
1858         Suggested by Bob Proulx (Bug#29968).
1859         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
1861 2018-01-02  Eric Blake  <eblake@redhat.com>
1863         stat-time: silence -Wunused-parameter regression
1864         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
1865         Prefer attribute over cast-to-void.
1866         (stat_time_normalize): Mark st as potentially unused.
1868 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
1870         test-framework-sh: avoid netstat
1871         Problem reported by Kristýna Streitová (Bug#29947).
1872         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
1873         deprecated on SuSE and it's not that important anyway.
1875 2018-01-01  Jim Meyering  <meyering@fb.com>
1877         update-copyright: add code to handle more special cases
1878         After running "make update-copyright" this year, five files
1879         required additional manual changes.  Automate those adjustments
1880         for next year.
1881         * Makefile (_year_and_prev): Define.
1882         (update-copyright): Add perl commands to induce this year's post-
1883         update-copyright adjustments.
1885 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1887         version-etc: new year
1888         * build-aux/gendocs.sh (version):
1889         * doc/gendocs_template:
1890         * doc/gendocs_template_min:
1891         * doc/gnulib.texi:
1892         * lib/version-etc.c (COPYRIGHT_YEAR):
1893         Update copyright dates by hand in templates and the like.
1895         maint: fix 'make update-copyright'
1896         * Makefile (update-copyright): Adjust to 2016-11-23 change
1897         to config/srclist-update, which changed the format of srclist.txt.
1899 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1901         chdir-safer: remove this module
1902         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
1903         * NEWS: Document removal.
1904         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
1905         * modules/chdir-safer: Remove these files.
1907 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
1909         Add cross-compilation results for GNU/Hurd.
1910         * m4/calloc.m4: Add GNU/Hurd guess.
1911         * m4/cbrtl.m4: Likewise.
1912         * m4/ceil.m4: Likewise.
1913         * m4/ceilf.m4: Likewise.
1914         * m4/ceill.m4: Likewise.
1915         * m4/chown.m4: Likewise.
1916         * m4/duplocale.m4: Likewise.
1917         * m4/exp2l.m4: Likewise.
1918         * m4/expm1.m4: Likewise.
1919         * m4/fchdir.m4: Likewise.
1920         * m4/floor.m4: Likewise.
1921         * m4/floorf.m4: Likewise.
1922         * m4/fmod.m4: Likewise.
1923         * m4/fmodf.m4: Likewise.
1924         * m4/fmodl.m4: Likewise.
1925         * m4/getcwd.m4: Likewise.
1926         * m4/getgroups.m4: Likewise.
1927         * m4/gettimeofday.m4: Likewise.
1928         * m4/hypot.m4: Likewise.
1929         * m4/hypotf.m4: Likewise.
1930         * m4/hypotl.m4: Likewise.
1931         * m4/link-follow.m4: Likewise.
1932         * m4/link.m4: Likewise.
1933         * m4/linkat.m4: Likewise.
1934         * m4/log.m4: Likewise.
1935         * m4/log10.m4: Likewise.
1936         * m4/log10f.m4: Likewise.
1937         * m4/log1p.m4: Likewise.
1938         * m4/log1pf.m4: Likewise.
1939         * m4/log1pl.m4: Likewise.
1940         * m4/log2.m4: Likewise.
1941         * m4/log2f.m4: Likewise.
1942         * m4/logf.m4: Likewise.
1943         * m4/lstat.m4: Likewise.
1944         * m4/malloc.m4: Likewise.
1945         * m4/mbrlen.m4: Likewise.
1946         * m4/mbrtowc.m4: Likewise.
1947         * m4/mkdir.m4: Likewise.
1948         * m4/mkfifo.m4: Likewise.
1949         * m4/mknod.m4: Likewise.
1950         * m4/mkstemp.m4: Likewise.
1951         * m4/modf.m4: Likewise.
1952         * m4/modff.m4: Likewise.
1953         * m4/modfl.m4: Likewise.
1954         * m4/printf.m4: Likewise.
1955         * m4/pselect.m4: Likewise.
1956         * m4/ptsname.m4: Likewise.
1957         * m4/putenv.m4: Likewise.
1958         * m4/readlink.m4: Likewise.
1959         * m4/realloc.m4: Likewise.
1960         * m4/remainder.m4: Likewise.
1961         * m4/remainderf.m4: Likewise.
1962         * m4/remainderl.m4: Likewise.
1963         * m4/rmdir.m4: Likewise.
1964         * m4/round.m4: Likewise.
1965         * m4/roundf.m4: Likewise.
1966         * m4/roundl.m4: Likewise.
1967         * m4/select.m4: Likewise.
1968         * m4/setenv.m4: Likewise.
1969         * m4/signbit.m4: Likewise.
1970         * m4/sleep.m4: Likewise.
1971         * m4/stat.m4: Likewise.
1972         * m4/strerror.m4: Likewise.
1973         * m4/strtok_r.m4: Likewise.
1974         * m4/symlink.m4: Likewise.
1975         * m4/symlinkat.m4: Likewise.
1976         * m4/trunc.m4: Likewise.
1977         * m4/truncf.m4: Likewise.
1978         * m4/truncl.m4: Likewise.
1979         * m4/tzset.m4: Likewise.
1980         * m4/ungetc.m4: Likewise.
1981         * m4/usleep.m4: Likewise.
1982         * m4/wcwidth.m4: Likewise.
1984 2017-12-28  Bruno Haible  <bruno@clisp.org>
1986         gnulib-tool: Make --conditional-dependencies work better.
1987         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
1988         * gnulib-tool (Options): Don't reject the combination of
1989         --conditional-dependencies with --with-tests.
1990         (func_emit_autoconf_snippets): Add argument referenceable_modules.
1991         Don't reference $modules.
1992         (func_import, func_create_testdir): Pass it.
1994 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1996         regex: use re_malloc etc. consistently
1997         Problem and original patch reported by Arnold Robbins in:
1998         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
1999         * lib/regcomp.c (re_comp):
2000         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
2001         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
2003 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
2004             Paul Eggert  <eggert@cs.ucla.edu>
2006         glob: Silence warning about void pointer arithmetic.
2007         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
2008         arithmetic.
2010 2017-12-15  Bruno Haible  <bruno@clisp.org>
2012         spawn-pipe: Silence a clang warning.
2013         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2014         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
2015         in this file.
2017 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2019         explicit_bzero: port to macOS + Clang 9.0.0
2020         Problem reported by Marcus Johnson (Bug#29658).
2021         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
2022         Don’t use asm.
2024 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
2026         doc: Improve explanation of supporting relocatable libraries.
2027         * doc/relocatable-maint.texi (Supporting Relocation): Explain
2028         properly how to build the relocatable module for
2029         libraries. (Method and example code from Bruno Haible.)
2031 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
2033         doc: Use better texinfo tags in a few cases.
2034         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
2035         instead of @samp in a few places.
2037 2017-12-11  Bruno Haible  <bruno@clisp.org>
2039         unistr/base: Update comment.
2040         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
2042 2017-12-10  Pádraig Brady  <P@draigBrady.com>
2044         test-faccessat.c: unlink temp file to avoid subsequent test failure
2045         * tests/test-faccessat.c: Remove the file to avoid failure
2046         to open the file on subsequent runs due to being created
2047         with no permissions.
2049 2017-12-10  Bruno Haible  <bruno@clisp.org>
2051         doc: New sect. "Modifying the build rules of a Gnulib import directory".
2052         * doc/gnulib-tool.texi (Modified build rules): New node.
2054 2017-12-10  Bruno Haible  <bruno@clisp.org>
2056         doc: Tweak wording.
2057         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
2058         "binaries".
2060 2017-12-05  Sam Steingold  <sds@gnu.org>
2061             Bruno Haible  <bruno@clisp.org>
2063         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
2064         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
2065         AC_EGREP_CPP pattern.
2067 2017-12-03  Bruno Haible  <bruno@clisp.org>
2069         all: Replace more http URLs by https URLs.
2070         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
2071         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
2072         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
2073         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
2075 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
2077         Port better to CentOS 5
2078         Problems reported by Tom G. Christensen in:
2079         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
2080         * doc/glibc-functions/strverscmp.texi (strverscmp):
2081         Document strverscmp bug with glibc 2.9 and earlier.
2082         * doc/posix-functions/tzset.texi (tzset):
2083         Document that TZ with angle brackets is POSIX-2001 and later.
2084         * tests/test-nstrftime.c: Include unistd.h.
2085         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
2086         (TZ): Use it to skip tests with angle brackets in TZ,
2087         for older systems.
2089         stat: add missing module dependencies
2090         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
2091         Add stat-time.
2093 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
2095         stat: fix compilation failure on macOS Sierra
2096         Reported by Marius Schamschula <mschamschula@gmail.com> in:
2097         https://savannah.gnu.org/bugs/?52546
2098         * lib/stat.c: Add missing include of stat-time.h.
2100 2017-11-28  Jim Meyering  <meyering@fb.com>
2102         test-faccessat.c: correct BASE definition to avoid parallel test failure
2103         * tests/test-faccessat.c (BASE): Define using this file's name, not
2104         that of test-lstat.c.  Using the latter caused this test to fail
2105         sometimes when run concurrently with test-lstat.
2107 2017-11-27  Daiki Ueno  <ueno@gnu.org>
2109         unicase: fix VPATH build
2110         * modules/unicase/special-casing (Makefile.am): Ensure that the
2111         base directory is created when generating
2112         unicase/special-casing.h.
2114 2017-11-27  Daiki Ueno  <ueno@gnu.org>
2116         libunistring: update to Unicode 9.0.0
2117         * lib/gen-uni-tables.c (fill_properties): Recognize
2118         Sentence_Terminal and Prepended_Concatenation_Mark.
2119         (is_property_default_ignorable_code_point): Exclude U+08E2.
2120         (fill_arabicshaping): Allow missing whitespace when parsing;
2121         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
2122         (output_blocks): Increase the element size of the level1 table to
2123         accommodate more blocks.
2124         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
2125         Update each class according to the standard.
2126         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
2127         E_Base_GAZ characters.
2128         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
2129         Glue_After_Zwj, and E_Base_GAZ characters.
2130         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
2131         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
2132         enum value.
2133         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
2134         value.
2135         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
2136         LBP_ZWJ, LBP_EB, and LBP_EM.
2137         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
2138         enum value.
2139         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
2140         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
2141         declaration.
2142         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
2143         (uniwbrk_table): Implement WB14.
2144         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
2145         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
2146         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
2147         uc-is-grapheme-break.
2148         * modules/unigbrk/uc-grapheme-breaks: New module.
2149         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
2150         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
2151         enum value.
2152         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
2153         * lib/unigbrk/u-grapheme-breaks.h: New file.
2154         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
2155         u-grapheme-breaks.h instead of uc_is_grapheme_break.
2156         * lib/unigbrk/uc-grapheme-breaks.c: New file.
2157         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
2158         29.
2159         * tests/unigbrk/test-uc-gbrk-prop.c
2160         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
2161         GBP_GAZ, and GBP_EBG.
2162         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
2163         * tests/unigbrk/test-uc-is-grapheme-break.c
2164         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
2165         GBP_GAZ, and GBP_EBG.
2166         (main): Skip unsupported rules involving 3 or more characters,
2167         namely GB10, GB12, and GB13.
2168         * lib/uniwidth/width.c (nonspacing_table_data): Update.
2169         * all generated files under lib/uni* and tests/uni*: Regenerate.
2170         * all the affected modules: Bump version.
2172 2017-11-26  Bruno Haible  <bruno@clisp.org>
2174         strfmon_l: Fix compilation error with glibc 2.5.
2175         Reported by Tom G. Christensen <tgc@jupiterrise.com>
2176         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
2177         * lib/monetary.in.h: Include also <locale.h>.
2179 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
2181         posixtm: remove PDS_LEADING_YEAR
2182         This changes the API slightly, in a hopefully-innocuous way.
2183         Without this change the code had undefined behavior when a
2184         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
2185         Problem reported by Pádraig Brady in:
2186         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
2187         * NEWS: Mention this.
2188         * lib/posixtm.c (posix_time_parse): Treat the absence of
2189         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
2190         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
2191         present, but define it as zero, for compatibility with existing
2192         source code).  All other PDS_* values moved up.
2193         * tests/test-posixtm.c (LY): New macro.
2194         (T): Use it.  Do not expect a particular numeric encoding
2195         for PDS_CENTURY etc.
2197 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
2199         stat: work around Solaris bug with tv_nsec < 0
2200         * doc/posix-functions/fstat.texi (fstat):
2201         * doc/posix-functions/fstatat.texi (fstatat):
2202         * doc/posix-functions/lstat.texi (lstat):
2203         * doc/posix-functions/stat.texi (stat):
2204         Mention Solaris 11 bug.
2205         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
2206         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
2207         * lib/lstat.c (rpl_lstat):
2208         * lib/stat.c (rpl_stat):
2209         Normalize resulting timestamps.
2210         * lib/fstatat.c (normal_fstatat): New function.
2211         (rpl_fstatat): Use it.
2212         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
2213         (stat_time_normalize): New function.
2214         * m4/fstat.m4 (gl_FUNC_FSTAT):
2215         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
2216         * m4/lstat.m4 (gl_FUNC_LSTAT):
2217         * m4/stat.m4 (gl_FUNC_STAT):
2218         Replace on Solaris.
2219         * modules/fstat (Depends-on):
2220         * modules/fstatat (Depends-on):
2221         Add stat-time.
2222         * modules/stat-time (Depends-on): Add errno, intprops.
2224 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2226         regex: merge from glibc
2227         * lib/regcomp.c (init_word_char): Add comments.
2229 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2231         regex: merge from glibc
2232         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
2233         * lib/regex_internal.h (internal_function): Remove.
2234         All uses removed.
2236 2017-11-20  Bruno Haible  <bruno@clisp.org>
2238         crypto/gc-sm3: Fix buffer overrun.
2239         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
2240         Reported by Coverity.
2242 2017-11-12  Jim Meyering  <meyering@fb.com>
2244         maint: shorten https://lists.gnu.org/archive/html/... links
2245         Each /archive/html/ part can be replace with /r/.
2246         Run this to induce the change:
2247         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
2248         * ChangeLog: Perform that substitution.
2249         * Makefile: Likewise.
2250         * STATUS-libposix: Likewise.
2251         * build-aux/bootstrap: Likewise.
2252         * doc/maintain.texi: Likewise.
2253         * gnulib-tool: Likewise.
2254         * lib/allocator.h: Likewise.
2255         * lib/argp-ba.c: Likewise.
2256         * lib/argp-pv.c: Likewise.
2257         * lib/canon-host.c: Likewise.
2258         * lib/canonicalize-lgpl.c: Likewise.
2259         * lib/float.in.h: Likewise.
2260         * lib/fstat.c: Likewise.
2261         * lib/getdelim.c: Likewise.
2262         * lib/getprogname.c: Likewise.
2263         * lib/glthread/thread.h: Likewise.
2264         * lib/intprops.h: Likewise.
2265         * lib/mbsrtowcs-state.c: Likewise.
2266         * lib/safe-read.c: Likewise.
2267         * lib/signal.in.h: Likewise.
2268         * lib/stat.c: Likewise.
2269         * lib/stdbool.in.h: Likewise.
2270         * lib/stdio-impl.h: Likewise.
2271         * lib/stdio.in.h: Likewise.
2272         * lib/sysexits.in.h: Likewise.
2273         * lib/timespec.h: Likewise.
2274         * lib/wcsrtombs-state.c: Likewise.
2275         * m4/alloca.m4: Likewise.
2276         * m4/extern-inline.m4: Likewise.
2277         * m4/fstatat.m4: Likewise.
2278         * m4/gnulib-common.m4: Likewise.
2279         * m4/lib-ignore.m4: Likewise.
2280         * m4/printf.m4: Likewise.
2281         * m4/regex.m4: Likewise.
2282         * m4/stat-size.m4: Likewise.
2283         * m4/std-gnu11.m4: Likewise.
2284         * m4/stdbool.m4: Likewise.
2285         * m4/sys_types_h.m4: Likewise.
2286         * m4/threadlib.m4: Likewise.
2287         * m4/vararrays.m4: Likewise.
2288         * pygnulib/GLImport.py: Likewise.
2289         * tests/test-exp.h: Likewise.
2290         * tests/test-exp2.h: Likewise.
2291         * tests/test-expm1.h: Likewise.
2292         * tests/test-fflush2.c: Likewise.
2293         * tests/test-getopt_long.h: Likewise.
2294         * tests/test-intprops.c: Likewise.
2295         * tests/test-log.h: Likewise.
2296         * tests/test-log10.h: Likewise.
2297         * tests/test-log1p.h: Likewise.
2298         * tests/test-log2.h: Likewise.
2299         * tests/test-printf-posix.h: Likewise.
2300         * tests/test-regex.c: Likewise.
2301         * tests/test-snprintf-posix.h: Likewise.
2302         * tests/test-sprintf-posix.h: Likewise.
2303         * tests/test-stdalign.c: Likewise.
2304         * tests/test-stdbool.c: Likewise.
2305         * tests/test-vasnprintf-posix.c: Likewise.
2306         * tests/test-vasprintf-posix.c: Likewise.
2307         * top/maint.mk: Likewise.
2309 2017-11-12  Bruno Haible  <bruno@clisp.org>
2311         faccessat: Make the last change more robust.
2312         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
2313         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
2315 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2317         faccessat: port to macOS (Bug#29231)
2318         macOS faccessat has the same bug that lstat does: if the file
2319         name ends in '/' it ignores the trailing slash.
2320         Problem reported for Emacs by Vincent Zhang.
2321         * doc/posix-functions/faccessat.texi (faccessat): Document this.
2322         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
2323         around the initial includes.  Include errno.h, string.h, sys/stat.h.
2324         (orig_faccessat) [HAVE_FACCESSAT]: New function.
2325         Include "unistd.h" after defining it.
2326         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
2327         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
2328         Handle in the usual way.
2329         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
2330         lstat dereferences symlinks, since faccessat is likely to
2331         have the same problem.
2332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
2333         * modules/faccessat (Depends-on): Add fstatat.
2334         Depend if REPLACE_FACCESSAT is 1, too.
2335         (configure.ac): Link if REPLACE_FACCESSAT is 1.
2336         * modules/faccessat-tests (Depends-on): Add symlink.
2337         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
2338         * tests/test-faccessat.c (main): Test for the bug.
2340 2017-11-11  Bruno Haible  <bruno@clisp.org>
2342         getprogname: Fix compilation error on IRIX.
2343         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
2344         'namesize'.
2346 2017-11-11  Bruno Haible  <bruno@clisp.org>
2348         year2038: Tweak last patch.
2349         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
2351 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2353         year2038: be more insistent about 64-bit time_t
2354         Applications requiring access to arbitrary files should not be
2355         built with 32-bit time_t on hosts that have 64-bit timestamps,
2356         as this can lead to real trouble at runtime.
2357         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
2358         Check on all systems, not just MinGW.  Use a heuristic involving
2359         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
2360         output a failure or just a warning, to make it more likely that
2361         builders will select 64-bit time_t.
2363 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2365         havelib: fix typo in previous change
2366         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
2368         Don’t use AC_EGREP_CPP if affected by CFLAGS
2369         * m4/float_h.m4 (gl_FLOAT_H):
2370         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
2371         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
2372         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
2373         * m4/year2038.m4 (gl_YEAR2038):
2374         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
2375         likely to be affected by the choice of CFLAGS, since CFLAGS are
2376         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
2377         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
2379         fstatat: pacify GCC on unusual platform
2380         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
2381         Omit, as it’s unused in this case.
2383 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
2385         timespec: prefer ‘assume’ to ‘assure’
2386         This avoids some runtime tests.  The rest of the module makes
2387         similar assumptions and there is little point to testing here.
2388         * lib/timespec.h: Include verify.h instead of assure.h.
2389         (timespec_cmp): Use ‘assume’, not ‘assure’.
2390         Also, remove an unnecessary cast to ‘int’, as lots of other
2391         code in this module now causes -Wconversion to complain, and
2392         this is a problem with -Wconversion not with the code.
2394         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
2396         Port recent gnulib-tool change to Dash
2397         * gnulib-tool (func_create_testdir): Don't assume that the shell
2398         retokenizes after expanding "$@" inside the call to
2399         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
2401 2017-10-27  Jim Meyering  <meyering@fb.com>
2403         timespec.h: use "assure" to avoid a spurious warning
2404         * lib/timespec.h: Include "assure.h" and use it to help
2405         gcc7's -Wstrict-overflow avoid a false positive warning
2406         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
2407         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
2408         * modules/timespec (Depends-on): Add assure.
2410 2017-10-29  Bruno Haible  <bruno@clisp.org>
2412         Avoid several test failures with traditional locales on Haiku.
2413         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
2414         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
2415         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
2416         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
2417         LOCALE_ZH_CN=none.
2419 2017-10-29  Bruno Haible  <bruno@clisp.org>
2421         strerror_r-posix: Fix behaviour and test failure on Haiku.
2422         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
2423         are positive. Work around return value 0 instead of ERANGE on Haiku.
2424         For unknown error numbers, use a format string consistent with perror().
2425         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
2426         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
2427         are positive.
2429 2017-10-29  Bruno Haible  <bruno@clisp.org>
2431         get-rusage-data: Avoid crash on Haiku.
2432         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
2434 2017-10-29  Bruno Haible  <bruno@clisp.org>
2436         get-rusage-as: Avoid crash on Haiku.
2437         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
2439 2017-10-29  Bruno Haible  <bruno@clisp.org>
2441         ilogbl: Ensure replacement on Haiku.
2442         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
2443         REPLACE_ILOGBL if ilogbl does not work.
2444         (gl_FUNC_ILOGBL_WORKS): New macro.
2445         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
2446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
2447         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
2448         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
2449         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
2451 2017-10-29  Bruno Haible  <bruno@clisp.org>
2453         expl: Ensure replacement on Haiku.
2454         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
2455         zero.
2456         * doc/posix-functions/expl.texi: Mention the Haiku problem.
2458 2017-10-29  Bruno Haible  <bruno@clisp.org>
2460         math: Fix test failure on Haiku.
2461         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
2462         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
2463         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
2464         * doc/posix-headers/math.texi: Mention the Haiku problem.
2466 2017-10-29  Bruno Haible  <bruno@clisp.org>
2468         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
2469         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
2470         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
2472 2017-10-29  Bruno Haible  <bruno@clisp.org>
2474         crypto/*: Verify that the header file is self-contained.
2475         * tests/test-gc-*.c: Include the module's header file immediately after
2476         <config.h>.
2477         * tests/test-hmac-*.c: Likewise.
2478         * tests/test-arcfour.c: Likewise.
2479         * tests/test-arctwo.c: Likewise.
2480         * tests/test-des.c: Likewise.
2481         * tests/test-md2.c: Likewise.
2482         * tests/test-md4.c: Likewise.
2483         * tests/test-md5.c: Likewise.
2484         * tests/test-rijndael.c: Likewise.
2485         * tests/test-sha1.c: Likewise.
2486         * tests/test-sm3.c: Likewise.
2488 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2489             Bruno Haible  <bruno@clisp.org>
2491         crypto/gc: fix build failure with -Werror=suggest-attribute=const
2492         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
2494 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2496         New module: crypto/gc-sm3
2497         * lib/gc.h: Declare SM3-related stuffs.
2498         * lib/gc-gnulib.c: Support sm3 in internal functions.
2499         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
2500         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
2501         * modules/crypto/gc-sm3: Define gc-sm3 module.
2502         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
2503         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
2504         * MODULES.html.sh: List gc-sm3 module.
2506 2017-10-29  Bruno Haible  <bruno@clisp.org>
2508         random, random_r: Mention different prototypes on Haiku.
2509         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
2510         * doc/glibc-functions/random_r.texi: Likewise.
2511         * doc/glibc-functions/initstate_r.texi: Likewise.
2512         * doc/glibc-functions/setstate_r.texi: Likewise.
2514 2017-10-28  Bruno Haible  <bruno@clisp.org>
2516         posix_spawn: Avoid spurious message in configure output.
2517         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
2518         'cmp' command.
2520 2017-10-28  Bruno Haible  <bruno@clisp.org>
2522         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
2523         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
2524         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2526 2017-10-28  Bruno Haible  <bruno@clisp.org>
2528         ioctl: Override non-POSIX declaration on Haiku.
2529         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
2530         * lib/sys_ioctl.in.h: Add comment about Haiku.
2531         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
2532         * doc/glibc-headers/sys_ioctl.texi: Likewise.
2534 2017-10-28  Bruno Haible  <bruno@clisp.org>
2536         crypto/sm3: Add overview documentation to the .h file.
2537         * lib/sm3.h: Add comments.
2539 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2541         New module: crypto/sm3
2542         This new module can be used to compute SM3 message digest of files or
2543         memory blocks according to the specification GM/T 004-2012
2544         Cryptographic Hash Algorithm SM3, published by State Cryptography
2545         Administration, China.
2546         The official SM3 cryptographic hash algorithm specification is
2547         available at
2548         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
2549         * lib/sm3.h: Declare the APIs of sm3 module.
2550         * lib/sm3.c: Implement SM3 hash algorithm.
2551         * m4/sm3.m4: m4 file for sm3 module.
2552         * modules/crypto/sm3: Define sm3 module.
2553         * tests/test-sm3.c: Implement SM3 test case.
2554         * modules/crypto/sm3-tests: Define sm3 test module.
2555         * MODULES.html.sh: List sm3 module.
2557 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2559         gc-libgcrypt: fix undefined enum type in switch statement
2560         Resolve the following build failure:
2561         lib/gc-libgcrypt.c: In function 'gc_hash_open':
2562         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
2563         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
2564              case 0:
2565              ^~~~
2566         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
2567         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
2569 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2571         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
2572         Resolve the following build failure:
2573         lib/gc-libgcrypt.c: In function 'gc_hash_read':
2574         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
2575         in signedness [-Werror=pointer-sign]
2576             digest = gcry_md_read (ctx->gch, 0);
2577                    ^
2578         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
2580 2017-10-26  Bruno Haible  <bruno@clisp.org>
2582         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
2583         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
2584         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
2586 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
2588         glob: fix another heap buffer overflow
2589         Problem reported by Tim Rühsen in:
2590         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
2591         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
2593 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
2595         quotearg: pacify compiler re unsigned
2596         * lib/quotearg.c (quotearg_n_options):
2597         Rewrite to avoid diagnostic from overly-picky compiler.
2598         Problem reported by Sami Kerola in:
2599         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
2601         glob: fix heap buffer overflow
2602         * lib/glob.c (glob): Fix off-by-one error introduced into
2603         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
2604         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
2605         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
2606         Fix suggested by Bruno Haible.
2608 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
2610         glob: pacify fuzzer for mempcpy
2611         Problem reported by Tim Rühsen in:
2612         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
2613         * lib/glob.c (glob): Do not pass NULL to mempcpy.
2615 2017-10-12  Bruno Haible  <bruno@clisp.org>
2617         doc: Fix syntax error (regression from 2017-10-03).
2618         * doc/posix-functions/strncpy.texi: Fix syntax error.
2620 2017-10-12  Bruno Haible  <bruno@clisp.org>
2622         doc: Update for Solaris 11.3.
2623         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
2624         mention Solaris 11.3.
2625         * m4/log2.m4: Fix comments.
2626         * m4/log2f.m4: Likewise.
2627         * m4/printf.m4: Update comments.
2628         * m4/rename.m4: Likewise.
2629         * m4/strncat.m4: Likewise.
2631         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
2633 2017-10-10  Bruno Haible  <bruno@clisp.org>
2635         doc: Improve doc about ioctl.
2636         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
2637         prototype.
2639 2017-10-09  Bruno Haible  <bruno@clisp.org>
2641         wcwidth: Don't use obsolete syntax of 'test'.
2642         Reported by Eric Blake.
2643         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
2644         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
2646 2017-10-09  Bruno Haible  <bruno@clisp.org>
2648         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
2649         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
2650         and Daniel P. Berrange <berrange@redhat.com>.
2651         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
2652         on glibc systems. The getopt-pfx-core.h file declares exactly what
2653         unistd.h needs, nothing more.
2655 2017-10-08  Bruno Haible  <bruno@clisp.org>
2657         vma-iter: Improve support for FreeBSD.
2658         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
2659         vma_iterate.
2660         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
2662 2017-10-08  Bruno Haible  <bruno@clisp.org>
2664         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
2665         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
2667 2017-10-07  KO Myung-Hun  <komh@chollian.net>
2669         test-framework-sh: Fix 'invalid path dir' error.
2670         On OS/2, a path separator is ';' not ':'. And ':' is used as a
2671         separator between a drive letter and directory parts.
2672         As a result, an absolute path such as x:/path/to/dir on OS/2 is
2673         treated as an invalid path dir.
2674         * tests/init.sh (PATH_SEPARATOR): Set at startup.
2675         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
2676         instead of hard coded ':'.
2678 2017-10-07  Bruno Haible  <bruno@clisp.org>
2680         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
2681         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
2682         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
2683         (rof_open): On Linux, do multiple read() calls and make sure
2684         MIN_LEFTOVER bytes are left when read() returns.
2686 2017-10-07  Bruno Haible  <bruno@clisp.org>
2688         vma-iter: Improve support for GNU/Hurd.
2689         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
2690         API, not the /proc file system.
2692 2017-10-07  Bruno Haible  <bruno@clisp.org>
2694         test-framework-sh: Don't require bash on Windows and OS/2.
2695         Reported by KO Myung-Hun.
2696         * tests/test-init.sh: Use 'shopt' only when running in bash.
2698 2017-10-06  KO Myung-Hun  <komh@chollian.net>
2700         wcwidth: check a macro version of wcwidth () as well
2701         * lib/wchar.in.h: Revert commit from 2016-01-14.
2702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
2704 2017-10-06  Bruno Haible  <bruno@clisp.org>
2706         getopt-posix: Clarify copyright header.
2707         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
2708         * lib/getopt-pfx-core.h: Likewise.
2709         * lib/getopt-pfx-ext.h: Likewise.
2710         * lib/getopt-cdefs.in.h: Likewise.
2712 2017-10-03  Bruno Haible  <bruno@clisp.org>
2714         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
2715         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
2716         gl_HOST_CPU_C_ABI.
2718 2017-10-03  Bruno Haible  <bruno@clisp.org>
2720         doc: warn about misuse of strncpy and wcsncpy.
2721         * doc/posix-functions/strcpy.texi: Describe requirements on prior
2722         memory allocation.
2723         * doc/posix-functions/wcscpy.texi: Likewise.
2724         * doc/posix-functions/strncpy.texi: Describe what this function is not
2725         useful for.
2726         * doc/posix-functions/wcsncpy.texi: Likewise.
2728 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
2730         fsuage: fix typo in previous change
2731         * lib/fsusage.c: Remove stray include of full-read.h.
2732         Problem reported by Sam Steingold for macOS (Bug#28669).
2734 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
2736         fsusage: remove SVR2 support
2737         SVR2 was obsolete by 1986 and is no longer supported by anybody,
2738         and its code was getting in the way of use of this module by
2739         Emacs, which has its own ‘read’ function anyway.
2740         * lib/fsusage.c: Do not include sys/filsys.h.
2741         (get_fs_usage): Remove SVR2-specific code.
2742         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
2743         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
2744         * modules/fsusage (Depends-on): Do not depend on full-read.
2746         Simplify autoupdate of licenses
2747         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
2748         place.
2750 2017-10-01  Bruno Haible  <bruno@clisp.org>
2752         vma-iter: Add support for GNU/Hurd.
2753         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
2754         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
2756 2017-09-30  Bruno Haible  <bruno@clisp.org>
2758         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
2759         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
2760         fail when module 'largefile' is in use.
2761         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
2762         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
2763         Don't test HAVE_SYS_PROCFS_H.
2765 2017-09-30  Bruno Haible  <bruno@clisp.org>
2767         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
2768         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
2769         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
2770         * modules/havelib (Depends-on): Add host-cpu-c-abi.
2772 2017-09-30  Bruno Haible  <bruno@clisp.org>
2774         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
2775         * lib/uniname/uniname.c (unicode_name_character): Add braces around
2776         scope of local variables.
2778 2017-09-28  Bruno Haible  <bruno@clisp.org>
2780         string: code style
2781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
2782         substitutable variables.
2783         * modules/string (Makefile.am): Likewise.
2785 2017-09-26  Bruno Haible  <bruno@clisp.org>
2787         uniname/uniname-tests: Tighten code.
2788         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
2789         local variables into one.
2791 2017-09-26  Bruno Haible  <bruno@clisp.org>
2793         vma-iter: Improvements for Linux and BSD platforms.
2794         - Add support for DragonFly BSD.
2795         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
2796         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
2797         Read the entire file into memory in a single system call.
2798         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
2799         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
2801 2017-09-26  Bruno Haible  <bruno@clisp.org>
2803         vma-iter: Provide the protection flags on FreeBSD.
2804         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
2805         skip three fields between the addresses and the protection flags.
2807 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2809         glob: remove bogus extern decl
2810         * lib/glob.c (__glob_pattern_type): Remove now-spurious
2811         extern declaration.  Problem reported by Adhemerval Zanella in:
2812         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
2814 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2816         uniname/uniname-tests: integer overflow fix
2817         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
2818         Check for integer overflow.
2820         duplocale-tests: fix unlikely crash
2821         * tests/test-duplocale.c (get_locale_dependent_values):
2822         Don’t crash with absurdly long month names.
2824         maint: fix overflow checking in nap.h
2825         * modules/chown-tests:
2826         * modules/fchownat-tests, modules/fdutimensat-tests:
2827         * modules/futimens-tests, modules/lchown-tests:
2828         * modules/stat-time-tests, modules/utime-tests:
2829         * modules/utimens-tests, modules/utimensat-tests:
2830         Depend on intprops.
2831         * tests/nap.h: Include intprops.h.
2832         (diff_timespec): Handle overflow properly.
2834         sys_types: update URL
2835         * m4/sys_types_h.m4: Use https: URL.
2837         parse-datetime: fix dependency
2838         * modules/parse-datetime (Depends-on): Depend
2839         on nstrftime, not strftime.
2841         parse-datetime, posixtm: avoid uninit access
2842         * lib/parse-datetime.y (parse_datetime2):
2843         * lib/posixtm.c (posixtime):
2844         Do not access uninitialized storage, even though the resulting
2845         value is never used.
2847 2017-09-25  Bruno Haible  <bruno@clisp.org>
2849         vma-iter: Improvements for BSD platforms.
2850         - Add support for GNU/kFreeBSD.
2851         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
2852         - Speed up on OpenBSD.
2853         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
2854         (vma_iterate_bsd): New function.
2855         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
2856         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
2857         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
2858         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
2860 2017-09-23  Bruno Haible  <bruno@clisp.org>
2862         strfmon_l: New module.
2863         * modules/strfmon_l: New file.
2864         * lib/strfmon_l.c: New file.
2865         * m4/strfmon_l.m4: New file.
2866         * doc/posix-functions/strfmon_l.texi: Mention the new module.
2867         * modules/strfmon_l-tests: New file.
2868         * tests/test-strfmon_l.c: New file.
2870         monetary: New module.
2871         * modules/monetary: New file.
2872         * lib/monetary.in.h: New file.
2873         * m4/monetary_h.m4: New file.
2874         * doc/posix-headers/monetary.texi: Mention the new module.
2875         * modules/monetary-tests: New file.
2876         * tests/test-monetary.c: New file.
2877         * modules/monetary-c++-tests: New file.
2878         * tests/test-monetary-c++.cc: New file.
2879         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
2881 2017-09-23  Bruno Haible  <bruno@clisp.org>
2883         duplocale tests: Fix test crash on Linux/x86.
2884         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
2885         locale from the current thread before freeing it.
2887 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
2889         mktime: port to OpenVMS
2890         Problem reported by John E. Malmberg in:
2891         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
2892         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
2894 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2896         manywarnings: port to GCC on 64-bit MS-Windows
2897         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
2898         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
2899         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
2901 2017-09-13  Bruno Haible  <bruno@clisp.org>
2903         all: Replace many more http URLs by https URLs. Update stale URLs.
2904         * users.txt: Remove mention of 'newts'.
2905         * lib/localename.c: Update comment about LANG_SOTHO.
2907 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2909         all: Replace many http URLs by https URLs.
2911 2017-09-12  Bruno Haible  <bruno@clisp.org>
2913         doc: Prefer https URLs where possible.
2914         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
2915         * doc/ld-output-def.texi: Remove unavailable URL.
2917 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2919         maintainer-makefile: FTP -> HTTPS
2920         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
2921         of FTP, which is planned to be decommissioned on 2017-11-01.
2923 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
2925         libc-config: Fix __GNUC_PREREQ macro.
2926         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
2927         __GNUC_MINOR.
2929 2017-09-09  Bruno Haible  <bruno@clisp.org>
2931         gnulib-tool: Simplify commit from 2015-08-20.
2932         * gnulib-tool (func_add_or_update): Remove local variable
2933         is_binary_file.
2935 2017-09-08  Bruno Haible  <bruno@clisp.org>
2937         stddef: Avoid conflict with system-defined max_align_t.
2938         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
2939         Reported by Werner Lemberg <wl@gnu.org> in
2940         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
2941         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
2942         (max_align_t): Define as a macro.
2943         (GNULIB_defined_max_align_t): New macro. Guards against multiple
2944         definitions of rpl_max_align_t in different copies of gnulib-generated
2945         <stddef.h>.
2947 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2949         libc-config: port to MSVC
2950         Problems reported by Gisle Vanem in:
2951         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
2952         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
2953         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
2954         * m4/__inline.m4: New file.
2955         * modules/libc-config (Files): Add it.
2956         (Depends-on): Use it.
2958         glob: Use enum for __glob_pattern_type result
2959         From a patch proposed by Adhemerval Zanella in:
2960         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
2961         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
2962         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
2963         * lib/glob_internal.h (__glob_pattern_type):
2964         * lib/glob.c (glob):
2965         * lib/glob_pattern_p.c (__glob_pattern_p):
2966         Use them.
2968         glob: fix for use in glibc
2969         Problem reported by Adhemerval Zanella in:
2970         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
2971         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
2972         Do not redefine if _LIBC.
2974 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2976         glob: fix bugs with long login names
2977         Problem reported by Adhemerval Zanella in:
2978         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
2979         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
2980         (glob): Use the same scratch buffer for both getlogin_r and
2981         getpwnam_r.  Don’t require preallocation of the login name.  This
2982         simplifies storage allocation, and corrects the handling of
2983         long login names.
2985 2017-09-02  Bruno Haible  <bruno@clisp.org>
2987         dirent: Update doc.
2988         * doc/posix-headers/dirent.texi: More concrete list of platforms.
2990 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2992         glob: fix getpwnam_r errno typo
2993         * lib/glob.c (glob): Fix longstanding misuse of errno after
2994         getpwnam_r, which returns an error number rather than setting
2995         errno.
2997         glob: fix typo in recent change
2998         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
2999         Fix recently-introduced typo.
3001 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3003         glob: don't save and restore errno unnecessarily
3004         * lib/glob.c (glob): Don't save and restore errno
3005         merely because we have getpwnam_r.
3007         glob: don't assume getpwnam_r
3008         * lib/glob.c (glob): Port recent patches to platforms
3009         lacking getpwnam_r.
3011         scratch_buffer: don’t use private glibc API
3012         Suggested by Florian Weimer in:
3013         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
3014         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
3015         * lib/scratch_buffer_grow.c: Rename to
3016         lib/malloc/scratch_buffer_grow.c.
3017         * lib/scratch_buffer_grow_preserve.c: Rename to
3018         lib/malloc/scratch_buffer_grow_preserve.c.
3019         * lib/scratch_buffer_set_array_size.c: Rename to
3020         lib/malloc/scratch_buffer_set_array_size.c.
3021         * lib/scratch_buffer.h: New file.
3022         * modules/scratch_buffer (Files, Makefile.am):
3023         Adjust to source-file renaming.
3025 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3027         glob: use scratch_buffer instead of extend_alloca
3028         Much of the lib/glob.c part of this patch comes from a glibc patch
3029         proposed by Adhemerval Zanella in:
3030         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
3031         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
3032         included via glob.h, does this for us now.
3033         (__set_errno): Remove, as libc-config does this for us now.
3034         Include <scratch_buffer.h>.
3035         (GETPW_R_SIZE_MAX): Remove.
3036         (glob): Use struct scratch_buffer instead of extend_alloca.
3037         * lib/glob.in.h: Include libc-config.h rather than
3038         including <sys/cdefs.h> conditionally.
3039         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
3040         (__glibc_unlikely, __restrict, weak_alias):
3041         Remove, as libc-config does this for us now.
3042         * m4/glob.m4 (gl_PREREQ_GLOB):
3043         Remove sys/cdefs.h tests; no longer needed.
3044         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
3045         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
3047         scratch_buffer: new module
3048         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
3049         * lib/scratch_buffer_grow_preserve.c:
3050         * lib/scratch_buffer_set_array_size.c:
3051         New files, copied from glibc with very minor changes that can be
3052         copied back.
3053         * modules/scratch_buffer: New file.
3055         libc-config: new module
3056         * MODULES.html.sh: Add libc-config.
3057         * lib/cdefs.h: New file, copied from the GNU C Library with very
3058         minor changes that can be copied back.
3059         * lib/libc-config.h, modules/libc-config: New files.
3061 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3063         glob: match dangling symlinks
3064         This fixes a bug I inadvertently introduced to Gnulib when I
3065         merged glibc glob back into gnulib on 2007-10-16.  This fix is
3066         inspired by a patch proposed for glibc by Adhemerval Zanella in:
3067         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
3068         * doc/posix-functions/glob.texi: Update list of affected platforms.
3069         * lib/glob.c (__lstat64): New macro.
3070         (is_dir): New function.
3071         (glob, glob_in_dir): Match symlinks even if they are dangling.
3072         (link_stat, link_exists_p): Remove.  All uses removed.
3073         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
3074         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
3075         * modules/glob-tests (Depends-on): Add symlink.
3076         * tests/test-glob.c: Include errno.h, unistd.h.
3077         (BASE): New macro.
3078         (main): Test dangling symlinks, if symlinks are supported.
3080         glob, backupfile: inode 0 is a valid inode number
3081         * doc/posix-functions/readdir.texi (readdir):
3082         * doc/posix-headers/dirent.texi (dirent.h):
3083         Document more readdir portability issues.
3084         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
3085         (numbered_backup): Don’t treat inode 0 any differently from
3086         other inode values.
3087         * lib/glob.c (struct readdir_result): Remove skip_entry member.
3088         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
3089         All uses removed.
3090         * modules/glob (Depends-on): Remove d-ino.
3092         glob: simplify symlink detection
3093         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
3094         uint8_t, as C99 does not require uint8_t.
3095         (struct readdir_result): Use it.  Do not define skip_entry unless
3096         it is needed; this saves a byte on platforms lacking d_ino.
3097         (readdir_result_type, readdir_result_skip_entry):
3098         New functions, replacing ...
3099         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
3100         ... these functions, which were removed.  This makes the callers
3101         easier to read.  All callers changed.
3102         (D_INO_TO_RESULT): Now empty if there is no d_ino.
3104 2017-08-30  Pádraig Brady  <P@draigBrady.com>
3106         fts-tests: tag as a longrunning-test so not included by default
3107         * modules/fts-tests: This test takes about 20s on current systems,
3108         and uses about 285M of space on ext4.
3110 2017-08-30  Pádraig Brady  <P@draigBrady.com>
3112         renameat2: fix compilation on alpine linux
3113         * m4/renameat.m4: Check for <linux/fs.h> presence.
3114         * lib/renameat2.h: Only include <linux/fs.h> if present.
3115         Reported by Assaf Gordon on Alpine Linux.
3117 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3119         glob: try to port recent changes to MS-Windows
3120         Problem reported by Bruno Haible in:
3121         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
3122         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
3123         * lib/glob.in.h (__glob_pattern_p): ... to here.
3125 2017-08-24  Eric Blake  <eblake@redhat.com>
3127         warnings: fix compilation with old autoconf
3128         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
3129         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
3130         AC_DEFUN.
3131         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
3132         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
3134 2017-08-24  Bruno Haible  <bruno@clisp.org>
3136         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
3137         * modules/glob (Depends-on): Add c99.
3139 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3141         glob: fix typo that broke platforms lacking d_ino
3142         This typo also hurt performance on GNU/Linux and similar hosts.
3143         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
3144         in previous change.
3146 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3148         glob: merge from glibc with Zanella glob changes
3149         Merge glob from glibc, with changes for glob proposed
3150         by Adhemerval Zanella in the thread starting here:
3151         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
3152         plus some fixes for this merge.
3153         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
3154         New files, ported from glibc.
3155         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
3156         with __restrict.
3157         (__size_t): Remove.  All uses replaced by size_t.
3158         (size_t): Define by defining __need_size_t and including <stddef.h>.
3159         This should work even in non-glibc platforms, where any name
3160         pollution is OK.
3161         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
3162         (struct stat64): Don’t worry about __GLOB_GNULIB.
3163         (glob, globfree, glob_pattern_p): Remove macros for
3164         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
3165         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
3166         but set errno.
3167         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
3168         removed since the glibc behavior works on null pointers.
3169         Do not include stdio.h; old SunOS is irrelevant now.
3170         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
3171         Include glob_internal.h.
3172         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
3173         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
3174         worked only coincidentally.
3175         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
3176         Remove macros; now done in glob.in.h.
3177         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
3178         (glob): Properly initialize glob structure with
3179         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
3180         Remove old code using SHELL since Bash no longer
3181         uses this.
3182         (glob, prefix_array): Separate MS code better.
3183         (glob, glob_in_dir): Use C99 decls before statements when glibc
3184         does.
3185         (glob_in_dir): Remove old Amiga and VMS code.
3186         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
3187         separate files.
3188         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
3189         (__glibc_unlikely):
3190         Move here from glob.c.
3191         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
3192         (weak_alias): New macro.
3193         (__size_t): Remove.  All uses replaced by size_t.
3194         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
3195         * modules/glob (Files): Add +lib/glob_internal.h,
3196         lib/glob_pattern_p.c, lib/globfree.c.
3197         (Depends-on): Remove snippet/arg-nonnull.
3199 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3201         glob: port to clang's Undefined Sanitizer
3202         Problem reported by Tim Rühsen in:
3203         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
3204         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
3205         (glob_in_dir): Do not rely on undefined behavior in accessing
3206         struct members beyond their bounds.  Use a flexible array member
3207         instead.
3209 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3211         vc-list-files: port to Solaris 10
3212         * build-aux/vc-list-files: Don't assume test -e works.
3214 2017-08-21  Karl Berry  <karl@freefriends.org>
3216         * doc/posix-functions/srandom.texi (srandom): typo }.
3218 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3220         git-version-gen: port to Solaris 10
3221         Problem reported by Dagobert Michelsen in:
3222         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
3223         * build-aux/git-version-gen (v_from_git):
3224         Use expr instead of shell substitution.
3226 2017-08-19  Bruno Haible  <bruno@clisp.org>
3228         host-cpu-c-abi: Improve detection of MIPS ABI.
3229         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
3230         _MIPS_SIM.
3232 2017-08-17  Bruno Haible  <bruno@clisp.org>
3234         hypot tests: Fix test failure on FreeBSD 11.0/x86.
3235         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
3237 2017-08-17  Bruno Haible  <bruno@clisp.org>
3239         float: Fix LDBL_MIN value on FreeBSD/x86.
3240         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
3242 2017-08-17  Bruno Haible  <bruno@clisp.org>
3244         random: Fix test compilation failure on Cygwin 1.5.25.
3245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
3246         HAVE_DECL_SETSTATE.
3247         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
3248         declared.
3249         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
3250         HAVE_DECL_SETSTATE.
3251         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
3252         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
3253         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
3254         * doc/posix-functions/random.texi: Likewise.
3255         * doc/posix-functions/setstate.texi: Likewise.
3256         * doc/posix-functions/srandom.texi: Likewise.
3258 2017-08-16  Bruno Haible  <bruno@clisp.org>
3260         stdnoreturn: Fix test compilation failure on Cygwin.
3261         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
3262         <stdnoreturn.h> replacement.
3263         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
3264         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
3266 2017-08-16  Bruno Haible  <bruno@clisp.org>
3268         thread: Fix conflict with pthread_sigmask module.
3269         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
3270         it's defined as a macro.
3271         * modules/thread (Depends-on): Add pthread_sigmask.
3273 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3275         rename: port better to NetBSD
3276         * doc/posix-functions/rename.texi (rename): NetBSD 7
3277         does not have the link-count bug.
3278         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
3279         broken merely because rename ("a", "b") removes "a" when the two
3280         names are hard links to the same file.
3282 2017-08-16  Bruno Haible  <bruno@clisp.org>
3284         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
3285         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
3286         the target file names with '$(srcdir)/'.
3287         * modules/unicase/locale-language (Makefile.am): Likewise.
3288         * modules/unicase/special-casing (Makefile.am): Likewise.
3289         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
3290         * modules/unictype/category-byname (Makefile.am): Likewise.
3291         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
3292         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
3293         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
3294         * modules/unictype/property-byname (Makefile.am): Likewise.
3295         * modules/unictype/scripts (Makefile.am): Likewise.
3296         * modules/uninorm/composition (Makefile.am): Likewise.
3298 2017-08-16  Bruno Haible  <bruno@clisp.org>
3300         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
3301         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
3302         value for OpenBSD.
3304 2017-08-16  Bruno Haible  <bruno@clisp.org>
3306         rename, renameat: Update doc regarding NetBSD.
3307         * doc/posix-functions/rename.texi: Clarify that when using
3308         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
3309         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
3310         version.
3312 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3314         renameat2: port better to macOS
3315         * lib/renameat2.c (renameat2): Use renameatx_np if available.
3317         futimens: don’t assume struct timespec layout
3318         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
3319         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
3320         * tests/test-fdutimensat.c (main):
3321         * tests/test-futimens.h (test_futimens):
3322         * tests/test-lutimens.h (test_lutimens):
3323         * tests/test-utimens.h (test_utimens):
3324         * tests/test-utimensat.c (main):
3325         Don’t assume that struct timespec is a two-member structure in
3326         tv_sec, tv_nsec order.  Although this is true on all platforms we
3327         know about, POSIX does not guarantee it.
3329         rename: document+test NetBSD rename
3330         Test failure reported by Bruno Haible in:
3331         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
3332         This is an area where NetBSD is better-behaved than POSIX,
3333         so allow the NetBSD behavior in tests.
3334         * doc/posix-functions/rename.texi:
3335         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
3336         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
3338 2017-08-15  Bruno Haible  <bruno@clisp.org>
3340         renameat: Ensure declaration in <stdio.h> on NetBSD.
3341         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
3342         * doc/posix-functions/renameat.texi: Mention this problem.
3344 2017-08-15  Bruno Haible  <bruno@clisp.org>
3346         duplocale: Work around NetBSD 7.0 bug.
3347         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
3348         * lib/duplocale.c: Add comment about NetBSD problem.
3349         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
3351 2017-08-15  Bruno Haible  <bruno@clisp.org>
3353         duplocale tests: Verify use with *_l functions.
3354         * modules/duplocale-tests (configure.ac): Test for uselocale and
3355         some *_l functions.
3356         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
3357         from main.
3358         (get_locale_dependent_values_from, test_with_locale_parameter): New
3359         functions.
3360         (main): Test both test_with_uselocale and test_with_locale_parameter.
3362 2017-08-15  Bruno Haible  <bruno@clisp.org>
3364         extensions: Enable NetBSD specific extensions.
3365         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
3367 2017-08-14  Bruno Haible  <bruno@clisp.org>
3369         open, openat: Update doc about O_CLOEXEC.
3370         * doc/posix-functions/open.texi: More concrete list of platforms.
3371         * doc/posix-functions/openat.texi: Likewise.
3373 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3375         open: support O_CLOEXEC
3376         * NEWS, doc/posix-functions/open.texi:
3377         * doc/posix-functions/openat.texi: Document this.
3378         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
3379         (GNULIB_defined_O_CLOEXEC): New symbol.
3380         * lib/open.c: Include cloexec.h.
3381         (open): Support O_CLOEXEC.
3382         * lib/openat.c: Include cloexec.h.
3383         (rpl_openat): Support O_CLOEXEC.
3384         * lib/popen-safer.c: Do not include cloexec.h.
3385         (open_noinherit): Remove.
3386         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
3387         * lib/save-cwd.c: Do not include cloexec.h.
3388         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
3389         * m4/open-cloexec.m4: New file.
3390         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
3391         Replace 'open' if O_CLOEXEC is not present.
3392         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
3393         Replace 'openat' if O_CLOEXEC is not present.
3394         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
3395         * modules/open (Files): Add m4/open-cloexec.m4.
3396         (Depends-on): Depend on cloexec if replacing 'open'.
3397         * modules/openat (Files): Add m4/open-cloexec.m4.
3398         (Depends-on): Depend on cloexec if replacing openat.
3399         * modules/popen-safer (Depends-on): Remove cloexec.
3400         * modules/save-cwd (Depends-on): Remove cloexec, and add
3401         fd-safer-flag and 'open'.
3403 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
3405         reallocarray: minor fixes
3406         * doc/glibc-functions/reallocarray.texi: Update version numbers.
3407         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
3408         * modules/reallocarray (License): Change from GPL to LGPL.
3409         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
3410         Indent properly and don't use tabs.
3412 2017-08-13  Darshit Shah  <darnir@gnu.org>
3414         reallocarray: New module
3415         reallocarray is a new function in glibc 2.26 to safely allocate an array
3416         of memory locations with integer overflow protection.
3417         * MODULES.html.sh: Add reallocarray.
3418         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
3419         * lib/reallocarray.c: New file to implement module reallocarray.
3420         * lib/stdlib.in.h: Add function declarations for reallocarray.
3421         * m4/reallocarray.m4: New file.
3422         * m4/stdlib_h.m4: Declare reallocarray.
3423         * modules/reallocarray: New file.
3424         * modules/reallocarray-test: New file.
3425         * modules/stdlib: Coerce stdlib.h to export reallocarray.
3426         * tests/test-reallocarray.c: New test.
3428 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3430         dirent-safer: fix cloexec race
3431         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
3432         (opendir_safer): Use F_DUPFD_CLOEXEC.
3433         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
3434         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
3435         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
3436         instead of dup_safer.
3438         fts: fix cloexec races
3439         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
3440         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
3441         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
3442         (fd_ring_check): Set cloexec flag on new file descriptors.
3443         (fts_build, fd_ring_check): While we’re at it, make sure the
3444         resulting file descriptor is not 0, 1, or 2, since that is easy.
3446 2017-08-11  Bruno Haible  <bruno@clisp.org>
3448         fts tests: Fix link error.
3449         Reported by Tom G. Christensen in
3450         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
3451         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
3453 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3455         fts: port recent changes to CentOS 6
3456         Problem reported by Tom G. Christensen in:
3457         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
3458         * lib/fts.c (fsword): New type.
3459         (struct dev_type, filesystem_type): Use it.
3460         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
3461         Also, check for f_type only if fstatfs and sys/vfs.h work.
3463 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3465         tempname: do not depend on secure_getenv
3466         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
3467         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
3468         * modules/tempname (Depends-on): Remove secure_getenv.
3470 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
3472         extensions: add _OPENBSD_SOURCE
3473         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
3475 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
3476             Bruno Haible  <bruno@clisp.org>
3478         manywarnings: Add support for C++.
3479         * build-aux/g++-warning.spec: New file.
3480         * m4/manywarnings-c++.m4: New file.
3481         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
3482         redirects to manywarnings-c++.m4.
3483         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
3485 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
3487         git-version-gen: another fix for tags with "-"
3488         * build-aux/git-version-gen: Improve fix for tags containing "-".
3489         Suggested by Markus Armbruster in:
3490         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
3492 2017-08-06  Bruno Haible  <bruno@clisp.org>
3494         warnings, manywarnings: Add support for multiple languages, not just C.
3495         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
3496         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
3497         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
3498         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
3499         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
3500         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
3501         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
3502         of the current language. If C++ is the current language, modify
3503         WARN_CXXFLAGS instead of WARN_CFLAGS.
3504         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
3505         gl_MANYWARN_ALL_GCC.
3506         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
3508 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
3510         git-version-gen: Fix for tags containing '-'
3512         Really old versions of git-describe (before v1.5.0, Feb 2007)
3513         don't have the number of commits in their long format output,
3514         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
3515         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
3516         recognizes both patterns, and normalizes the old format to the new one.
3518         Unfortunately, this normalization code gets confused when the tag
3519         contains '-'.  Reproducer:
3521             $ git-tag -m test v0.2-rc1
3522             $ build-aux/git-version-gen .tarball-version; echo
3523             build-aux/git-version-gen: WARNING: git rev-list failed
3524             UNKNOWN
3526         We take exact tag "v0.2-rc1" for the old format, extract the presumed
3527         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
3528         commits since tha tag.  Fails, because tag "v0.2" does not exist.
3530         * git-version-gen: We could perhaps drop support for versions from
3531         more than a decade ago.  But tightening the pattern match is easy
3532         enough, so do that.  Still breaks when you use version tags ending in
3533         something matching -g????, but you arguably get what you deserve then.
3535 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
3537         valgrind-tests: use ls, and cache
3538         * m4/valgrind-tests.m4: Test ls, not bash.
3539         Problem reported by Reuben Thomas.
3540         Also, cache the result so that it can be overridden.
3542 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
3544         manywarnings: port to 64-bit GCC builds of Emacs
3545         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
3546         object size rather than hardwiring 2147483647.  This is needed to
3547         build GNU Emacs, which has one conditional (and used
3548         only-in-theory) call to malloc with a literal greater than
3549         2147483647.
3551 2017-08-04  Bruno Haible  <bruno@clisp.org>
3553         Relax the license of some modules with no runtime code.
3554         * modules/std-gnu11 (License): Set to 'unlimited'.
3555         * modules/c99 (License): Likewise.
3556         Reported by Reuben Thomas <rrt@sc3d.org>.
3557         * modules/d-ino (License): Set to 'LGPL'.
3558         * modules/host-os (License): Likewise.
3559         * modules/longlong (License): Likewise.
3561 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
3563         renameat2: port to RHEL 7 + NFS
3564         * lib/renameat2.c (renameat2) [SYS_renameat2]:
3565         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
3566         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
3568 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3570         renameat2: port to non-renameat platforms
3571         Problem reported for MSVC-2015 by Gisle Vanem in:
3572         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
3573         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
3574         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
3576 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3578         manywarnings: port to 32-bit GCC bug
3579         Problem reported by Pino Toscano in:
3580         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
3581         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
3582         not 2**63 - 1, to work around the following GCC bug:
3583         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
3585 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
3587         backupfile: new function to validate backup suffix
3588         * lib/backupfile.c (set_simple_backup_suffix): New function.
3589         (backupfile_internal): Use it.
3591         canonicalize: fix EOVERFLOW commentary
3592         Problem reported by Bruno Haible in:
3593         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
3594         * lib/canonicalize.c (canonicalize_filename_mode):
3595         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
3597         Don't interpret EOVERFLOW to mean nonexistence
3598         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
3599         may be EOVERFLOW; this is likely more useful than reporting the
3600         stat errno.
3601         * lib/glob.c (link_stat): Rename from link_exists2_p and
3602         return -1/0 instead of 0/1.  Caller changed.
3603         * lib/glob.c (link_exists_p):
3604         * lib/renameat2.c (rename_noreplace, renameat2):
3605         * lib/tempname.c (try_nocreate):
3606         If errno == EOVERFLOW then the directory entry exists, so do not
3607         act as if it does not exist.
3609         backup-rename: new module
3610         It is like backupfile, except it avoids some race conditions,
3611         and it does not output to stderr or exit.
3612         * MODULES.html.sh: Add backup-rename.
3613         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
3614         * modules/backup-rename: New files.
3615         * lib/backupfile.c: Turn this into an internals file, which
3616         contains code common to backupfile and backup_rename.  Include
3617         backupfile-internal.h instead of backupfile.h.  Do not include
3618         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
3619         renameat2.h and fcntl.h.
3620         (BACKUP_NOMEM): New constant.
3621         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
3622         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
3623         (backupfile_internal): Rename from find_backup_file_name.
3624         Support new arg RENAME.
3625         (backup_args, backup_types, get_version, xget_version):
3626         Move to lib/backup-find.c.
3627         * lib/backupfile.h (backup_file_rename): New decl.
3628         * modules/backupfile (Files): Add lib/backup-internal.h,
3629         lib/backup-find.c.
3630         (Depends-on): Add dirfd, fcntl, renameat2.
3631         (lib_SOURCES): Add backup-find.c.
3633         renameat2: port better to older Solaris
3634         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
3635         Add goto to use a label, to silence picky compilers.
3637         fts-tests: port to gcc -Wwrite-strings
3638         * tests/test-fts.c (base, base_d): New static vars.
3639         (argv, remove_tree, main): Use them.
3641 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
3643         relocatable-lib{,-lgpl}: improve documentation
3644         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
3645         Various other updates.
3647 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
3648             Bruno Haible  <bruno@clisp.org>
3650         relocatable-lib{,-lgpl}: add Valgrind suppressions
3651         * lib/relocatable.valgrind: New file.
3652         * modules/relocatable-lib (Files): Add relocatable.valgrind.
3653         * modules/relocatable-lib-lgpl: Likewise.
3655 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
3657         relocatable: Make the license on the sources the GPL.
3658         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
3659         LGPL, which was a special case so that the relocatable source files
3660         could be used without gnulib-tool, to GPL. They can still be used under
3661         the LGPL, using the --lgpl option to gnulib-tool.
3663 2017-07-30  Bruno Haible  <bruno@clisp.org>
3665         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
3666         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
3667         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
3668         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
3669         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
3671 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
3673         faccessat: document AT_SYMLINK_NOFOLLOW issue
3674         * doc/posix-functions/faccessat.texi: Modernize platform list.
3675         Document AT_SYMLINK_NOFOLLOW limitation.
3677         renameat2: port to Solaris 10
3678         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
3679         with AT_SYMLINK_NOFOLLOW (which is not portable).
3680         (renameat): Undef before using, to avoid endless recursion when
3681         the replacement renameat calls renameat2 which calls the
3682         replacement renameat.
3683         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
3684         * modules/renameat2 (Depends-on): Remove faccessat.
3685         * modules/renameat-tests (test_renameat_LDADD):
3686         * modules/renameat2-tests (test_renameat2_LDADD):
3687         Remove $(LIB_EACCESS).
3689         renameat2: new module
3690         Although the Linux syscall renameat2 is not in glibc (yet?), it is
3691         useful to have access to its RENAME_NOREPLACE flag.
3692         * MODULES.html.sh (func_all_modules): Add renameat2.
3693         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
3694         * modules/renameat2-tests, tests/test-renameat2.c: New files.
3695         * lib/renameat.c (renameat): Move most of the implementation
3696         to renameat2, and just call renameat2.
3697         * modules/renameat (Files): Remove lib/at-func2.c.
3698         (Depends-on): Depend only on renameat2.
3699         (Include): Remove <fcntl.h>.
3700         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
3701         since renameat (via renameat2) might use faccessat.
3703 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
3705         vc-list-files: Adjust the script to support git worktrees
3706         * build-aux/vc-list-files: Require existence, not directory.
3708 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
3710         doc: bring MODULES.html.sh up to date
3711         Somehow a few months ago we stopped updating MODULES.html.sh.
3712         I don’t recall explicitly deciding this, so I updated it now.
3713         Alternatively I suppose we could remove it.
3714         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
3715         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
3716         truncate, utime, utime-h, windows-stat-inodes,
3717         windows-stat-override, windows-stat-timespec, year2038.  Sort.
3719 2017-07-26  Jim Meyering  <meyering@fb.com>
3721         fprintftime: fix build-break caused by recent renaming
3722         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
3723         "strftime.c".
3724         * modules/fprintftime: Depend directly on nstrftime.
3726 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
3728         regex: work with GCC7's -Werror=implicit-fallthrough=
3729         * lib/regex_internal.h (FALLTHROUGH): New macro.
3730         * lib/regcomp.c (peek_token_bracket, parse_expression):
3731         * lib/regexec.c (check_node_accept): Use it.
3733 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3735         fts: simplify fts_build
3736         * lib/fts.c (fts_build): Simplify, and be lazier about
3737         calling leaf_optimization.
3739         fts: three levels of leaf optimization
3740         * lib/fts.c (enum leaf_optimization): New type with three values.
3741         (S_MAGIC_AFS): New macro.  Sort them.
3742         (leaf_optimization): Rename from leaf_optimization_applies, and
3743         return enum leaf_optimization instead of bool.  All uses changed.
3744         Add cases for unknown type and for AFS.
3745         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
3747         fts: cache dirent_inode_sort_may_be_useful too
3748         * lib/fts.c (struct dev_type): New struct.
3749         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
3750         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
3751         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
3752         Now takes FTSENT const *, not int.  All uses changed.  Use
3753         filesystem_type to cache.
3754         (link_count_optimize_ok): Remove.  Caller changed to use
3755         leaf_optimization_applies, which now uses shared cache.
3757         fts: introduce MIN_DIR_NLINK
3758         * lib/fts.c (MIN_DIR_NLINK): New constant.
3759         Use it instead of 2, whenever we are talking about link counts.
3761         fts: nlink_t signedness fixups
3762         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
3763         so that root need not be a special case later.
3764         (fts_read): Remove now-redundant test for fts_level.
3765         Do not assume that nlink_t is signed.
3766         (fts_build): Remove useless decrement of nlinks.
3767         (fts_stat): Avoid unlikely signed integer overflow later, if
3768         nlink_t is signed.
3770         fts-tests: new module
3771         * modules/fts-tests, tests/test-fts.c: New files.
3773 2017-07-23  Bruno Haible  <bruno@clisp.org>
3775         Rename module 'strftime' to 'nstrftime'.
3776         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
3777         * lib/nstrftime.c: Renamed from lib/strftime.c.
3778         * modules/nstrftime: Renamed from modules/strftime.
3779         (Files, Makefile.am): Update.
3780         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
3781         Fix comment.
3782         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
3783         (Files, Makefile.am): Update.
3784         * modules/strftime: New file, an obsolete indirection.
3785         * doc/posix-functions/strftime.texi: Update reference.
3786         * config/srclist.txt: Update info.
3787         * NEWS: Mention the change.
3789 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
3791         malloca: Silence a warning from clang's memory sanitizer.
3792         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
3793         (freea): Use it.
3795 2017-07-18  Bruno Haible  <bruno@clisp.org>
3797         host-cpu-c-abi: Fix detection of MIPS ABI.
3798         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
3799         ABI, not the CPU instruction set.
3801 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
3803         explicit_bzero: new module
3804         The explicit_bzero function has been added to glibc.
3805         This module is intended to supports its use in GNU programs.
3806         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
3807         * m4/explicit_bzero.m4, modules/explicit_bzero:
3808         New files.
3809         * doc/gnulib.texi (Glibc string.h): Link to new doc.
3810         * lib/string.in.h (explicit_bzero): Declare.
3811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
3812         * modules/string (string.h): Substitute its vars.
3814 2017-07-16  Bruno Haible  <bruno@clisp.org>
3816         threadlib: Support static linking.
3817         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
3818         set gl_cv_have_weak to 'no'.
3820 2017-07-16  Bruno Haible  <bruno@clisp.org>
3822         unicase/locale-language: Fix link dependencies.
3823         * modules/unicase/locale-language (Link): New section.
3824         * modules/unicase/locale-language-tests (Makefile.am): Link
3825         test-locale-language program with $(LIBTHREAD).
3827 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
3829         sys_socket: Add support for OpenVMS.
3830         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
3831         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
3833 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
3835         sys_resource: Add support for OpenVMS.
3836         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
3837         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
3839 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
3840             Bruno Haible  <bruno@clisp.org>
3842         math: Add support for OpenVMS.
3843         * lib/math.in.h [__VMS]: Include <fp.h>.
3844         * doc/posix-headers/math.texi: Mention OpenVMS issues.
3846 2017-07-15  Bruno Haible  <bruno@clisp.org>
3848         getdtablesize: Add minimal support for OpenVMS.
3849         Reported by John E. Malmberg <wb8tyw@qsl.net>.
3850         * modules/getdtablesize (Description): Fix.
3851         * lib/getdtablesize.c: Fix comment.
3852         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
3853         getdtablesize() function, even though the test fails.
3854         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
3855         limitation on OpenVMS.
3857 2017-07-13  Bruno Haible  <bruno@clisp.org>
3859         Revisit cross-compilation guesses.
3860         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
3862 2017-07-13  Bruno Haible  <bruno@clisp.org>
3864         Improve cross-compilation guesses for native Windows.
3865         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
3866         Windows.
3867         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
3868         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
3869         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
3870         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
3871         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
3872         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3873         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3874         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3875         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3876         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3877         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3878         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
3879         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
3880         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
3881         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
3882         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3883         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
3884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3885         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3886         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
3887         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3888         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3889         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
3890         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
3891         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
3892         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
3893         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3894         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3895         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3896         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
3897         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3898         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
3899         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3900         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
3901         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
3902         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
3903         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
3904         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3905         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
3906         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3907         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3908         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3909         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
3910         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
3911         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
3912         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
3913         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
3914         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
3915         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
3916         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
3917         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
3918         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
3919         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
3920         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
3921         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
3922         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
3923         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
3924         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3925         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
3926         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3927         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3928         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
3929         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
3930         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3931         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3933         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
3934         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
3935         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
3936         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
3937         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
3938         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3939         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3940         * m4/regex.m4 (gl_REGEX): Likewise.
3941         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3942         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
3943         gl_FUNC_REMAINDERF_WORKS): Likewise.
3944         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
3945         gl_FUNC_REMAINDERL_WORKS): Likewise.
3946         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3947         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3948         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3949         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3950         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3951         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3952         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3953         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3954         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
3955         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3956         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
3957         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
3958         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3959         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3960         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
3961         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3962         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3963         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3964         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
3965         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
3966         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3967         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3968         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3969         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
3970         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3971         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3972         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3973         Likewise.
3974         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3975         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
3976         Windows. Enable also on Autoconf 2.70.
3977         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3978         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3979         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3980         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
3981         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3982         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
3983         for native Windows.
3984         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3985         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
3987 2017-07-13  Bruno Haible  <bruno@clisp.org>
3989         Improve cross-compilation guesses for native Windows.
3990         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
3991         Windows.
3992         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
3993         memchr.m4.
3994         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
3996 2017-07-13  Bruno Haible  <bruno@clisp.org>
3998         Improve cross-compilation guesses for native Windows.
3999         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
4000         native Windows.
4001         (gl_FUNC_FFLUSH): Update accordingly.
4002         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
4003         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4005 2017-07-11  Bruno Haible  <bruno@clisp.org>
4007         More systematic m4 quoting and indentation.
4008         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
4009         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4010         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
4011         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4012         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4013         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
4014         gl_WINSIZE_IN_PTEM): Likewise.
4015         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
4016         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
4017         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4018         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
4019         Correct indentation.
4020         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4021         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4022         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
4023         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4024         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
4025         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4027 2017-07-10  Bruno Haible  <bruno@clisp.org>
4029         round, roundf: Avoid compiler warning in configure test.
4030         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
4031         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4033 2017-07-10  Bruno Haible  <bruno@clisp.org>
4035         getlogin tests: Avoid #ifdefs when sharing code between modules.
4036         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
4037         * modules/getlogin-tests (Files): Likewise. Remove
4038         tests/test-getlogin_r.c.
4039         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
4040         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
4041         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
4042         getlogin().
4044 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4046         getlogin: don’t assume one name per uid
4047         Problem reported by Wolfgang F. Muthmann (Bug#27640).
4048         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
4049         (ttyname): Remove test.
4050         * modules/getlogin_r-tests (ttyname): Remove test.
4051         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
4052         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
4053         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
4054         getlogin rather than getlogin_r.  This avoids code duplication.
4055         (main): Use isatty and fstat rather than ttyname and stat.
4056         Use getpwnam instead of getpwuid, to be portable to test platforms
4057         that have multiple login names for the same uid.
4059 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
4060             Bruno Haible  <bruno@clisp.org>
4062         glob: Fix more memory leaks.
4063         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
4064         returning.
4065         Reported by Tim Rühsen.
4067 2017-07-10  Bruno Haible  <bruno@clisp.org>
4069         Make sure $host and $host_os are defined when used.
4070         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
4071         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
4072         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4073         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4074         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4075         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
4076         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
4077         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
4078         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4079         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4080         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
4081         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
4082         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
4083         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
4084         m4_ifdef block.
4086 2017-07-09  Bruno Haible  <bruno@clisp.org>
4088         *printf: Fix cross-compilation guess for Solaris.
4089         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
4090         2010-12-21.
4092 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
4093             Bruno Haible  <bruno@clisp.org>
4095         vasnprintf: port to macOS 10.13
4096         Problem reported by comex in:
4097         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
4098         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
4100 2017-07-06  Bruno Haible  <bruno@clisp.org>
4102         imaxdiv tests: Fix logic.
4103         * tests/test-imaxdiv.c (main): Use == instead of =.
4104         Reported by Coverity.
4106 2017-07-06  Bruno Haible  <bruno@clisp.org>
4108         uninorm/filter: Fix use-after-free bug.
4109         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
4110         sortbuf == filter->sortbuf invariant.
4111         Reported by Coverity.
4113 2017-07-06  Bruno Haible  <bruno@clisp.org>
4115         glob: Fix more memory leaks.
4116         * lib/glob.c (glob): Free dirname before returning.
4117         Reported by Coverity and Tim Rühsen.
4119 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4121         parse-datetime: fix uninit var bug
4122         Reported by Bruno Haible in:
4123         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
4124         * lib/parse-datetime.y (parse_datetime2): Do not use
4125         uninitialized.
4127 2017-07-05  Bruno Haible  <bruno@clisp.org>
4129         doc: Update for MSVC 14.
4130         * doc/posix-headers/*.texi: Add info about MSVC 14.
4131         * doc/posix-functions/*.texi: Likewise.
4132         * doc/pastposix-functions/*.texi: Likewise.
4133         * doc/glibc-headers/*.texi: Likewise.
4134         * doc/glibc-functions/*.texi: Likewise.
4136 2017-07-05  Bruno Haible  <bruno@clisp.org>
4138         sched: Fix build failure on native Windows (regression from 2017-06-19).
4139         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
4141 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
4143         stdioext: Port to OpenVMS.
4144         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
4145         * lib/fpending.c (fpending): Remove non-working VMS specific code.
4146         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
4147         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
4148         * lib/fpurge.c (fpurge): Likewise.
4149         * lib/freadable.c (freadable): Likewise.
4150         * lib/freadahead.c (freadahead): Likewise.
4151         * lib/freading.c (freading): Likewise.
4152         * lib/freadptr.c (freadptr): Likewise.
4153         * lib/freadseek.c (freadseek): Likewise.
4154         * lib/fseeko.c (fseeko): Likewise.
4155         * lib/fseterr.c (fseterr): Likewise.
4156         * lib/fwritable.c (fwriteable): Likewise.
4157         * lib/fwriting.c (fwriting): Likewise.
4159 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
4161         glob: Declare variables at the very start of their scope.
4162         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
4163         its separate scope, so the functions will compile on Haiku.
4165 2017-07-01  Bruno Haible  <bruno@clisp.org>
4167         logbl: Work around a glibc bug on PowerPC64LE.
4168         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
4169         numbers.
4170         * doc/posix-functions/logbl.texi: Update.
4172 2017-06-29  Bruno Haible  <bruno@clisp.org>
4174         stat, fstat: Compile stat-w32.c only on platforms that need it.
4175         Suggested by Paul Eggert.
4176         * modules/stat (configure.ac): Request stat-w32.o only on native
4177         Windows.
4178         * modules/fstat (configure.ac): Likewise.
4180 2017-06-25  Bruno Haible  <bruno@clisp.org>
4182         stat: Improve last change.
4183         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
4185 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
4187         stat: port to xlc 12.01
4188         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
4189         12.01 complains "Compilation unit is empty."
4191 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
4193         xalloc-oversized: port to icc
4194         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
4195         __builtin_mul_overflow if ICC is defined, as this results in
4196         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
4197         20170213.
4199 2017-06-19  Bruno Haible  <bruno@clisp.org>
4201         classpath: Avoid including config.h twice, as it produces warnings.
4202         Reported by John E. Malmberg <wb8tyw@gmail.com>.
4203         * lib/classpath.h: Conditionalize the include of config.h.
4205 2017-06-19  Bruno Haible  <bruno@clisp.org>
4206             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
4208         sched: Fix compilation failure on OpenVMS.
4209         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
4210         test whether <pthread.h> exists and defines struct sched_param.
4211         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
4213 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4215         diffseq: port to GCC 7 with --enable-gcc-warnings
4216         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
4217         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
4218         not complain about big_snake being defined but not used.
4220 2017-06-15  Bruno Haible  <bruno@clisp.org>
4222         gettext-h: Update theoretical condition for use of variable size arrays.
4223         Reported by Paul Eggert.
4224         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
4225         to include the theoretical condition for availability of variable size
4226         arrays, if we could trust the value of __STDC_VERSION__.
4228 2017-06-12  Bruno Haible  <bruno@clisp.org>
4230         Relicense some modules under LGPLv2+.
4231         Daiki Ueno's approval is in
4232         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
4233         * modules/uniwidth/base (License): Change to LGPLv2+.
4234         * modules/uniwidth/width (License): Likewise.
4236 2017-06-11  Bruno Haible  <bruno@clisp.org>
4238         localename: Fix test failure on DragonFly BSD.
4239         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
4240         like FreeBSD.
4242 2017-06-11  Bruno Haible  <bruno@clisp.org>
4244         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
4245         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
4246         * lib/float.in.h: Likewise.
4247         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
4249 2017-06-11  Bruno Haible  <bruno@clisp.org>
4251         gnulib-tool: Clean up after autotools.
4252         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
4253         useless directory left over by the Autotools.
4255 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
4257         getopt-posix: port to glibc 2.25.90
4258         Problem reported by Daniel P. Berrange in:
4259         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
4260         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
4261         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
4262         #undef if __GETOPT_PREFIX is defined.
4264 2017-06-11  Bruno Haible  <bruno@clisp.org>
4266         strtod-obsolete: Fix license.
4267         * modules/strtod-obsolete (License): Change to LGPL.
4269 2017-06-10  Jim Meyering  <meyering@fb.com>
4271         maint: update to work with GCC7's -Werror=implicit-fallthrough=
4272         * lib/savewd.c (FALLTHROUGH): Define.
4273         (savewd_save, savewd_restore): Use this, rather than a comment,
4274         whenever one switch case falls through into the next.
4276 2017-06-08  Bruno Haible  <bruno@clisp.org>
4278         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
4279         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
4280         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
4281         case.
4283 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
4285         doc: remove robots, add prereqs
4286         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
4287         builds.  Simon's robot site does not seem to be up, so remove
4288         mentions of it for now.
4290 2017-06-08  Bruno Haible  <bruno@clisp.org>
4292         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
4293         * gnulib-tool (func_symlink_target): New function, extracted from
4294         func_symlink.
4295         (func_symlink, func_symlink_if_changed): Use it.
4297 2017-06-08  Bruno Haible  <bruno@clisp.org>
4299         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
4300         * gnulib-tool (func_ln_s): Determine cp_src correctly.
4302 2017-06-07  Bruno Haible  <bruno@clisp.org>
4304         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
4305         Reported by John E. Malmberg <wb8tyw@gmail.com> in
4306         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
4307         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
4308         override, pass 2 arguments to getcwd, not 3.
4310 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
4312         same-inode: port better to VMS 8.2 and later
4313         Problem reported by John E. Malmberg in:
4314         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
4315         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
4316         Use the usual POSIX definition.
4317         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
4319 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4321         error: fix POSIX violation for va_end
4322         Problem reported by Bruno Haible in:
4323         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
4324         * lib/error.c (error_tail): Do not call va_end here.
4325         (error, error_at_line): Call it here instead.
4327 2017-05-28  Bruno Haible  <bruno@clisp.org>
4329         c-strtod: Make it usable in C++ mode.
4330         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
4332 2017-05-25  Jim Meyering  <meyering@fb.com>
4334         quotearg: fix compilation failure due to FALLTHROUGH misuse
4335         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
4336         macro back to /* fall through */ comment.  The macro can apply only
4337         to a following case statement.  Reported by Assaf Gordon.
4339 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
4341         intprops: port to recent icc
4342         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
4343         but does not support __builtin_add_overflow etc.
4344         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
4345         Define to 0.
4347 2017-05-23  Karl Berry  <karl@freefriends.org>
4349         * config/srclist.txt (iconv.m4): sync broken, comment out
4350         until (hopefully) the next gettext release.
4352 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
4354         Remove repeated words in comments.
4356 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
4358         fallthrough: reinstate a FALLTHROUGH instance in quotearg
4359         quotearg.c: Reinstate this instance which is significant
4360         when the if branch is not taken.
4362 2017-05-21  Bruno Haible  <bruno@clisp.org>
4364         gnulib-tool: Add options to create hard links.
4365         * gnulib-tool (func_usage): Document options --hardlink,
4366         --local-hardlink, --more-hardlinks.
4367         (func_symlink): Renamed from func_ln.
4368         (func_symlink_if_changed): Renamed from func_ln_if_changed.
4369         (func_hardlink): New function.
4370         (copymode, lcopymode): New variables.
4371         (symbolic, lsymbolic): Remove variables.
4372         (Options): Implement options --hardlink, --local-hardlink,
4373         --more-hardlinks.
4374         (func_should_link): Renamed from func_should_symlink. Set copyaction.
4375         (func_add_file, func_update_file): Update invocation of
4376         func_should_link. Invoke func_hardlink when appropriate.
4377         (func_import): Update comments.
4378         (func_create_testdir): Update invocation of func_should_link. Invoke
4379         func_hardlink when appropriate.
4380         Finally, invoke 'git update-index --refresh' to mitigate the effects of
4381         the hard links on git.
4383 2017-05-20  Bruno Haible  <bruno@clisp.org>
4385         argp: Simplify bit manipulation.
4386         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
4387         on a signed integer type.
4389 2017-05-20  Bruno Haible  <bruno@clisp.org>
4391         Avoid wrong configure results with gcc -fsanitize=address.
4392         This completes the work done on 2016-02-06 on this topic.
4393         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
4394         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4396         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4397         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
4398         returning.
4399         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4400         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
4401         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4402         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4403         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
4404         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4405         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
4406         free allocated memory before returning.
4407         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4408         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
4409         objects before returning.
4410         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
4411         returning.
4413 2017-05-20  Bruno Haible  <bruno@clisp.org>
4415         gnulib-tool: Don't create hard links between gnulib and its testdirs.
4416         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
4418 2017-05-20  Bruno Haible  <bruno@clisp.org>
4420         argp, tsearch tests: Fix file list.
4421         * modules/argp-tests (Files): Add tests/macros.h.
4422         * modules/tsearch-tests (Files): Likewise.
4424 2017-05-20  Bruno Haible  <bruno@clisp.org>
4426         getopt-posix tests: Remove redundant include.
4427         * tests/test-getopt.h: Don't include "macros.h". It's already included
4428         by tests/test-getopt-main.h.
4430 2017-05-19  Jim Meyering  <meyering@fb.com>
4432         dfa: two small simplifications
4433         * lib/dfa.c (build_state): Avoid repeating longer expressions.
4435 2017-05-18  Jim Meyering  <meyering@fb.com>
4437         fallthrough: update for GCC 7/8
4438         * lib/quotearg.c (FALLTHROUGH): New macro.
4439         Use it whenever one switch case falls through into the next,
4440         replacing "/* Fall through */" comments.  This exposed one
4441         instance of an unwarranted "fall through" comment: unwarranted
4442         because it preceded a "goto" label not a case statement.
4443         * lib/freopen-safer.c (freopen_safer): Likewise.
4444         * lib/fts.c (leaf_optimization_applies): Likewise.
4445         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
4446         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
4447         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
4448         tests/macros.h for the definition.
4449         * tests/test-argp.c (group1_parser): Likewise.
4450         * tests/test-getopt.h (getopt_loop): Likewise.
4452 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4454         argp: fix shift bug
4455         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
4456         behavior on shift overflow, caught by gcc -fsanitize=undefined.
4458         argp: fix pointer-subtraction bug
4459         * lib/argp-help.c (hol_append): Don’t subtract pointers to
4460         different arrays, as this can run afoul of -fcheck-pointer-bounds.
4461         See the thread containing Bruno Haible’s report in:
4462         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
4464 2017-05-19  Bruno Haible  <bruno@clisp.org>
4466         printf-posix tests: Avoid test failure with "gcc --coverage".
4467         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4468         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
4469         than 5000000.
4470         * tests/test-fprintf-posix2.c (main): Likewise.
4472 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4474         closeout: don’t close stderr when sanitizing
4475         * NEWS: Document this.
4476         * lib/closeout.c (__has_feature): New macro, if not already defined.
4477         (SANITIZE_ADDRESS): New constant.
4478         (close_stdout): Don’t close stderr if sanitizing addresses.
4480 2017-05-19  Bruno Haible  <bruno@clisp.org>
4482         get-rusage-data tests: Avoid failure on Linux/glibc.
4483         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
4484         on glibc systems.
4486 2017-05-18  Bruno Haible  <bruno@clisp.org>
4488         localename: Include necessary header files on Cygwin.
4489         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
4490         where NL_LOCALE_NAME is defined.
4492 2017-05-18  Bruno Haible  <bruno@clisp.org>
4494         gettext: Update macros from gettext git.
4495         * m4/intldir.m4: Require Autoconf >= 2.60.
4496         * m4/progtest.m4: Fix typos in copyright notice.
4498 2017-05-18  Bruno Haible  <bruno@clisp.org>
4500         copy-file tests: Fix link error (regression from 2017-05-01).
4501         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4502         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
4503         $(LIB_CLOCK_GETTIME).
4505 2017-05-18  Bruno Haible  <bruno@clisp.org>
4507         unicase/special-casing: Fix incompatibility with gperf-3.0.4
4508         (regression from 2017-02-13).
4509         * lib/unicase/special-casing.in.h: Renamed from
4510         lib/unicase/special-casing.h.
4511         * modules/unicase/special-casing (Files): Add
4512         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
4513         (Makefile.am): Add rule for generating unicase/special-casing.h.
4514         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
4515         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
4516         not "special-casing.h".
4517         * lib/unicase/u*.c: Likewise.
4519 2017-05-17  Bruno Haible  <bruno@clisp.org>
4521         README: Don't ask people to read a TeXinfo file.
4522         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4523         * README: Tell people how to read the HTML formatted manual.
4525 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
4527         parse-datetime: Fix memleak
4528         * lib/parse-datetime.y (parse_datetime2): Cleanup on
4529         localtime_rz() failure.
4531 2017-05-16  Bruno Haible  <bruno@clisp.org>
4533         javacomp: Fix handle leak.
4534         Found by Coverity.
4535         * lib/javacomp.c (get_classfile_version): Close fd before returning.
4537 2017-05-16  Bruno Haible  <bruno@clisp.org>
4539         relocate: Make it easier to reclaim allocated memory.
4540         * lib/relocatable.h (relocate2): New declaration/macro.
4541         * lib/relocatable.c (relocate2): New function.
4542         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
4543         relocate2 function.
4544         * lib/localcharset.c (relocate2): Define fallback.
4545         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
4546         allocated memory.
4547         * lib/javaversion.c (relocate2): Define fallback.
4548         (javaexec_version): Invoke relocate2 instead of relocate. Free the
4549         allocated memory.
4551 2017-05-16  Bruno Haible  <bruno@clisp.org>
4553         relocate: Simplify EMX specific code.
4554         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
4555         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
4557 2017-05-16  Bruno Haible  <bruno@clisp.org>
4559         sigpipe tests: Fix file list.
4560         * modules/sigpipe-tests (Files): Add tests/macros.h.
4562 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4564         manywarnings: update for GCC 7
4565         * build-aux/gcc-warning.spec:
4566         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
4567         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
4568         requires a non-comment fallthrough attribute.  This is a bit
4569         cleaner than the comment versions.
4570         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
4571         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
4572         Use it whenever one switch case falls through into the next.
4573         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
4574         Use FALLTHROUGH macro.
4576 2017-05-15  Bruno Haible  <bruno@clisp.org>
4578         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
4579         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
4580         @ALLOCA@, not @LTALLOCA@.
4582 2017-05-15  Bruno Haible  <bruno@clisp.org>
4584         sys_select: Avoid "was expanded before it was required" warning.
4585         * modules/sys_select (configure.ac): Require, not invoke,
4586         gl_HEADER_SYS_SELECT.
4588 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4590         gnulib-tool: improve GNU Make debugging
4591         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
4592         Report autoconf diagnostics when it fails, in the output makefile.
4594 2017-05-14  Bruno Haible  <bruno@clisp.org>
4596         stat-time tests: Improve comment.
4597         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
4599 2017-05-14  Bruno Haible  <bruno@clisp.org>
4601         same-inode: Adapt for windows-stat-inodes.
4602         * lib/same-inode.h: Include <sys/types.h>.
4603         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
4604         * modules/same-inode (Depends-on): Add sys_types.
4606 2017-05-14  Bruno Haible  <bruno@clisp.org>
4608         windows-stat-inodes: New module.
4609         * m4/windows-stat-inodes.m4: New file.
4610         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
4611         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
4612         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
4613         (_GL_WINDOWS_STAT_INODES): New macro.
4614         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
4615         (GetFileInformationByHandleExFunc): New variable.
4616         (initialize): Initialize it.
4617         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
4618         st_ino appropriately.
4619         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
4620         a fallback, because it does not provide st_dev and st_ino values.
4621         * modules/fstat (Depends-on): Add 'verify'.
4622         * modules/windows-stat-inodes: New file.
4623         * doc/windows-stat-inodes.texi: New file.
4624         * doc/gnulib.texi: Include it.
4625         * doc/posix-headers/sys_stat.texi: Mention the new module.
4627 2017-05-14  Bruno Haible  <bruno@clisp.org>
4629         stat-time tests: Workaround for native Windows.
4630         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
4631         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
4632         New variables.
4633         (initialize_filenames): New function.
4634         (main): Invoke it.
4635         (cleanup, prepare_test): Update.
4637 2017-05-14  Bruno Haible  <bruno@clisp.org>
4639         stat-time: Adapt for windows-stat-timespec.
4640         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
4641         entire st_ctim field.
4643 2017-05-13  Jim Meyering  <meyering@fb.com>
4645         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
4646         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
4647         file that uses the assume macro, claiming that verify.h is unused.
4649 2017-05-13  Bruno Haible  <bruno@clisp.org>
4651         Use symbolic values for _WIN32_WINNT.
4652         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
4653         * lib/sethostname.c (_WIN32_WINNT): Likewise.
4655 2017-05-13  Bruno Haible  <bruno@clisp.org>
4657         year2038: New module.
4658         * m4/year2038.m4: New file.
4659         * modules/year2038: New file.
4660         * doc/year2038.texi: New file.
4661         * doc/gnulib.texi: Include it.
4663 2017-05-13  Bruno Haible  <bruno@clisp.org>
4665         largefile: Simplify.
4666         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
4667         of _GL_WINDOWS_64_BIT_ST_SIZE.
4669 2017-05-13  Bruno Haible  <bruno@clisp.org>
4671         largefile: Improve and document.
4672         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
4673         the mingw headers already define 'stat' appropriately.
4674         * modules/largefile (Description): Clarify.
4675         * doc/largefile.texi: New file.
4676         * doc/gnulib.texi: Include it.
4677         * doc/posix-headers/sys_types.texi: Update.
4679 2017-05-13  Bruno Haible  <bruno@clisp.org>
4681         truncate: New module.
4682         * lib/unistd.in.h (truncate): New declaration.
4683         * lib/truncate.c: New file.
4684         * m4/truncate.m4: New file.
4685         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
4686         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
4687         REPLACE_TRUNCATE.
4688         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
4689         HAVE_TRUNCATE, REPLACE_TRUNCATE.
4690         * modules/truncate: New file.
4691         * tests/test-unistd-c++.cc (truncate): Test signature.
4692         * doc/posix-functions/truncate.texi: Mention the new module.
4694         * tests/test-truncate.c: New file.
4695         * modules/truncate-tests: New file.
4697 2017-05-13  Bruno Haible  <bruno@clisp.org>
4699         windows-stat-timespec: New module.
4700         * modules/windows-stat-timespec: New file.
4701         * m4/windows-stat-timespec.m4: New file.
4702         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
4703         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
4704         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
4705         fields st_atim, st_mtim, st_ctim.
4706         (st_atime, st_mtime, st_ctime): Define as macros.
4707         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
4708         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
4709         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
4710         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
4711         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
4712         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
4713         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
4714         FILETIME to 'struct timespec', not 'time_t'.
4715         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
4716         FILETIME to 'struct timespec', not 'time_t'.
4717         * lib/stat-time.h (STAT_TIMESPEC): Define also if
4718         _GL_WINDOWS_STAT_TIMESPEC.
4719         * doc/windows-stat-timespec.texi: New file.
4720         * doc/gnulib.texi: Include it.
4722 2017-05-13  Bruno Haible  <bruno@clisp.org>
4724         windows-stat-override: New module.
4725         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
4726         definition. Define GNULIB_defined_struct_stat.
4727         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
4728         link error if this symbol is used and the corresponding module is not
4729         in use.
4730         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
4731         GNULIB_OVERRIDES_STRUCT_STAT.
4732         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
4733         GNULIB_OVERRIDES_STRUCT_STAT.
4734         * modules/sys_stat (Makefile.am): Substitute
4735         GNULIB_OVERRIDES_STRUCT_STAT.
4736         * modules/windows-stat-override: New file.
4738 2017-05-13  Bruno Haible  <bruno@clisp.org>
4740         fstat: Fix module dependency conditions.
4741         * modules/fstat (Depends-on): Fix typo.
4743 2017-05-13  Bruno Haible  <bruno@clisp.org>
4745         stat, fstat: Complete removal of old native Windows code.
4746         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
4747         * lib/fstat.c: Likewise.
4748         * lib/stat-w32.c: Likewise.
4750 2017-05-13  Bruno Haible  <bruno@clisp.org>
4752         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
4753         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
4755 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4757         getopt-posix: port to mingw
4758         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
4759         Problem reported by Daniel P. Berrage in:
4760         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
4762 2017-05-11  Bruno Haible  <bruno@clisp.org>
4764         gettimeofday: Increase precision on mingw.
4765         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
4766         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
4767         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
4768         GetSystemTimePreciseAsFileTime based implementation always.
4769         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
4770         mingw.
4772 2017-05-11  Bruno Haible  <bruno@clisp.org>
4774         poll: Fix confusion between SOCKETs and FDs on native Windows.
4775         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
4776         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
4778 2017-05-11  Bruno Haible  <bruno@clisp.org>
4780         doc: Clarify doc about socket functions on native Windows.
4781         This reworks doc that was added on 2008-09-29.
4782         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
4783         clearer wording.
4784         * doc/posix-functions/accept.texi: Use clearer wording.
4785         * doc/posix-functions/bind.texi: Likewise.
4786         * doc/posix-functions/connect.texi: Likewise.
4787         * doc/posix-functions/getpeername.texi: Likewise.
4788         * doc/posix-functions/getsockname.texi: Likewise.
4789         * doc/posix-functions/getsockopt.texi: Likewise.
4790         * doc/posix-functions/ioctl.texi: Likewise.
4791         * doc/posix-functions/listen.texi: Likewise.
4792         * doc/posix-functions/recv.texi: Likewise.
4793         * doc/posix-functions/recvfrom.texi: Likewise.
4794         * doc/posix-functions/send.texi: Likewise.
4795         * doc/posix-functions/sendto.texi: Likewise.
4796         * doc/posix-functions/setsockopt.texi: Likewise.
4797         * doc/posix-functions/shutdown.texi: Likewise.
4798         * doc/posix-functions/socket.texi: Likewise.
4800 2017-05-10  Bruno Haible  <bruno@clisp.org>
4802         poll: Fix link error on native Windows.
4803         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
4805 2017-05-10  Bruno Haible  <bruno@clisp.org>
4807         time: Fix missing initialization of HAVE_TIMEZONE_T.
4808         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
4809         here...
4810         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
4811         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
4812         gl_HEADER_SYS_TIME_H_DEFAULTS.
4813         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
4814         (configure.ac): Remove useless quoting.
4816 2017-05-10  Bruno Haible  <bruno@clisp.org>
4818         Implement a way to opt out from MSVC support, part 2.
4819         * modules/msvc-inval (Include): Document recommended idiom.
4820         * modules/msvc-nothrow (Include): Likewise.
4822         Implement a way to opt out from MSVC support.
4823         This is useful for Emacs.
4824         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
4825         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
4826         * lib/error.c: Likewise.
4827         * lib/fcntl.c: Likewise.
4828         * lib/flock.c: Likewise.
4829         * lib/fstat.c: Likewise.
4830         * lib/fsync.c: Likewise.
4831         * lib/ioctl.c: Likewise.
4832         * lib/isapipe.c: Likewise.
4833         * lib/lseek.c: Likewise.
4834         * lib/nonblocking.c: Likewise.
4835         * lib/poll.c: Likewise.
4836         * lib/select.c: Likewise.
4837         * lib/sockets.h: Likewise.
4838         * lib/sockets.c: Likewise.
4839         * lib/stdio-read.c: Likewise.
4840         * lib/stdio-write.c: Likewise.
4841         * lib/utimens.c: Likewise.
4842         * lib/w32sock.h: Likewise.
4843         * lib/w32spawn.h: Likewise.
4844         * tests/test-cloexec.c: Likewise.
4845         * tests/test-dup-safer.c: Likewise.
4846         * tests/test-dup2.c: Likewise.
4847         * tests/test-dup3.c: Likewise.
4848         * tests/test-fcntl.c: Likewise.
4849         * tests/test-pipe.c: Likewise.
4850         * tests/test-pipe2.c: Likewise.
4851         * lib/ftruncate.c: Likewise.
4852         (chsize_nothrow): Renamed from chsize.
4853         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
4854         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
4855         * lib/close.c: Likewise.
4856         * lib/dup.c: Likewise.
4857         * lib/fclose.c: Likewise.
4858         * lib/raise.c: Likewise.
4859         * tests/test-fgetc.c: Likewise.
4860         * tests/test-fputc.c: Likewise.
4861         * tests/test-fread.c: Likewise.
4862         * tests/test-fwrite.c: Likewise.
4863         * lib/getdtablesize.c: Likewise.
4864         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
4865         * lib/isatty.c: Don't include msvc-inval.h if
4866         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
4867         Include <io.h> as an alternative to msvc-nothrow.h.
4868         * lib/read.c: Likewise.
4869         * lib/write.c: Likewise.
4870         * lib/dup2.c: Likewise.
4871         (dup2_nothrow): New function.
4872         (ms_windows_dup2): Use it.
4873         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
4874         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
4875         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4876         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
4877         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
4878         * m4/read.m4 (gl_FUNC_READ): Likewise.
4879         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
4880         * doc/windows-without-msvc.texi: New file.
4881         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
4882         section.
4884 2017-05-10  Bruno Haible  <bruno@clisp.org>
4886         wait-process: Adjust native Windows support.
4887         * lib/wait-process.c: Use the usual condition for recognizing a native
4888         Windows platform.
4890 2017-05-10  Bruno Haible  <bruno@clisp.org>
4892         doc: New chapter "Native Windows Support".
4893         * doc/gnulib.texi (Native Windows Support): New chapter.
4894         * doc/windows-libtool.texi: Small wording changes.
4895         * doc/windows-sockets.texi: Small wording and formatting changes.
4897 2017-05-10  Bruno Haible  <bruno@clisp.org>
4899         doc: Move section "Library version handling".
4900         * doc/gnulib.texi: Move section "Library version handling"
4901         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
4903 2017-05-10  Bruno Haible  <bruno@clisp.org>
4905         doc: Move section "Running self-tests under valgrind".
4906         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
4907         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
4909 2017-05-10  Bruno Haible  <bruno@clisp.org>
4911         doc: New chapter "Build Infrastructure Modules".
4912         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
4914 2017-05-10  Bruno Haible  <bruno@clisp.org>
4916         Prepare for reordering sections in the manual.
4917         * doc/gnulib.texi: Move several sections to separate files. Include
4918         these files.
4919         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
4920         * doc/obsolete.texi: Likewise.
4921         * doc/extra-tests.texi: Likewise.
4922         * doc/transversal.texi: Likewise.
4923         * doc/namespace.texi: Likewise.
4924         * doc/check-version.texi: Likewise.
4925         * doc/windows-sockets.texi: Likewise.
4926         * doc/windows-libtool.texi: Likewise.
4927         * doc/licenses-texi.texi: Likewise.
4928         * doc/build-automation.texi: Likewise.
4929         * doc/c-locale.texi: Likewise.
4931 2017-05-10  Bruno Haible  <bruno@clisp.org>
4933         Fix instructions how to update manual on www.gnu.org.
4934         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
4936 2017-05-09  Bruno Haible  <bruno@clisp.org>
4938         tzset: Expand comment about TZ problem on native Windows.
4939         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
4940         Paul Eggert.
4941         * lib/ctime.c (rpl_ctime): Likewise.
4942         * lib/localtime.c (rpl_localtime): Likewise.
4943         * lib/mktime.c (mktime): Likewise.
4944         * lib/strftime-fixes.c (rpl_strftime): Likewise.
4945         * lib/wcsftime.c (rpl_wcsftime): Likewise.
4947 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4949         intprops: don’t depend on ‘verify’
4950         Problem reported by Ævar Arnfjörð Bjarmason in:
4951         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
4952         * lib/intprops.h: Do not include verify.h, and move compile-time
4953         checks from here ...
4954         * tests/test-intprops.c (main): ... to here, if they’re not here
4955         already.  Check widths of other standard integer types.
4956         * modules/intprops (Depends-on): Remove ‘verify’.
4958 2017-05-07  Bruno Haible  <bruno@clisp.org>
4960         utimens: On native Windows, support 100ns resolution also if fd < 0.
4961         * lib/utime.in.h: Include <time.h>.
4962         (_gl_utimens_windows): New declaration.
4963         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
4964         (utime): Invoke it.
4965         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
4966         instead of utime.
4967         * modules/utime (Depends-on): Add 'time'.
4969 2017-05-07  Bruno Haible  <bruno@clisp.org>
4971         utimens: Improve error code on native Windows.
4972         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
4973         error code EACCES, not EINVAL.
4975 2017-05-07  Bruno Haible  <bruno@clisp.org>
4977         utime: Handle more Windows error codes.
4978         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
4979         Based on explanations by Billy O'Neal.
4981 2017-05-05  Bruno Haible  <bruno@clisp.org>
4983         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
4984         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
4985         union.
4986         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
4987         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
4988         value of cipher->IV.
4990 2017-05-05  Bruno Haible  <bruno@clisp.org>
4992         wctype-h-c++-tests: Update.
4993         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
4995 2017-05-05  Bruno Haible  <bruno@clisp.org>
4997         wchar-c++-tests: Update.
4998         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
5000 2017-05-05  Bruno Haible  <bruno@clisp.org>
5002         utime-h-c++-tests: New module.
5003         * tests/test-utime-h-c++.cc: New file.
5004         (utime): Declare, missing since 2017-04-30.
5005         * modules/utime-h-c++-tests: New file.
5007 2017-05-05  Bruno Haible  <bruno@clisp.org>
5009         unistd-c++-tests: Update.
5010         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
5011         (read): Declare, missing since 2011-04-15.
5012         (sethostname): Declare, missing since 2011-12-03.
5014 2017-05-05  Bruno Haible  <bruno@clisp.org>
5016         time-c++-tests: Update.
5017         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
5018         (localtime, gmtime): Declare, missing since 2017-04-30.
5019         (ctime): Declare, missing since 2017-04-30.
5020         (strftime): Declare, missing since 2017-04-30.
5021         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
5022         2015-07-24.
5024 2017-05-05  Bruno Haible  <bruno@clisp.org>
5026         sys_resource-c++-tests: New module.
5027         * tests/test-sys_resource-c++.cc: New file.
5028         (getrusage): Declare, missing since 2012-04-13.
5029         * modules/sys_resource-c++-tests: New file.
5031 2017-05-05  Bruno Haible  <bruno@clisp.org>
5033         strings-c++-tests: New module.
5034         * tests/test-strings-c++.cc: New file.
5035         (ffs): Declare, missing since 2011-07-12.
5036         * modules/strings-c++-tests: New file.
5038 2017-05-05  Bruno Haible  <bruno@clisp.org>
5040         string-c++-tests: Update.
5041         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
5042         (ffsll): Declare, missing since 2011-07-15.
5044 2017-05-05  Bruno Haible  <bruno@clisp.org>
5046         stdlib-c++-tests: Update.
5047         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
5048         2011-10-18.
5049         (ptsname_r): Declare, missing since 2011-11-07.
5050         (qsort_r): Declare, missing since 2014-08-29.
5051         (random, srandom, initstate, setstate): Declare, missing since
5052         2012-01-14.
5053         (secure_getenv): Declare, missing since 2013-02-05.
5055 2017-05-05  Bruno Haible  <bruno@clisp.org>
5057         stdio-c++-tests: Update.
5058         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
5060 2017-05-05  Bruno Haible  <bruno@clisp.org>
5062         signal-h-c++-tests: Update.
5063         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
5065 2017-05-05  Bruno Haible  <bruno@clisp.org>
5067         math-c++-tests: Update.
5068         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
5069         (fma): Declare, missing since 2011-10-17.
5070         (fmal): Declare, missing since 2011-10-17.
5072 2017-05-05  Bruno Haible  <bruno@clisp.org>
5074         locale-c++-tests: Update.
5075         * tests/test-locale-c++.cc (localeconv): Declare, missing since
5076         2012-03-25.
5078 2017-05-05  Bruno Haible  <bruno@clisp.org>
5080         inttypes-c++-tests: New module.
5081         * tests/test-inttypes-c++.cc: New file.
5082         (strtoimax): Declare, missing since 2012-01-05.
5083         (strtoumax): Declare, missing since 2012-01-05.
5084         * modules/inttypes-c++-tests: New file.
5086 2017-05-05  Bruno Haible  <bruno@clisp.org>
5088         dirent-c++-tests: Update.
5089         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
5090         (rewinddir): Declare, missing since 2011-09-13.
5091         (dirfd): Declare, missing since 2010-03-08.
5093 2017-05-04  Bruno Haible  <bruno@clisp.org>
5095         argp: Fix mistake in 2017-04-23 commit.
5096         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
5097         assume that strerror_r returns 'int', not 'char *'.
5099 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
5101         argp: Fix typo.
5102         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
5104 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5106         utimens: port to Emacs + MS-Windows
5107         Skip the new MS-Windows-specific code if Emacs.
5108         * lib/utimens.c [EMACS_CONFIGUATION]:
5109         Avoid new MS-Windows-specific code.
5110         (USE_SETFILETIME): New macro.
5111         (fdutimens): Use it.
5113 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
5115         tzset: update doc for TZ problems on MS-Windows
5116         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
5117         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
5118         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
5119         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
5120         * doc/posix-functions/wcsftime.texi:
5121         Mention some issues with TZ under MS-Windows.
5123 2017-05-01  Bruno Haible  <bruno@clisp.org>
5125         copy-file: Fix build error on mingw.
5126         * modules/copy-file (Depends-on): Add 'close'.
5128 2017-05-01  Bruno Haible  <bruno@clisp.org>
5130         tzset: Work around TZ problem on native Windows.
5131         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
5132         Windows, set REPLACE_TZSET to 1.
5133         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
5134         invoke '_tzset' instead of 'tzset'.
5135         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
5137         * modules/time_rz (Depends-on): Add tzset.
5138         * lib/time_rz.c (tzset): Remove fallback definition.
5139         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
5141 2017-05-01  Bruno Haible  <bruno@clisp.org>
5143         mktime: Fix dependencies.
5144         * modules/mktime (Depends-on): Add 'time'.
5146 2017-05-01  Bruno Haible  <bruno@clisp.org>
5148         New module 'localtime-buffer', split off from module 'gettimeofday'.
5149         * lib/localtime-buffer.h: New file.
5150         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
5151         * lib/time.in.h (tzset): New declaration.
5152         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
5153         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
5154         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
5155         moved to lib/localtime-buffer.c or lib/tzset.c.
5156         * m4/localtime-buffer.m4: New file.
5157         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
5158         HAVE_TZSET, REPLACE_TZSET.
5159         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
5160         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
5161         gl_LOCALTIME_BUFFER_NEEDED.
5162         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
5163         since 2007-01-18.
5164         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
5165         tzset.
5166         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
5167         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
5168         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
5169         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
5170         * modules/localtime-buffer: New file.
5171         * modules/time (Depends-on): Remove 'gettimeofday'.
5172         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
5173         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
5174         * modules/tzset (Description): Enable hyperlink to POSIX spec.
5175         (Files): Add lib/tzset.c.
5176         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
5177         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
5178         gl_TIME_MODULE_INDICATOR.
5179         * modules/gettimeofday (Depends-on): Add localtime-buffer.
5181 2017-05-01  Bruno Haible  <bruno@clisp.org>
5183         copy-file: Preserve sub-second time stamps.
5184         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
5185         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
5186         transport the time stamps from the original file to the destination
5187         file.
5188         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
5189         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
5190         utime-h.
5192 2017-05-01  Bruno Haible  <bruno@clisp.org>
5194         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
5195         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
5196         also on MSVC.
5197         Reported by Eli Zaretskii <eliz@gnu.org>.
5199 2017-05-01  Bruno Haible  <bruno@clisp.org>
5201         wchar: Fix compilation error with the original mingw.org mingw.
5202         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
5203         <stddef.h> instead.
5204         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
5205         gl_WCTYPE_H.
5206         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
5207         gl_TYPE_WINT_T_PREREQ instead.
5208         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
5209         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
5210         Reported by Eli Zaretskii <eliz@gnu.org>.
5212 2017-04-30  Bruno Haible  <bruno@clisp.org>
5214         utimecmp: Add support for native Windows.
5215         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
5217 2017-04-30  Bruno Haible  <bruno@clisp.org>
5219         utimens: Add support for native Windows.
5220         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
5221         (fdutimens): Provide a native Windows implementation, like utime.c with
5222         added tv_nsec support.
5223         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
5224         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
5226 2017-04-30  Bruno Haible  <bruno@clisp.org>
5228         wcsftime: New module.
5229         * lib/wchar.in.h (wcsftime): New declaration.
5230         * lib/wcsftime.c: New file.
5231         * m4/wcsftime.m4: New file.
5232         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
5233         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
5234         HAVE_WCSFTIME, REPLACE_WCSFTIME.
5235         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
5236         HAVE_WCSFTIME, REPLACE_WCSFTIME.
5237         * modules/wcsftime: New file.
5238         * doc/posix-functions/wcsftime.texi: Mention the new module.
5240 2017-04-30  Bruno Haible  <bruno@clisp.org>
5242         strftime-fixes: New module.
5243         * lib/time.in.h (strftime): New declaration.
5244         * lib/strftime-fixes.c: New file.
5245         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
5246         (gl_FUNC_STRFTIME): Remove macro.
5247         * m4/strftime-fixes.m4: New file.
5248         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
5249         REPLACE_STRFTIME.
5250         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
5251         REPLACE_STRFTIME.
5252         * modules/strftime-fixes: New file.
5253         * doc/posix-functions/strftime.texi: Mention the new module.
5255 2017-04-30  Bruno Haible  <bruno@clisp.org>
5257         mktime: Work around TZ problem on native Windows.
5258         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
5259         from the native Windows workaround.
5260         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
5261         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
5262         'guessing no'.
5263         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
5264         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
5265         NEED_MKTIME_WINDOWS.
5266         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
5267         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
5268         NEED_MKTIME_INTERNAL.
5269         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
5270         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
5271         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
5272         not REPLACE_MKTIME.
5273         * doc/posix-functions/mktime.texi: Mention the native Windows
5274         workaround.
5276 2017-04-30  Bruno Haible  <bruno@clisp.org>
5278         localtime: New module.
5279         * lib/time.in.h (localtime): Declare also if requested by module
5280         'localtime'.
5281         * lib/localtime.c: New file.
5282         * m4/localtime.m4: New file.
5283         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
5284         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
5285         * modules/localtime: New file.
5286         * doc/posix-functions/localtime.texi: Mention the new module.
5288 2017-04-30  Bruno Haible  <bruno@clisp.org>
5290         ctime: New module.
5291         * lib/time.in.h (ctime): New declaration.
5292         * lib/ctime.c: New file.
5293         * m4/ctime.m4: New file.
5294         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
5295         REPLACE_CTIME.
5296         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
5297         * modules/ctime: New file.
5298         * doc/posix-functions/ctime.texi: Mention the new module.
5300 2017-04-30  Bruno Haible  <bruno@clisp.org>
5302         gettimeofday: Provide higher resolution on native Windows.
5303         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
5304         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
5305         (initialize): Initialize it.
5306         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
5307         'struct timeval'. Don't use _ftime().
5308         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
5309         <sys/timeb.h> and _ftime.
5311 2017-04-30  Bruno Haible  <bruno@clisp.org>
5313         Document the problem with the Cygwin environment variable TZ.
5314         * doc/posix-functions/tzset.texi: Add note about TZ.
5315         * doc/posix-functions/ctime.texi: Likewise.
5316         * doc/posix-functions/localtime.texi: Likewise.
5317         * doc/posix-functions/mktime.texi: Likewise.
5318         * doc/posix-functions/strftime.texi: Likewise.
5319         * doc/posix-functions/wcsftime.texi: Likewise.
5320         * doc/pastposix-functions/ftime.texi: Likewise.
5322 2017-04-30  Bruno Haible  <bruno@clisp.org>
5324         utime-tests: New module.
5325         * tests/test-utime.c: New file, based on tests/test-utimens.h.
5326         * tests/test-utimens-common.h: Include <sys/stat.h>.
5327         * modules/utime-tests: New file.
5329 2017-04-29  Bruno Haible  <bruno@clisp.org>
5331         utime: New module.
5332         * lib/utime.in.h: Add comment for snippets.
5333         (utime): New declaration.
5334         * lib/utime.c: New file.
5335         * m4/utime.m4: New file.
5336         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
5337         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
5338         REPLACE_UTIME.
5339         * modules/utime-h (Depends-on): Add snippets.
5340         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
5341         Insert snippets.
5342         * modules/utime: New file.
5343         * doc/posix-functions/utime.texi: Mention the new module.
5345 2017-04-29  Bruno Haible  <bruno@clisp.org>
5347         utime-h: Modernize handling of 'struct utimbuf'.
5348         * lib/utime.in.h: Include next <utime.h> if it exists.
5349         (utimbuf): Define to _utimbuf on native Windows.
5350         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
5351         Set UTIME_H on native Windows.
5352         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
5353         * modules/utime-h (Depends-on): Add include_next.
5354         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
5355         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
5357         * lib/utimens.c (utimbuf): Remove fallback definition.
5358         * m4/utimens.m4 (gl_UTIMENS): Don't require
5359         gl_CHECK_TYPE_STRUCT_UTIMBUF.
5360         * m4/utimbuf.m4: Remove file.
5361         * modules/utimens (Files): Remove m4/utimbuf.m4.
5363 2017-04-29  Bruno Haible  <bruno@clisp.org>
5365         Make use of module 'utime-h'.
5366         * modules/copy-file (Depends-on): Add utime-h.
5367         * lib/copy-file.c: Assume that <utime.h> exists.
5368         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
5370         * modules/utimens (Depends-on): Add utime-h.
5371         * lib/utimens.c: Assume that <utime.h> exists.
5373 2017-04-29  Bruno Haible  <bruno@clisp.org>
5375         utime-h: New module.
5376         * m4/utime_h.m4: New file.
5377         * lib/utime.in.h: New file.
5378         * modules/utime-h: New file.
5379         * doc/posix-headers/utime.texi: Mention the new module.
5381         * tests/test-utime-h.c: New file.
5382         * modules/utime-h-tests: New file.
5384 2017-04-30  Bruno Haible  <bruno@clisp.org>
5386         Fix a few typos.
5387         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
5388         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
5389         * doc/posix-functions/fstat.texi: Fix a plural typo.
5390         * doc/posix-functions/stat.texi: Likewise.
5391         * m4/include_next.m4: Update comments.
5393 2017-04-29  Bruno Haible  <bruno@clisp.org>
5395         error: Fix mistake in 2017-04-23 commit.
5396         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
5397         assume that strerror_r returns 'int', not 'char *'.
5399 2017-04-29  Bruno Haible  <bruno@clisp.org>
5401         stat: Fix time_t values and other problems on native Windows platforms.
5402         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
5403         implementations of stat().
5404         * lib/stat.c: Include filename.h instead of dosname.h. Include
5405         malloca.h, stat-w32.h.
5406         (is_unc_root): New function.
5407         (rpl_stat): New implementation for native Windows. Remove
5408         REPLACE_FUNC_STAT_DIR code.
5409         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
5410         Don't define REPLACE_FUNC_STAT_DIR.
5411         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
5412         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
5413         (Depends-on): Remove dosname. Add filename, malloca.
5414         (configure.ac): Also compile lib/stat-w32.c.
5416 2017-04-29  Bruno Haible  <bruno@clisp.org>
5418         fstat: Fix time_t values on native Windows platforms.
5419         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
5420         * lib/stat-w32.h: New file.
5421         * lib/stat-w32.c: New file.
5422         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
5423         stat-w32.h instead.
5424         (fstat_nothrow): Remove function.
5425         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
5426         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
5427         always.
5428         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
5429         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
5430         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
5431         (configure.ac): Also compile lib/stat-w32.c.
5433 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5435         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
5436         Problem reported by Assaf Gordon and Gavin Smith in:
5437         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
5438         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
5439         #define this, too.
5441 2017-04-29  Bruno Haible  <bruno@clisp.org>
5443         strerror_r-posix: Fixes for MSVC 14.
5444         * lib/strerror_r.c: Include <stdarg.h>.
5445         (strerror_r): Provide error messages for errno values 100...140.
5446         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
5448 2017-04-28  Bruno Haible  <bruno@clisp.org>
5450         noreturn: New module.
5451         * lib/noreturn.h: New file.
5452         * modules/noreturn: New file.
5453         * tests/test-noreturn.c: New file.
5454         * modules/noreturn-tests: New file.
5455         * tests/test-noreturn-c++.cc: New file.
5456         * modules/noreturn-c++-tests: New file.
5458 2017-04-27  Bruno Haible  <bruno@clisp.org>
5460         wctype-h: Fix compilation error with the original mingw.org mingw.
5461         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
5462         HAVE_CRTDEFS_H.
5463         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
5464         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
5465         <stddef.h> instead.
5466         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
5468 2017-04-26  Pádraig Brady  <P@draigBrady.com>
5470         nap.h: Fix compilation on non windows platforms
5471         * tests/nap.h: Move misplaced endif.
5473 2017-04-26  Pádraig Brady  <P@draigBrady.com>
5474         and Paul Eggert  <eggert@cs.ucla.edu>
5476         time_rz: fix heap buffer overflow vulnerability
5477         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
5478         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
5479         whether there is enough buffer space available, thus avoiding
5480         the problematic promotion of signed to unsigned causing an invalid
5481         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
5482         the start of the buffer.
5483         * tests/test-parse-datetime.c (main): Add a test case written by
5484         Paul Eggert, which overwrites enough of the heap so that
5485         standard glibc will fail with "free(): invalid pointer"
5486         without the patch applied.
5488 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5490         xalloc: add missing integer overflow check
5491         * lib/xalloc.h (x2nrealloc): Also check for multiplication
5492         overflow when P is null.
5494 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5496         parse-datetime: make it standalone
5497         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
5498         (_GL_ATTRIBUTE_FORMAT): New macro.
5499         These are needed to get './gnulib-tool --test parse-datetime' to work.
5501 2017-04-23  Bruno Haible  <bruno@clisp.org>
5503         nap.h: Port to native Windows.
5504         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
5505         use nap_fd instead. On native Windows, close and reopen nap_fd.
5506         (nap_works): Don't compare the ctimes, because on native Windows, these
5507         are the creation times.
5508         (nap): Update.
5510 2017-04-23  Bruno Haible  <bruno@clisp.org>
5512         nap.h: Fix logic.
5513         * tests/nap.h (nap): Avoid signed integer overflow in loop.
5515 2017-04-23  Bruno Haible  <bruno@clisp.org>
5517         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
5518         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
5519         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
5520         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
5521         * lib/argp-help.c (__argp_failure): Likewise.
5523 2017-04-23  Bruno Haible  <bruno@clisp.org>
5525         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
5526         * m4/strerror_r.m4: Revert changes since 2016-10-16.
5527         * lib/strerror_r.c: Likewise.
5529 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
5531         Target a C99 subset, not a C89 subset
5532         For many years Gnulib has targeted C89 and has resisted using C99
5533         features, as some Gnulib-using programs still wanted to target
5534         C89.  As this no longer seems to be the case, relax the porting
5535         requirements to allow some C99 features.  This is merely a change
5536         to the documentation, to give other Gnulib developers a chance to
5537         weigh in on the topic.
5538         * doc/extern-inline.texi (extern inline):
5539         * doc/gnulib-readme.texi (Portability guidelines):
5540         * doc/gnulib-tool.texi (Initial import):
5541         * doc/gnulib.texi (Header files):
5542         Modernize to talk about C99 and C11 instead of C89 and C99.
5543         * doc/gnulib-readme.texi (Portability guidelines):
5544         Now a section, not merely a subsection, so that it
5545         can be split up.  Modernize a bit.
5546         (C language versions, C99 features assumed)
5547         (C99 features avoided):
5548         New sections.
5550 2017-04-23  Bruno Haible  <bruno@clisp.org>
5552         doc: New section "Modules that modify the way other modules work".
5553         * doc/gnulib.texi (Modules that modify the way other modules work): New
5554         section.
5556 2017-04-23  Bruno Haible  <bruno@clisp.org>
5558         stat-time: Update comments.
5559         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
5560         * tests/test-utimens-common.h: Add reference regarding st_ctime on
5561         Windows.
5563 2017-04-01  Bruno Haible  <bruno@clisp.org>
5565         glob: Fix more memory leaks.
5566         * lib/glob.c (glob): Free allocated memory before returning.
5567         Reported by Coverity via Tim Rühsen.
5569 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5571         poll: improve fast check for out-of-range NFD
5572         * lib/poll.c: Do not include intprops.h.
5573         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
5574         * modules/poll (Depends-on): Remove intprops.
5576         ftoastr: cite a newer paper
5577         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
5578         instead of Loitsch 2010.
5580 2017-04-22  Bruno Haible  <bruno@clisp.org>
5582         poll: Enable argument check also in the Windows implementation.
5583         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
5584         Reported by Paul Eggert.
5586 2017-04-22  Bruno Haible  <bruno@clisp.org>
5588         getlogin_r: Work around bug in Mac OS X 10.12.
5589         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
5590         bug.
5591         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
5592         given size minus 1, call getlogin_r a second time, on a larger buffer.
5593         * modules/getlogin_r (Depends-on): Add malloca.
5594         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
5596 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5598         parse-datetime: fix %z and prefer signed int
5599         %z problem reported by Pádraig Brady in:
5600         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
5601         While fixing it, I decided to prefer signed ints to size_t, as
5602         they are less error-prone (e.g., ubsan catches overflow).
5603         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
5604         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
5605         counts, since signed integers make for better debugging.
5606         (date): Don’t assume %z works in printf formats.
5607         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
5608         sizes of buffers known to be small, e.g., because we’re using snprintf.
5609         (parse_datetime2): Simplify call to debug_mktime_not_ok.
5611 2017-04-22  Bruno Haible  <bruno@clisp.org>
5613         *printf: Work around rounding bug on Mac OS X.
5614         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
5615         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
5616         Mac OS X and FreeBSD.
5617         * doc/glibc-functions/*printf.texi: Likewise.
5619 2017-04-22  Bruno Haible  <bruno@clisp.org>
5621         vasnprintf tests: Avoid warnings.
5622         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
5623         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
5624         test.
5626 2017-04-22  Bruno Haible  <bruno@clisp.org>
5628         sys_file tests: Avoid warning.
5629         * tests/test-sys_file.c (main): Add a default clause to the switch
5630         statement.
5632 2017-04-22  Bruno Haible  <bruno@clisp.org>
5634         sethostname: Update doc.
5635         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
5636         Mac OS X.
5638 2017-04-22  Bruno Haible  <bruno@clisp.org>
5640         quotearg tests: Avoid warnings.
5641         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
5642         false.
5644 2017-04-22  Bruno Haible  <bruno@clisp.org>
5646         poll: Enable argument check.
5647         * lib/poll.c: Include intprops.h.
5648         (poll): Check value of nfd correctly.
5649         * modules/poll (Depends-on): Add intprops.
5651 2017-04-22  Bruno Haible  <bruno@clisp.org>
5653         get-rusage-data: Avoid warnings on Mac OS X.
5654         * lib/get-rusage-data.c: On Mac OS X, don't define
5655         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
5656         (get_rusage_data) [Mac OS X]: Just return 0.
5658 2017-04-22  Bruno Haible  <bruno@clisp.org>
5660         xbinary-io: Fix build error.
5661         * modules/xbinary-io (Depends-on): Add gettext-h.
5662         * lib/xbinary-io.c: Include gettext.h and define _().
5663         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
5664         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
5666 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5668         parse-datetime: overflow and debug cleanups
5669         This long patch was triggered by this bug report from Ruediger Meier:
5670         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
5671         I fixed the bug he noted, then found some others nearby, and then
5672         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
5673         up some of the code to follow GNU standards while I was at it.
5674         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
5675         use c_isdigit.
5676         (EPOCH_YEAR): Remove; unused.
5677         (TM_YEAR_BASE): Now an enum rather than a macro.
5678         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
5679         time zone offset, since timezones now are in terms of seconds and
5680         not minutes.
5681         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
5682         appropriate.  Verify that intmax_t is wide enough.
5683         (time_overflow, time_zone_str): New functions, used to deal
5684         more reliably with overflow.
5685         (dbg_printf): Add printf attribute, to help catch integer width errors.
5686         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
5687         (%union, to_hour, yylex, parse_datetime2):
5688         Use intmax_t instead of long int and/or long_time_t.
5689         All uses changed.
5690         (DBGBUFSIZE): Move earlier.
5691         (relative_time, set_hhmmss, parser_control):
5692         Just use int for nanoseconds and for time zones; that’s wide enough.
5693         (parser_control): Use bool for members like year_seen that can
5694         be booleans instead of counters.  All uses changed.
5695         Remove debug_default_input_timezone; no longer needed.
5696         All uses removed.
5697         (apply_relative_time): Return a bool overflow flag.
5698         All uses changed to check for overflow.
5699         (apply_relative_time, zone, date, relunit, relunit_snumber)
5700         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
5701         Check for integer overflow portably.
5702         (str_days): Use just int for N, as it’s wide enough.
5703         Prefer 2D char arrays to arrays of char * when it looks like
5704         2D is a win on typical platforms.
5705         Prefer snprintf to strncpy/strncat, for simplicity;
5706         all buffers are smaller than INT_MAX so this is safe.
5707         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
5708         (debug_print_current_time): Don’t assume tv_nsec is of type long,
5709         as this is not true on x32.  Output "." before any nanoseconds.
5710         (debug_print_current_time, parse_datetime2):
5711         Output local zones using a more-consistent format.
5712         (debug_print_current_time, date, parse_datetime2):
5713         (main) [TEST]:
5714         Don’t assume time_t is the same width as long.
5715         (print_rel_part): New function, replacing ...
5716         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
5717         (debug_print_relative_time): Use bool for boolean.
5718         (local_zone): dsts_seen now counts only tDST instances.
5719         (date): Fix printf of size_t to use %z.  Do not assume numeric
5720         tokens have negative values merely because the context suggests
5721         a syntax with "-" separating tokens.
5722         (time_zone_hhmm): Return bool success indicator, which checks for
5723         overflow.  Store result into PC->time_zone instead.  All callers
5724         changed.
5725         (tm_year_str): New function.  Return a bool success indicator and
5726         store the result into a buffer.  All callers changed.  Output the
5727         numerically correct string even if adding 1900 to the year would
5728         overflow.
5729         (to_tm_year): New function, replacing the old to_year.  All
5730         callers changed.
5731         (tm_diff): Sync with glibc.
5732         (lookup_word): Use to_uchar instead of doing it by hand.
5733         (TZBUFSIZE): Now local to the only function that needs it.
5734         (debug_strfdatetime): Simplify now that time zones are int seconds.
5735         (debug_strfdate): Work even if tm_year + 1900 would overflow.
5736         (get_effective_timezone): Remove.  All uses removed.
5737         (parse_datetime2): Use fprintf in pieces instead of snprintfing
5738         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
5739         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
5740         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
5741         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
5742         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
5743         * modules/parse-datetime (Depends-on): Add inttypes.
5745 2017-04-21  Bruno Haible  <bruno@clisp.org>
5747         gettext-h: Avoid -Wundef warning.
5748         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
5749         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5750         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
5752 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
5754         error: Avoid "function declaration isn't a prototype" warning.
5755         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
5757 2017-04-21  Bruno Haible  <bruno@clisp.org>
5759         vasnprintf: Fix for MSVC 14.
5760         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
5761         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
5762         of !HAVE_SNPRINTF_RETVAL_C99.
5764 2017-04-21  Bruno Haible  <bruno@clisp.org>
5766         mbrtowc tests: Fix test failures on MSVC 14.
5767         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
5768         behaviour for invalid input.
5770 2017-04-21  Bruno Haible  <bruno@clisp.org>
5772         mbsinit: Fix for MSVC 14.
5773         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
5774         implementation that is in sync with mbrtowc.c. On other platforms, use
5775         an adequate ad-hoc implementation.
5777 2017-04-21  Bruno Haible  <bruno@clisp.org>
5779         Fix test-mbrtowc5.sh failure on native Windows.
5780         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
5781         "C".
5783 2017-04-21  Bruno Haible  <bruno@clisp.org>
5785         Avoid accidental use of native Windows APIs on Cygwin.
5786         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
5787         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
5788         * lib/localename.c (WINDOWS_NATIVE): Likewise.
5790 2017-04-20  Bruno Haible  <bruno@clisp.org>
5792         Remove red warnings from the generated MODULES.html.
5793         * modules/fcntl (Description): Disambiguate function references.
5794         * modules/getcwd-lgpl (Description): Likewise.
5795         * modules/hostent (Description): Likewise.
5796         * modules/servent (Description): Likewise.
5797         * modules/tempname (Description): Likewise.
5799 2017-04-20  Bruno Haible  <bruno@clisp.org>
5801         verify tests: Fix spurious failure with parallel make.
5802         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
5803         EXTRA_PROGRAMS.
5804         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
5805         * tests/test-verify-try.c: New file.
5806         * modules/verify-tests (Files): Add it.
5807         (EXTRA_PROGRAMS): Add test-verify-try.
5808         (MOSTLYCLEANFILES): Update accordingly.
5809         Reported by Adam James Stewart <ajstewart@anl.gov>.
5811 2017-04-18  Bruno Haible  <bruno@clisp.org>
5813         vma-iter: Fix compilation error on Solaris 7.
5814         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
5815         like on IRIX, OSF/1.
5816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5818 2017-04-18  Bruno Haible  <bruno@clisp.org>
5820         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
5821         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
5822         included.
5823         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
5824         <sys/procfs.h>.
5825         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
5826         <sys/procfs.h> cannot be included.
5827         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5829 2017-04-18  Bruno Haible  <bruno@clisp.org>
5831         getopt-gnu: Add comments.
5832         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
5833         * modules/getopt-gnu (configure.ac): Likewise.
5835 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
5837         regex: port better to Solaris 10
5838         Solaris 10 <locale.h> includes <libintl.h>, which #defines
5839         gettext, and this causes a double #define.
5840         Problem reported by Gavin Smith in:
5841         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
5842         * lib/regex_internal.h (gettext): #undef before #defining.
5844 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
5846         intprops: improve comments
5847         * lib/intprops.h: Improve and shorten commentary.
5848         For the record, if we ever run into a pedantic compiler that
5849         behaves differently from GCC when converting an out-of-range value
5850         to a signed integer, we can work around the problem with something
5851         like the following code, where UCT is the signed counterpart of T
5852         (UCT is sometimes narrower than UT) and all callers are changed
5853         accordingly:
5854         #if __SUNPRO_C <= 0x5120
5855         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
5856            ((t) ((ut) (a) op (ut) (b)))
5857         #else
5858         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
5859            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
5860             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
5861                + TYPE_MINIMUM (t)) \
5862             : (t) (uct) ((ut) (a) op (ut) (b)))
5863         #endif
5865 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
5867         intprops: try to avoid tickling similar bugs
5868         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
5869         needs to be the same width as T; it can be wider.
5870         Change callers so that UT is at least as wide as unsigned int,
5871         as I suspect that this is less likely to run into compiler bugs.
5873         intprops: port to Oracle Studio 12.3 x86
5874         Problem reported by Gavin Smith in:
5875         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
5876         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
5877         Convert unsigned to signed via the usual rather than the standard way,
5878         to avoid a compiler bug in Oracle Studio 12.3 x86.
5880 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5882         getopt: prefer - to _ in new file names
5883         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
5884         * lib/getopt-core.h: Rename from lib/getopt_core.h.
5885         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
5886         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
5887         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
5888         All uses changed.
5890         getopt: port recent getopt changes to macOS
5891         Problem reported by Harald Maier (Bug#26398).
5892         The macOS C compiler uses __nonnull for its own purposes and that
5893         clashes with glibc's __nonnull.
5894         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
5895         * lib/getopt_cdefs.in.h (__nonnull): Remove.
5896         * lib/getopt_core.h (getopt):
5897         * lib/getopt_ext.h (getopt_long, getopt_long_only):
5898         Use _GL_ARG_NONNULL, not __nonnull.
5899         * lib/unistd.in.h: Move snippet hooks to before where the getopt
5900         .h files are included, so that _GL_ARG_NONNULL is defined in time.
5901         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
5902         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
5904 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5906         getopt-gnu: omit some duplicate code
5907         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
5908         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
5909         gnulib-tool already does this.
5910         * modules/getopt-gnu (configure.ac): Omit code duplicated from
5911         getopt-posix, which we depend on.
5913         getopt-posix: use angle-bracket include
5914         * lib/getopt1.c: Include <config.h>, not "config.h".
5916 2017-04-06  Zack Weinberg  <zackw@panix.com>
5918         getopt: annotate files with relationship to glibc
5920         As the final act in this patchset, adjust the message at the top of
5921         each file to indicate which files are synced with glibc.  (This has
5922         already been done for most of the headers.)
5924         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
5925         Mention in top-of-file boilerplate that these files are shared
5926         between glibc and gnulib.
5929         getopt: split up getopt.in.h and eliminate __need_getopt
5931         Over in glibc, all of the __need macros are being phased out in favor
5932         of small headers that declare only the necessary components, as this
5933         is much simpler and less prone to bugs.  As getopt is shared with
5934         glibc, gnulib needs to do the same for __need_getopt.
5936         __need_getopt is misnamed; what it really means is "we want only the
5937         getopt features specified in POSIX, not the GNU extensions".  glibc
5938         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
5939         these files can be shared verbatim with gnulib.  The portability
5940         wrapper, on the other hand, they have renounced altogether; glibc's
5941         getopt.h will no longer be shared with gnulib at all.  In exchange,
5942         certain glibc-specific quirks (having to do with __posix_getopt) no
5943         longer need appear in gnulib's headers at all.
5945         This patch merges getopt_core.h and getopt_ext.h from glibc, and
5946         splits up the current gnulib-side portability wrapper into three
5947         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
5948         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
5949         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
5950         unistd.in.h just use them.  All new files are clearly marked with
5951         whether they are shared with glibc.
5953         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
5954         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
5955         with glibc, and ...
5956         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
5957         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
5958         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
5959         instead of defining __need_getopt and including the full getopt.h.
5961         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
5962         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
5963         * modules/getopt-posix (Files): Add new headers and sort list.
5964         (Depends-on): No longer need snippet/arg-nonnull.
5965         (Makefile.am): Generate getopt_cdefs.h.
5968         getopt: better handling of ambiguous options
5970         glibc's getopt uses alloca to construct a linked list of possibilities
5971         for an "ambiguous" long option.  In gnulib, malloc should be used
5972         instead.  Providing for both cases complicates things a fair bit.
5974         This patch rewrites ambiguous-option handling to use a boolean vector
5975         instead of a linked list.  There is then only one allocation that
5976         might need freeing; in glibc it can honor __libc_use_alloca as usual,
5977         and in gnulib we define __libc_use_alloca to always be false, so we
5978         don't need ifdefs in the middle of the function.  This should also be
5979         slightly more efficient in the normal case of long options being fully
5980         spelled out -- I think most people aren't even aware they _can_
5981         sometimes abbreviate long options.
5983         One interesting consequence is that the list of possibilities is now
5984         printed in exactly the order they appear in the list of long options,
5985         instead of the first possibility being shuffled to the end.
5987         (The patch looks bigger than it really is because there's a fair bit
5988         of reindentation and code rearrangement.)
5990         * lib/getopt.c: When used standalone, define __libc_use_alloca
5991         as always false and alloca to abort if called.
5992         (process_long_option): Rewrite handling of ambiguous long options
5993         to use a single boolean vector, not a linked list; use
5994         __libc_use_alloca to decide whether to allocate this using alloca.
5997         getopt: refactor long-option handling
5999         There were two copies of the bulk of the code to handle long options.
6000         Now there is only one.
6002         This change temporarily removes the logic to avoid using alloca when
6003         standalone; the next patch in the series will restore it.
6005         * lib/getopt.c (process_long_option): New function split out
6006         from _getopt_internal_r.
6007         (_getopt_internal_r): Replace both copies of the long-option
6008         processing code with calls to process_long_option.
6011         getopt: tidy up _getopt_initialize a bit
6013         _getopt_data.__posixly_correct is completely redundant to
6014         _getopt_data.__ordering, and some work that logically belongs in
6015         _getopt_initialize was being done by _getopt_internal_r, making the
6016         code harder to understand.
6018         As a side effect, getenv will no longer be called if the first
6019         character of the options string is '+' or '-', which is probably a
6020         Good Thing.  (Perhaps we should have a flag character that
6021         specifically asks for the permutation behavior?)
6023         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
6024         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
6025         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
6028         getopt: merge from glibc: repetition reduction
6030         The definitions of the entry point functions 'getopt' and
6031         '__posix_getopt' can be made substantially less repetitive with a
6032         helper macro.
6034         While I was merging the const-correctness changes from gnulib into
6035         glibc I noticed there are still some unnecessary casts in
6036         _getopt_internal_r.
6038         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
6039         a macro.  Consistently cast 'argv' to 'char **' when calling
6040         _getopt_internal.
6041         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
6044         getopt: clean up error reporting
6046         getopt can print a whole bunch of error messages, and when used
6047         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
6048         cancellation point and getopt isn't, and also applying fprintf to a
6049         stream in wide-character mode is not allowed.  So every single error
6050         reporting case has an #ifdef _LIBC block in which it calls internal
6051         libc functions instead.  The counterpart patch series in glibc makes
6052         it possible to simplify all of that down to a set of #defines at the
6053         top of the file; core code is written as if it is safe to just call
6054         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
6055         call any *other* stdio functions.)
6057         * lib/getopt.c: When _LIBC is defined, define fprintf to
6058         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
6059         to _IO_funlockfile.  When neither _LIBC nor
6060         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
6061         funlockfile as no-ops.
6062         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
6063         standalone error-printing code can now be used for libc as well.
6064         Add an flockfile/funlockfile pair around one case where the error
6065         message is printed in several chunks.  Don't use fputc.
6068         getopt: fix fencepost error in ambiguous-W-option handling
6070         getopt_long contains an undocumented (AFAICT) feature in which, if you
6071         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
6072         treated as equivalent to '--foo'.  This is implemented with a partial
6073         second copy of the code for handling long options, and that code
6074         increments optind one too many times when recovering from an ambiguous
6075         abbreviated option, which can cause the main loop to walk past the end
6076         of argv and crash.
6078         I discovered this while writing a test case that tries to exercise all
6079         of getopt's error reporting paths; I wouldn't be surprised to learn
6080         that this feature is never used by real applications.
6082         * lib/getopt.c (_getopt_internal_r): Don't increment
6083         d->optind a second time when reporting ambiguous -W options.
6086         getopt: clean up getopt.c and getopt1.c file headers
6088         In getopt.c, there is no need to include wchar.h at all, and it is
6089         safe nowadays to assume that stdlib.h does declare getenv (several
6090         other gnulib modules make this assumption).
6092         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
6093         by using "" inclusions consistently, and there is no actual need to
6094         include stdlib.h (except in the #ifdef TEST block, where it should be
6095         unconditional), nor to provide a backup definition of NULL at all.
6097         * lib/getopt1.c: Simplify #ifdeffage at top of file.
6098         Move inclusion of stdlib.h to #ifdef TEST block and make
6099         unconditional.  Do not define NULL.
6100         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
6101         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
6102         * modules/getopt-gnu, modules/getopt-posix: Don't call
6103         gl_PREREQ_GETENV.
6106         getopt: harmonize comments with glibc
6108         The comments explaining how the behavior of 'getopt' varies depending
6109         on whether it's the standalone version and whether there are special
6110         characters at the beginning of the options string were inconsistent
6111         between gnulib and glibc, and also out of sync with the code.
6113         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
6116         getopt: remove USE_NONOPTION_FLAGS
6118         getopt includes code to parse an environment variable named
6119         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
6120         in decimal); but all of it has been #ifdefed out since 2001, with no
6121         official way to turn it back on.
6123         According to commentary in glibc's config.h.in, bash version 2.0
6124         set this environment variable to indicate argv elements that were
6125         the result of glob expansion and therefore should not be treated
6126         as options, but the feature was "disabled later" because "it
6127         caused problems".  According to bash's CHANGES file, "later" was
6128         release 2.01; it gives no more detail about what the problems
6129         were.
6131         Version 2.0 of bash was released on the last day of 1996, and version
6132         2.01 in June of 1997.  Twenty years later, I think it is safe to
6133         assume that this environment variable isn't coming back.
6135         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
6136         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
6137         __libc_argc and __libc_argv externs, which were only used by
6138         #ifdef USE_NONOPTION_FLAGS blocks.
6141         getopt: tabify, in preparation for merge with glibc
6143         glibc sticks to the GNU default of indenting with a mix of
6144         8-column tabs and spaces; make the gnulib copy match.
6146         getopt.h is not included because it is *not* going to be merged in its
6147         present form.
6149         * getopt.c, getopt1.c, getopt_int.h: Tabify.
6151 2017-04-02  Bruno Haible  <bruno@clisp.org>
6153         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
6154         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
6155         like it was done in modules/relocatable-lib on 2011-05-21 and in
6156         modules/relocatable-prog on 2011-08-15.
6157         Reported by Reuben Thomas <rrt@sc3d.org>.
6159 2017-03-31  Bruno Haible  <bruno@clisp.org>
6161         glob: Fix invalid free() call.
6162         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
6163         static storage to home_dir.
6164         Reported by Coverity via Tim Rühsen.
6166 2017-03-31  Bruno Haible  <bruno@clisp.org>
6168         glob: Fix memory leaks.
6169         * lib/glob.c (glob): Free allocated memory before returning.
6170         Reported by Coverity via Tim Rühsen.
6172 2017-03-31  Bruno Haible  <bruno@clisp.org>
6174         md5, sha1, sha256, sha512: Add comments regarding correctness.
6175         * lib/md5.h (buflen): Add comments regarding range.
6176         * lib/sha1.h (buflen): Likewise.
6177         * lib/sha256.h (buflen): Likewise.
6178         * lib/sha512.h (buflen): Likewise.
6179         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
6180         * lib/sha1.c (sha1_process_bytes): Likewise.
6181         * lib/sha256.c (sha256_process_bytes): Likewise.
6182         * lib/sha512.c (sha512_process_bytes): Likewise.
6183         Reported by Coverity via Tim Rühsen.
6185 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
6187         getopt: merge from glibc
6188         This does not change anything substantial; it merely simplifies
6189         hypothetical merges back to glibc.
6190         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
6191         Change copyright notice to match what is in glibc.
6192         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
6193         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
6194         __open_memstream rather than open_memstream and __glibc_likely
6195         instead of __builtin_expect.
6196         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
6198 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6200         dfa: make [0-9] faster in non-C locales
6201         Problem reported by John P. Linderman (Bug#26193).
6202         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
6203         If both ends of the range are ASCII digits, do not worry about
6204         multi-character collating sequences and the like.  Be consistent
6205         about using isalpha as a precondition for setbit_case_fold_c.
6207 2017-03-19  Bruno Haible  <bruno@clisp.org>
6209         lock: Fix compilation error with HP-UX IA64 cc.
6210         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
6211         weak on non-glibc platforms.
6213 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6215         stdalign: tweak version# and test for HP-UX IA64
6216         Problems reported by Bruno Haible in:
6217         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
6218         * lib/stdalign.in.h (_Alignas):
6219         * m4/stdalign.m4 (gl_STDALIGN_H):
6220         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
6221         used octal (as that is how they document it), but it is decimal in
6222         practice now and the ancient implementations no longer matter.
6223         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
6225 2017-03-19  Bruno Haible  <bruno@clisp.org>
6227         vma-iter: Add support for Solaris.
6228         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
6229         approach.
6230         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
6231         * lib/get-rusage-as.c: Update comment about Solaris.
6232         * lib/get-rusage-data.c: Likewise.
6234 2017-03-19  Bruno Haible  <bruno@clisp.org>
6236         vma-iter: Prefer HP-UX specific API on HP-UX.
6237         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
6238         * lib/vma-iter.h: Update.
6239         Just in case HP-UX ever implements mquery().
6241 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
6243         stdalign: restore previous behavior for HP-UX IA64
6244         See Bruno Haible's email in:
6245         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
6246         which cites p 150 of a manual saying that 'aligned' works on Itanium.
6247         * lib/stdalign.in.h (_Alignas):
6248         Assume the '061200' applies to Itanium, not to PA-RISC.
6249         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
6251 2017-03-17  Bruno Haible  <bruno@clisp.org>
6253         stat-time, timespec: Support use of the header files in C++ mode.
6254         * lib/stat-time.h: Add "C" linkage declaration.
6255         * lib/timespec.h: Likewise.
6257 2017-03-17  Bruno Haible  <bruno@clisp.org>
6259         stdalign: Make it work with HP-UX cc.
6260         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
6261         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
6262         for HP-UX cc.
6264 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
6266         flexmember: try to detect HP-UX 11.31 cc bug
6267         Problem reported by Bruno Haible in:
6268         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
6269         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6270         Attempt to detect bug in HP-UX 11.31 cc.
6272 2017-03-16  Bruno Haible  <bruno@clisp.org>
6274         stdint: Fix test compilation failure with HP-UX 11 cc.
6275         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
6276         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
6277         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
6278         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
6280 2017-03-14  Bruno Haible  <bruno@clisp.org>
6282         gnulib-tool: Don't produce a tests directory with only snippet .h files.
6283         * gnulib-tool (func_modules_transitive_closure_separately): If
6284         testsrelated_modules ends up with no "real" modules, aside from
6285         modules with applicability 'all', set it to empty.
6287 2017-03-14  Bruno Haible  <bruno@clisp.org>
6289         vma-iter: Add support for HP-UX.
6290         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
6291         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
6292         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
6293         * lib/get-rusage-as.c: Update comment about HP-UX.
6294         * lib/get-rusage-data.c: Likewise.
6295         (get_rusage_data): Use get_rusage_data_via_setrlimit.
6297 2017-03-14  Bruno Haible  <bruno@clisp.org>
6299         limits-h: Make it work with HP-UX cc.
6300         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
6301         defined.
6303 2017-03-14  Bruno Haible  <bruno@clisp.org>
6305         Fix test failures on DragonFlyBSD.
6306         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
6307         * tests/test-select.h (test_bad_fd): Likewise.
6308         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
6310 2017-03-14  Bruno Haible  <bruno@clisp.org>
6312         freadahead: Silence warning on DragonFlyBSD.
6313         * lib/freadahead.c (__sreadahead): Declare ourselves.
6315 2017-03-14  Bruno Haible  <bruno@clisp.org>
6317         vma-iter: Add comment about AIX.
6318         * lib/vma-iter.c: Add comment about why this module is not implemented
6319         on AIX.
6321 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6323         snippets: move unadjusted snippet sources to lib
6324         Problem reported by Michal Privoznik in:
6325         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
6326         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
6327         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
6328         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
6329         * lib/unused-parameter.h: Rename from
6330         build-aux/snippet/unused-parameter.h.
6331         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
6332         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
6333         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
6334         * modules/snippet/c++defs (Files:, CXXDEFS_H):
6335         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
6336         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
6337         Adjust to file renamings.
6339 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
6341         gnulib-tool: don't automatically distribute files from top/
6342         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
6343         not distribute top/README-release by default, don't distribute files
6344         from top/ unconditionally.
6345         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
6346         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
6348 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6350         gnulib-tool: fix typo in comment output
6351         * gnulib-tool (func_import): Fix typo with previous change.
6353         snippets: work around GNU Make 3.82 VPATH
6354         When using 'gnulib-tool --gnu-make' on Emacs, and building
6355         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
6356         an out-of-source (VPATH) build failed because the sans-copyright
6357         snippet file was not built before the file that used it.
6358         Presumably this is some sort of VPATH thing.  Work around the
6359         problem by using the original snippet, i.e., don’t bother to
6360         remove its copyright notice.
6361         * modules/snippet/_Noreturn, modules/snippet/link-warning:
6362         Don’t assume Automake in comments.  Omit long-incorrect comment.
6363         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
6364         (MOSTLYCLEANFILES):
6365         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
6366         (MOSTLYCLEANFILES):
6367         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
6368         (MOSTLYCLEANFILES):
6369         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
6370         (MOSTLYCLEANFILES):
6371         Remove.
6372         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
6373         * modules/snippet/c++defs (CXXDEFS_H):
6374         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
6375         * modules/snippet/warn-on-use (WARN_ON_USE_H):
6376         Don’t bother to remove the copyright notice; just use the
6377         original snippet as-is.
6379 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
6381         gnulib-tool: minor --gnu-make fixups
6382         * gnulib-tool (func_emit_lib_Makefile_am):
6383         Remove useless code that was a blind alley during implementation.
6384         Problem reported by Thien-Thi Nguyen in:
6385         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
6386         (func_import): Note the "--gnu-make" option in the output comment.
6388 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
6390         gnulib-tool: new option --gnu-make
6391         This is for applications like GNU Emacs that use GNU Make
6392         features instead of Automake.
6393         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
6394         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
6395         Do not assume Automake.
6396         * gnulib-tool (func_determine_path_separator)
6397         (func_modules_transitive_closure, func_update_file)
6398         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
6399         (func_import): Add support for --gnu-make.
6401 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
6403         gnulib-common.m4: avoid aclocal.m4 bloat
6404         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
6405         Hide AM_PROG_AR from aclocal, so that aclocal does not
6406         install irrelevant macro definitions into aclocal.m4.
6408 2017-03-10  Bruno Haible  <bruno@clisp.org>
6410         vma-iter: Let callers know about error.
6411         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
6412         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
6414 2017-03-05  Bruno Haible  <bruno@clisp.org>
6416         Fix value of LD for 64-bit compilers on AIX.
6417         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
6418         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
6420 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
6422         dtotimespec: simplify
6423         * lib/dtotimespec.c (dtotimespec): Simplify.
6425 2017-03-04  Bruno Haible  <bruno@clisp.org>
6427         test-calloc-gnu: Reenable test also for GCC 7.
6428         * tests/test-calloc-gnu.c (eight): New function.
6429         (main): Don't skip test; use eight() instead.
6431 2017-03-04  Jim Meyering  <meyering@fb.com>
6433         test-calloc-gnu: port to GCC7
6434         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
6435         that attempts to calloc more than SIZE_MAX bytes, because GCC7
6436         and newer would detect that at compilation time.
6438 2017-03-04  Bruno Haible  <bruno@clisp.org>
6440         tests: Avoid compiler warning about uses of null_ptr.
6441         * tests/null-ptr.h: New file.
6442         * tests/test-canonicalize.c: Include null-ptr.h.
6443         (null_ptr): Remove function.
6444         * tests/test-canonicalize-lgpl.c: Likewise.
6445         * tests/test-memmem.c: Likewise.
6446         * tests/test-ptsname_r.c: Likewise.
6447         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
6448         * modules/canonicalize-lgpl-tests: Likewise.
6449         * modules/memmem-tests: Likewise.
6450         * modules/ptsname_r-tests: Likewise.
6451         Reported by Jim Meyering.
6453 2017-03-03  Bruno Haible  <bruno@clisp.org>
6455         doc: Mention Mac OS X deficiencies regarding semaphores.
6456         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
6457         * doc/posix-functions/sem_destroy.texi: Likewise.
6458         * doc/posix-functions/sem_getvalue.texi: Likewise.
6460 2017-03-03  Bruno Haible  <bruno@clisp.org>
6462         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
6463         Reported by Assaf Gordon <assafgordon@gmail.com> via
6464         Pádraig Brady <P@draigBrady.com>.
6465         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
6466         semaphores.
6467         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
6468         (atomic_int_semaphore): New macro.
6470 2017-02-28  Bruno Haible  <bruno@clisp.org>
6472         perror tests: Tweak for z/OS.
6473         Reported by Daniel Richard G. <skunk@iskunk.org>.
6474         * tests/test-perror.sh: Don't fail z/OS style perror output.
6476 2017-02-26  Bruno Haible  <bruno@clisp.org>
6478         nproc: Refactor large function.
6479         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
6480         from num_processors.
6481         (num_processors): In this function, only deal with OMP.
6483 2017-02-26  Pádraig Brady  <P@draigBrady.com>
6485         nproc: adjust handling of OpenMP environment variables
6486         to match the return value from omp_get_num_threads(), i.e.:
6487          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
6488          - Treat 0 as an invalid value and ignore
6489         Also remove the call to omp_get_num_threads() because
6490         it's ineffective without the omp pragmas in place.
6491         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
6492         so that it can be ignored.
6493         (num_processors): Honor OMP_THREAD_LIMIT even without
6494         OMP_NUM_THREADS being set.  Also fix a typo in the environment
6495         variable being checked, from the previous recent commit.
6497 2017-02-26  Pádraig Brady  <P@draigBrady.com>
6499         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
6500         * lib/nproc.c (parse_omp_threads): A new function refactored
6501         from num_processors() to support parsing both of the
6502         above environment variables.
6503         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
6504         to accurately reflect the current OpenMP nesting level.
6505         Also support the OMP_THREAD_LIMIT environment variable
6506         to limit the max value determined from OMP_NUM_THREADS.
6507         * modules/nproc: Depend on minmax header.
6508         Suggested by Oliver Heimlich.
6510 2017-02-25  Bruno Haible  <bruno@clisp.org>
6512         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
6513         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
6515 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6517         ftoastr: port to -Wdouble-promotion
6518         Work around -Wdouble-promotion false alarm in recent GCCs.
6519         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
6520         (ftoastr_snprintf, FTOASTR): Use it.
6522 2017-02-21  Bruno Haible  <bruno@clisp.org>
6524         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
6525         Reported by Rene Saavedra <rennes@openmailbox.org> in
6526         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
6527         * lib/glthread/lock.h: On glibc systems without
6528         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
6529         implementation of rwlocks.
6530         * lib/glthread/lock.c: Likewise.
6532 2017-02-20  Bruno Haible  <bruno@clisp.org>
6534         lock tests: Fix build failure on z/OS.
6535         Reported by Daniel Richard G. <skunk@iskunk.org>.
6536         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
6537         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
6538         exist.
6540 2017-02-19  Bruno Haible  <bruno@clisp.org>
6542         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
6543         This helps when CC=clang.
6544         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
6545         of /usr/bin/gcc.
6547         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
6548         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
6550 2017-02-19  Bruno Haible  <bruno@clisp.org>
6552         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
6553         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
6554         --with-tests --single-configure is specified.
6556 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
6558         users.txt: Update links, use HTTPS where possible
6559         * users.txt: Updated to HTTPS where possible,
6560         fixed some links to new locations.
6562 2017-02-16  Bruno Haible  <bruno@clisp.org>
6564         xbinary-io: Fix inlining.
6565         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
6567 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6569         xbinary-io: rename from xsetmode
6570         This patch is taken from suggestions by Bruno Haible in:
6571         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
6572         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
6573         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
6574         not ENOTTY, when it is an inappropriate device.
6575         * lib/binary-io.h (SET_BINARY): Resurrect.
6576         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
6577         (xset_binary_mode_error): Rename from xsetmode_error.
6578         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
6579         (xset_binary_mode): Rename from xsetmode.
6580         All uses changed.
6581         * modules/xbinary-io: Rename from modules/xsetmode.
6582         Update file names.
6583         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
6584         * NEWS: Update to match revised behavior.
6586 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6588         tests: Adjust to recent SET_BINARY change
6589         * tests/test-binary-io.c (main):
6590         * tests/test-binary-io.sh: Remove test for SET_BINARY.
6591         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
6592         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
6593         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
6595         xsetmode: new module
6596         This is to fix a problem noted by Eric Blake.
6597         Code was using xfreopen to change files to binary mode, but this
6598         fails for stdout when in append mode.  Such code should use
6599         xsetmode instead.
6600         * NEWS: Document incompatible changes to binary-io module.
6601         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
6602         New function.
6603         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
6604         (set_binary_mode): New function, which also checks for tty.
6605         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
6607 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
6609         headers: fix begin-end typos
6610         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
6611         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
6613         selinux-h: port to PGI 16.10
6614         * lib/se-selinux.in.h: Don't assume that include_next skips over
6615         duplicate -I DIR options.
6617         argp: port to PGI 16.10
6618         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
6620 2017-02-13  Darshit Shah  <darnir@gnu.org>
6622         unicase: Update function protoype to match definition.
6623         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
6624         uses 'size_t' as the datatype for the 'len' parameter in the functions
6625         it generates. Update the prototype specified here to match the newly
6626         generated function.
6628 2017-02-12  Bruno Haible  <bruno@clisp.org>
6630         times test: Avoid gcc warnings on Linux/x32.
6631         * tests/test-times.c (main): Really cast printf arguments from clock_t
6632         to 'long int'.
6634 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6636         glob: port better to emscripten
6637         Problem reported by Bruno Haible in:
6638         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
6639         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
6641 2017-02-11  Bruno Haible  <bruno@clisp.org>
6643         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
6644         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
6645         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
6646         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
6647         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
6648         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
6649         Distinguish hppa64 from hppa.
6651 2017-02-10  Bruno Haible  <bruno@clisp.org>
6653         search: Don't assume that tsearch() exists if 'VISIT' is defined.
6654         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
6655         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
6656         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
6658 2017-02-09  Bruno Haible  <bruno@clisp.org>
6660         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
6661         * doc/gnulib.texi (Libtool and Windows): Recommend
6662         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
6663         Reported by Reuben Thomas <rrt@sc3d.org>.
6665 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6667         stddef-tests: port to SIZE_MAX <= INT_MAX
6668         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
6669         Do not assume that INT_MAX < SIZE_MAX.
6671 2017-02-01  Bruno Haible  <bruno@clisp.org>
6673         lock tests: Fix link error.
6674         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
6675         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6677 2017-01-31  Bruno Haible  <bruno@clisp.org>
6679         lock: Fix link error (regression from 2017-01-05).
6680         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
6681         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
6682         pthread_rwlockattr_destroy weak.
6683         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6685 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6687         Port to PGI 16.10 x86-64
6688         This patch fixes one real bug in gl_anylinked_list2.h, along with
6689         some minor glitches that are not bugs.  It does not silence PGI’s
6690         thousands of bogus warnings when compiling test-intprops.c.
6691         Fortunately, the warnings do not cause a failure.
6692         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
6693         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
6694         My goodness, PGI goes back a long ways - this predates C89!
6695         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
6696         For example, ASYNCSAFE (const void *) should expand to
6697         ‘const void *volatile’, not to ‘volatile const void *’.
6698         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
6699         * lib/verify.h (verify) [!__GNUC__]:
6700         Use shorter albeit meaningless string to bypass silly compiler limits.
6701         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
6702         * tests/nan.h (NaNf, NaNd, NaNl):
6703         Use static functions to avoid misguided compiler diagnostics.
6704         Is there some reason we don’t use static functions on all platforms?
6706 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
6708         parse-datetime: handle timezones reentrantly
6709         This API change was prompted by a report by Pádraig Brady in:
6710         https://bug.debian.org/851934#10
6711         To help fix the bug, make parse_datetime2 more reentrant.
6712         * NEWS: Document this incompatible change.
6713         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
6714         Add two arguments, the timezone and the timezone name.
6715         All callers changed.  If TZ="..." is specified, use it for
6716         calculating defaults.
6717         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
6718         this code should be usable in a library.
6719         (mktime_ok, get_effective_timezone):
6720         Accept timezone arg too.  All callers changed.
6721         (get_tz): Remove.
6722         (get_effective_timezone): Check for failures.
6724 2017-01-20  Eric Blake  <eblake@redhat.com>
6726         localename: port to cygwin 2.6
6727         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
6728         Cygwin.
6729         * modules/localename (Depends-on): Add extensions, since
6730         NL_LOCALE_NAME() is not visible without it.
6732 2017-01-17  Pádraig Brady  <P@draigBrady.com>
6734         parse-datetime: fix dependence on AC_PROG_SED
6735         * modules/parse-datetime: Use `sed` directly like all other modules.
6736         Reported by J William Piggott
6738 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
6740         intprops: update doc URLs
6741         * doc/intprops.texi (Integer Range Overflow): Update URLs.
6743 2017-01-16  Bruno Haible  <bruno@clisp.org>
6745         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
6746         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
6747         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
6748         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
6749         distinguish s390 and s390x.
6750         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
6751         * NEWS: Mention the change regarding 'armel'.
6753 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
6755         localeinfo: case_folded_counterparts and WEOF
6756         * NEWS: Document this.
6757         * lib/localeinfo.c (case_folded_counterparts):
6758         First arg is now wint_t, not wchar_t.  This generalizes the
6759         function to also work on WEOF, where it returns 0.
6761         dfa: port to gcc -fsanitize=undefined
6762         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
6763         as this runs afoul of gcc -fsanitize=undefined.
6765 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
6767         strftime: %z is -00 if unknown
6768         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
6769         the caller's responsibility to set 'negative_number'.  All uses changed.
6770         (__strftime_internal): Put '-' before a zero UTC offset if the time
6771         zone abbreviation starts with "-", which is the recently-introduced
6772         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
6773         * tests/test-strftime.c: Test for this.
6775 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6777         dfa: port to older GCC
6778         Problem reported by Assaf Gordon in:
6779         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
6780         * modules/c99: New module.  This merely attempts to use the latest
6781         C version, which should be enough to solve this particular problem.
6782         The idea is to document which Gnulib modules assume C99 or later.
6783         * modules/dfa (Depends-on): Add it.
6785 2017-01-10  Bruno Haible  <bruno@clisp.org>
6787         Update DEPENDENCIES.
6788         * DEPENDENCIES: List only https URLs. Update recommended version for
6789         autoconf, automake, gperf.
6791 2017-01-10  Jim Meyering  <meyering@fb.com>
6793         maint.mk: enforce spelling of "timestamp" (i.e., no space)
6794         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
6795         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
6797 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6799         dfa: minor simplification with emptyset
6800         * lib/dfa.c (build_state): Simplify by using emptyset.
6802 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6804         dfa: shrink constraints from 4 bits to 3
6805         * lib/dfa.c (newline_constraint, letter_constraint)
6806         (other_constraint, prev_newline_dependent)
6807         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
6808         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
6809         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
6810         Constraints need only 3 bits, not 4.  Using smaller integers
6811         shrinks the code a bit and makes grep a tad faster on x86-64.
6813         dfa: omit unnecessary ptrdiff_t check
6814         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
6815         overflow, since xnmalloc does that now.
6817         dfa: omit unnecessary allocation
6818         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
6819         an all-zero follow set works just fine.
6821         dfa: omit unused local
6822         * lib/dfa.c (build_state): Fix up recent change.
6824         maint: remove stray .texi files
6825         Although these were superseded by other files like
6826         doc/posix-functions/ctime.texi, the old files were not removed.
6827         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
6829 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
6831         getprogname: fix port to IRIX
6832         * lib/getprogname.c (getprogname) [__sgi]:
6833         Don't dump core if malloc returns NULL.
6835         dfa: fix reallocation bug when matching newlines
6836         Problem reported for sed by S. Gilles (Bug#25390).
6837         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
6838         (dfastate): Reallocate before moving any newline transition ...
6839         (build_state): ... instead of reallocating here, where it is too late.
6841 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
6843         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
6844         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
6846 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
6848         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
6849         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
6851 2017-01-07  Bruno Haible  <bruno@clisp.org>
6853         stdioext: Port to Minix 3.2 and newer.
6854         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
6855         * lib/fseeko.c (fseeko): Likewise.
6856         Reported by Nelson Beebe via Paul Eggert.
6858 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6860         getprogname: port to IRIX
6861         * lib/getprogname.c (getprogname): Port to IRIX.
6862         Based on an idea by Bastien Roucariès at:
6863         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
6864         via code from Bruno Haible at:
6865         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
6867         localename-tests: port to NetBSD 7
6868         Problem reported by Nelson H. F. Beebe.
6869         * tests/test-localename.c:
6870         Test newlocale and uselocale only if both exist.
6872         glob, intprops, xalloc: work around Clang bug
6873         Work around LLVM bug 16404, which is still not fixed.
6874         https://llvm.org/bugs/show_bug.cgi?id=16404
6875         Problem reported by Nelson H. F. Beebe.
6876         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
6877         Remove.
6878         * lib/glob.c (size_add_wrapv):
6879         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
6880         * lib/xalloc-oversized.h (xalloc_oversized):
6881         Do not use overflow builtins if Clang.
6883         dfa: fix 'return' typo
6884         Problem reported by Nelson H. F. Beebe.
6885         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
6887 2017-01-05  Pádraig Brady  <P@draigBrady.com>
6889         parse-datetime: fix generated paths for coverage files
6890         * modules/parse-datetime: Adjust the paths for parse-datetime.y
6891         within parse-datetime.c, so that gcc generates appropriate .gcno
6892         files, allowing lcov to proceed without error.  Previously it
6893         would error trying to find "lib/lib/parse-datetime.y".
6895 2017-01-05  Pádraig Brady  <P@draigBrady.com>
6897         maint.mk: support parallel execution of coverage
6898         * top/maint.mk (coverage): Run dependencies serially,
6899         thus supporting parallel processing of each one,
6900         particularly build-coverage, which builds and runs tests.
6902 2017-01-05  Bruno Haible  <bruno@clisp.org>
6904         lock tests: Prefer semaphore over mutex.
6905         * tests/test-lock.c (USE_SEMAPHORE): New constant.
6906         (struct atomic_int, init_atomic_int, get_atomic_int_value,
6907         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
6908         Suggested by Torvald Riegel <triegel@redhat.com>.
6910 2017-01-05  Bruno Haible  <bruno@clisp.org>
6912         lock: Provide guarantee to avoid writer starvation for rwlocks.
6913         The rationale is: 1) Read-preferring read-write locks are prone to
6914         writer starvation if the number of reader threads multiplied by the
6915         percentage of time they have the lock held is too high. 2) Write-
6916         preferring read-write locks are the only reliable way to avoid this.
6917         3) There have been reports of 'test-lock' hanging on glibc systems
6918         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
6919         and glibc indeed implements read-preferring rwlocks by default, see
6920         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
6921         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
6922         * m4/pthread_rwlock_rdlock.m4: New file.
6923         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
6924         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
6925         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
6926         of rwlock initialization on glibc systems without
6927         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
6928         of rwlocks altogether on non-glibc systems without
6929         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
6930         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
6931         * lib/glthread/lock.c [USE_POSIX_THREADS]
6932         (glthread_rwlock_init_for_glibc): New function.
6933         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
6934         comment.
6935         [USE_PTH_THREADS]: New implementation of rwlocks.
6936         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
6937         readers.
6938         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
6939         (Depends-on): Add 'extensions'.
6940         * tests/test-rwlock1.c: New file.
6941         * lock-tests (Files): Add it.
6942         (Depends-on): Add usleep.
6943         (Makefile.am): Add test-rwlock1 to the tests.
6945 2017-01-05  Bruno Haible  <bruno@clisp.org>
6947         thread: Fix pth port.
6948         * lib/glthread/thread.h (pth_init): Declare weak.
6949         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
6950         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
6951         function.
6953 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
6955         parse-datetime: fix debug message on lone year number
6956         Input dates such as
6957           date -d "Apr 11 22:59:00 2011"
6958         are parsed as date (Apr 11, with default year 2016), then time, then a
6959         number (2011). Based on the combination of previously seen tokens,
6960         'digits_to_date_time' determines 2011 to be a year value.
6961         This fixes the debug messages to correctly show the updated year.
6962         Before:
6963             $ date --debug -d 'Apr 11 22:59:00 2011'
6964             date: parsed date part: (Y-M-D) 2016-04-11
6965             date: parsed time part: 22:59:00
6966             date: parsed number part: today/this/now
6967         After:
6968             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
6969             date: parsed date part: (Y-M-D) 2016-04-11
6970             date: parsed time part: 22:59:00
6971             date: parsed number part: year: 2011
6972         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
6973         'debug_year_seen' member fields.
6974         (digits_to_date_time): Update 'year_seen' as needed.
6975         (debug_print_current_time): Inform about year updates.
6976         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
6978         parse-datetime: fix local timezone debug messages
6979         "Local timezones" are strings that affect only DST relative to the
6980         default timezone. The debug messages in parse-datetime.y printed
6981         wrong information when encountering local timezones.
6982         Examples:
6983         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
6984              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
6985              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
6986         When the default timezone relates to the zone strings, EET/EEST are
6987         parsed as local timezones (tLOCAL_ZONE), and only change the DST
6988         value (0/1, respectively):
6989              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
6990              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
6991         * lib/parse-datetime.y (debug_print_current_time): If local timezone
6992         was seen, inform about DST change, don't print actual timezone.
6993         (debug_strfdatetime): If local timezone was seen, use default timezone
6994         (and adjust as needed) instead of using incorrect timezone.
6995         (parse_datetime2): Use correct time-zone source string, and adjust
6996         default timezone as needed.
6998         parse-datetime: add debug warning about DST changes
6999         Incorrect date arithmetic due to daylight saving time (DST) are a
7000         common (false) bug report in coreutils.
7001         Detect two such cases and print a warning:
7002         1. year/month/day adjustments (performed on 'struct tm'),
7003            where 'mktime' returns a different isdst value.
7004         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
7005            where the result of 'localtime(3)' on the value will return a
7006            different isdst value.
7007         Note: DST changes could be harmless or unnoticeable.
7008         Examples (with 'TZ=America/New_York'):
7009         Unnoticeable: result is 2016-Dec-14
7010            $ date -d '2016-06-15 EDT + 6 months' +%b
7011            Dec
7012         Unnoticeable: result is 2016-Dec-15 11:00:00
7013            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
7014            2016-12-15
7015         This is unexpected:
7016            $ date -d '2016-06-01 EDT + 6 months' +%F
7017            2016-11-30
7018         The new debug warnings will show:
7019            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
7020            ...
7021            date: warning: daylight saving time changed after date adjustment
7022            ...
7023         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
7024         print an appropriate warning message.
7026         parse-datetime: add debug warning about date arithmetic
7027         Date arithmetic are done directly on the fields of 'struct tm',
7028         which can result in invalid dates. Normalization with 'mktime(3)'
7029         will then produce a different date - which might cause unexpected
7030         results.
7031         Examples:
7032           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
7033           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
7034         Note that date normalization is not inherently wrong and not rejected,
7035         as it has legitimate uses:
7036           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
7037         If the user asked to adjust months but 'mday' changed,
7038         or user asked to adjust years but 'month' changed - warn about it.
7039             $ ./src/date --debug -d '2016-10-31 - 1 month'
7040             ...
7041             date: warning: when adding relative months/years, \
7042                            it is recommended to specify the 15th of the month
7043             ...
7044             date: warning: month/year adjustment resulted in shifted dates:
7045             date:      adjusted Y M D: 2016 09 31
7046             date:    normalized Y M D: 2010 10 01
7047             ...
7048         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
7049         a warning message. Improve recommendation of when to use 15 of the
7050         month or noon for date arithmetic.
7052         parse-datetime: fix debug message of relative part after timezone
7053         Relative part (e.g '+8 days') after a timezone string was not
7054         reported (was only reported after a timezone number). Due to the
7055         parser's structure, timezone strings with numbers were handled
7056         separately.
7057         before:
7058              # Timezone number + relative part: OK
7059              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
7060              ...
7061              date: parsed relative part: -8 day(s)
7062              # Timezone string + relative part: missing
7063              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
7064              [ missing message ]
7065         After: messages are printed in both cases.
7066         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
7068         parse-datetime: fix incorrect debug message on lone number
7069         A lone number is an absolute value, not a relative time part.
7070         before:
7071            $ date --debug -d '20130101'
7072            date: parsed number part: today/this/now
7073         After:
7074            $ ./src/date --debug -d '20130101'
7075            date: parsed number part: (Y-M-D) 2013-01-01
7076         * lib/parse-datetime.y ('item'/'number' tokens): Call
7077         'debug_print_current_time' instead of 'debug_print_relative_time'.
7079 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
7081         doc: modernize for C11 etc.
7082         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
7083         for C11, MinGW, etc.  This responds to Paul Smith's question in:
7084         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
7086         dfa: prefer functions to FETCH_WC macro
7087         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
7088         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
7089         wint_t result into DFA->lex.wctok instead of to a separate arg.
7090         All callers changed.  Move more local decls closer to where
7091         they're used.
7093         dfa: narrow more local var scopes
7094         * lib/dfa.c: Move more local decls to be more local.
7096         dfa: remove duplicate assignment
7097         Problem reported by Bruno Haible in:
7098         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
7099         * lib/dfa.c (parse_bracket_exp): Simplify.
7101 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7103         dfa: simplify constraint-dependency checking
7104         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
7105         (prev_other_constraint): Remove.
7106         (prev_newline_dependent, prev_letter_dependent):
7107         Simplify, to avoid an unnecessary bitwise AND operation.
7109         dfa: prefer functions and constants to macros
7110         * lib/dfa.c: Prefer constants to macros where either will do.
7111         (streq, isasciidigit, newline_constraint)
7112         (letter_constraint, other_constraint, succeeds_in_context)
7113         (prev_newline_constraint, prev_letter_constraint)
7114         (prev_other_constraint, prev_newline_dependent)
7115         (prev_letter_dependent, accepting, accepts_in_context):
7116         Now static functions instead of function-like macros.
7117         Use lower-case names accordingly.  All uses changed.
7119         dfa: narrow more local var scopes
7120         * lib/dfa.c: Move some more local decls down to nearer where
7121         they're needed.
7123 2016-12-31  Jim Meyering  <meyering@fb.com>
7125         dfa: narrow the scope of many local variables
7126         * lib/dfa.c: Now that we are no longer constrained to c89, move
7127         declarations of many variables (often indices) "down" into the
7128         scope(s) where used or to the point of definition.  This is a
7129         no-semantic-change diff.
7131 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7133         version-etc: new year
7134         * build-aux/gendocs.sh (version):
7135         * doc/gendocs_template:
7136         * doc/gendocs_template_min:
7137         * doc/gnulib.texi:
7138         * lib/version-etc.c (COPYRIGHT_YEAR):
7139         Update copyright dates by hand in templates and the like.
7140         * all files: Run 'make update-copyright'.
7142 2016-12-31  Eric Blake  <eblake@redhat.com>
7144         do-release-commit-and-tag: avoid shell syntax error
7145         * build-aux/do-release-commit-and-tag (curr_br): $branch can
7146         contain spaces when rebasing.
7148         maint.mk: hoist gnulib_dir definition earlier
7149         * top/maint.mk (gnulib_dir): Move near top of file.
7151 2016-12-31  Jim Meyering  <meyering@fb.com>
7153         maint.mk: do not always evaluate intprops-related shell
7154         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
7155         using gnulib_dir undefined (gnulib_dir is defined later in the
7156         file, which will be fixed separately), and besides, there is no
7157         need to incur the cost of this shell invocation for every single
7158         use of this .mk file.  Reported by Eric Blake in
7159         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
7161 2016-12-30  Jim Meyering  <meyering@fb.com>
7163         maint.mk: improve sc_prohibit_intprops_without_use
7164         * top/maint.mk (_intprops_names): Don't hard-code the list of
7165         symbol names.  Instead, derive it on the fly.
7167 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
7169         dfa: shorten sbit, success
7170         * lib/dfa.c (struct regex_syntax.sbit):
7171         (struct dfa.success): Use char, not int, for array elements, since
7172         they are all in the range 0..7.
7174         dfa: simplify multibyte_prop etc.
7175         This follows up on a change made when dfa.c was in grep, namely grep
7176         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
7177         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
7178         That earlier simplification allows for some more simplification
7179         and trimming down here.
7180         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
7181         (struct lexer_state): New mamber brack.
7182         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
7183         since they must be in the range 0..3 now.
7184         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
7185         the brack member now supersedes them.
7186         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
7187         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
7188         (dfaparse): Remove unnecessary initializations of already-0 storage.
7189         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
7190         (dfassbuild): No need to clear sup->mbcsets.
7192         dfa: minor performance tweak
7193         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
7195         dfa: wrap charclass inside a struct
7196         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
7197         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
7198         about 5% faster, where list.txt is generated by 'aspell dump
7199         master | head -n 100000 >list.txt'.  See Bug#22239.
7200         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
7201         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
7202         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
7203         Adjust to this, e.g., by using charclass * rather than charclass.
7204         All callers changed as needed.
7205         (copyset): Remove.  All uses changed to simple assignment.
7206         (parse_bracket_exp): Use zeroset instead of memset.
7208 2016-12-30  Jim Meyering  <meyering@fb.com>
7210         maint.mk: update list of intprops.h symbol names
7211         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
7212         This avoids a false failure of the sc_prohibit_intprops_without_use
7213         rule in grep.
7215 2016-12-29  Eric Blake  <eblake@redhat.com>
7217         getopt: fix parallel test failure
7218         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
7219         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
7220         * tests/test-getopt-main.h (main): Use different file names
7221         in case test-getopt-gnu and test-getopt-posix run in parallel.
7223 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7225         xalloc: x2nrealloc check for ptrdiff_t overflow
7226         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
7227         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
7229 2016-12-24  Bruno Haible  <bruno@clisp.org>
7231         lock test: Fix performance problem on multi-core machines.
7232         * tests/test-lock.c (USE_VOLATILE): New macro.
7233         (struct atomic_int): New type.
7234         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
7235         functions.
7236         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
7237         as 'struct atomic_int'.
7238         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
7239         reclock_checker_thread, test_recursive_lock): Use the new functions.
7240         Reported by Eric Blake in
7241         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
7242         and by Pádraig Brady in
7243         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
7245 2016-12-19  Bruno Haible  <bruno@clisp.org>
7247         vma-iter: Fix endless loop on 64-bit Windows.
7248         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
7249         'unsigned long'.
7251 2016-12-19  Bruno Haible  <bruno@clisp.org>
7253         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
7254         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
7255         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
7256         Invoke gt_TYPE_WINT_T instead.
7257         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
7258         * modules/stdint (Files): Add m4/wint_t.m4.
7259         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
7260         * modules/wctype-h (Makefile.am): Likewise.
7261         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
7262         not only on MSVC.
7263         * lib/wctype.in.h (wint_t): Likewise.
7265 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7267         getopt-posix-tests: fix Makefile typo
7268         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
7269         Fix typo: the last ‘_’ was missing in the name.
7270         I suspect that the typo explains this build failure:
7271         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
7272         although I can’t reproduce the problem on Solaris 10 sparc.
7274 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7276         dfa: improve worst-case 'replace' performance
7277         See my note in Bug#22357#71.
7278         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
7279         (merge_constrained): New function, which is like
7280         the old 'merge' function, except with a new argument C2.
7281         Simplify the body by avoiding the need for different sections
7282         of code depending on whether one input is exhausted.
7283         (merge): Use the new function.
7284         (delete): Return the constraint of the deleted position,
7285         not the entire position.  Caller changed.
7286         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
7288 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7290         dfa: performance improvement for removal of epsilon closure
7291         See Bug#22357#32.
7292         * lib/dfa.c (delete): Use binary search to find deleted index.
7293         (replace): New function.  It replaces a position with the followed set.
7294         (epsclosure): Replace it with a new algorithm.  Update caller.
7296 2016-12-18  Bruno Haible  <bruno@clisp.org>
7298         Split tests for getopt-posix and getopt-gnu.
7299         * tests/test-getopt-posix.c: New file.
7300         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
7301         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
7302         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
7303         GNULIB_TEST_GETOPT_GNU.
7304         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
7305         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
7306         (Makefile.am): Test test-getopt-posix instead of test-getopt.
7307         * modules/getopt-gnu-tests: New file.
7308         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
7310 2016-12-18  Bruno Haible  <bruno@clisp.org>
7312         posix-modules: Add options for specific platforms.
7313         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
7314         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
7315         Invoke func_tmpdir. Filter out the excludes.
7317 2016-12-18  Bruno Haible  <bruno@clisp.org>
7319         getopt: Fix link error for users of getopt() in <unistd.h>.
7320         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
7321         __need_getopt is defined. Undefine all macros before defining them.
7322         * modules/getopt (Include): Clarify that including <unistd.h> is also
7323         OK.
7324         * tests/test-getopt.c: Add comment.
7326 2016-12-17  Bruno Haible  <bruno@clisp.org>
7328         getaddrinfo tests: Avoid compilation error on MSVC.
7329         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
7330         getaddrinfo on native Windows.
7332 2016-12-17  Bruno Haible  <bruno@clisp.org>
7334         getlogin, getlogin_r: Fix link errors on MSVC.
7335         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
7336         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
7337         (Link): New section.
7338         * modules/getlogin_r (Files): Add m4/getlogin.m4.
7339         (configure.ac): Require gl_LIB_GETLOGIN.
7340         (Link): New section.
7341         * NEWS: Mention the new link requirements.
7342         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
7343         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
7345 2016-12-17  Bruno Haible  <bruno@clisp.org>
7347         Un-deprecate the 'progname' module.
7348         * NEWS: Describe the appropriate use-cases of 'progname' versus
7349         'getprogname'. Based on discussion summary at
7350         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
7352 2016-12-17  Bruno Haible  <bruno@clisp.org>
7354         Reorganize NEWS a bit.
7355         * NEWS: Move some not so important changes away from section
7356         "Important Notes".
7358 2016-12-17  Bruno Haible  <bruno@clisp.org>
7360         tanhf: Avoid redefinition error on MSVC.
7361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
7362         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
7363         may be defined as an inline function.
7364         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
7365         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
7367 2016-12-17  Bruno Haible  <bruno@clisp.org>
7369         tanf: Avoid redefinition error on MSVC.
7370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
7371         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
7372         may be defined as an inline function.
7373         * modules/math (Makefile.am): Substitute REPLACE_TANF.
7374         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
7376 2016-12-17  Bruno Haible  <bruno@clisp.org>
7378         sqrtf: Avoid redefinition error on MSVC.
7379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
7380         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
7381         may be defined as an inline function.
7382         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
7383         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
7385 2016-12-17  Bruno Haible  <bruno@clisp.org>
7387         sinhf: Avoid redefinition error on MSVC.
7388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
7389         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
7390         may be defined as an inline function.
7391         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
7392         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
7394 2016-12-17  Bruno Haible  <bruno@clisp.org>
7396         sinf: Avoid redefinition error on MSVC.
7397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
7398         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
7399         may be defined as an inline function.
7400         * modules/math (Makefile.am): Substitute REPLACE_SINF.
7401         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
7403 2016-12-17  Bruno Haible  <bruno@clisp.org>
7405         logf: Avoid redefinition error on MSVC.
7406         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
7407         may be defined as an inline function.
7409 2016-12-17  Bruno Haible  <bruno@clisp.org>
7411         log10l: Avoid redefinition error on MSVC.
7412         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
7413         may be defined as an inline function.
7415 2016-12-17  Bruno Haible  <bruno@clisp.org>
7417         log10f: Avoid redefinition error on MSVC.
7418         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
7419         may be defined as an inline function.
7421 2016-12-17  Bruno Haible  <bruno@clisp.org>
7423         hypotl: Avoid redefinition error on MSVC.
7424         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
7425         may be defined as an inline function.
7427 2016-12-17  Bruno Haible  <bruno@clisp.org>
7429         hypotf: Avoid redefinition error on MSVC.
7430         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
7431         may be defined as an inline function.
7433 2016-12-17  Bruno Haible  <bruno@clisp.org>
7435         fmodl: Avoid redefinition error on MSVC.
7436         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
7437         may be defined as an inline function.
7439 2016-12-17  Bruno Haible  <bruno@clisp.org>
7441         fmodf: Avoid redefinition error on MSVC.
7442         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
7443         may be defined as an inline function.
7445 2016-12-17  Bruno Haible  <bruno@clisp.org>
7447         expf: Avoid redefinition error on MSVC.
7448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
7449         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
7450         may be defined as an inline function.
7451         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
7452         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
7454 2016-12-17  Bruno Haible  <bruno@clisp.org>
7456         coshf: Avoid redefinition error on MSVC.
7457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
7458         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
7459         may be defined as an inline function.
7460         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
7461         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
7463 2016-12-17  Bruno Haible  <bruno@clisp.org>
7465         cosf: Avoid redefinition error on MSVC.
7466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
7467         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
7468         may be defined as an inline function.
7469         * modules/math (Makefile.am): Substitute REPLACE_COSF.
7470         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
7472 2016-12-17  Bruno Haible  <bruno@clisp.org>
7474         atan2f: Avoid redefinition error on MSVC.
7475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
7476         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
7477         may be defined as an inline function.
7478         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
7479         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
7481 2016-12-17  Bruno Haible  <bruno@clisp.org>
7483         atanf: Avoid redefinition error on MSVC.
7484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
7485         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
7486         may be defined as an inline function.
7487         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
7488         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
7490 2016-12-17  Bruno Haible  <bruno@clisp.org>
7492         asinf: Avoid redefinition error on MSVC.
7493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
7494         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
7495         may be defined as an inline function.
7496         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
7497         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
7499 2016-12-17  Bruno Haible  <bruno@clisp.org>
7501         acosf: Avoid redefinition error on MSVC.
7502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
7503         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
7504         may be defined as an inline function.
7505         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
7506         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
7508 2016-12-17  Bruno Haible  <bruno@clisp.org>
7510         Avoid redefinition errors on MSVC.
7511         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
7512         the function may be defined as an inline function.
7513         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
7514         the function may be defined as an inline function.
7516 2016-12-17  Bruno Haible  <bruno@clisp.org>
7518         Avoid redefinition errors on MSVC.
7519         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
7520         * lib/unistd.in.h: Include <stdio.h> when necessary.
7522 2016-12-17  Bruno Haible  <bruno@clisp.org>
7524         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
7525         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
7526         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
7527         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
7528         WINT_MAX.
7530 2016-12-17  Bruno Haible  <bruno@clisp.org>
7532         Avoid autoconf warning.
7533         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
7534         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
7536 2016-12-17  Bruno Haible  <bruno@clisp.org>
7538         fpending: Revert workaround against Emacs bug.
7539         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
7540         The Emacs bug is fixed by Eli Zaretskii in
7541         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
7543 2016-12-17  Bruno Haible  <bruno@clisp.org>
7545         getlogin_r tests: Port to mingw.
7546         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
7547         regression introduced on 2014-05-19.
7549 2016-12-17  Bruno Haible  <bruno@clisp.org>
7551         getlogin: Port to newer mingw.
7552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
7553         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
7554         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
7555         HAVE_GETLOGIN.
7556         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
7557         HAVE_GETLOGIN.
7558         * doc/posix-functions/getlogin.texi: Mention the issue.
7559         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
7560         regression introduced on 2014-05-14.
7562 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7564         builtin-expect: improve port to IBM XL C
7565         Problem reported for z/OS by Daniel Richard G. in:
7566         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
7567         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
7568         Test for <builtins.h> directly.
7570         builtin-expect: port to IBM XL C
7571         Problem reported for z/OS by Daniel Richard G. in:
7572         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
7573         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
7574         Also allow __builtin_expect defined via a standard include file.
7576         regex: fix dependency
7577         Problem reported by Bruno Haible in:
7578         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
7579         * modules/regex: Depend on builtin-expect.
7581         builtin-expect: new module
7582         Fix fnmatch to use it.
7583         Problem reported for z/OS by Daniel Richard G.
7584         * lib/fnmatch.c (__builtin_expect):
7585         * lib/glob.c (__builtin_expect):
7586         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
7587         * lib/memmem.c (__builtin_expect) [!_LIBC]:
7588         * lib/scandir.c (__builtin_expect):
7589         * lib/strstr.c (__builtin_expect) [!_LIBC]:
7590         Remove macro; config.h now does this.
7591         * lib/gl_anytreehash_list1.h (add_to_bucket):
7592         * lib/regex_internal.h (BE):
7593         Assume __builtin_expect.
7594         * m4/builtin-expect.m4, modules/builtin-expect: New files.
7595         * modules/avltreehash-list, modules/fnmatch, modules/glob:
7596         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
7597         * modules/scandir, modules/strstr-simple:
7598         Depend on builtin-expect.
7600 2016-12-15  Bruno Haible  <bruno@clisp.org>
7602         init.sh: Add possibility to not delete temporary files.
7603         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
7604         to yes, don't erase the temporary directory.
7606 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7608         regex: fix integer-overflow bug in never-used code
7609         Problem reported by Clément Pit–Claudel in:
7610         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
7611         * lib/regex_internal.h: Include intprops.h.
7612         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
7613         behavior on integer overflow.
7614         * modules/regex (Depends-on): Add intprops.
7616         fpending: fix port to MinGW on Emacs
7617         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
7618         Problem reported by Eli Zaretskii in:
7619         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
7620         Is Plan 9 still a valid porting target, anyway?
7622 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7624         safe-alloc: use xalloc-oversized
7625         * lib/safe-alloc.c: Include xalloc-oversized.h.
7626         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
7627         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
7629         xalloc: do not exceed PTRDIFF_MAX
7630         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
7631         xalloc_oversized check, since objects larger than PTRDIFF_MAX
7632         bytes have pointer-subtraction problems.
7634         malloca: do not exceed PTRDIFF_MAX
7635         * lib/malloca.h: Include xalloc-oversized.
7636         (nmalloca): Use xalloc_oversized instead of rolling our own.
7637         * modules/malloca (Depends-on):
7638         * modules/relocatable-prog-wrapper (Depends-on):
7639         Add xalloc-oversized.
7641         quotearg: pacify GCC better
7642         * modules/quotearg (Depends-on): Add minmax, stdint.
7643         * lib/quotearg.c: Include minmax.h, stdint.h.
7644         (nslots): Now int, as there seems little point to going to extra
7645         work merely to support the INT_MAX slot, which nobody ever uses.
7646         (quotearg_n_options): Redo size-overflow checks to pacify GCC
7647         and to catch (mostly-theoretical) ptrdiff_t problems too.
7648         This can be done via one comparison.
7650 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
7652         xalloc-oversized: check for PTRDIFF_MAX too
7653         This avoids undefined behavior when subtracting pointers to
7654         objects containing more than PTRDIFF_MAX bytes.
7655         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
7656         Also return 1 if the result would exceed PTRDIFF_MAX>
7657         * modules/xalloc-oversized (Depends-on):
7658         Add stdint.
7660         dfa: fix glitches in previous commit
7661         Sorry, I don't know how I managed to commit the wrong version.
7662         * lib/dfa.c (MIN): Move up.
7663         (xpalloc): Now static.
7665         dfa: fix some unlikely integer overflows
7666         I found these while reviewing the recent Coverity-related fix.
7667         This patch changes part of dfa.c to prefer ptrdiff_t instead of
7668         size_t for object counts.  Using ptrdiff_t is the style typically
7669         used in Emacs; although it wastes a sign bit as sizes can never be
7670         negative, it makes -fsanitize=undefined more likely to catch
7671         integer overflows in index calculation, and nowadays the upside is
7672         typically more important than the downside.  Although perhaps the
7673         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
7674         of dfa.c already does, since it uses state_num which is signed),
7675         that is a bigger change and is not needed to fix the bugs I found.
7676         * lib/dfa.c: Include stdint.h and intprops.h.
7677         (TOKEN_MAX): New macro.
7678         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
7679         (charclass_index, parse_bracket_exp, addtok, insert, merge)
7680         (realloc_trans_if_necessary, free_mbdata):
7681         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
7682         This is safe because xpalloc checks that the sizes do not exceed
7683         either SIZE_MAX or PTRDIFF_MAX.
7684         (xpalloc): New function, mostly taken from Emacs.
7685         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
7686         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
7687         (charclass_index): Check for integer overflow in computing
7688         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
7689         added to it later.
7690         (alloc_position_set): Check for integer overflow.  On typical
7691         platforms this check has zero overhead, since the constant
7692         expression is false.
7693         (realloc_trans_if_necessary):
7694         Remove assertion, which I hope Coverity no longer needs.
7696         * modules/dfa (Depends-on): Add intprops, stdint.
7698 2016-12-12  Jim Meyering  <meyering@fb.com>
7700         dfa: add an assertion to avoid coverity false positive
7701         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
7702         warned that "newalloc1 - 2" could overflow.
7704 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
7706         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
7707         * dfa.h (DFA_CASE_FOLD): Remove.
7708         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
7710 2016-12-13  John W. Eaton  <gnu@jweaton.org>
7712         link: fix test to declare use of rename()
7713         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
7714         -Werror=implicit-function-declaration
7716 2016-12-12  Bruno Haible  <bruno@clisp.org>
7718         fpending: Port to native Windows with MSVC.
7719         * lib/fpending.c: Include stdio-impl.h.
7720         (__fpending): Include all known implementations. Err out if it's not
7721         ported.
7722         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
7723         * modules/fpending (Files): Add lib/stdio-impl.h.
7724         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
7726 2016-12-12  Bruno Haible  <bruno@clisp.org>
7728         stdioext: Port to native Windows with MSVC.
7729         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
7730         (struct _gl_real_FILE): New type.
7731         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
7732         Windows.
7733         * lib/fbufmode.c (fbufmode): Add code for native Windows.
7734         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
7735         other SystemV derived implementations.
7736         * lib/fpurge.c (fpurge): Likewise.
7737         * lib/freadable.c (freadable): Likewise.
7738         * lib/freadahead.c (freadahead): Likewise.
7739         * lib/freading.c (freading): Likewise.
7740         * lib/freadptr.c (freadptr): Likewise.
7741         * lib/freadseek.c (freadptrinc): Likewise.
7742         * lib/fseeko.c (fseeko): Likewise.
7743         * lib/fseterr.c (fseterr): Likewise.
7744         * lib/fwritable.c (fwritable): Likewise.
7745         * lib/fwriting.c (fwriting): Likewise.
7746         Reported by Gisle Vanem <gvanem@yahoo.no>.
7748 2016-12-11  Jim Meyering  <meyering@fb.com>
7750         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
7751         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
7752         to work with most shells, but not with the one provided by many
7753         Solaris 10 systems, so running configure with such a /bin/sh evokes
7754         e.g., "./configure: syntax error at line 33602: `(' unexpected".
7755         Reported by Assaf Gordon in
7756         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
7758 2016-12-10  Bruno Haible  <bruno@clisp.org>
7760         threadlib: Optimize out runtime test on Solaris >= 10.
7761         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
7762         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
7763         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
7765 2016-12-10  Bruno Haible  <bruno@clisp.org>
7767         stdint: Update doc about Solaris 9.
7768         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
7770 2016-12-09  Bruno Haible  <bruno@clisp.org>
7772         c-ctype tests: Fix link error on Solaris 9.
7773         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
7774         Reported at <https://savannah.gnu.org/bugs/?46827>.
7776 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
7778         dfa: fix performance bug that recomputes trans
7779         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
7780         25 on-demand changes.  The bug caused build_state to reset all
7781         d->trans elements to -2 even when d->trans was already non-null.
7782         Use C99 style decls after statements in this function.
7784         same-inode: port to MinGW
7785         Here st_ino is always 0, so change the definition of SAME_INODE so
7786         that 1 means the two files are the same, 0 with st_ino != 0 means
7787         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
7788         reported by Bruno Haible (Bug#25146).
7789         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
7790         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
7792 2016-12-04  Bruno Haible  <bruno@clisp.org>
7794         javacomp-script: Support Java 7 and 8.
7795         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
7796         target-version 1.7, 1.8.
7798 2016-12-02  Daiki Ueno  <ueno@gnu.org>
7800         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
7801         GPLv2" rewriting.
7803 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
7805         * gnulib-tool (func_import): Adhere to the license guideline when
7806         rewriting the license text to "LGPLv3+ or GPLv2":
7807         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
7809 2016-12-02  Bruno Haible  <bruno@clisp.org>
7811         localcharset: Avoid theoretical buffer overrun.
7812         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
7813         return value from setlocale if it would lead to a buffer overrun.
7815 2016-12-01  Bruno Haible  <bruno@clisp.org>
7817         Relicense some modules under LGPLv2+.
7818         Kevin Cernekee's approval is in
7819         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
7820         * modules/fseterr (License): Change to LGPLv2+.
7821         * modules/mbchar (License): Likewise.
7822         * modules/mbiter (License): Likewise.
7823         * modules/mbsnlen (License): Likewise.
7824         * modules/wcwidth (License): Likewise.
7826 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7828         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
7829         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
7830         OS/2 kLIBC.
7832 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7834         alphasort, scandir: Port to OS/2 kLIBC
7835         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
7836         declaration.
7837         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
7839 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7841         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
7842         * lib/relocatable.c (relocate): Do not touch pathname if it is started
7843         with '/@unixroot'.
7845 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7847         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
7848         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
7849         OS/2 kLIBC unless TCPV40HDRS is defined.
7851 2016-11-29  Jim Meyering  <meyering@fb.com>
7853         dfa: avoid new infinite loop
7854         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
7855         * lib/dfa.c (dfastate): When constructing a new state table, we could
7856         initially declare that we had found a match, and later find that
7857         constraints eliminate that possibility, yet continue to use the
7858         now stale "matched" indicator.  That would lead to an infinite loop.
7859         The solution is to update "matched" when necessary.
7860         Introduced by commit v0.1-983-g403adf1.
7862 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7864         dfa: avoid match middle in multibyte character
7865         * lib/dfa.c (transit_state): If fails in matching single byte characters
7866         on a state including period expression in non-UTF8 multibyte locales,
7867         skip trailing bytes.
7868         (dfa_supported): Revert previous change.
7870 2016-11-27  Jim Meyering  <meyering@fb.com>
7872         dfa: avoid false match in non-UTF8 multibyte locales
7873         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
7874         as "not supported" so that callers will resort to using regex-based
7875         matcher.  This will surely hurt performance, but correctness trumps
7876         performance here, and the affected locales are less and less relevant,
7877         these days.  See grep's bug report https://bugs.gnu.org/24975.
7879 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
7881         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
7882         * lib/ptsname_r.c: Include the appropriate headers.
7883         [__sun]: Delete sys/sysmacros.h include.
7884         [_AIX || __osf__]: Likewise.
7885         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
7887 2016-11-27  Pádraig Brady  <P@draigBrady.com>
7889         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
7890         * lib/md4.c (md4_process_bytes): The existing define is made internal
7891         in recent versions of glibc, so also use this new public define.
7892         * lib/md5.c (md5_process_bytes): Likewise.
7893         * lib/sha1.c (sha1_process_bytes): Likewise.
7894         * lib/sha256.c (sha256_process_bytes): Likewise.
7895         * lib/sha512.c (sha512_process_bytes): Likewise.
7897 2016-11-27  Pádraig Brady  <P@draigBrady.com>
7899         maint: use a more standard return from mbrtowc test
7900         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
7901         from the test program as this often indicates an
7902         unhandled case in the test program.
7903         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
7904         (gl_MBRTOWC_SANITYCHECK): Likewise.
7905         (gl_MBRTOWC_NULL_ARG2): Likewise.
7906         (gl_MBRTOWC_NUL_RETVAL): Likewise.
7908 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
7910         freopen: work around glibc bug with closed fd
7911         Work around glibc bug#15589, where freopen mishandles the case
7912         where stdin etc. are already closed.
7913         * doc/posix-functions/freopen.texi (freopen): Document the bug.
7914         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
7915         instead of __need_FILE, as the latter does not work with glibc.
7916         Include <fcntl.h>, for open flags.
7917         (rpl_freopen): Work around glibc bug.
7918         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
7919         * modules/freopen (Depends-on): Add fcntl-h.
7920         * tests/test-freopen.c (main): Test for bug.
7922 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7924         fnmatch: fix typo introduced on 2016-08-17
7925         This fixes the port to non-GCC compilers that lack __builtin_expect.
7926         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
7928         dfa: simplify with new function fillset
7929         * lib/dfa.c (fillset): New function.
7930         Use it for clarity when applicable.
7932         dfa: fix glitches with on-demand states
7933         Also, adjust commentary to better match new code.
7934         Some of these glitches predate the recent change.
7935         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
7936         only non-initial states.
7937         (dfastate): Rename locals to better match new roles.
7938         Move them into nested scopes if this is easy.
7939         Omit unnecessary calls to zeroset.
7940         Simplify test for whether to throw in the positions of state 0.
7941         Omit C99-ism (decl after statement) since Gawk still wants C89.
7942         (build_state): Omit unnecessary test and assignment.
7943         Fix some confusion that counted transition tables inaccurately
7944         and could cause a memory leak.
7945         (dfaexec_main): Redo to make it clearer to the compiler that
7946         -1 and -2 are the only negative state numbers here.
7948 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7950         dfa: addition of new state on demand
7951         * src/dfa.c (dfastate): Add argument UC, the current input character.
7952         Fill only a group including the character in transition table.
7953         (realloc_trans_if_necessary): Add the dummy state which means that a
7954         transition table is assigned but the next state is not assigned.
7955         (build_state): Return the next state.  All callers updated.
7956         (transit_state_singlebyte): If we get the dummy state,
7957         fill the transition table.
7958         (dfaexec_main): Handle the dummy state.
7959         (free_mbdata, dfafree): Consider the dummy state.
7961 2016-11-24  Daiki Ueno  <ueno@gnu.org>
7963         srclist: sync with released gettext
7964         * config/srclist.txt: Set "release" option to the files under
7965         $GETTEXT.
7967 2016-11-24  Daiki Ueno  <ueno@gnu.org>
7969         srclist: add "release" option
7970         * config/srclist.txt: Change the format so that the first column
7971         of each line points to the top-level directory of the source
7972         archive.
7973         * config/srclist-update: Accept "release" option that checks files
7974         from the most recently tagged revision in the source archive.
7976 2016-11-21  Bruno Haible  <bruno@clisp.org>
7978         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
7979         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
7980         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
7981         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
7982         Inline and remove member function 'rpl ()' of the wrapper struct.
7984 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7986         dfa: fix logic typo
7987         Problem reported by Stephane Chazelas (Bug#24973).
7988         * lib/dfa.c (using_simple_locale): Fix typo that caused some
7989         non-simple locales like fr_FR to be treated as simple.
7991 2016-11-20  Jim Meyering  <meyering@fb.com>
7993         fix test driver leaks: exclude, malloc, realloc
7994         * tests/test-exclude.c (main): Fix trivial leak.
7995         * tests/test-malloc-gnu.c (main): Likewise.
7996         * tests/test-realloc-gnu.c (main): Likewise.
7997         With these changes, grep's tests are now leak free.
7998         I.e., running them with ASAN elicits no failure:
7999           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
8000             AM_LDFLAGS='-fsanitize=address -static-libasan' check
8002 2016-11-11  Bruno Haible  <bruno@clisp.org>
8004         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
8005         * modules/libunistring: (License): Change from LGPL to
8006         "LGPLv3+ or GPLv2".
8007         * modules/libunistring-optional: Likewise.
8008         * modules/unicase/*: Likewise.
8009         * modules/uniconv/*: Likewise.
8010         * modules/unictype/*: Likewise.
8011         * modules/unigbrk/*: Likewise.
8012         * modules/unilbrk/*: Likewise.
8013         * modules/uniname/*: Likewise.
8014         * modules/uninorm/*: Likewise.
8015         * modules/unistdio/*: Likewise.
8016         * modules/unistr/*: Likewise.
8017         * modules/uniwbrk/*: Likewise.
8018         * modules/uniwidth/*: Likewise.
8020 2016-11-12  Bruno Haible  <bruno@clisp.org>
8022         Relicense some modules under LGPLv2+.
8023         Paul Eggert's approval is in
8024         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
8025         Eric Blake's approval is in
8026         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
8027         Ludovic Courtès's approval is in
8028         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
8029         * modules/isnand-nolibm (License): Change to LGPLv2+.
8030         * modules/isnanf-nolibm (License): Likewise.
8031         * modules/isnanl-nolibm (License): Likewise.
8033 2016-11-19  Bruno Haible  <bruno@clisp.org>
8035         Relicense some modules under LGPLv2+.
8036         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
8037         modules/vasnprintf.
8038         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
8039         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
8040         All other significant changes to the files in lib/ of these modules
8041         are from me.
8042         * modules/memcmp2 (License): Change to LGPLv2+.
8043         * modules/amemxfrm (License): Likewise.
8044         * modules/fpieee (License): Likewise.
8045         * modules/fpucw (License): Likewise.
8046         * modules/frexp-nolibm (License): Likewise.
8047         * modules/frexpl-nolibm (License): Likewise.
8048         * modules/printf-frexp (License): Likewise.
8049         * modules/printf-frexpl (License): Likewise.
8050         * modules/printf-safe (License): Likewise.
8051         * modules/signbit (License): Likewise.
8053 2016-11-17  Bruno Haible  <bruno@clisp.org>
8055         Enable Unicode decoder safety unconditionally.
8056         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
8057         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
8058         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8059         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8060         * lib/unistr/u8-prev.c (u8_prev): Likewise.
8061         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
8062         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
8063         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
8064         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
8065         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
8066         * lib/unistr/u16-prev.c (u16_prev): Likewise.
8067         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
8068         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
8069         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
8070         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
8071         * lib/unistr/u32-prev.c (u32_prev): Likewise.
8072         * lib/unistr/u32-next.c (u32_next): Likewise.
8073         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
8074         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
8075         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
8076         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
8077         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
8078         CONFIG_UNICODE_SAFETY tests unconditionally.
8079         * tests/unistr/test-u32-mblen.c (main): Likewise.
8080         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
8081         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
8082         * tests/unistr/test-u32-next.c (main): Likewise.
8083         * tests/unistr/test-u32-strmblen.c (main): Likewise.
8084         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
8085         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
8086         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
8087         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
8088         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8089         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
8090         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
8091         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
8092         * lib/unistr/u16-check.c (u16_check): Update comment.
8093         * NEWS: Mention the changes that callers should be aware of.
8095 2016-11-19  Bruno Haible  <bruno@clisp.org>
8097         relocatable-prog-wrapper: Fix breakage on Cygwin.
8098         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
8099         (Depends-on): Remove intprops.
8100         * lib/relocwrapper.c: Update dependency tree.
8101         (strerror): Undefine.
8102         * build-aux/install-reloc (func_create_wrapper): Do not compile
8103         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
8105 2016-11-19  Bruno Haible  <bruno@clisp.org>
8107         strerror: Make it compile in C++ mode.
8108         * lib/strerror.c (strerror): Ignore the return value of memcpy().
8110 2016-11-15  Pedro Alves  <palves@redhat.com>
8112         sys_time: add gnulib::timeval for C++
8113         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
8114         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
8115         timeval macro.
8117 2016-11-14  Pedro Alves  <palves@redhat.com>
8119         snippet/c++defs: fix real-floating arg functions in C++ mode
8120         Also, define isfinite, isinf, isnan, signbit in the gnulib
8121         namespace instead of in the global namespace.
8122         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
8123         (_GL_END_NAMESPACE): New.
8124         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
8125         (isfinite, isinf, isnan, signbit) [__cplusplus &&
8126         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
8127         instead of in the global namespace.
8128         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
8129         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
8130         of in the global namespace.
8132 2016-11-13  Jim Meyering  <meyering@fb.com>
8134         strftime: don't use __THROW
8135         Each use of __THROW would provoke this from gcc-7-to-be:
8137           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
8138             on unit local functions [-Wattributes]
8139           static int iso_week_days (int, int) __THROW;
8140           ^~~~~~
8141         * lib/strftime.c (__THROW): Don't define.
8142         Remove each use of __THROW.
8143         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
8144         (tm_diff, iso_week_days, __strftime_internal): Likewise.
8146 2016-11-14  Paul Eggert  <eggert@union>
8148         obstack: port to gcc -fcheck-pointer-bounds
8149         Problem found by 'make check' failure on bleeding-edge coreutils
8150         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
8151         6.2.0-5ubuntu12), configured via "./configure
8152         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
8153         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
8154         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
8155         New macro, copied from fts_.h.
8156         (struct _obstack_chunk.contents): Use it.
8158 2016-11-14  Eric Blake  <eblake@redhat.com>
8160         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
8161         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
8162         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
8164 2016-11-14  Pádraig Brady  <P@draigBrady.com>
8166         strptime: fix compile error in recent change
8167         * lib/strptime.c (__strptime_internal): Fix ported code.
8169 2016-11-11  Bruno Haible  <bruno@clisp.org>
8171         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
8172         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
8173         (func_import): Extend determination of license_incompatibilities.
8174         (func_create_testdir): Extend table of license compatibility. Handle
8175         also the licenses GPLv3+, GPL, LGPLv3+.
8177 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
8179         strftime: tune %q
8180         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
8182         Merge strftime.c changes from glibc
8183         This incorporates:
8184         2007-10-16 [BZ #5184] Add tzset_called argument
8185         2008-06-13 [BZ #6612] pass reference to tzset_called around
8186         2009-10-30 Implement Burmese language locale for Myanmar
8187         2010-01-09 Add support for XPG7 testing
8188         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
8189         2015-10-20 Convert miscellaneous function definitions to prototype style
8190         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
8191         it anyway and this lessens the difference between gnulib and glibc.
8192         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
8193         (__THROW): Define if standard headers do not.
8194         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
8195         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
8196         Declare with __THROW.
8197         (__strftime_internal): Rename from strftime_case_. Add arg for
8198         whether tzset is called.  All uses changed.  Call tzset at most
8199         once.  Allow %OC, for Burmese.
8200         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
8201         Don't assume values are in range.
8203 2016-11-12  Eric Blake  <eblake@redhat.com>
8205         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
8206         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
8207         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
8208         different value.
8210 2006-11-12  Pedro Alves  <palves@redhat.com>
8212         Fix gnulib C++ namespace support and std::frexp
8213         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
8214         _GL_CXXALIASWARN.
8216 2006-11-12  Pedro Alves  <palves@redhat.com>
8218         GNULIB_NAMESPACE::func need not pull in rpl_func
8219         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
8220         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
8221         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
8222         struct instead of a function pointer.
8224 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
8226         manywarnings: fix -Wno-missing-field-initializers detection
8227         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
8228         to be independent of -Wunused-variable.  I.E. ensure the latter
8229         warning doesn't occur so that detection of the former is accurate.
8231 2016-11-05  Pádraig Brady  <pbrady@fb.com>
8233         strftime,strptime: support %q to represent the quarter
8234         * lib/strftime.c (strftime_case_): Add %q case.
8235         * lib/strptime.c (__strptime_internal): Likewise.
8236         * tests/test-strftime.c (quarter_test): A new test case.
8238 2016-11-03  Eric Blake  <eblake@redhat.com>
8240         bootstrap: Fix get_version() for AIX 5.3
8241         * build-aux/bootstrap (get_version): Factor out sed script, since
8242         indented comments choke AIX 5.3 sed.
8243         Reported-by: Michael Felt <aixtools@gmail.com>
8245 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
8247         intprops: port to older XL C
8248         Problem reported by Alexander Samoilov in:
8249         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
8250         http://savannah.nongnu.org/bugs/?49448
8251         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
8252         Define to 1 only for XL C 12.1 or later, since this bug
8253         occurs in XL C for AIX 6.0 but not in 12.1.
8255 2016-11-02  Pádraig Brady  <P@draigBrady.com>
8257         backupfile: initialize default suffix within the implementation
8258         * lib/backupfile.c (find_backup_file_name): Initialize the
8259         global variable here, to simplify usage, and to only call
8260         getenv() when needed.
8262 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8264         futimens: remove FIXME for old Linux kernels
8265         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
8266         this in 2012" FIXME, like that for utimensat.
8268         utimensat: remove FIXME for old Linux kernels
8269         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
8270         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
8271         this in 2012" FIXME, by assuming the file system bug is absent
8272         unless demonstrated to be present.  We no longer need to worry
8273         about Linux kernel 2.6.32 when building with newer kernels.
8275 2016-10-16  Bruno Haible  <bruno@clisp.org>
8277         qsort_r: Fix macrology for platforms that lack the function.
8278         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
8279         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
8280         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
8281         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
8282         not exist.
8283         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
8284         the function exists.
8285         * modules/qsort_r: Add comments.
8287 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8289         sys_types: fix Texinfo typos
8290         * doc/glibc-functions/gnu_dev_major.texi:
8291         * doc/glibc-functions/gnu_dev_makedev.texi:
8292         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
8294 2016-10-26  John David Anglin  <dave.anglin@bell.net>
8296         getprogname: port to HP-UX
8297         See Bug#24805.
8298         * lib/getprogname.c (getprogname) [__hpux]: Port.
8299         * tests/test-getprogname.c (STREQ) [__hpux]:
8300         Special-case for HP-UX limitations on program name length.
8302 2016-10-20  Bruno Haible  <bruno@clisp.org>
8304         Update doc about target platforms.
8305         * doc/gnulib-intro.texi (Target Platforms): Update list.
8307 2016-10-15  Bruno Haible  <bruno@clisp.org>
8309         opendir, readdir, closedir: Relicense under LGPLv2+.
8310         * modules/opendir (License): Change to LGPLv2+.
8311         * modules/readdir (License): Likewise.
8312         * modules/closedir (License): Likewise.
8314 2016-10-16  Bruno Haible  <bruno@clisp.org>
8316         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
8317         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
8318         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
8319         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
8320         HAVE_DECL_STRERROR_R.
8322 2016-10-16  Bruno Haible  <bruno@clisp.org>
8324         Make the 'argp' module work without the 'error' module.
8325         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
8327 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8329         diffseq: restore TOO_EXPENSIVE heuristic
8330         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
8331         (Bug#24715).  The simplest solution is to restore the
8332         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
8333         using a higher threshold to avoid Bug#16848 on smaller files.
8334         * lib/diffseq.h (struct context): Restore member too_expensive.
8335         (struct partition): Restore members lo_minimal, hi_minimal.
8336         (diag, compareseq): Restore arg find_minimal.  All uses changed.
8337         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
8338         1993 to make 'diff' run faster (but not as well) on large inputs,
8339         but use a threshold of 4096 instead of the old 256.
8340         * lib/fstrcmp.c (strcmp_bounded):
8341         * lib/git-merge-changelog.c (compute_differences):
8342         Adjust to diffseq.h changes.
8344 2016-10-22  Bruno Haible  <bruno@clisp.org>
8346         iconv: Avoid compilation error when bootstrapping GNU libiconv.
8347         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
8348         declaration yet, define ICONV_CONST to empty.
8350 2016-10-15  Bruno Haible  <bruno@clisp.org>
8352         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
8353         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
8354         module.
8356 2016-10-16  Bruno Haible  <bruno@clisp.org>
8358         system-quote tests: Avoid compiler warning on AIX.
8359         * tests/test-system-quote-child.c (fopen): Redefine like the system's
8360         <stdio.h> does.
8362 2016-10-16  Bruno Haible  <bruno@clisp.org>
8364         Fix some "gcc -Wall" warnings.
8365         * tests/test-ffsl.c (main): Use variable x, not i.
8366         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
8367         freopen.
8368         * tests/test-sethostname1.c (main): Explicitly ignore the return value
8369         of sethostname.
8371 2016-10-16  Bruno Haible  <bruno@clisp.org>
8373         gnulib-tool: Make --create-testdir on all modules work again.
8374         * gnulib-tool (func_create_testdir): Don't include the
8375         non-recursive-gnulib-prefix-hack module.
8377 2016-10-21  Daiki Ueno  <ueno@gnu.org>
8379         libunistring: change the maintainer to 'all'
8380         * modules/gen-uni-tables, modules/libunistring:
8381         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
8382         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
8383         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
8384         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
8385         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
8386         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
8387         * modules/uniwidth/*: Change the maintainer to 'all'.
8389 2016-10-16  Bruno Haible  <bruno@clisp.org>
8391         Simplify "configure: checking ..." messages.
8392         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
8393         AC_MSG_NOTICE.
8394         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
8396 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
8398         quotearg-tests: pacify gcc -Wall
8399         Problem reported by Bruno Haible in:
8400         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
8401         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
8402         * tests/test-quotearg.h: ... from here.
8404 2016-10-20  Pádraig Brady  <P@draigBrady.com>
8406         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
8407         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
8408         Needed on Centos <= 4.
8410 2016-10-20  Jim Meyering  <meyering@fb.com>
8412         printf.m4: fix a bug in detecting printf %j support
8413         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
8414         uintmax_t is defined in neither stdint.h nor inttypes.h.
8415         Before, this macro might have mistakenly set
8416         gl_cv_func_printf_sizes_c99=yes on such a system.
8417         Spotted by Zev Weiss.
8419 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
8421         sched: substitute HAVE_SYS_CDEFS_H too
8422         Problem reported by Tom G. Christensen in:
8423         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
8424         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
8425         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
8427 2016-10-19  Pádraig Brady  <P@draigBrady.com>
8429         quotearg: never write beyond the returned length
8430         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
8431         scan of the string when we initially encounter a single quote when
8432         shell quoting, so that if we then switch to a more concise quoting method
8433         we will not have written beyond that returned length.
8434         This is significant for sh-quote, which has separate routines
8435         to determine the length and do the actual quoting.
8436         * tests/test-quotearg.h: Reinstate the buffer bounds checking
8437         now that we never write more than the returned length.
8439 2016-10-18  Bruno Haible  <bruno@clisp.org>
8441         getprogname tests: Avoid failure in packages that use libtool.
8442         * tests/test-getprogname.c (main): Strip "lt-" prefix.
8443         Based on a patch by Jim Meyering.
8445 2016-10-16  Bruno Haible  <bruno@clisp.org>
8447         getprogname: Fix test failure on Cygwin. Comments.
8448         * lib/getprogname.h: Add comments.
8449         * lib/getprogname.c: Add comments. Fix #elif indentation.
8450         * tests/test-getprogname.c (main): On Cygwin, expect a result without
8451         ".exe" suffix.
8453 2016-10-16  Bruno Haible  <bruno@clisp.org>
8455         Make sure the libunistring detection rejects older versions with a
8456         known bug.
8457         * modules/unistr/u8-strtok (configure.ac): Bump required version.
8458         * modules/unistr/u16-strtok (configure.ac): Likewise.
8459         * modules/unistr/u32-strtok (configure.ac): Likewise.
8461 2016-10-18  Bruno Haible  <bruno@clisp.org>
8463         sh-quote, system-quote: revert regression of unit test.
8464         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
8465         * tests/test-system-quote-main.c (check_one): Likewise.
8467 2016-10-16  Pádraig Brady  <P@draigBrady.com>
8469         quotearg: fix stale tests
8470         * tests/test-quotearg.c [locale_results]: Add the missing str7
8471         entries to the expected results.
8472         * tests/test-system-quote-main.c (check_one): Don't enforce that we
8473         don't write beyond the returned length, since that's no longer the
8474         case if we switch to a more concise quoting style.
8475         * tests/test-sh-quote.c (check_one): Likewise.
8476         (main): Adjust for the new more concise quoting style.
8477         Reported by Bruno Haible.
8479 2016-10-16  Jim Meyering  <meyering@fb.com>
8481         non-recursive-gnulib-prefix-hack: fix inconsequential typo
8482         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
8483         to "$1".  This macro is always invoked with $1 == lib.
8484         Spotted by Bruno Haible
8486 2016-10-16  Bruno Haible  <bruno@clisp.org>
8488         Fix a test crash.
8489         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
8490         fails.
8492 2016-10-16  Pádraig Brady  <P@draigBrady.com>
8494         test-limits-h: suppress -Woverlength-strings
8495         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
8497 2016-10-15  Bruno Haible  <bruno@clisp.org>
8499         gettime, timespec, utimens: Relicense under LGPL.
8500         * modules/gettime (License): Change to LGPL.
8501         * modules/timespec (License): Likewise.
8502         * modules/utimens (License): Likewise.
8504 2016-10-14  Bruno Haible  <bruno@clisp.org>
8505             Pádraig Brady  <P@draigBrady.com>
8507         canonicalize-lgpl: Support the case path_max > INT_MAX.
8508         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
8509         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
8511 2016-10-13  Jim Meyering  <meyering@fb.com>
8513         getprogname: IBM z/OS: avoid NULL-dereference
8514         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
8515         upon strdup failure.
8517 2016-10-12  Jim Meyering  <meyering@fb.com>
8519         test-stdint: use _GL_VERIFY rather than "verify" for some tests
8520         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
8521         and an abbreviated diagnostic rather than verify with the full one,
8522         because the full-length strings would evoke warnings from gcc with
8523         -Woverlength-strings.
8525 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8527         stdint: port SIZE_MAX to glibc s390
8528         Problem reported by Eric Blake in:
8529         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
8530         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
8531         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
8532         correct type, if possible.
8534 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
8536         getprogname: port to IBM z/OS
8537         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
8539 2016-10-11  Jim Meyering  <meyering@fb.com>
8541         maint: remove stray space after "." in AC_DEFINE comment.
8542         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
8543         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8545 2016-10-05  Jim Meyering  <meyering@fb.com>
8547         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
8548         * lib/long-options.c (parse_long_options): Add a break statement
8549         to avoid this new warning/failure:
8550         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
8551           --create-testdir --dir=/t/x --with-tests --test long-options
8552         ../../gllib/long-options.c: In function 'parse_long_options':
8553         ../../gllib/long-options.c:66:12: error: this statement may \
8554           fall through [-Werror=implicit-fallthrough]
8555                    (*usage_func) (EXIT_SUCCESS);
8556                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
8558 2016-10-05  Jim Meyering  <meyering@fb.com>
8560         utimecmp: avoid new GCC 7 warning from -Wbool-operation
8561         Testing this module would fail when using GCC 7 like this:
8562         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
8563           --dir=/tmp/x --with-tests --test utimecmp
8564         ../../gllib/utimecmp.c: In function ‘utimecmp’:
8565         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
8566           [-Werror=bool-operation]
8567                          time_t s = src_s & ~ (res == 2 * BILLION);
8568                                             ^
8569         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
8570           [-Werror=bool-operation]
8571                src_s &= ~ (res == 2 * BILLION);
8572                         ^
8573         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
8574         Instead, make it explicit that we intend to apply it to 0 or 1.
8576 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8578         dfa: save memory for states
8579         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
8580         states if dfa has a lot of caches.
8582 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
8584         wchar, wctype-h: fix for MinGW 3.22.2
8585         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
8586         special invocation, to fix issues with MinGW 3.22.2 wchar.h
8587         when included from <string.h>.
8588         * lib/wctype.in.h [__MINGW32__]: Add special invocation
8589         convention for MinGW 3.22.2, to solve issues with their
8590         wctype.h when included from <ctype.h>.
8592 2016-10-05  Jim Meyering  <meyering@fb.com>
8594         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
8595         * lib/long-options.c (parse_long_options): Add a break statement
8596         to avoid this new warning/failure:
8597         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
8598           --create-testdir --dir=/t/x --with-tests --test long-options
8599         ../../gllib/long-options.c: In function ‘parse_long_options’:
8600         ../../gllib/long-options.c:66:12: error: this statement may \
8601           fall through [-Werror=implicit-fallthrough]
8602                    (*usage_func) (EXIT_SUCCESS);
8603                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
8605         utimecmp: avoid new GCC 7 warning from -Wbool-operation
8606         Testing this module would fail when using GCC 7 like this:
8607         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
8608           --dir=/tmp/x --with-tests --test utimecmp
8609         ../../gllib/utimecmp.c: In function ‘utimecmp’:
8610         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
8611           [-Werror=bool-operation]
8612                          time_t s = src_s & ~ (res == 2 * BILLION);
8613                                             ^
8614         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
8615           [-Werror=bool-operation]
8616                src_s &= ~ (res == 2 * BILLION);
8617                         ^
8618         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
8619         Instead, make it explicit that we intend to apply it to 0 or 1.
8621 2016-10-03  Pádraig Brady  <P@draigBrady.com>
8623         quotearg: minimize shell quoting using double quotes
8624         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
8625         quote in encountered then use double quotes (c style quoting)
8626         when possible, as it simplifies the quoting.
8627         * tests/test-quotearg-simple.c: Add test cases.
8628         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
8629         for the fact we now may write beyond the returned length.
8631 2016-10-02  Jim Meyering  <meyering@fb.com>
8633         vasnprintf.c: avoid spurious warning from GCC 7
8634         The presence of cpp directives renders this "FALLTHROUGH" comment
8635         ineffective, so does not suppress the -Wimplicit-fallthrough warning
8636         from GCC 7 built from git on 2016-10-02.
8637         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
8638         directives, so that it takes effect once again.  This is clearly
8639         not a proper change, and I will revert it once this bug is fixed:
8640         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
8642 2016-10-01  Jim Meyering  <meyering@fb.com>
8644         getprogname: correct the test for a __progname variable
8645         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
8646         and AC_LINK_IFELSE to check for a global __progname.  If found,
8647         define HAVE_VAR___PROGNAME.
8648         * lib/getprogname.c (getprogname): Reflect the new name of the
8649         feature- checked preprocessor symbol:
8650         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
8652 2016-09-28  Jim Meyering  <meyering@fb.com>
8654         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
8655         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
8656         fall-through case with a /* fallthrough */ comment.
8658         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
8659         * lib/dfa.c (dfassbuild): Mark the end of this case with a
8660         /* fallthrough */ comment.
8662         getprogname: avoid __progname vs program_invocation_short_name pitfall
8663         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
8664         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
8665         not with Fedora 24's glibc-2.23.1-10.
8666         * lib/getprogname.c (__progname): Move this declaration down...
8667         (getprogname): ... into the #elif block where used, and make it
8668         explicitly "extern".
8670         getprogname: port to OpenBSD 5.1
8671         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
8672         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
8673         * modules/getprogname (configure.ac): Move most of this code...
8674         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
8675         increment serial number, and add a test for __progname.
8676         https://bugs.gnu.org/24562
8677         Reported by Nelson H. F. Beebe.
8679 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8681         sched: port to GCC 6.2.1 on macOS Sierra
8682         Problem reported by Denis Davydov in:
8683         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
8684         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
8685         Include <sys/cdefs.h> before <sched.h>.
8686         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
8687         so that we needn’t worry about the sched.h include bug here.
8688         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
8689         and include it before <sched.h> if it exists, when
8690         checking for <sched.h>.
8692         tests/init.sh: port Alpine fix to AIX 7.1
8693         * tests/init.sh (compare_): When attempting to use diff -U3,
8694         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
8695         diff -u not outputting a space after leading '+', as the users
8696         of 'compare' should not be that picky about its output format.
8697         In the AIX 7.1 case, return with diff exit status (or with 2 if
8698         trouble), instead of some random nonzero exit status.
8699         * tests/test-init.sh (test_compare): Remove space after leading
8700         '+', so that AIX 7.1 'diff' passes the test.
8702 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8704         nl_langinfo: pacify GCC
8705         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
8706         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
8708         stdint: also set GL_GENERATE_LIMITS_H
8709         Problem reported by Jim Meyering in:
8710         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
8711         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
8713         limits-h, stdint: Don't assume extensions, fix typo
8714         * m4/limits-h.m4 (gl_LIMITS_H):
8715         * m4/stdint.m4 (gl_STDINT_H):
8716         Don't assume AC_USE_SYSTEM_EXTENSIONS.
8717         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
8718         reported by Jim Meyering in:
8719         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
8721 2016-09-21  Jim Meyering  <meyering@fb.com>
8723         getprogname: port to AIX
8724         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
8725         and strdup to obtain a short program name string.  Using code from
8726         Bruno Haible and an idea from Bastien ROUCARIÈS, in
8727         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
8728         Assaf Gordon reported that this new file would fail to compile on
8729         AIX-7.1 32bit.
8731 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
8733         extensions: fix typo in comment
8734         * m4/extensions.m4: Sync from Autoconf master.
8736         stdint: support new _WIDTH macros
8737         * doc/posix-headers/stdint.texi: Document this.
8738         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
8739         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
8740         support for INTMAX_WIDTH, etc. as well as for support for just C99.
8741         * modules/stdint (Depends-on): Add limits-h.
8742         (Makefile.am): Substitute HAVE_C99_STDINT_H.
8743         * modules/stdint-tests (Depends-on): Add extensions, so that
8744         INTMAX_MAX etc. are defined.
8745         * tests/test-stdint.c: Verify the new macros.
8747         limits-h: new module
8748         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
8749         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
8750         * doc/posix-headers/limits.texi: Document new module.
8751         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
8752         * modules/limit-h-tests, tests/test-limits-h.c: New files.
8754         stdio: don't redefine __USE_MINGW_ANSI_STDIO
8755         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
8756         if it is already defined.  Apparently GNU Emacs relies on this.  See:
8757         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
8759 2016-09-15  Eric Blake  <eblake@redhat.com>
8761         sys_types: avoid glibc 2.25 warnings about major()
8762         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
8763         older autoconf.
8764         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
8765         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
8766         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
8767         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
8769         mountlist: include sysmacros.h for glibc
8770         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
8771         AC_HEADER_MAJOR.
8772         * lib/mountlist.c (includes): Use correct headers.
8774 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8776         extensions: port to more ISO C TSes
8777         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
8778         master, to add support for more recent ISO C TRs and TSes.
8780 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8782         intprops: new macro TYPE_WIDTH
8783         * lib/intprops.h (TYPE_WIDTH): New macro.
8784         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
8785         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
8786         * lib/parse-datetime.y (parse_datetime2):
8787         Use it.
8789         extensions: port to recent ISO C TRs
8790         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8791         Sync from Autoconf master, to add support for recent ISO C TRs.
8792         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
8793         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
8794         the MinGW option is not an extension.
8796 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
8798         dfa: port to Solaris 9
8799         Problems reported by Tom G. Christensen in:
8800         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
8801         * modules/dfa (Depends-on): Add isblank.
8802         * modules/dfa-tests (dfa_match_aux_LDADD):
8803         Rename from test_stat_LDADD, to fix typo.
8804         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
8806 2016-09-10  Jim Meyering  <meyering@fb.com>
8808         strverscmp: avoid link failure on OS X
8809         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
8810         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
8812 2016-08-16  Jim Meyering  <meyering@fb.com>
8814         dfa: new module, importing grep's DFA matcher
8815         Since grep's DFA matcher is now being used by two gnulib-enabled
8816         projects, grep and sed, it makes sense to version-control its
8817         sources and unit tests in one place: here.
8818         * modules/dfa: New module.
8819         * modules/dfa-tests: New file.
8820         * lib/dfa.c: New file, from grep.
8821         * lib/dfa.h: Likewise.
8822         * lib/localeinfo.c: Likewise.
8823         * lib/localeinfo.h: Likewise.
8824         * tests/dfa-match-aux.c: Likewise.
8825         * tests/dfa-invalid-char-class.sh: Likewise.
8826         * tests/dfa-match.sh: Likewise, with minor changes.
8827         * MODULES.html.sh (Misc): Add "dfa" to this list.
8829 2016-09-09  Jim Meyering  <meyering@fb.com>
8831         getprogname-tests: don't depend on assert-h
8832         * modules/getprogname-tests (Depends-on): Remove assert-h.
8833         It was not needed, and in fact would cause build failure for
8834         coreutils on some systems.  Reported by Assaf Gordon in https:
8835         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
8837 2016-09-07  Jim Meyering  <meyering@fb.com>
8839         getprogname-tests: work also when EXEEXT is nonempty
8840         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
8841         * tests/test-getprogname.c (main): Use it.
8842         Suggested by Gisle Vanem.
8844 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
8846         getprogname: fix errors in previous change
8847         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
8848         s/program_invocation_name/base/
8849         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
8851 2016-09-08  Pádraig Brady  <P@draigBrady.com>
8853         parse-datetime: restrict debug output to input string
8854         * lib/parse-datetime.y (parse_datetime2): If we parse
8855         all of the input but determine it's invalid, ensure
8856         we don't output the now invalid input pointer.
8857         This issue was seen with `date -d 'now +1'`.
8859 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8861         flexmember: new macro FLEXALIGNOF
8862         * lib/flexmember.h: Include <stddef.h>, for offsetof.
8863         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
8864         this macro.  Update comments.
8866 2016-09-07  Jim Meyering  <meyering@fb.com>
8868         getprogname: port to systems with __argv (mingw, msvc)
8869         * lib/getprogname.c (getprogname): Include "dirname.h" and use
8870         last_component: more general than open coding it with hard-coded "/".
8871         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
8872         * modules/getprogname (Depends-on): Add dirname-lgpl.
8873         (configure.ac): Check for __argv in <stdlib.h>.
8874         * modules/getprogname-tests: New file.
8875         * tests/test-getprogname.c: New file.
8876         Suggested by Gisle Vanem in
8877         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
8879 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8881         flexmember: port better to GCC + valgrind
8882         With a char[] flexible array member in a struct with nontrivial
8883         alignment, GCC-generated code can access past the end of the
8884         array, because GCC assumes there are padding bytes to get the
8885         struct aligned.  So the common idiom of malloc (offsetof (struct
8886         s, m), n) does not properly allocate an n-byte trailing member, as
8887         malloc’s argument should be the next multiple of alignof (struct s).
8888         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
8889         Although C11 apparently permits this GCC optimization (i.e., there
8890         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
8891         See the thread containing:
8892         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
8893         * lib/flexmember.h: New file.
8894         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
8895         * lib/localename.c, lib/time_rz.c:
8896         Include flexmember.h.
8897         * lib/fnmatch_loop.c (struct patternlist):
8898         * lib/localename.c (struct hash_node):
8899         Use FLEXIBLE_ARRAY_MEMBER.
8900         * lib/fnmatch_loop.c (EXT):
8901         * lib/fts.c (fts_alloc):
8902         * lib/glob.c (glob_in_dir):
8903         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
8904         * lib/localename.c (gl_lock_define_initialized):
8905         * lib/time_rz.c (tzalloc):
8906         Use FLEXSIZEOF instead of offsetof.
8907         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8908         Check that the size of the struct can be taken.
8909         * modules/flexmember (Files): Add lib/flexmember.h.
8910         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
8911         Add flexmember.
8913 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8915         getprogname: port to Solaris 10
8916         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
8917         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
8918         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
8920         stdalign: correct mistake in alignof doc
8921         Problem reported by Joseph Myers in:
8922         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
8923         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
8924         alignof(S) where S is a structure containing a flexible array
8925         member.  The Gnulib substitute does not support this, but C11 does.
8927 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8929         main.mk: remove sc_program_name, since there is no more need to
8930         use set_program_name in tools (getprogname is enough for most
8931         of the cases).
8932         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
8933         * top/maint.mk (sc_program_name): Remove.
8935 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8937         Port tests away from progname, since modules that need the
8938         program name already depend on getprogname.
8939         * modules/acl-tests (Depends-on): Remove progname.
8940         * modules/argmatch (Depends-on): Likewise.
8941         * modules/argmatch-tests (Depends-on): Likewise.
8942         * modules/argp-tests (Depends-on): Likewise.
8943         * modules/argp-version-etc-tests (Depends-on): Likewise.
8944         * modules/array-list-tests (Depends-on): Likewise.
8945         * modules/array-oset-tests (Depends-on): Likewise.
8946         * modules/avltree-list-tests (Depends-on): Likewise.
8947         * modules/avltree-oset-tests (Depends-on): Likewise.
8948         * modules/avltreehash-list-tests (Depends-on): Likewise.
8949         * modules/carray-list-tests (Depends-on): Likewise.
8950         * modules/copy-file-tests (Depends-on): Likewise.
8951         * modules/exclude-tests (Depends-on): Likewise.
8952         * modules/fchownat-tests (Depends-on): Likewise.
8953         * modules/fdopendir-tests (Depends-on): Likewise.
8954         * modules/filenamecat-tests (Depends-on): Likewise.
8955         * modules/fstatat-tests (Depends-on): Likewise.
8956         * modules/fstrcmp-tests (Depends-on): Likewise.
8957         * modules/linked-list-tests (Depends-on): Likewise.
8958         * modules/linkedhash-list-tests (Depends-on): Likewise.
8959         * modules/mkdirat-tests (Depends-on): Likewise.
8960         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
8961         * modules/nonblocking-socket-tests (Depends-on): Likewise.
8962         * modules/obstack-printf-tests (Depends-on): Likewise.
8963         * modules/openat-tests (Depends-on): Likewise.
8964         * modules/parse-datetime-tests (Depends-on): Likewise.
8965         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
8966         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
8967         * modules/quotearg-simple-tests (Depends-on): Likewise.
8968         * modules/quotearg-tests (Depends-on): Likewise.
8969         * modules/rbtree-list-tests (Depends-on): Likewise.
8970         * modules/rbtree-oset-tests (Depends-on): Likewise.
8971         * modules/rbtreehash-list-tests (Depends-on): Likewise.
8972         * modules/spawn-pipe-tests (Depends-on): Likewise.
8973         * modules/system-quote-tests (Depends-on): Likewise.
8974         * modules/uniname/uniname-tests (Depends-on): Likewise.
8975         * modules/uninorm/nfc-tests (Depends-on): Likewise.
8976         * modules/uninorm/nfd-tests (Depends-on): Likewise.
8977         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
8978         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
8979         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
8980         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
8981         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
8982         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
8983         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
8984         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
8985         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
8986         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
8987         * modules/unlinkat-tests (Depends-on): Likewise.
8988         * modules/version-etc-tests (Depends-on): Likewise.
8989         * modules/xalloc-die-tests (Depends-on): Likewise.
8990         * modules/xmemdup0-tests (Depends-on): Likewise.
8991         * modules/xprintf-posix-tests (Depends-on): Likewise.
8992         * modules/xvasprintf-tests (Depends-on): Likewise.
8993         * tests/test-argmatch.c: Do not include progname.h.
8994         (main) Stop calling set_program_name.
8995         * tests/test-argp-version-etc.c: Likewise.
8996         * tests/test-argp.c: Likewise.
8997         * tests/test-argv-iter.c: Likewise.
8998         * tests/test-array_list.c: Likewise.
8999         * tests/test-array_oset.c: Likewise.
9000         * tests/test-avltree_list.c: Likewise.
9001         * tests/test-avltree_oset.c: Likewise.
9002         * tests/test-avltreehash_list.c: Likewise.
9003         * tests/test-carray_list.c: Likewise.
9004         * tests/test-copy-acl.c: Likewise.
9005         * tests/test-copy-file.c: Likewise.
9006         * tests/test-exclude.c: Likewise.
9007         * tests/test-fchownat.c: Likewise.
9008         * tests/test-fdopendir.c: Likewise.
9009         * tests/test-filenamecat.c: Likewise.
9010         * tests/test-fstatat.c: Likewise.
9011         * tests/test-fstrcmp.c: Likewise.
9012         * tests/test-linked_list.c: Likewise.
9013         * tests/test-linkedhash_list.c: Likewise.
9014         * tests/test-mkdirat.c: Likewise.
9015         * tests/test-nonblocking-pipe-main.c: Likewise.
9016         * tests/test-nonblocking-socket-main.c: Likewise.
9017         * tests/test-obstack-printf.c: Likewise.
9018         * tests/test-openat.c: Likewise.
9019         * tests/test-parse-datetime.c: Likewise.
9020         * tests/test-pipe-filter-gi1.c: Likewise.
9021         * tests/test-pipe-filter-gi2-main.c: Likewise.
9022         * tests/test-pipe-filter-ii1.c: Likewise.
9023         * tests/test-pipe-filter-ii2-main.c: Likewise.
9024         * tests/test-quotearg-simple.c: Likewise.
9025         * tests/test-quotearg.c: Likewise.
9026         * tests/test-rbtree_list.c: Likewise.
9027         * tests/test-rbtree_oset.c: Likewise.
9028         * tests/test-rbtreehash_list.c: Likewise.
9029         * tests/test-sameacls.c: Likewise.
9030         * tests/test-set-mode-acl.c: Likewise.
9031         * tests/test-spawn-pipe-main.c: Likewise.
9032         * tests/test-system-quote-main.c: Likewise.
9033         * tests/test-unlinkat.c: Likewise.
9034         * tests/test-version-etc.c: Likewise.
9035         * tests/test-xalloc-die.c: Likewise.
9036         * tests/test-xfprintf-posix.c: Likewise.
9037         * tests/test-xmemdup0.c: Likewise.
9038         * tests/test-xprintf-posix.c: Likewise.
9039         * tests/test-xvasprintf.c: Likewise.
9040         * tests/uniname/test-uninames.c: Likewise.
9041         * tests/uninorm/test-u32-nfc-big.c: Likewise.
9042         * tests/uninorm/test-u32-nfd-big.c: Likewise.
9043         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
9044         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
9045         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9046         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9047         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9048         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9049         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9050         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9051         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9052         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9053         * tests/test-c-stack.c: (program_name): Do not define.
9054         (main): Do not set program_name.
9055         * tests/test-closein.c: Likewise.
9056         * tests/test-xstrtol.c: Likewise.
9057         * tests/test-yesno.c: Likewise.
9059 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9061         Port modules to use getprogname explicitly, instead of requiring
9062         progname to be used (or program_name to be provided).
9063         * lib/argmatch.c: Do not include progname.h.
9064         [TEST] (program_name): Do not define.
9065         [TEST] (main): Call getprogname instead of using program_name.
9066         * lib/c-stack.c: Do not include progname.h.
9067         (program_name): Do not define.
9068         (die): Call getprogname instead of using program_name.
9069         * lib/chdir-long.c: Do not include progname.h.
9070         [TEST_CHDIR] (main): Do not set program_name.
9071         * lib/error.c [!_LIBC]: Include progname.h.
9072         [!_LIBC] (program_name): Define using getprogname.
9073         * lib/euidaccess.c: Do not include progname.h.
9074         [TEST] (main): Do not set program_name.
9075         * lib/git-merge-changelog.c: Include getprogname.h instead of
9076         progname.h.
9077         (usage): Call getprogname instead of using program_name.
9078         (main): Likewise.  Stop calling set_program_name.
9079         * lib/group-member.c: Do not include progname.h.
9080         [TEST] (main): Do not set program_name.
9081         * modules/argmatch (Depends-on): Add getprogname.
9082         * modules/c-stack (Depends-on): Likewise.
9083         * modules/error (Depends-on): Likewise.
9084         * modules/git-merge-changelog (Depends-on): Likewise.
9085         Also remove progname.
9087 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
9089         * NEWS: Document the deprecation of the 'progname' module.
9091 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9093         getprogname: new module
9094         This provides a LGPL module for getting the name of the current
9095         program, using the same API found on *BSD systems.
9096         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
9097         * modules/getprogname: New files.
9098         * MODULES.html.sh (Misc): Add getprogname.
9100 2016-09-02  Jim Meyering  <meyering@fb.com>
9102         manywarnings: add -fno-common
9103         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
9104         to the list.  Quoting the manual, "Compiling with -fno-common is
9105         useful on targets for which it provides better performance, or if
9106         you wish to verify that the program will work on other systems that
9107         always treat uninitialized variable declarations this way [putting
9108         it in the data section]."  If diffutils had been using this sooner,
9109         it would have prevented this duplicate declaration issue:
9110         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
9112 2016-08-31  Simon Josefsson  <simon@josefsson.org>
9114         parse-datetime: Fix typo.
9115         * lib/parse-datetime.y (parse_datetime2): Fix typo.
9117 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9119         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
9120         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
9121         GCC 5 and 6 that have __builtin_sub_overflow but not
9122         __builtin_sub_overflow_p.  With the recent changes, these
9123         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
9124         implementation than with INT_SUBTRACT_OVERFLOW implementation,
9125         since the former needs just one runtime comparison whereas the
9126         latter needs two.
9128         strverscmp: sync with glibc
9129         Although this doesn't exactly synchronize with glibc
9130         byte-for-byte, it makes the code behave the same as glibc.
9131         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
9132         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
9133         difference shouldn't matter in practical use.  All uses changed
9134         back to isdigit.
9135         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
9136         (next_state): Now unsigned char array; redo elements.
9137         (result_type): Now signed char array; redo elements.
9138         (__strverscmp): Fix glibc bug 9913 by using new states.
9139         * tests/test-strverscmp.c (main): Test glibc bug 9913.
9141 2016-08-29  Jim Meyering  <meyering@fb.com>
9143         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
9144         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
9145         similarly to how it was done to intprops.h.
9147 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
9149         intprops.h: port recent changes to GCC 6.2.0
9150         * lib/intprops.h (__has_builtin): Move earlier.
9151         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
9152         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
9153         the last argument can be null.  All uses changed.
9154         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
9155         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9156         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
9157         and it's not clear which GCC versions it works for.
9158         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
9159         its definiens.
9161         intprops.h: use __typeof__ with GCC 7
9162         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
9163         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
9164         This avoids computing the expression's value (which might overflow!).
9166 2016-08-29  Jim Meyering  <meyering@fb.com>
9168         intprops.h, xalloc-oversized.h: work with gcc 7
9169         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
9170         __builtin_mul_overflow each accept a NULL pointer as the third
9171         argument.  However in gcc 7, that is no longer accepted.
9172         Instead, one must use the "_p"-suffixed names, with which, the
9173         third parameter is no longer a pointer.
9174         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
9175         the definition: not true for gcc 7 and subsequent.
9176         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
9177         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9178         Provide new definitions for gcc 7 and subsequent.
9179         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
9180         that works with gcc-7.
9182         intprops.h: fix missing-backslash problems
9183         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
9184         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
9186 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9188         intprops: fix paren typo on old platforms
9189         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
9190         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
9191         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
9192         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
9193         && !defined LLONG_MAX]:
9194         Remove stray paren.
9196         intprops: port to OpenVMS
9197         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
9198         * doc/posix-headers/limits.texi: Document the problem.
9199         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
9200         Define if not already defined.
9202 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
9204         parse-datetime: improve debug implementation
9205         Follow-up to commit 12ad79069 ("add optional debug printing").
9206         Improve parse-datetime's debug implementation: remove macros,
9207         replace global debug flag variable with a function parameter,
9208         use nstrftime for formatting.
9209         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
9210         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
9211         (parse_datetime2): New function, accepts 'flags' parameter, supporting
9212         debug flag. Existing interface 'parse_datetime' left unmodified.
9213         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
9214         (struct parser_control): add 'parse_datetime_debug' member variable.
9215         (parse_datetime): Call new function 'parse_datetime2' without debug.
9216         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
9217         pc.parse_datetime_debug variable as needed.
9218         (to_year): Accept new flags parameter, instead of using global variable.
9219         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
9220         use struct 'debug' variable instead of global variable.
9221         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
9222         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
9223         correspnding functions directly instead of using macros.
9224         * modules/parse-datetime: Add gnulib's strftime module.
9226 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
9228         c-strcase-tests: port to EBCDIC
9229         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
9230         which assume ASCII encoding semantics to run only in ASCII
9231         mode, as they fail in EBCDIC.
9233         sigpipe-tests: fix typo
9234         * tests/test-sigpipe.sh: C, not B.
9236 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9238         canonicalize-lgpl: fix errno after malloca fails
9239         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
9240         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
9241         * lib/canonicalize-lgpl.c (__realpath):
9242         Don't assume malloca sets errno on failure.
9244 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9246         strtod: port errno handling to z/OS
9247         * lib/strtod.c (strtod): Save and restore errno more reliably.
9249 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
9251         strtod: port to z/OS
9252         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
9253         implementation.
9255 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9257         strtod: port to z/OS
9258         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
9259         implementation.
9261         regex, string: rename to avoid '__string'
9262         * lib/regex.h, lib/string.in.h: Do not use the identifier
9263         '__string', as it is effectively reserved by string.h on z/OS.
9265         c-strcase-tests, wcwidth-tests: depend on c-ctype
9266         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
9267         Add c-ctype.
9269 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
9271         thread: port to z/OS
9272         * lib/glthread/thread.c, lib/glthread/thread.h:
9273         Rudimentary gl_thread support for z/OS.
9275         maint: port tests to z/OS errno behavior
9276         * tests/test-nonblocking-reader.h:
9277         * tests/test-nonblocking-writer.h:
9278         Accommodate z/OS errno code preferences. (I believe this should
9279         still be within spec; IBM is good at following the letter if not
9280         the spirit of such things.)
9282         maint: preprocessor changes to support z/OS
9283         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
9284         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
9285         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
9286         * tests/test-nonblocking-pipe.h:
9288         fclose, strstr-simple, wchar: port to z/OS
9289         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
9290         Changes to the Autoconf M4 code to support z/OS.  Note that
9291         fclose() is broken in a different way on z/OS than it is on other
9292         systems, thus the special-case in fclose.m4.
9294         iconv_open-utf-tests, iconv-tests: port to EBCDIC
9295         * tests/test-iconv-utf.c, tests/test-iconv.c:
9296         Added appropriately conditional #pragmas so that the test strings
9297         in test-iconv-utf.c are correctly interpreted in ASCII instead of
9298         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
9299         addressed in a more portable way by simply rewriting all the ASCII
9300         literal characters as octal escapes, but then you would lose the
9301         partial readability that the strings have now. Also, iconv_open()
9302         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
9304         c-strcase-tests, wcwidth-tests: port to EBCDIC
9305         * tests/test-c-strcasecmp.c: Include c-ctype.h.
9306         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
9307         * tests/test-wcwidth.c: Likewise.
9309 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9311         stdbool: don't require _Bool for C++
9312         Problem reported by David Seifert in:
9313         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
9314         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
9315         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
9316         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
9317         stricter about checking that bool and _Bool are compatible in C.
9319 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
9321         getdelim: remove dependency on realloc-posix
9322         * lib/canonicalize-lgpl.c (alloc_failed)
9323         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
9324         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
9325         Use __set_errno where needed, for consistency.
9326         * lib/getdelim.c (alloc_failed): New function.
9327         (getdelim): Use it.
9329 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
9331         parse-datetime: add optional debug printing
9332         Print parsing information, warnings, and errors to stderr.
9333         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
9334         * lib/parse-datetime.y:
9335         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
9336         (PROGRESS*): Same as DEBUG, for progress reporting.
9337         (dbg_printf): Print message to stderr, with 'date' prefix.
9338         (struct parser_control): Add 'debug_*_seen' variables.
9339         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
9340         (debug_print_current_time, debug_print_relateive_time): Prints the
9341         current/relative date/time value of parser_control.
9342         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
9343         (to_year): Warn about 2-digit year parsing.
9344         (yylex):   Warn about unrecognized words.
9345         (get_effective_timezone): Returns current timezone in minutes.
9346         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
9347         clearly and unambigiously as possible.
9348         (debug_mktime_not_ok): Print detailed information about failed
9349         date/time values.
9350         (parse_datetime): Add DEBUG messages for failures, warnings. Add
9351         PROGRESS messages for status messages.
9352         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
9354 2016-08-06  Jim Meyering  <meyering@fb.com>
9356         tests/init.sh: exclude dash with bad "local" semantics
9357         * tests/init.sh (gl_shell_test_script_): Add a function to
9358         eliminate a shell like "dash" (unlike bash, zsh) that has
9359         surprising/risky "local var='...'" semantics.  Inspired by
9360         the problem and discussion in https://bugs.gnu.org/24116#11.
9362 2016-08-02  Ján Tomko  <jtomko@redhat.com>
9364         maint.mk: expand the prohibit_doubled_word regex
9365         This check has a static list of words that are checked for
9366         repetitions.  Expand it before running the perl script to
9367         avoid using expensive captures.  This decreases the cost
9368         for libvirt from 1.66s to 0.66s.
9369         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
9370         (sc_prohibit_doubled_word): Use it.
9372 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9374         useless-if-before-free: skip non-matching lines early
9375         * build-aux/useless-if-before-free: First match each line with the
9376         simple/quick /\bif\b/ and reject if there is no match. This often
9377         saves the cost of the much more involved regular expression.
9378         For libvirt, this decreases the cost from 1.44s to 1.02s.
9380 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9382         maint.mk: speed up sc_po_check
9383         sc_po_check would skip files based on their names, or on the
9384         existence of files with derived names. Rewrite it to use perl
9385         instead of shell to make the check faster.
9386         * top/maint.mk (perl_translatable_files_list_): Define.
9387         (sc_po_check): Use it.
9389 2016-07-30  Ján Tomko  <jtomko@redhat.com>
9391         maint.mk: speed up require_config_h_first
9392         Instead of spawning three processes per file,
9393         rewrite the check in perl and run it once for all the files.
9394         * top/maint.mk (perl_config_h_first_): Define.
9395         (sc_require_config_h_first): Use it in place of shell code.
9397 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9399         maint.mk: speed up sc_po_check
9400         sc_po_check would skip files based on their names, or on the
9401         existence of files with derived names. Rewrite it to use perl
9402         instead of shell to make the check faster.
9403         * top/maint.mk (perl_translatable_files_list_): Define.
9404         (sc_po_check): Use it.
9406 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
9408         obstack: pacify GCC 6 with -Wnull-dereference
9409         Problem reported by Assaf Gordon in:
9410         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
9411         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
9412         Declare with __attribute_noreturn__.
9413         * lib/obstack.h (__attribute_noreturn__): New macro.
9415 2016-07-13  Eric Blake  <eblake@redhat.com>
9417         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
9418         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
9419         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
9421 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
9423         doc: mention glibc SSIZE_MAX buglet
9424         * doc/posix-headers/limits.texi (limits.h): Document the bug.
9426 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
9428         printf-posix: Fix mingw build
9429         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
9430         expression for detecting C symbol prefixes but forgot to qoute square
9431         brackets in the command line arguments for grep.  That way when
9432         building with mingw the condition was false although it ought to be
9433         true instead.  In particular scenarios this led to the following
9434         compile error:
9436             Cannot export rpl_printf: symbol not found
9437             Cannot export rpl_scanf: symbol not found
9438             collect2: error: ld returned 1 exit status
9440         Fix this by properly quoting square brackets.
9442 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
9444         mktime: call tzset as per POSIX
9445         Problem reported by Ludovic Courtès in:
9446         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
9447         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
9448         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
9450 2016-06-26  Pádraig Brady  <P@draigBrady.com>
9452         fts: handle readdir() errors
9453         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
9454         but also upon error when it will also set errno.  Therefore
9455         flag the error case from readdir().  We treat the case where
9456         no items are read the same as if the dir can't be accessed,
9457         i.e. by setting fts_errno to FTS_DNR.
9459 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9461         intprops: port better to GCC 7
9462         GCC 7 __builtin_add_overflow supports a new usage form, where the
9463         last argument is a null pointer, and which merely returns 1 if an
9464         overflow would occur.  This is a constant expression if all
9465         arguments are constants, and should generate faster code when code
9466         needs to be generated.
9467         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
9468         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9469         Use builtin operations if available.
9470         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
9471         operations are available, as it's almost surely faster.
9473 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9475         intprops-test: port to GCC 6
9476         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
9477         since the bug is not fixed in GCC 6.1.
9479 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9481         xalloc-oversized: port to GCC 7; fewer warnings
9482         GCC 7 will have a better way to deal with integer overflow.
9483         Plus, fix a warnings problem reported by Tim Ruehsen in:
9484         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
9485         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
9486         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
9487         For GCC 5, use __xalloc_oversized if both args are constants,
9488         or if pedantic.
9490 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
9492         regex: port to Sun C
9493         Reported by Daiki Ueno.
9494         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
9495         __restrict, in prototype.  This fixes a problem I introduced in
9496         the 2016-02-19 merge from glibc.
9498 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
9500         stdbool: Restore __bool_true_false_are_defined check
9501         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
9502         __bool_true_false_are_defined is still defined, even with C++11.
9504 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
9506         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
9507         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
9509 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
9511         Use GCC_LINT, not lint
9512         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
9513         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
9514         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
9515         Document problem with lint and _Noreturn.
9516         * lib/diffseq.h (IF_LINT, IF_LINT2):
9517         * lib/fts.c (sccsid):
9518         * lib/getndelim2.c (IF_LINT):
9519         * lib/gl_anylinked_list2.h (gl_linked_iterator)
9520         (gl_linked_iterator_from_to):
9521         * lib/gl_anytree_list2.h (gl_tree_iterator)
9522         (gl_tree_iterator_from_to):
9523         * lib/gl_anytree_oset.h (gl_tree_iterator):
9524         * lib/gl_array_list.c (gl_array_iterator)
9525         (gl_array_iterator_from_to):
9526         * lib/gl_array_oset.c (gl_array_iterator):
9527         * lib/gl_carray_list.c (gl_carray_iterator)
9528         (gl_carray_iterator_from_to):
9529         * lib/idcache.c:
9530         * lib/inet_ntop.c (IF_LINT):
9531         * lib/regcomp.c (build_charclass_op, create_tree):
9532         * lib/regex_internal.c (re_acquire_state)
9533         (re_acquire_state_context):
9534         * lib/trigl.c (rcsid):
9535         * lib/trim.c (IF_LINT):
9536         * lib/vasnprintf.c (IF_LINT):
9537         * lib/verify.h (assume):
9538         Treat GCC_LINT like lint.
9540 2016-05-29  Bruno Haible  <bruno@clisp.org>
9542         secure_getenv: Port to many more platforms.
9543         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
9544         functions.
9545         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
9546         for non-BSD Unix platforms and for native Windows.
9547         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
9548         Prompted by a request from Nikos Mavrogiannopoulos.
9550 2016-05-27  Eric Blake  <eblake@redhat.com>
9552         canonicalize: Fix broken probe for realpath.
9553         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
9554         in logic introduced in 54615b95.
9556 2016-05-26  Eric Blake  <eblake@redhat.com>
9558         unsetenv: relax to LGPLv2+
9559         * modules/unsetenv (License): Match setenv license.
9561 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
9563         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
9564         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
9565         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
9566         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
9567         (commonarg, dirargs, dirs, infoarg, generate_ascii)
9568         (generate_html, generate_info, generate_tex, outdir)
9569         (source_extra, split, srcfile, texarg): Move above 'version'.
9570         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
9572 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9574         manywarnings: update for GCC 6.1
9575         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
9576         Add GCC 6.1 options that apply to C.
9577         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
9578         do not apply to C, are obsolescent, etc.
9580 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
9582         glob: size_t overflow checks
9583         * lib/glob.c (__has_builtin): New macro.
9584         (size_add_wrapv, glob_use_alloca): New static functions.
9585         (glob, glob_in_dir): Check for size_t overflow in several places,
9586         and fix some size_t checks that were not quite right.
9588         glob: don't assume INT_MAX < SIZE_MAX
9589         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
9590         latter is not portable to (probably theoretical) hosts where
9591         SIZE_MAX <= INT_MAX.
9593 2016-05-09  Bruno Haible  <bruno@clisp.org>
9595         Fix undefined behaviour in gettext.h.
9596         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
9597         pointer's value after the storage it points to has been freed.
9598         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
9599         Spotted by Coverity.
9601 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9603         git-version-gen: avoid undefined shift
9604         Problem reported by Mosè Giordano in:
9605         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
9606         * build-aux/git-version-gen: Avoid undefined behavior if invoked
9607         with --prefix or --fallback but without a later argument.  While
9608         we're at it, omit unnecessary quotes.
9610 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
9612         glob: merge glibc changes into lib/glob.c
9613         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
9614         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
9615         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
9616           struct dirent [BZ #19779]
9617         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
9618           callback gl_readdir
9619         2015-10-20 Convert miscellaneous function definitions to prototype style
9620         2015-10-20 Convert 113 more function definitions to prototype style
9621           (files with assertions)
9622         2015-06-12 Fix getlogin_r namespace (bug 18527).
9623         2014-02-10 Use glibc_likely instead __builtin_expect.
9624         2013-10-20 When glob pattern contains a trailing slash match only
9625           directories. Fixes bug 10278.
9626         2013-09-04 glob: silence -Wattribute warnings
9627         2013-06-07 Avoid use of "register" as optimization hint.
9628         2012-09-25 Use size_t instead of int for internal variables in glob
9629           (bug 14621)
9630         2011-07-20 Check for overflows in expressions
9631         2011-05-28 Remove unused variable
9632         2011-05-22 Add a few more alloca size checks
9633         2010-03-27 Whitespace fixes
9634         2010-03-27 Fix one more issue with the glob patch
9635         2010-03-24 Fix glob with empty pattern
9636         2008-05-27 Remove useless more "if" tests before "free"
9637         * modules/glob (Depends-on): Add stdint.
9639 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
9641         mktime: port to stricter signed overflow checking
9642         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
9643         (long_int): Require width for INT_MAX * 3 * (seconds per year),
9644         instead of merely for INT_MAX * 2.  In practice platforms that
9645         do the latter also do the former.
9646         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
9647         (shr): New static function, replacing SHR.  All uses changed.
9648         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
9649         and TIME_T_MAX.  All uses changed.
9650         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9651         Use long_int, not time_t.
9652         (long_int_avg): New static function, replacing time_t_avg.
9653         All uses changed.  Round toward positive infinity, as that
9654         generates slightly better code.
9655         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
9656         by INT_ADD_WRAPV.
9657         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
9658         (convert_time): New static function.
9659         (ranged_convert): Use it
9660         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
9661         Use simpler test for loop exit.
9662         (__mktime_internal): Store negative of guessed offset, to simplify
9663         overflow checking.  Remove no-longer-needed test for small time_t
9664         overflows.
9666         mktime: speed up DEBUG_MKTIME benchmarks
9667         Call tzset just once, at the start, rather than for every test
9668         case.  This lets us measure the CPU cost of mktime as opposed to
9669         that of tzset.  This is relevant when TZ is not set and glibc is
9670         being used.  This speeds up tests by a factor of 40 on my Fedora
9671         23 x86-64 platform.
9672         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
9673         to call tzset and as a sanity check.  Later on, use localtime_r
9674         instead of localtime.
9676         mktime: resurrect DEBUG_MKTIME testing
9677         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
9678         Include <string.h>, for strcmp.
9680         mktime: simplify DEBUG_MKTIME
9681         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
9682         Simplify later usage accordingly.
9684         Port mktime_internal offset to unsigned time_t
9685         This avoids some assumptions about wraparound arithmetic on
9686         signed integer overflow.
9687         * lib/mktime-internal.h (mktime_offset_t): New type.
9688         (mktime_internal): Use it in decl.
9689         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
9691         * lib/mktime.c (__mktime_internal, localtime_offset):
9692         * lib/timegm.c (timegm): Use it.
9693         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
9694         (gl_FUNC_MKTIME): Require it.
9696 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
9698         xstrtol: prohibit monstrosities like "1bB"
9699         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
9700         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
9701         "B" only if the first suffix needs a base.
9702         * tests/test-xstrtol.sh: Test this.
9704 2016-04-21  Pádraig Brady  <P@draigBrady.com>
9706         xstrtod: reinstate setting of *result upon ERANGE
9707         * lib/xstrtod.c (XSTRTOD): The user may decide to use
9708         the returned limits upon ERANGE, so allow and document that.
9710 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
9712         xstrtod: modify *result only if no errors
9713         * lib/xstrtod.c (XSTRTOD).
9715 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
9717         btowc: document problems in C locale
9718         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
9719         with mbrtowc.  See: http://bugs.gnu.org/23269#32
9721 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
9723         mktime: improve integer overflow checking
9724         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
9725         (WRAPV): Remove; no longer needed.
9726         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
9727         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
9728         Remove.  Use intprops.h defns instead.
9729         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
9730         Use bool for Boolean, for clarity.
9731         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
9732         detect integer overflow.
9733         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
9735         intprops: check two's complement assumption
9736         Suggested by Eric Blake in:
9737         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
9738         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
9739         short, int, long, and (if available) long long are two's complement.
9740         * modules/intprops (Depends-on): Add 'verify'.
9742         intprops, mktime, strtol: assume two's complement
9743         These macros were not portable to every conforming C11 ones'
9744         complement platform.  It's not worth the hassle of porting to some
9745         platforms that use ones' complement or signed magnitude, as such
9746         platforms are almost purely theoretical nowadays and porting even
9747         to some of them makes the code harder to review for little
9748         practical benefit.  Problem reported by Florian Weimer in:
9749         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
9750         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
9751         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
9752         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
9753         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
9754         (TYPE_SIGNED_MAGNITUDE):
9755         Remove.  All uses rewritten to assume two's complement, which is
9756         all we can reasonably test nowadays anyway.
9757         * top/maint.mk (_intprops_names): Remove the removed macros.
9759 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
9761         stdint: port to strict C11 left shift
9762         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
9763         Pacify clang -Wshift-negative-value, which should be an issue only
9764         on clang setups where stdint.h does not conform to C11 or to C++11.
9765         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
9767 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
9769         mbrtowc: work around glibc bug#19932
9770         Fix mbrtowc so that it never returns -1 in the C locale,
9771         as this conflicts with a future version of POSIX
9772         http://austingroupbugs.net/view.php?id=663#c2738
9773         and causes problems with GNU grep: http://bugs.gnu.org/23234
9774         See glibc bug 19932:
9775         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
9776         * doc/posix-functions/mbrlen.texi (mbrlen):
9777         * doc/posix-functions/mbrtowc.texi (mbrtowc):
9778         Document the glibc bug.
9779         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
9780         Include hard-locale.h, locale.h.
9781         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
9782         if the bug is possible.
9783         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
9784         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
9785         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
9786         * modules/mbrtowc (Depends-on): Add hard-locale.
9787         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
9788         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
9789         * tests/test-mbrtowc5.sh: New file.
9791 2016-04-03  Pedro Alves  <palves@redhat.com>
9793         stdint: detect good enough pre-C++11 stdint.h in C++ mode
9794         When gnulib is configured in C++ mode for a system with a working C99
9795         implementation of stdint.h that predates C++11, gnulib ends up
9796         substituting stdint.h anyway.  This works on most targets, but on e.g.,
9797         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
9798         MinGW is LLP64.  Instead of trying to detect the right types, detect
9799         good-enough-pre-C++11 stdint.h and in such case define
9800         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
9801         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
9802         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
9803         conforms to C99.  If it does, check whether it hides symbols
9804         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
9805         does, define those macros in config.h.
9807 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
9809         argp: merge changes from glibc
9810         Among other things, this should fix problems found by a Coverity
9811         scan and reported by Andrei Borzenkov:
9812         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
9813         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
9814         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
9815         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
9816         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
9817         * lib/argp.h:
9818         Merge changes from glibc.
9819         * tests/test-argp-2.sh: Adjust to match new behavior.
9821 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
9823         stddef: support configuring with g++
9824         Problem reported by Ángel González in:
9825         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
9826         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
9827         Do not define if _GCC_MAX_ALIGN_T is defined.
9829 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
9831         test-framework-sh: minor cleanups
9832         * tests/init.sh (testdir_prefix_): Output a trailing newline,
9833         since strictly speaking POSIX requires this.
9834         (setup_): Do not use the variable 'fail', as that makes the
9835         trace output harder to read ('fail' is typically used by
9836         tests to mean the test failed).  Treat // portably.
9837         Check that new directory is not merely a sibling of the tmp dir.
9838         Avoid unnecessary invocation of tr.
9840         test-framework-sh: revert port to NetBSD 7.0
9841         It was a false alarm; I misinterpreted Assaf Gordon's report.
9842         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
9843         Restore.
9844         (test_dir_): Adjust to mktempd_ change.
9845         (mktempd_): Restore 2nd arg.  Use -t again.
9846         (base_template_, template_, nx_): Resurrect old code.
9848         Port better to Alpine Linux
9849         Its diff implementation does not support -c, but does support -U3.
9850         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
9851         * tests/init.sh (diff_opt_): New var.
9852         (compare_): Prefer diff -U3 to diff -c to plain diff.
9854 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9856         test-framework-sh: port to NetBSD 7.0
9857         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
9858         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
9859         Remove.  All uses removed.
9860         (test_dir_): Adjust to mktempd_ change.
9861         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
9862         (base_template_, template_, nx_): Simplify by hardcoding.
9864 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
9866         gitlog-to-changelog: suppress ignored chatter
9867         * build-aux/gitlog-to-changelog: Do not warn about skipping
9868         an SHA if it would have been ignored anyway.
9870 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
9872         setlocale: add "sv" to Windows language table
9873         * lib/setlocale.c (language_table) [W32]: Add "sv".
9874         Reported in <https://savannah.gnu.org/bugs/?44588>.
9876 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
9878         sys_select: port to new Cygwin
9879         Problem reported by Ken Brown in:
9880         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
9881         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
9882         diagnostics.
9884 2016-03-17  Jim Meyering  <meyering@fb.com>
9886         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
9887         * tests/test-userspec.c (main): Remove unnecessary braces and fix
9888         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
9889           test-userspec.c:176:9: error: statement is indented as if it were \
9890             guarded by... [-Werror=misleading-indentation]
9891                    {
9892                    ^
9893           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
9894                  if (!diag && !T[i].result)
9895                  ^~
9897 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
9899         time_rz: port to clang -Wunused-const-variable
9900         * lib/time_rz.c (TZ): Remove.  All uses removed.
9902         std-gnu11: improve clang support
9903         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
9904         2016-03-15 Also try clang
9905         2016-03-15 Port C11 and C++11 testing to clang
9907         select: port more to Intel 2016.1.150 compiler
9908         Problem reported by Balázs Hajgató in:
9909         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
9910         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
9912 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9914         select: try to port to 2016.1.150 compiler
9915         Problem reported by Balázs Hajgató in:
9916         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
9917         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
9918         POSIX specifies 'restrict'.
9920 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
9922         localename-tests: memory allocation fixes
9923         * tests/test-localename.c (test_locale_name)
9924         (test_locale_name_thread): Don't call freelocale on a locale
9925         that was the base of a successful newlocale, as that
9926         results in a double free.  Problem reported by Assaf Gordon.
9927         (test_locale_name_thread): Free saved names after use, to pacify
9928         gcc -fsanitize=address.
9930 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
9932         intprops: make .h file license match module
9933         * lib/intprops.h: Change the license wording to match glibc format.
9934         This is what is in modules/intprops anyway.  See:
9935         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
9937 2016-03-08  Eric Blake  <eblake@redhat.com>
9939         acl: fix missing return on Cygwin
9940         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
9941         fall off end of function. Fixes http://bugs.gnu.org/22949
9943 2016-03-05  Bruno Haible  <bruno@clisp.org>
9945         extern-inline: port to PGI CC
9946         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
9947         keyword 'inline'.
9948         Reported by Adam James Stewart in:
9949         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
9951 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9953         signbit: port back to pre-C++11 GCC
9954         * lib/math.in.h (signbit): Do previous change only if
9955         __cplusplus < 201103.  See Jonathan Wakely in:
9956         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
9958 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
9960         mountlist: recognize autofs-mounted remote file systems, too
9961         Originally reported at: https://bugzilla.redhat.com/1309247
9962         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
9963         "-hosts" because it is used by autofs to mount remote file systems.
9965 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9967         signbit: port to C++ with GCC 6
9968         * lib/math.in.h (signbit) [__cplusplus]:
9969         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
9970         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
9972         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
9974         regex: make it closer to libc
9975         Make Idx a signed type, rather than possibly unsigned.
9976         The unsignedness was not really buying us anything, since the code
9977         overflows for other reasons before getting to PTRDIFF_MAX.  Making
9978         it signed allows us to use -1 and -2 with abandon, like libc does,
9979         thus lessening the number of differences between gnulib and libc.
9980         Also, it should help avoid gratuitous warnings like the one
9981         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
9982         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
9985         regex: merge patches from libc
9987         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
9988         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
9989         Convert miscellaneous function definitions to prototype style.
9990         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
9991         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
9992         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
9993         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
9994         (re_search_internal):
9995         Convert to prototype-style function definition.
9996         Use internal_function for internal functions.
9998 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
10000         stdalign: port to older HP and IBM cc
10001         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
10002         C compilers, by checking their version numbers.  These version
10003         numbers appear in MariaDB and in Qt code that dates way back and
10004         that conditiionally uses the 'aligned' attribute.
10006 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10008         stdalign: port to clang 3.7.0
10009         Problem reported by Herbert J. Skuhra in:
10010         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
10011         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
10012         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
10013         https://llvm.org/bugs/show_bug.cgi?id=26547
10015 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10017         readdir_r: now obsolescent
10018         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
10019         * lib/mountlist.c (read_file_system_list): Add a FIXME.
10021 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10023         misc: port better to gcc -fsanitize=address
10024         Without these patches, ./configure CFLAGS='-fsanitize=address'
10025         would compute incorrect values.  This patch fixes some (but not all)
10026         test failures with recent glibc, with this configuration.
10027         * m4/acl.m4 (gl_ACL_GET_FILE):
10028         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
10029         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
10030         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
10031         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
10032         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
10033         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
10034         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
10035         * m4/getline.m4 (gl_FUNC_GETLINE):
10036         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
10037         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
10038         * m4/regex.m4 (gl_REGEX):
10039         * m4/strndup.m4 (gl_FUNC_STRNDUP):
10040         * tests/test-calloc-gnu.c (main):
10041         * tests/test-duplocale.c (main):
10042         * tests/test-getgroups.c (main):
10043         * tests/test-getline.c (main):
10044         * tests/test-inttostr.c (main):
10045         * tests/test-localename.c (test_locale_name)
10046         (test_locale_name_thread, test_locale_name_environ)
10047         (test_locale_name_default):
10048         * tests/test-regex.c (main):
10049         * tests/test-setlocale1.c (main):
10050         * tests/test-stat.h (test_stat_func):
10051         Free heap-allocated storage before exiting.
10052         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
10053         Don't match *_foo symbols inserted by AddressSanitizer.
10054         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
10056 2016-02-02  Jim Meyering  <meyering@fb.com>
10058         verify-tests: also remove stray test-verify.Tpo
10059         * modules/verify-tests (Makefile.am): Arrange for "make clean"
10060         to remove the test-verify.Tpo file that is left behind by
10061         the automake-generated rule upon compilation failure.
10062         Otherwise, that .Tpo file would cause a failed "make distcheck"
10063         at least for grep.
10065 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
10067         std-gnu11: new module
10068         This makes it easier for applications to prefer C11 and C++11
10069         to older variants, when compiling C and C++ code.
10070         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
10071         a nontrivial chunk of GPLed Autoconf source code.
10072         * COPYING: Mention the m4/*.m4 copyright situation.
10073         * MODULES.html.sh (std-gnu11): New module.
10074         * m4/std-gnu11.m4, modules/std-gnu11: New files.
10076 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
10078         get-permissions, strftime: fix grammar in comments
10079         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
10080         some grammar fixes Alan Mackenzie made to GNU Emacs.
10082 2016-01-25  Daiki Ueno  <ueno@gnu.org>
10084         gettext: mark as obsolete
10085         Suggested by Paul Eggert in:
10086         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
10087         * modules/gettext (Status): Mark as obsolete.
10088         (Notice): Suggest to use 'gettext-h' instead.
10089         * modules/gettext-h (Description): Suggest GNU gettext, instead of
10090         the 'gettext' module.
10092 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
10094         gnulib-tool: don't give up on ln -s so easily
10095         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
10096         because an earlier one failed.  The targets could be on different
10097         file systems.  Problem reported by KO Myung-Hun in:
10098         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
10100         closedir: fix OS/2-related typos
10101         Problem reported by KO Myung-Hun in:
10102         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
10103         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
10104         in the last couple of changes.
10106 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
10108         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
10109         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
10110         copying a directory.
10112 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
10114         regex: treat [x] as x if x is a unibyte encoding error
10115         Problem reported by Aharon Robbins in:
10116         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
10117         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
10118         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
10120         closedir, dirfd, opendir: port to OpenSolaris 5.10
10121         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
10122         * m4/dirfd.m4 (gl_FUNC_DIRFD):
10123         * m4/opendir.m4 (gl_FUNC_OPENDIR):
10124         Don't use ${word##pat} substitution, as it doesn't work in
10125         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
10126         http://bugs.gnu.org/22443#11
10128 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10130         bootstrap: use American spelling
10131         * build-aux/bootstrap: Honor American spelling.
10133 2016-01-22  Karl Berry  <karl@freefriends.org>
10135         * doc/posix-functions/localtime.texi,
10136         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
10138 2016-01-21  Bruno Haible  <bruno@clisp.org>
10140         hash-pjw-bare: fix comment
10141         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
10143         wcwidth: Replace also on OpenBSD 5.8
10144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
10145         * doc/posix-functions/wcwidth.texi: Update.
10147 2016-01-20  Pádraig Brady  <P@draigBrady.com>
10149         gnu-web-doc-update: fix addition of new files
10150         If there were already added (emnpty) dirs,
10151         then cvs aborts the add with the message:
10152           cvs [add aborted]: there is a version in <./dirname> already
10153         * build-aux/gnu-web-doc-update: Add directories separately
10154         to the addition of files, to avoid the above issue
10155         impacting the addition of files.
10157 2016-01-19  Daiki Ueno  <ueno@gnu.org>
10159         utimens-tests: avoid pulling gettext .m4 files
10160         Although this is not the right fix to the original problem:
10161         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
10162         it makes it possible again for consumer projects to use arbitrary
10163         version of gettext, through the steps described at:
10164         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
10165         See here for details:
10166         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
10167         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
10168         'gettext'.
10169         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
10170         'gettext'.
10172 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10174         regex: pacify static checkers
10175         Problem and draft fix reported by Aharon Robbins in:
10176         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10177         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
10178         Clear memory to pacify static checkers.
10180         regex: fix [ diagnostic
10181         Problem and fix reported by Aharon Robbins in:
10182         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10183         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
10185         regex: fix memory leaks
10186         Problem and draft fix reported by Aharon Robbins in:
10187         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10188         * lib/regcomp.c (build_range_exp, build_charclass_op)
10189         * lib/regex_internal.c (re_dfa_add_node):
10190         Fix memory leak on failure.
10192 2016-01-18  Pádraig Brady  <P@draigBrady.com>
10194         fts: don't unconditionally use leaf optimization for NFS
10195         NFS st_nlink are not accurate on all implementations,
10196         leading to aborts() if that assumption is made.
10197         See <https://bugzilla.redhat.com/1299169>
10198         * lib/fts.c (leaf_optimization_applies): Remove NFS from
10199         the white list, and document the issue.
10201 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10202             KO Myung-Hun  <komh@chollian.net>
10204         gnulib-tool: don't assume ln -s works
10205         * gnulib-tool (func_ln_s): New function.
10206         (func_ln): Use it.
10208 2016-01-15  KO Myung-Hun  <komh@chollian.net>
10210         utimes: detect utimes() correctly on OS/2 kLIBC
10211         utimes() of OS/2 kLIBC has some limitations.
10212         1. OS/2 itself supports a file date since 1980 year in local time.
10213         2. OS/2 itself supports only even seconds for a file time.
10214         3. utimes() of OS/2 kLIBC does not work on an opened file.
10215         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
10216         * doc/posix-functions/utimes.texi: Document the above limitations of
10217         utimes() on OS/2 kLIBC.
10219 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10220             KO Myung-Hun  <komh@chollian.net>
10222         openat_proc_name: port to OS/2 kLIBC
10223         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
10224         instead of /proc/self/fd.
10225         * lib/openat-proc.c (openat_proc_name):
10226         Don't assume file name length is less than INT_MAX.
10227         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
10229 2016-01-14  KO Myung-Hun  <komh@chollian.net>
10231         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
10232         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
10233         definitions of intptr_t and uintptr_t (which use int and unsigned)
10234         to avoid clashes with declarations of system functions like sbrk.
10235         * lib/stdint.in.h (intptr_t, uintptr_t): Check
10236         _INTPTR_T_DECLARED before defining them.
10238         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
10239         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
10240         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
10241         Declare on kLIBC.
10242         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
10243         fd associated with dirp.
10244         (_gl_register_dirp_fd): New. Register fd associated with dirp to
10245         dirp_fd_list.
10246         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
10247         (dirfd): Implemented for kLIBC.
10248         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
10249         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
10250         succeeds.
10251         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
10252         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10253         (REPLACE_DIRFD): Define to 1 if replaced.
10254         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
10255         * modules/closedir (Depends-on): Add dirfd.
10256         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
10257         condition.
10258         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
10259         * modules/opendir (Depends-on): Add dirfd.
10261         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
10262         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
10263         * lib/dup.c (dup_nothrow): New.
10264         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
10265         (klibc_dup2): New.
10266         * lib/fcntl.c (klibc_fcntl): New.
10267         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
10268         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
10269         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
10270         fd.
10272         pipe_filter_ii_execute: port to OS/2 kLIBC
10273         Pipes on kLIBC do not support O_NONBLOCK like Win32.
10274         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
10275         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
10276         Reuse Win32 code on OS/2 kLIBC.
10277         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
10278         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
10280         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
10281         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
10282         static inline function.  The implementation of wcwidth in wcwidth.c
10283         causes a "conflicting types" error.
10284         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
10286         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
10287         spawn() on OS/2 kLIBC is not silly like one on Windows
10288         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
10289         empty string on OS/2 kLIBC.
10291         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
10292         On OS/2 kLIBC, select() works only on sockets.
10293         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
10295         binary-io: don't put fd in binary mode if it is a console on EMX
10296         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
10297         a console on EMX.
10299 2016-01-15  Pádraig Brady  <P@draigBrady.com>
10301         doc: mention unfixed issues with unsupported localtime() values
10302         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
10303         returns nonsense for localtime(2^56).
10304         * doc/posix-functions/localtime_r.texi: Likewise.
10306 2016-01-14  Pádraig Brady  <P@draigBrady.com>
10308         doc: mention setlocale() issues on OpenBSD
10309         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
10310         never fails, and the need to check categories individually.
10312 2016-01-14  Pádraig Brady  <P@draigBrady.com>
10314         sig2str: list all signals on FreeBSD >= 7
10315         FreeBSD >= 7 is contravening POSIX by not defining NSIG
10316         to the maximal statically defined signal value.
10317         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
10318         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
10319         where available, even when NSIG is defined.
10321 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
10323         acl-permissions: port to USE_ACL==0 platforms
10324         I ran into this problem when building bleeding-edge GNU Emacs
10325         with gcc -fsanitize=address on Fedora 23.  On this platform
10326         the ACL library does not pass the 'configure' test and Emacs
10327         then does not build due in part to what appear to be typos in the
10328         ACL part of Gnulib.
10329         * lib/acl-internal.c (free_permission_context):
10330         * lib/acl-internal.h (struct permission_context):
10331         Test whether USE_ACL is nonzero, not whether it is defined.
10333 2016-01-12  Martin Sebor  <msebor@redhat.com>
10335         mktime: rename macro to avoid glibc clash
10336         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
10337         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
10339 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
10341         Port "$@" to OpenIndiana ksh93
10342         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
10343         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
10344         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
10345         bug long-dead shells, so remove the workaround.
10346         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
10347         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
10348         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
10349         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
10350         Use "$@" instead of ${1+"$@"}.
10352         Port Universal Time settings to strict POSIX
10353         * build-aux/announce-gen, build-aux/bootstrap:
10354         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
10355         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
10356         * build-aux/gnupload, build-aux/mkinstalldirs:
10357         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
10358         * build-aux/update-copyright, build-aux/useless-if-before-free:
10359         * build-aux/vc-list-files, tests/test-strftime.c:
10360         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
10361         but POSIX says the behavior of TZ="UTC" is undefined.
10363 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10365         msvc-inval: fix problem with unset shell var
10366         Problem reported by Karl Berry in:
10367         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
10368         * modules/msvc-inval (Depends-on):
10369         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
10370         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
10372 2016-01-01  Pádraig Brady  <P@draigBrady.com>
10374         tests: for compare_(), use cmp -s where available
10375         * tests/init.sh (compare_): Only fall back to cmp without
10376         the POSIX defined -s option, where this is not available.
10378 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10380         version-etc: new year
10381         * build-aux/gendocs.sh (version):
10382         * doc/gendocs_template:
10383         * doc/gendocs_template_min:
10384         * doc/gnulib.texi:
10385         * lib/version-etc.c (COPYRIGHT_YEAR):
10386         Update copyright dates by hand in templates and the like.
10387         * all files: Run 'make update-copyright'.
10389 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10391         human: fix output buffer overrun by 1
10392         * lib/human.c (human_readable): Fix off-by-one typo in buffer
10393         calculation that could lead to a one-byte buffer overrun.
10395 2015-12-28  Daiki Ueno  <ueno@gnu.org>
10397         maint: fix operator precedence in mbrtowc test
10398         This is a fix for test breakage introduced by commit 45228d96; the
10399         equality expression must be parenthesized when negated with '!',
10400         otherwise we always get:
10402           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
10404         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
10405         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
10407 2015-12-23  James Youngman  <jay@gnu.org>
10409         regexprops-generic: update from regex.h
10410         * doc/regexprops-generic.texi: update by running the regexprops binary
10411         from findutils (the command line is 'regexprops "Regular Expressions"
10412         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
10413         gnulib with GNU grep had made this document out-of-date.
10415 2015-12-23  Pádraig Brady  <P@draigBrady.com>
10417         strftime-tests: avoid false failure on OS X
10418         * tests/test-strftime.c (struct localtime_rz_test): Add an
10419         ahistorical member which is used to warn rather than fail
10420         when tm_isdst isn't set for such entries.  This is the case for
10421         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
10423 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
10425         fts: ensure leaf optimization is used for NFS
10426         NFS provides usable dirent.d_type but not necessarily for all entries
10427         of large directories.  See <https://bugzilla.redhat.com/1252549>
10428         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
10430 2015-12-20  Pádraig Brady  <P@draigBrady.com>
10432         fts: enable leaf optimization for XFS
10433         XFS provides usable dirent.d_type only for DT_DIR,
10434         but the noleaf optimization still applies.
10435         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
10437 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10439         intprops: comment fix
10440         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
10441         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
10443         intprops-test: work around GCC bug 68971
10444         Problem reported by Pádraig Brady in:
10445         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
10446         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
10447         (main): Add a case that better tests 64-bit long in this area.
10449 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
10451         gnulib-tool: allow multiple --local-dir usage
10452         * gnulib-tool: Use --local-dir to construct compound
10453         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
10454         PATH_SEPARATOR early.
10455         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
10456         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
10457         func_determine_path_separator because that needs to be detected
10458         earlier now.
10459         (func_determine_path_separator): New function.
10460         (func_path_foreach, func_path_foreach_inner): New functions.
10461         (func_path_prepend, func_path_append): Likewise.
10462         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
10463         (func_lookup_file, func_all_modules): Use new functions to work
10464         with local_gnulib_path.
10465         (func_modules_in_dir, func_exists_module): New callbacks for
10466         func_path_foreach.
10467         (func_exists_module, func_get_tests_module): Likewise.
10468         (func_is_local_file, func_should_symlink): New helper methods.
10469         (func_add_file, func_update_file): Use new func_should_symlink
10470         instead, DRY.
10471         (func_reconstruct_cached_local_gnulib_path): New helper.
10472         (func_reconstruct_cached_dir): New callback.
10473         (func_import): The cached_local_gnulib_dir renamed to
10474         cached_local_gnulib_path similarly to local_gnulib_dir.
10475         Use new func_reconstruct_cached_local_gnulib_path.
10476         (func_count_relative_local_gnulib_path): New sub-method.
10477         (func_create_testdir): Use func_should_symlink, DRY.
10478         (func_create_megatestdir): Use new functions to work with
10479         local_gnulib_path correctly.
10480         (func_append_local_dir): New helper.
10482 2015-12-08  Pádraig Brady  <P@draigBrady.com>
10484         fix freadptr to work with ungetc on all uClibc configs
10485         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
10486         where GNU coreutils cut(1) generates invalid output on uClibc
10487         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
10488         * lib/freadptr.c (freadptr): Return NULL if there are
10489         ungotten chars.  In this case freadseek() will iterate
10490         again to process the ungotten character.
10492 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
10494         xalloc-oversized: improve performance with GCC 5
10495         * lib/xalloc-oversized.h (xalloc_oversized):
10496         Improve performance with GCC 5 by using __builtin_mul_overflow.
10498 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10500         intprops: new public macro EXPR_SIGNED
10501         Emacs can use this macro, so make it public.
10502         * doc/intprops.texi (Arithmetic Type Properties): Rename from
10503         'Integer Type Determination', since some of these macros apply
10504         to non-integer types.  Clarify what kinds of constant expressions
10505         these macros return.  Say when the arguments can be non-integers.
10506         Mention newly published macro EXPR_SIGNED.
10507         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
10508         make it public.  All uses changed.
10510         intprops: fix typo in clang port
10511         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
10512         '__builtin_add_overflow' that is not caught by compiler.
10514 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
10516         test-timespec: fix typo in previous change
10517         * tests/test-timespec.c (main): Fix typo that reduced test quality.
10519         timespec-sub: fix overflow bug; add tests
10520         * lib/timespec-add.c (timespec_add):
10521         * lib/timespec-sub.c (timespec_sub):
10522         Work even if time_t is narrower than int (a theoretical
10523         possibility).  Redo code for a bit more clarity.
10524         * lib/timespec-sub.c (timespec_sub):
10525         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
10526         * modules/timespec-tests, tests/test-timespec.c: New files.
10528         intprops-test: suppress -Woverlength-strings
10529         Problem reported by Pádraig Brady in:
10530         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
10531         It is not worth the hassle to port this test to compilers that
10532         cannot handle long strings in diagnostics.
10533         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
10535 2015-11-03  Pádraig Brady  <P@draigBrady.com>
10537         quotearg: add quotearg_n_style_colon()
10538         This quotes with default options of the specified style,
10539         but with quoting enabled for instances of ':'.
10540         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
10541         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
10543 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10545         intprops: revise _WRAPV macros, revert _OVERFLOW
10546         The incompatible changes to the _OVERFLOW macros were too much of
10547         a hassle in practice, so revert them.  Instead, change the new
10548         _WRAPV macros to make them closer in behavior to GCC 5's new
10549         builtin_add_overflow etc. functions.  No other software was using
10550         these newly-added macros yet, so this should be OK.
10551         * NEWS: Revert previous change, since the incompatible change
10552         has been reverted, and nobody used the incompatible version.
10553         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
10554         Document revised behavior.
10555         (Integer Range Overflow): Adjust example to match above revisions.
10556         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
10557         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
10558         these can be used in integer constant expressions again.
10559         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
10560         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
10561         needed.
10562         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
10563         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
10564         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
10565         Remove, as they did not seem that useful.
10566         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
10567         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
10568         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
10569         Support new semantics.
10570         (__has_builtin): New macro, if not alreay defined.
10571         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
10572         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
10573         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
10574         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
10575         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
10576         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
10577         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
10578         New macros.
10579         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
10581 2015-11-03  Jim Meyering  <meyering@fb.com>
10583         intprops: add parentheses for when OP has precedence lower than "-"
10584         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
10585         "a OP b" must be parenthesized for when OP is like "<<", which has
10586         lower precedence than the following "-". Reported by Pádraig Brady.
10588 2015-11-03  Pádraig Brady  <P@draigBrady.com>
10590         quotearg: constify get_quoting_style parameters
10591         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
10592         * lib/quotearg.c (get_quoting_style): Likewise.
10594 2015-11-02  Pádraig Brady  <P@draigBrady.com>
10596         quotearg: add support for $'' shell escaping
10597         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
10598         items and descriptions.
10599         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
10600         above types by quoting like "shell", but using $'...' syntax
10601         for non printable characters, which should provide unambiguous
10602         printable output for any input.
10603         * tests/test-quotearg-simple.c: Update accordingly.
10605 2015-11-02  Pádraig Brady  <P@draigBrady.com>
10607         maint: use a more standard return from mbrtowc test
10608         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
10609         from the test program as this is non standard and often
10610         indicates an unhandled case in the test program.
10611         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
10613 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
10615         intprops: add WRAPV and const flavors for GCC 5
10616         If available, use GCC 5's builtin functions for efficient integer
10617         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
10618         and safely compute the low-order bits of the correct answer.
10619         A downside of these efficient functions is that they cannot be
10620         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
10621         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
10622         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
10623         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
10624         Document the changes.
10625         (Wraparound Arithmetic): New section.
10626         (Integer Range Overflow):
10627         Put this subsection last, since it's least useful.
10628         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
10629         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
10630         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
10631         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
10632         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
10633         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
10634         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
10635         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
10636         New macros.
10637         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10638         Generate calls to GCC builtins if available, for speed.
10639         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
10640         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
10641         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
10642         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
10643         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
10644         (CHECK_QUOTIENT, CHECK_REMAINDER):
10645         Test WRAPV and CONST flavors (when available) too.
10647 2015-10-30  Pádraig Brady  <P@draigBrady.com>
10649         doc: use extended timezone format in iso-8601 example
10650         * doc/parse-datetime.texi: The standard states that extended format
10651         is to be used consistently throughout.
10652         Note that lib/parse-datetime.y can handle either tz format.
10654 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
10656         stdalign: port to Sun C 5.9
10657         * doc/posix-headers/stdalign.texi: Document this.
10658         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
10659         __attribute__ ((__aligned__ (...))).
10661 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
10663         time_rz: fix comment about tzalloc
10664         * lib/time_rz.c (tzalloc): Fix comment.
10666 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
10668         stdalign: work around pre-4.9 GCC x86 bug
10669         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
10670         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
10671         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
10673 2015-10-18  Pádraig Brady  <P@draigBrady.com>
10675         maint.mk: sc_tight_scope: remove extraneous expressions
10676         * top/maint.mk (tight_scope): This is not really required since
10677         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
10678         that matches all nm entries.  But it does remove extraneous entries
10679         that may be confusing or cause issue in future maintenance.
10681 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
10683         time_rz: return NULL if localtime_r fails
10684         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
10685         while still attempting to pacify bleeding-edge GCC.
10687         fts: port to C11 alignof
10688         * doc/posix-headers/stdalign.texi (stdalign.h):
10689         Document the C11 restriction.
10690         * lib/fts.c: Include stddef.h, for max_align_t.
10691         (fts_alloc): Align using max_align_t, not FTSENT.
10692         * modules/fts (Depends-on): Add stddef.
10694 2015-10-18  Jim Meyering  <meyering@fb.com>
10696         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
10697         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
10698         would see this:
10700         lib/time_rz.c: In function 'localtime_rz':
10701         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
10702           [-Werror=nonnull]
10703                    if (tm && !save_abbr (tz, tm))
10704                        ^
10706         That was complaining about "tm" because it is a parameter that was
10707         declared with the __nonnull__ attribute.
10708         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
10709         result of localtime_r.
10711 2015-10-17  Jim Meyering  <meyering@fb.com>
10713         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
10714         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
10715         name-extraction regexp mistakenly used \S+, and would mistakenly
10716         extract "*F" from "extern int *F()" rather than the desired "F".
10717         Use \w+ instead.
10719 2015-10-17  Jim Meyering  <meyering@fb.com>
10721         maint.mk: sc_tight_scope: factor and support OS X
10722         * top/maint.mk (_gl_tight_scope): Address three issues:
10723         - factor out four instances of code that wraps a string in "^...$"
10724         - allow nm-reported symbol names to have an optional leading "_"
10725         - add "main" to the list of ignored variable names, because on os x,
10726         "main" has nm-reported type "S" in the variable-checking section.
10728 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
10730         safe-alloc-tests: fix typo in license header
10731         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
10733 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
10735         copy-file: fix mem leak in error case
10736         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
10737         upon error opening or performing I/O to the src and dest files.
10739 2015-10-15  Mike Frysinger  <vapier@chromium.org>
10741         localename: control langinfo.h inclusion
10742         This header is only used to work around buggy behavior in old
10743         versions of glibc, so do not include it all the time.  Otherwise
10744         we get build failures on systems that do not provide langinfo.h.
10745         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
10746         in the source later on.
10747         The patch was originally submitted to gettext as:
10748         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
10750 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10752         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
10753         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
10754         * lib/u64.c, lib/unistd.c:
10755         Append 'typedef int dummy;', to pacify compilers that are picky
10756         about empty translation units.
10758 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
10760         accept4-tests: fix to avoid non portable flags
10761         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
10762         as they are the only documented ones, and passing others may trigger
10763         EINVAL (seen on FreeBSD 10.1-RELEASE).
10764         * doc/glibc-functions/accept4.texi: Mention that we don't provide
10765         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
10767 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
10769         gnulib-tool: fix tests of 'extensions' module
10770         This complements f8fe25fab60e3c687a124 commit.
10771         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
10772         emitting of initial gl_EARLY macros.
10773         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
10774         replaced with func_emit_pre_early_macros call.
10776 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10778         unicase/locale-language: fix typo in utf-8 cookie
10779         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
10780         Problem reported by Zbigniew Jędrzejewski-Szmek.
10782 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10784         xalloc: do not worry about GCC 5 warning on 32 bit
10785         * lib/xalloc.h: Revert previous change.
10786         I found a better way to fix this in coreutils.
10788 2015-10-02  Pádraig Brady  <P@draigBrady.com>
10790         xalloc: avoid GCC 5.1 warning on 32 bit
10791         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
10792         xalloc_oversized(), which was seen to give this warning
10793         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
10794         when simplifying conditional".
10796 2015-10-02  Daiki Ueno  <ueno@gnu.org>
10798         uniname/uniname-tests: avoid compiler warnings
10799         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
10800         unused local variables.
10801         (test_alias_lookup): Fix alias name display in failure cases.
10803 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10805         c-ctype: do not worry about EBCDIC + char signed
10806         Drop support for EBCDIC with char being signed, as this breaks too
10807         many programs.  Problem reported by Ben Pfaff in:
10808         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
10809         * lib/c-ctype.h: Verify that we are not using EBCDIC with
10810         char being signed.
10811         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
10812         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
10813         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
10814         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
10815         * tests/test-c-ctype.c (test_all):
10816         Simplify by assuming standard char values cannot be negative.
10817         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
10819 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10821         c-ctype: port better to z/OS EBCDIC
10822         Problems reported by Daniel Richard G. in:
10823         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
10824         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
10825         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
10826         (_C_CTYPE_OTHER_CNTRL): New macro.
10827         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
10828         from SCHAR_MIN, as the functions are defined only from values
10829         promoted from char or from unsigned char, not necessarily from
10830         signed char.
10832 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
10834         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
10836         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
10837         and ARFLAGS variables.  Doing this unconditionally could break
10838         later Automake's AM_PROG_AR invocation (at least it's
10839         AC_CHECK_TOOLS call to detect correct 'ar' binary).
10841         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
10842         Amsterdam Compiler Kit, so make the previous code to have effects
10843         only on ACK, and rather automatically call the Automake's
10844         AM_PROG_AR as soon as possible to decide other cases.
10846         References:
10847         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
10849         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
10850         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
10851         is possible, keep setting AR/ARFLAGS to reasonable defaults.
10852         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
10853         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
10854         'extensions' module is used.
10855         * modules/extensions (configure.ac-early): Remove as this snippet
10856         is added to gnulib-comp.m4 earlier anyway.
10858 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10860         sockets: MS Windows initalization fixes
10861         Problem reported by Test User in:
10862         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
10863         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
10864         Correct the endianness.
10865         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
10866         number mismatch, not just on <.  Cleanup before any such failure.
10868 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
10870         gc: fix detection of installed libgcrypt version
10871         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
10872         at least as recent as 1.4.4.  The previously used macro is not
10873         available now, since modules were removed in version 1.6.0.
10875 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10877         c-ctype: rewrite to use inline functions
10878         This simplifies maintenance, since it makes for just one
10879         implementation of each function, letting the compiler have the fun
10880         of optimization.  In practice this works well nowadays with GCC.
10881         E.g., c_isascii might need only three instructions even though the
10882         source code lists every ASCII character individually in a large
10883         switch statement.
10884         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
10885         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
10886         * NEWS: Document the API change.
10887         * lib/c-ctype.c: Drastically simplify, since this now just expands
10888         inline functions.
10889         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
10890         (C_CTYPE_INLINE): New macro.
10891         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
10892         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
10893         Verify that either ASCII or EBCDIC is being used.
10894         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
10895         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
10896         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
10897         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
10898         New private macros.
10899         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
10900         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
10901         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
10902         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
10903         (c_tolower, c_toupper): When converting, return the unsigned char,
10904         as that is what z/OS does.
10905         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
10906         of some c-ctype.h macros.
10907         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
10908         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
10909         c_tolower promotion to be compatible with z/OS.
10911 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
10913         gitlog-to-changelog: trim only trailing whitespaces
10914         This is fix for --format regression introduced by commit
10915         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
10916         doubled %n string) had no effect anymore.  This format
10917         specification has been used e.g. by GNU paxuitils (commit
10918         edfd8bcc3).
10920         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
10921         newlines in commmit messages.
10923 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10925         Test that c_iscntrl agrees with iscntrl, etc.
10926         Suggested by Daniel Richard G. in:
10927         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
10928         * modules/c-ctype-tests (Depends-on): Add ctype.
10929         * tests/test-c-ctype.c: Include <ctype.h>.
10930         (NCHARS): New constant.
10931         (test_agree_with_C_locale): New function.
10932         (main): Use it.
10933         (test_all): Use named constants.
10935         c-ctype: improve c_isascii testing
10936         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
10937         Add a test to count the number of ASCII characters.
10939 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10941         savewd: remove SAVEWD_CHDIR_READABLE
10942         It was problematic in the light of file systems that ignore umask.
10943         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
10944         * NEWS: Document this.
10945         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
10946         successful, -1 (setting errno) on failure, rather than something
10947         more complicated than that.
10948         * lib/mkdir-p.c (make_dir_parents):
10949         Do not use SAVEWD_CHDIR_READABLE.
10950         * lib/savewd.c (savewd_chdir):
10951         Remove support for SAVEWD_CHDIR_READABLE.
10952         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
10954         c-ctype: port better to EBCDIC
10955         Problems reported by Daniel Richard G. in
10956         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
10957         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
10958         Include "verify.h".
10959         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
10960         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
10961         Define as enum constants with value false, if not defined, so that
10962         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
10963         code more portable, as both branches of the 'if' are compiled on
10964         all platforms.
10965         (C_CTYPE_EBCDIC): New constant.
10966         Verify that the character set is either ASCII or EBCDIC.
10967         (to_char): New static function.
10968         (c_isascii, c_iscntrl):
10969         Assume standard control-character assignments for EBCDIC.
10970         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
10971         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
10972         Rewrite to use 'if' instead of 'ifdef'.
10973         Use to_char if non-ASCII.  Prefer <= to >=.
10974         Prefer true and false to 1 and 0, for booleans.
10975         (c_iscntrl): Use 'if', not 'ifdef'.
10976         * modules/c-ctype (Depends-on): Add verify.
10977         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
10978         (to_char): New function.
10979         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
10981 2015-09-21  Pádraig Brady  <P@draigBrady.com>
10983         nanosleep: fix return code for interrupted replacement
10984         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
10985         that we return -1 in the case the call is interrupted by a signal,
10986         rather than the current value of 1.
10987         Diagnosed and tested by Daniel Richard G.
10989 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
10991         Diagnose ERE '()|\1'
10992         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
10993         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
10994         track of the set of previously-completed subexpressions available
10995         before the first alternative, and restore this set just before
10996         parsing each subsequent alternative.  This lets us diagnose the
10997         invalid back-reference in the ERE '()|\1'.
10999         regex: merge patches from libc
11001         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
11002         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
11003         * lib/regex_internal.h:
11004         Include <libc-lock.h> instead of <bits/libc-lock.h>.
11006         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
11007         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
11008         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
11009         wcscoll.
11010         * lib/regexec.c (check_node_accept_bytes): Likewise.
11012         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
11013         Fix regex wcrtomb namespace (bug 18496).
11014         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
11015         instead of wcrtomb.
11017         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
11018         Fix regex wctype namespace (bug 18495).
11019         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
11020         instead of towlower.
11021         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
11022         instead of iswlower.  Call __towupper instead of towupper.
11023         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
11024         instead of iswalnum.
11026         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
11027         * lib/regcomp.c (parse_bracket_exp): Initialize type to
11028         COLL_SYM in a couple of places to avoid uninitialized variable
11029         wanings on tilegx gcc 4.8.2.
11031         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
11032         * lib/regex_internal.h: Remove NOT_IN_libc.
11034         2014-11-17  Andreas Schwab  <schwab@suse.de>
11035         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
11037         2014-09-11  Roland McGrath  <roland@hack.frob.com>
11038         Move findidx nested functions to top-level.
11039         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
11040         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
11041         Pass new arguments to findidx.
11042         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
11043         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
11044         Don't #include it inside the function.  Pass new arguments to findidx.
11045         * lib/regex_internal.h:
11046         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
11047         (re_string_elem_size_at): Don't #include it inside the function.
11048         Pass new arguments to findidx.
11050         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
11051         Check if DEBUG is defined in regex_internal.c
11052         * lib/regex_internal.c: Check if DEBUG is defined and is set.
11054 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
11056         ceill: detect buggy OpenBSD implementation
11057         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
11058         which returns zero for small values.  Discussed here:
11059         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
11061 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
11063         mountlist: add me_mntroot field on Linux machines
11064         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
11065         mount_entry so Linux machines based on /proc/self/mountinfo can
11066         distinguish between bind mounts and original mounts.  In reality bind
11067         mounts aren't treated differently than mountroot=/ mounts by the
11068         kernel, but the user often wants these bind mounts distinguished.
11069         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
11070         More details at https://pad.lv/1432871
11072 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
11074         doc: Describe to use multiple instances of gnulib
11075         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
11076         instances of gnulib with different modules can be used, for example one
11077         for a lib and another one for associated tools.
11079 2015-09-01  Pádraig Brady  <P@draigBrady.com>
11081         base32: mark function as __attribute__ const
11082         * lib/base32.h (isbase32): Mark __attribute__ const as
11083         suggested by GCC, and consistent with the base64 module.
11085 2015-08-20  Daiki Ueno  <ueno@gnu.org>
11087         gnulib-tool: don't transform binary files with sed
11088         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
11089         .mo and .class files.
11090         Reported by Denis Denisov.
11092 2015-08-10  Daiki Ueno  <ueno@gnu.org>
11094         gperf: respect silent rules
11095         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
11096         V_GPERF_0 for silent rules.
11097         * modules/iconv_open (Makefile.am): Use V_GPERF.
11098         * modules/unicase/locale-language (Makefile.am): Likewise.
11099         * modules/unicase/special-casing (Makefile.am): Likewise.
11100         * modules/unictype/category-byname (Makefile.am): Likewise.
11101         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
11102         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
11103         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
11104         * modules/unictype/property-byname (Makefile.am): Likewise.
11105         * modules/unictype/scripts (Makefile.am): Likewise.
11106         * modules/uninorm/composition (Makefile.am): Likewise.
11108 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
11110         Improve port of stdalign to C++11
11111         Problem reported by Sundaram in:
11112         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
11113         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
11114         (__alignas_is_defined): Define if C++11 or newer.
11116 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
11118         pmccabe2html: fix gawk regex escaping
11119         * build-aux/pmccabe2html: Add one more backslash to properly
11120         escape the gsub replacement value.  Fixes this error:
11121         gawk: ./build-aux/pmccabe2html:425: \
11122         warning: escape sequence `\&' treated as plain `&'
11124 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
11126         time_rz: port to pedantic memcpy
11127         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
11128         that reject memcpy (..., NULL, 0).
11130 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
11132         time_rz: port better to MinGW
11133         Don't change tzname, as this makes MinGW dump core (Bug#21020).
11134         Instead, store the tzname copy in the struct tm_zone object.
11135         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
11136         * lib/strftime.c [!_LIBC]:
11137         * lib/time_rz.c: Include time-internal.h.
11138         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
11139         name from *TZ rather than from TZNAME, doable because *TZ now has
11140         a tzname_copy member.
11141         * lib/time-internal.h: New file, with contents taken from
11142         lib/time_rz.c.  It's separate because strftime.c now accesses
11143         struct tm_zone members.
11144         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
11145         New member tzname_copy.
11146         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
11147         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
11148         Initialize tzname_copy member.
11149         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
11150         in tzname_copy member.
11151         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
11152         (restore_tzname): Remove; no longer needed.  All calls removed.
11153         * modules/time_rz (Files): Add lib/time-internal.h.
11155         time: port __need_time_t to MinGW
11156         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
11157         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
11159 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11161         strftime: fix newly-introduced bug on Solaris
11162         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
11163         consistently at the start, rather than doing some of the setup at
11164         the start and some in the %Z format spec.  This is cleaner, and
11165         works better with time_rz on platforms like Solaris where struct
11166         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
11167         mktime_z and localtime_rz can mess up the tzname cache.
11169         test-strftime: test for Solaris bug
11170         * modules/strftime-tests (Depends-on): Add strerror.
11171         * tests/test-strftime.c: Include <errno.h>.
11172         (posixtm_test): New function, containing the old 'main'.
11173         (struct tzalloc_test, struct localtime_rz_test): New types.
11174         (TZ, LT): New static vars.
11175         (tzalloc_test): New function.
11176         (main): Rewrite in terms of posixtm_test and tzalloc_test.
11178         time_rz: port to Solaris etc.
11179         Works around a tzname problem on platforms like Solaris that have
11180         tzname but not tm_zone, by setting tzname at the appropriate time
11181         and restoring it later.
11182         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
11183         New static vars.
11184         (save_abbr) [HAVE_TZNAME]: Set them.
11185         (revert_tz) [HAVE_TZNAME]: Clear or use them.
11186         (restore_tzname): New function.
11187         (localtime_rz, mktime_z): Use it.
11189         time_rz: now LGPL
11190         * modules/time_rz (License): Now LGPL, because strftime depends on it.
11192         time_rz: make a constant 'const'
11193         * lib/time_rz.c (local_tz): Now const.
11195         time_rz: fix off-by-one typo
11196         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
11198 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
11200         fprintftime, strftime: use timezone_t args
11201         * NEWS: Document the change.
11202         * lib/fprintftime.h (fprintftime):
11203         * lib/strftime.c (extra_args) [my_strftime]:
11204         * lib/strftime.h (nstrftime):
11205         Time zone arg is now of type timezone_t, not int.
11206         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
11207         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
11208         (my_strftime) [emacs && !my_strftime]:
11209         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
11210         Remove; Emacs doesn't need this any more.
11211         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
11212         fprintftime and nstrftime to call tzset.
11213         (ut) [!my_strftime]: Remove, replacing with ...
11214         (tz) [!my_stftime]: ... this new macro.  All uses changed.
11215         (strftime_case_): Use localtime_rz and mktime_z instead
11216         of localtime_r and mktime.
11217         * modules/fprintftime (Depends-on): Add time_rz.
11218         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
11219         * tests/test-strftime.c (main): Adjust to new nstrftime API.
11221         time_rz: new module
11222         * MODULES.html.sh: Add time_rz.
11223         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
11224         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
11225         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
11226         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
11227         New var HAVE_TIMEZONE_T (default 0).
11228         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
11229         New var GNULIB_TIME_RZ (default 0).
11230         * modules/time (time.h): Substitute the new vars.
11232         flexmember: license is now unlimited
11233         * modules/flexmember (License): Change to unlimited,
11234         since its only source file gives an unlimited license.
11236 2015-07-15  Eric Blake  <eblake@redhat.com>
11238         maint: update copyright paper procedures
11239         * config/srclist.txt: Drop outdated files.
11240         * doc/Copyright/conditions.txt: Update to latest.
11241         * doc/Copyright/assign.changes.manual: Delete.
11242         * doc/Copyright/assign.future.manual: Likewise.
11243         * doc/Copyright/assign.manual: Likewise.
11244         * doc/Copyright/assign.translation.manual: Likewise.
11245         * doc/Copyright/disclaim.changes.manual: Likewise.
11246         * doc/Copyright/disclaim.manual: Likewise.
11247         * doc/Copyright/disclaim.program: Likewise.
11249 2015-07-07  Daiki Ueno  <ueno@gnu.org>
11251         localename: fix link error on Illumos
11252         Illumos defines __sun, but does not have getlocalename_l nor the
11253         equivalent.  This partially reverts commit 387c214.
11254         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
11255         available, as well as uselocale.
11256         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
11257         use getlocalename_l if it is not available.
11259 2015-07-07  Daiki Ueno  <ueno@gnu.org>
11261         unistr/uN-strtok-tests: avoid a trivial leak
11262         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
11263         input and delim after the multibyte delimiter tests.
11265 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
11267         file-has-acl, acl-permissions: fix HP-UX typos
11268         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
11269         * lib/file-has-acl.c (file_has_acl):
11270         * lib/set-permissions.c (context_acl_from_mode)
11271         (context_aclv_from_mode, set_acls):
11272         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
11273         They were introduced by the recent ACL changes.
11275         regex: match current GNU grep behavior
11276         These symbols have not matched GNU grep behavior for quite some time.
11277         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
11278         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
11279         Change to match current GNU behavior.
11280         Simplify by expressing it as differences from POSIX BREs and EREs.
11281         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
11283 2015-07-03  Jim Meyering  <meyering@fb.com>
11285         set-permissions.c: adjust acl_from_mode's cpp guard
11286         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
11287         directives identical to those guarding the sole use.
11288         Otherwise, on some systems, we'd get a warning about
11289         the function being defined but not used.
11290         Also, filter through cppi to correct misleading indentation
11291         of cpp directives.
11293 2015-07-03  Pádraig Brady  <P@draigBrady.com>
11295         tests: restrict shells to those that support 'local'
11296         The local keyword is very widely supported and used
11297         in tests in coreutils and grep at least.  Therefore
11298         restrict to testing with shells that support it.
11299         This mainly excludes /bin/sh on Solaris.
11300         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
11302 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
11303         and Daiki Ueno  <ueno@gnu.org>
11305         unistr/uN-strtok: handle multibyte delimiters
11306         Previously, uN_strtok moved PTR to the next unit to the token end.
11307         When DELIM contained a multibyte character, the new position could
11308         be a middle of a multibyte character.
11309         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
11310         after the token.
11311         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
11312         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
11313         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
11314         * modules/unistr/u8-strtok (Depends-on): Depend on
11315         unistr/u8-strmblen.
11316         * modules/unistr/u16-strtok (Depends-on): Depend on
11317         unistr/u16-strmblen.
11318         * modules/unistr/u32-strtok (Depends-on): Depend on
11319         unistr/u32-strmblen.
11320         * tests/unistr/test-u-strtok.h: New file.
11321         * tests/unistr/test-u8-strtok.c: New file.
11322         * tests/unistr/test-u16-strtok.c: New file.
11323         * tests/unistr/test-u32-strtok.c: New file.
11324         * modules/unistr/u8-strtok-tests: New file.
11325         * modules/unistr/u32-strtok-tests: New file.
11326         * modules/unistr/u16-strtok-tests: New file.
11328 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
11330         update-copyright: fix test failure with perl >= 5.22 (trivial)
11331         * build-aux/update-copyright: Escape a literal left curly bracket,
11332         required with perl >= 5.22
11334 2015-07-02  Daiki Ueno  <ueno@gnu.org>
11336         u{16,32}-strstr-tests: relax timeout condition
11337         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
11338         tests can take longer than 5 seconds to complete.
11339         Reported by Dagobert Michelsen in:
11340         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
11341         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
11342         seconds to 10 seconds.
11343         * tests/unistr/test-u32-strstr.c (main): Likewise.
11345 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
11347         gnulib-common.m4: change the ARFLAGS default to 'cr'
11348         In some GNU/Linux distributions people started to compile 'ar'
11349         binary with --enable-deterministic-archives (binutils project).
11350         That, however, in combination with previous autotools long time
11351         working default AR{_,}FLAGS=cru causes warnings on such
11352         installations:
11353         ar: `u' modifier ignored since `D' is the default (see `U')
11354         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
11355         set already.
11357 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
11359         selinux-h: avoid double free after *getfilecon()
11360         Originally reported by Ben Shelton on bug-tar:
11361         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
11362         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
11363         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
11364         param should be freed by freecon(3) (regardless the return value).
11366 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
11368         fix pty related tests issues on Windows (trivial)
11369         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
11370         however it's still present in tests/ subdirectory of the final project.
11371         Therefore avoid it to pass `make check`.
11372         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
11373         will just return -ENOSYS, so avoid this non applicable test allowing
11374         the build to proceed.
11376 2015-07-01  Pádraig Brady  <P@draigBrady.com>
11378         acl: fix definition of acl_from_mode on FreeBSD
11379         This was causing basic coreutils copy operations to fail
11380         with ENOTSUP or ENOENT error messages.
11381         * lib/acl-internal.h (acl_from_mode): Only define when
11382         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
11383         of acl_from_mode() defined in lib/set-permissions.c to
11384         be used on FreeBSD at least.
11385         * lib/set-permissions.c: Fix up comment spelling,
11386         and a redundant variable assignment; noticed in passing.
11388 2015-06-30  Pádraig Brady  <P@draigBrady.com>
11390         readutmp: port to FreeBSD >= 9
11391         * lib/readutmp.h: Map utmpxname() to setutxdb().
11392         With that coreutils who(1) and pinky(1) tests pass.
11394 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11396         mgetgroups: port to strict OS X
11397         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
11398         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
11399         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
11400         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
11402 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
11404         mgetgroups: port to strict OS X
11405         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
11406         Document the getgrouplist problem.
11407         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
11408         New macro.
11409         (mgetgroups): Use it.
11410         * m4/mgetgroups.m4 (gl_MGETGROUPS):
11411         Check for OS X signature for getgrouplist.
11413 2015-06-29  Jim Meyering  <meyering@fb.com>
11415         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
11416         It started like this when building coreutils' latest on OS X,
11417         invoking ./configure with a nonempty --cache=.cache:
11419           lib/linkat.c:46:42: error: operator '||' has no right operand
11420           lib/linkat.c: In function 'rpl_linkat':
11421           lib/linkat.c:330:27: error: #if with no expression
11423         Here's linkat.c's line 46:
11425           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
11427         Here's some context:
11429           $ grep linkat_nofoll .cache
11430           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
11431           $ grep LINKAT_SYM lib/config.h
11432           #define LINKAT_SYMLINK_NOTSUP
11434         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
11435         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
11436         but that violates a tenet of AC_CACHE_CHECK: it must
11437         have no side effect other than setting its cache variable.
11439         What happens is that when the cache is set, we'd skip the
11440         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
11441         defined to whatever value it happened to have in configure's
11442         environment.  In my case, it was not defined, so this later code:
11444           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
11445             [Define to 1 if linkat can create hardlinks to symlinks])
11447         would emit code with an empty RHS.
11449         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
11450         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
11452 2015-06-28  Jim Meyering  <meyering@fb.com>
11454         mountlist: avoid an unused-label warning on OS X
11455         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
11456         Building on OS X, I saw a warning about the "free_then_fail" label
11457         being unused.  Give it the _GL_UNUSED_LABEL attribute.
11459         error.c: correct printf-style format: %d -> %u
11460         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
11461         rather than %d, to match the type of "line_number", unsigned int.
11463 2015-06-25  Pádraig Brady  <P@draigBrady.com>
11465         fts: avoid reading beyond the heap allocation
11466         GCC 5.1.1 with -O2 and -fsanitize=address reports
11467         a read of size 4 from a heap object of size 3 is indeed invalid,
11468         though this may be due to incorrect padding assumptions by GCC, see:
11469         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
11470         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
11471         * modules/fts: Depend on stdalign.
11473 2015-06-24  Pádraig Brady  <P@draigBrady.com>
11475         savedir: avoid undefined behavior in qsort call
11476         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
11477         "runtime error: null pointer passed as argument 1,
11478          which is declared to never be null"
11479         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
11481 2015-06-24  Pádraig Brady  <P@draigBrady.com>
11483         userspec: avoid undefined behavior in gettext call
11484         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
11485         "runtime error: null pointer passed as argument 2,
11486          which is declared to never be null"
11487         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
11489 2015-06-20  Glenn Morris  <rgm@gnu.org>
11491         gitlog-to-changelog: improve gitmerge.el commits
11492         Let the Emacs ChangeLog generation process exclude "skipped"
11493         messages from merge commits (Bug#20717).
11494         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
11496 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11498         wchar: fix MinGW compilation warnings
11499         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
11500         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
11501         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
11503 2015-06-20  Daiki Ueno  <ueno@gnu.org>
11505         uniname/uniname-tests: use pristine data files
11506         For copyright and maintenance reasons, use the data files from UCD
11507         without modification.
11508         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
11509         (getfield): Remove.
11510         (aliases_count): New global variable.
11511         (fill_names): Skip comments and empty lines in the input.  Don't
11512         use getfield.
11513         (fill_aliases): Likewise.
11514         (main): Change the expected command line arguments to:
11515         NAMES... ["--" ALIASES...].
11516         * tests/uniname/test-uninames.sh: Adjust to the change in
11517         test-uninames.c.
11518         * tests/uniname/UnicodeDataNames.txt: Remove.
11519         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
11520         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
11521         file from Unicode 8.0.0.
11523 2015-06-19  Pádraig Brady  <P@draigBrady.com>
11525         linked-list, linkedhash-list: avoid compiler warnings
11526         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
11527         -Werror=suggest-attribute=pure (from GCC 5.1.1).
11529 2015-06-19  Daiki Ueno  <ueno@gnu.org>
11531         libunistring: bump minimum version to 0.9.6
11532         * all modules depending on updated Unicode data: Regenerate.
11533         The modules are listed by a script that does:
11534         - for each file listed by: git show --oneline --name-only 705f4efc
11535           - deduce the containing modules, based on "Files:"
11536         - deduce the modules which depend on the containing modules, based
11537           on "Depends-on:"
11539 2015-06-18  Daiki Ueno  <ueno@gnu.org>
11541         uniname/uniname: update to Unicode 8.0.0
11542         * lib/uniname/uninames.h: Regenerate.
11543         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
11544         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
11546 2015-06-18  Daiki Ueno  <ueno@gnu.org>
11548         libunistring: update to Unicode 8.0.0
11549         * lib/gen-uni-tables.c (SIZEOF): New macro.
11550         (output_numeric): Increase the maximum number of fractions from
11551         128 to 160.  Increase the level3 value width from 7 bits to 8
11552         bits.  Use SIZEOF instead of a hard-coded integer.
11553         (output_blocks): Decrease the cut-off threshold from 0x30000 to
11554         0x28000.
11555         (fill_blocks): Increase the maximum number of blocks from 256 to
11556         384.  Use SIZEOF instead of a hard-coded integer.
11557         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
11558         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
11559         value width.
11560         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
11561         a new case added to LBP22.
11562         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
11563         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
11564         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
11565         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
11566         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
11567         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11568         lib/uniwidth/width.c.
11569         * all generated files under lib/uni* and tests/uni*: Regenerate.
11571 2015-06-16  Pádraig Brady  <P@draigBrady.com>
11573         gnu-web-doc-update: add --mirror to remove stale files
11574         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
11575         out of date files from the CVS server.  Since this is usually
11576         appropriate, a prompt is given when the option is not specified,
11577         along with the `cvs remove` command that would be run.
11579 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
11581         acl-permissions: pacify -Wsuggest-attribute=const
11582         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
11583         * lib/acl-internal.h (free_permission_context):
11584         Declare with attribute const if ! (defined USE_ACL &&
11585         (HAVE_ACL_GET_FILE || defined GETACL)).
11587         fsync: document AIX misbehavior
11588         * doc/posix-functions/fsync.texi (fsync):
11589         Document failure on AIX with read-only file descriptor.
11591 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
11593         stdio: Don't redefine gets when using C++
11594         * lib/stdio.in.h (gets): Disable warning on C++.
11596 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
11598         acl-permissions: port to AIX, C89 HP-UX
11599         Problems reported by Michael Felt.
11600         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
11601         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
11602         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
11603         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
11604         Add cast for AIX, whose system calls are declared to accept
11605         char * even though the arguments are really char const *.
11606         * lib/get-permissions.c (get_permissions):
11607         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
11608         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
11609         that broke a build.
11610         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
11611         Rework types to pacify xlc.
11613 2015-06-03  Pádraig Brady  <P@draigBrady.com>
11615         vasprintf-posix: avoid compiling vasnprintf where possible
11616         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
11617         module where not required.  For example on a GNU/Linux system
11618         when gnulib-tool is run with the --conditional-dependencies option.
11620 2015-06-02  Pádraig Brady  <P@draigBrady.com>
11622         file-has-acl: fix build on Mac OS X 10
11623         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
11624         which has an incompatible 6 parameter getxattr() call.
11625         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
11626         call on Mac OS X >= 10.4.
11627         * doc/glibc-functions/fgetxattr.texi: Likewise.
11628         * lib/file-has-acl.c: Revert to more complete combined check.
11629         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
11630         Reported by Jack Howarth.
11632 2015-06-02  Pádraig Brady  <P@draigBrady.com>
11634         prefix-gnulib-mk: remove no longer needed special case
11635         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
11636         continued lib_SOURCES lines are no longer present,
11637         so special case handling of such entries is not required.
11639 2015-06-01  Pádraig Brady  <P@draigBrady.com>
11641         acl: don't depend on the deprecated qacl module
11642         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
11644 2015-06-01  Pádraig Brady  <P@draigBrady.com>
11646         gnulib-tool: concatenate lib_SOURCES to a single line
11647         * gnulib-tool: Refactor the line merging sed logic,
11648         and use that to output a single lib_SOURCES line for each module.
11649         gnulib using projects often postprocess this output to prepend
11650         subdir paths to each item, and having a single line simplifies this
11651         processing allowing better decoupling from the gnulib-tool output.
11653 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
11655         pthread_sigmask: discount system version if a simple macro (trivial)
11656         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
11657         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
11658         function to ensure it's available.
11660 2015-05-31  Pádraig Brady  <P@draigBrady.com>
11662         readlinkat: avoid OS X 10.10 trailing slash bug
11663         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
11664         has this bug.
11665         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
11666         that OS X 10.10 has this function.
11667         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
11668         as done for readlink().
11669         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
11670         trailing slash bug, and assume readlinkat() has the same issue.
11671         Also fix a typo where $gl_cv_decl_readlink_works was tested,
11672         rather than the correct $gl_cv_decl_readlinkat_works.
11674 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
11676         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
11677         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
11678         module rewrite.
11680         acl-permissions: Fix build on Solaris and Cygwin
11681         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
11682         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
11683         ace_entries variables have moved into struct permission_context but
11684         they were still accessed as local variables here.
11686 2015-05-29  Pádraig Brady  <P@draigBrady.com>
11688         linkat: avoid OS X 10.10 trailing slash with symlink bug
11689         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
11690         causes the symlink to be dereferenced, and if it points
11691         to a non existent file, that file will be created as
11692         a hard link to "path1".
11693         This fixes a test failure in test-linkat.c.
11694         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
11695         this case.  The existing workaround in linkat.c for
11696         trailing slash issues, suffices for this case.
11697         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
11698         the list of platforms with trailing slash issues.
11700 2015-05-28  Pádraig Brady  <P@draigBrady.com>
11702         unlinkat: handle ignoring of ".." on Darwin 14
11703         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
11704         on Mac OS X 10.10, where it ignores paths with a trailing "..",
11705         so handle in the same manner.
11706         * m4/unlinkat.m4: Comment on this Darwin issue.
11707         * doc/posix-functions/unlink.texi: Update the latest version
11708         where the issue was seen.
11709         * doc/posix-functions/unlinkat.texi: Mention this issue.
11710         Fixes a test failure in test-unlinkat.c.
11712 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
11714         qacl: split into qcopy-acl and qset-acl
11715         Emacs needs the former, but not the latter.
11716         * modules/acl-permissions: New file, containing most of the old qacl.
11717         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
11718         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
11719         * modules/qcopy-acl, modules/qset-acl: New files.
11720         * MODULES.html.sh (File system functions):
11721         Mention the new modules, and mention qacl while we're at it.
11723 2015-05-27  Glenn Morris  <rgm@gnu.org>
11725         gitlog-to-changelog: new option --ignore-line
11726         (This patch is imported from the GNU Emacs master.)
11727         This option ignores individual commit lines matching a pattern.
11728         * build-aux/gitlog-to-changelog: Add --ignore-line option.
11730 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
11732         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
11733         Implement get_permissions and set_permissions primitives for getting all
11734         the permissions of a file, storing them, and later setting them. (In the
11735         minimal case, the permissions consist only of a file mode.) Reimplement
11736         qset_acl and qcopy_acl based on these new primitives: this avoids code
11737         duplication and makes error handling more consistent.
11738         The Solaris and Cygwin code still uses duplicate code paths for setting
11739         a file mode while making sure that no acls exist and setting an explicit
11740         acl; this is no worse than before, but could be cleaned up.  The AIX
11741         code still doesn't read ACLs, it only makes sure that acls don't get in
11742         the way when setting a file mode.
11743         * lib/acl-internal.h (struct permission_context): New data structure.
11744         (get_permissions, set_permissions, free_permission_context): Declare.
11745         * lib/acl-internal.c (free_permission_context): New helper function.
11746         * lib/get-permissions.c (get_permissions): New helper function split off
11747         from qcopy_acl.
11748         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
11749         AIX, set a file's permissions based only on a file mode.
11750         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
11751         other platforms construct a temporary acl from the file mode and set
11752         that acl in the same way as setting an acl read from the source file.
11753         This should help avoid code duplication and inconsistent / buggy
11754         behavior.
11755         (set_acls): New helper function Split off from qcopy_acl.
11756         (chmod_or_fchmod): Moved here from qset-acl.c.
11757         (set_permissions): New helper function.
11758         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
11759         set_permissions.
11760         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
11761         * modules/qacl: Add get-permissions.c and set-permissions.c.
11763         file-has-acl: Split feature tests again (Bug#20667)
11764         * lib/file-has-acl.c: Instead of testing for
11765         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
11766         define them when needed.
11767         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
11768         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
11770 2015-05-27  Pádraig Brady  <P@draigBrady.com>
11772         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
11773         This avoids a conflict with "FORTIFY_SOURCE" variants
11774         of the string functions when they're replaced on NetBSD-6.0.1
11775         and Darwin-14.3.0 at least.
11776         * lib/string.in.h: Avoid including our "lib/string.h" while
11777         including the system <string.h>.
11779 2015-05-26  Eric Blake  <eblake@redhat.com>
11781         stdio: limit __gnu_printf__ witness to gcc 4.4+
11782         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
11783         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
11785         error: use correct printf attributes on mingw
11786         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
11788         inttypes: force correct mingw PRIdMAX even without <stdio.h>
11789         * modules/inttypes (Depends-on): Require extensions, so that mingw
11790         always uses GNU style inttypes.
11791         * lib/inttypes.in.h: On mingw, include <stdio.h>.
11793         stdio: fix probe on mingw under gcc 5.1
11794         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
11795         around new gcc preprocessor rules.
11797 2015-05-07  Glenn Morris  <rgm@gnu.org>
11799         gitlog-to-changelog: parse "Tiny-change"
11800         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
11801         "Copyright-paperwork-exempt".  (Bug#20324)
11803 2015-05-06  Pádraig Brady  <P@draigBrady.com>
11805         doc: document glibc posix_fallocate() issues
11806         * doc/posix-functions/posix_fallocate.texi: Mention the
11807         glibc efficiency problems and issues with NFS.
11809 2015-05-05  Karl Berry  <karl@freefriends.org>
11811         * build-aux/gendocs.sh (usage): document new css default
11812         for HTML (--htmlarg).
11814 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
11816         extern-inline: no need for workaround in GCC 5.1
11817         * doc/extern-inline.texi (extern inline):
11818         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
11819         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
11820         around these bugs in GCC 5.1 and later.  Maybe in a decade or
11821         two we can remove these workarounds.
11823 2015-04-28  Pádraig Brady  <P@draigBrady.com>
11825         eealloc, pagealign_alloc, xalloc: avoid clang warnings
11826         Avoid [-Wunknown-attributes] warnings like:
11827         warning: unknown attribute '__alloc_size__' ignored
11828         * lib/xalloc.h: Don't use the __alloc_size__  attribute
11829         with clang, as support has been fully removed as of clang 3.5:
11830         https://github.com/llvm-mirror/clang/commit/c047507a
11831         * lib/eealloc.h: Likewise.
11832         * lib/pagealign_alloc.h: Likewise.
11834 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
11836         tests: pacify GCC 5.1's stricter printf checking
11837         * tests/test-dirname.c (main):
11838         * tests/test-getaddrinfo.c (simple):
11839         * tests/test-getlogin.c (main):
11840         * tests/test-getndelim2.c (main):
11841         * tests/test-inttostr.c (CK):
11842         * tests/test-md5.c (main):
11843         * tests/test-read-file.c (main):
11844         * tests/test-sha1.c (main):
11845         Fix mismatches between printf format and value signedness.
11846         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
11847         Remove, as CAST_VAL always returned a value of type uintmax_t.
11849         fts: port to GCC 5.1 with --enable-gcc-warnings
11850         Without this fix, GCC 5.1 (correctly) warns about a subscript
11851         error on the fts_name component of FTSENT.  It's actually a
11852         flexible member, so define it that way on C99 or later hosts.
11853         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
11854         structure that now has a flexible array member.
11855         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
11856         (FTSENT): fts_name is now flexible on C99-or-later platforms.
11857         * modules/fts (Depends-on): Add flexmember.
11859 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11861         file-has-acl: port to CentOS 6
11862         Problem reported by Tom G. Christensen in:
11863         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
11864         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
11865         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
11866         HAVE_GETXATTR.
11867         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
11868         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
11869         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
11870         file-has-acl.c actually needs.
11872 2015-04-26  Pádraig Brady  <P@draigBrady.com>
11874         file-has-acl: always return false when ACLs aren't supported
11875         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
11876         change the GNU/Linux getxattr path, to transform "not supported"
11877         errors to a false return rather than an error.  This is handled
11878         within file_has_acl() due to the platform specific tests to
11879         determine if ACLs are not supported.
11881 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11883         gettext: propagate po/Makefile.in.in too
11884         * build-aux/po/Makefile.in.in: Copy from latest gettext.
11885         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
11886         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
11887         between Makefile.in.in and the gettext-runtime m4 files.
11889 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11891         file-has-acl: new module, split from acl
11892         And add a new module file-has-acl-tests to match.
11893         I ran into a problem with the recent changes to the acl module,
11894         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
11895         When using the fixed version with Emacs, I discovered that
11896         file-has-acl wasn't separated out well enough for Emacs (e.g., it
11897         had multiple libraries, but needed only one), so I fixed that too.
11898         * NEWS: Document this incompatible change.
11899         * modules/file-has-acl, modules/file-has-acl-tests: New files.
11900         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
11901         Initialize gl_need_lib_has_acl.
11902         (gl_FUNC_ACL): Require it.
11903         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
11904         Move the file-has-acl.c-relevant stuff to ...
11905         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
11906         use_xattrs = 0' typo, and omit some needless work.  Set
11907         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
11908         when gl_FUNC_ACL is called.
11909         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
11910         (Link): Remove $(LIB_HAS_ACL).
11911         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
11912         (check_PROGRAMS): Move stuff relevant to file-has-acl to
11913         modules/file-has-acl-tests.
11914         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
11916         manywarnings: add GCC 5.1 warnings
11917         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
11918         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
11919         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
11920         -Wsuggest-override, -Wuse-without-only.  Change
11921         -Wnormalized=... operands to match 5.1.
11922         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
11923         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
11924         -Wdiscarded-qualifiers, -Wformat-signedness,
11925         -Wincompatible-pointer-types, -Wint-conversion,
11926         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
11927         -Wshift-count-negative, -Wshift-count-overflow,
11928         -Wsizeof-array-argument, -Wsuggest-final-methods,
11929         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
11930         and add -Warray-bounds=2 as a special case.
11932 2015-04-21  Simon Josefsson  <simon@josefsson.org>
11934         doc: update FDL template to match FDL examples.
11935         * doc/alloca-opt.texi:
11936         * doc/alloca.texi:
11937         * doc/c-ctype.texi:
11938         * doc/c-strcase.texi:
11939         * doc/c-strcaseeq.texi:
11940         * doc/c-strcasestr.texi:
11941         * doc/c-strstr.texi:
11942         * doc/c-strtod.texi:
11943         * doc/c-strtold.texi:
11944         * doc/ctime.texi:
11945         * doc/error.texi:
11946         * doc/gcd.texi:
11947         * doc/gnulib-tool.texi:
11948         * doc/inet_ntoa.texi:
11949         * doc/intprops.texi:
11950         * doc/lib-symbol-visibility.texi:
11951         * doc/maintain.texi:
11952         * doc/parse-datetime.texi:
11953         * doc/quote.texi:
11954         * doc/regexprops-generic.texi:
11955         * doc/standards.texi: Remove spurious 'with' in FDL license
11956         template.
11958 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
11960         lstat: fix cross-compilation 'ln -s' problem
11961         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
11962         Have the test program call 'symlink' rather than a separate
11963         script run 'ln -s'; this is more likely to work in
11964         cross-compilation environments.  Reported by Pavel Fedin in:
11965         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
11967 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
11969         gendocs.sh: default to a common CSS style sheet for HTML output
11970         * build-aux/gendocs.sh (htmlarg): Change default value.
11972 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
11974         gnulib-tool: output bold attribute more portably
11975         * gnulib-tool (func_show_module_list): Change hexadecimal
11976         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
11977         encoded numbers as arguments to `printf' is not portable,
11978         and is not claimed by POSIX.  This is the case with FreeBSD.
11980 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
11982         qacl: Simplify HP-UX acl_nontrivial check
11983         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
11984         acl_nontrivial. Check if the acl has at most three entries instead (it must
11985         have exactly three entries according to the HP-UX documentation). Ignore
11986         uids and gids as long as an entry is either for a user (i.e., the owner),
11987         a group (i.e., the owning group), or others.
11988         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
11989         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
11991 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
11993         acl: On Linux, check for acls without libacl
11994         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
11995         library function to check for the presence of acls, avoiding a library.
11996         * lib/file-has-acl.c: Include xattr headers if we have them.
11997         (file_has_acl): On Linux, use getxattr().
11998         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
11999         file_has_acl(). Check for xattr headers and getxattr().
12001 2015-04-14  Ángel González  <keisial@gmail.com>
12003         tempname: avoid unused parameter warnings (trivial)
12004         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
12005         (try_nocreate): Likewise.
12007 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
12009         fseeko: fix build failure on NetBSD >= 6 (trivial)
12010         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
12011         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
12013 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12015         gitlog-to-changelog: port to MS-Windows
12016         * build-aux/gitlog-to-changelog (git_dir_option):
12017         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
12018         MS-Windows Perl.  Reported by Eli Zaretskii in:
12019         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
12021 2015-04-07  Karl Berry  <karl@gnu.org>
12023         gendocs: new option --tex for passing args to texi2dvi.
12024         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
12025         (TEXI2DVI): cut to just command name.
12026         (usage): mention new option, and update copyright.
12027         <generate_tex>: use it.
12029 2015-04-07  Karl Berry  <karl@gnu.org>
12031         * config/srclistvars.sh (GETTEXT): new definition.
12032         * config/srclist.txt: use it for gettext .m4 files.
12033         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
12034         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
12035         and continuing into April.
12037 2015-04-07  Daiki Ueno  <ueno@gnu.org>
12039         uniname/uniname-tests: fix failure due to alias
12040         Reported by Jack Howarth in:
12041         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
12042         * tests/uniname/test-uninames.c (name_has_alias): New function.
12043         (test_inverse_lookup): Exclude character name with valid alias,
12044         from randomly generated character names.
12045         (main): Fill unicode_aliases before calling test functions.
12047 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
12049         hash: remove deprecated hash_insert0 function
12050         * lib/hash.h (hash_insert0): Remove deprecated function.
12051         * lib/hash.c (hash_insert0): Likewise.
12053 2015-04-02  Pádraig Brady  <P@draigBrady.com>
12055         mountlist: remove dependency on libmount
12056         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
12057         directly, rather than depending on libmount, which has many
12058         dependencies due to its dependence on libselinux, as detailed at:
12059         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
12060         Note we restrict this to __linux__ as that's probably where this
12061         interface will remain.  If ever porting, it would be best
12062         to first pull the makedev() wrapper from coreutils to a gnulib module.
12063         Note also we don't add a getline dependency to the mountlist module,
12064         as all Linux versions are sufficient.
12066 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
12068         stddef: port to pre-C11 GCC on x86
12069         On this platform, max_align_t should have an alignment of 8 even
12070         though the storage alignments of double, long, etc. max out at 4.
12071         Inspired by a comment of Andreas Schwab's here:
12072         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
12073         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
12074         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
12075         * tests/test-stddef.c: Test __alignof__ too, if available.
12077 2015-03-24  Pádraig Brady  <P@draigBrady.com>
12079         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
12080         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
12082 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
12084         yesno: make EOL optional in ENABLE_NLS case also (trival)
12085         * lib/yesno.c (yesno): Check for EOL before replacing.
12086         * tests/test-yesno.sh: Add a test case (test along with gettext).
12088 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12090         fdopendir-tests: test it does not close its arg
12091         * tests/test-fdopendir.c (main): Test that fdopendir does not
12092         close its argument.  From a suggestion by David Grayson in:
12093         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
12095 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12097         gitlog-to-changelog: trim trailing white space
12098         * build-aux/gitlog-to-changelog (main):
12099         Trim trailing white space from commit message lines.
12100         This is helpful for processing the GNU Emacs repository,
12101         which dates back to 1985 and contains a lot of such lines.
12103         gitlog-to-changelog: new option --ignore-matching
12104         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
12105         Support new option --ignore-matching=PAT, which ignores all
12106         commit messages whose first line matches PAT.
12108 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12110         fdopendir: port better to MinGW
12111         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
12112         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
12113         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
12114         * modules/fdopendir (Depends-on): Add dirfd.
12116 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
12118         fdopendir: fix typo in comment
12119         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
12121 2015-03-09  Eric Blake  <eblake@redhat.com>
12123         error: document all entry points provided
12124         * doc/glibc-functions/error_print_progname.texi
12125         (error_print_progname): Mention the error module.
12126         * doc/glibc-functions/error_at_line.texi (error_at_line):
12127         Likewise.
12128         * doc/glibc-functions/error_message_count.texi
12129         (error_message_count): Likewise.
12130         * doc/glibc-functions/error_one_per_line.texi
12131         (error_one_per_line): Likewise.
12133 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
12135         vasnprintf: pacify clang 3.5.0
12136         Problem reported by Werner Lemberg in:
12137         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
12138         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
12139         The casts aren't needed, since the characters in question are ASCII.
12141 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12143         glob, etc.: port to MSVC v18 on MS-Windows 8.1
12144         * lib/dirent--.h (GNULIB_defined_opendir):
12145         * lib/dirent.in.h (GNULIB_defined_opendir)
12146         (GNULIB_defined_closedir):
12147         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
12148         #undef only if Gnulib defined it.
12150         poll: port to MSVC v18 on MS-Windows 8.1
12151         Problem reported by Gisle Vanem in:
12152         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
12153         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
12154         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
12155         Add sys_socket.
12157 2015-02-24  Pádraig Brady  <P@draigBrady.com>
12159         tests: support stderr verification with returns_()
12160         * tests/init.sh (returns_): Disable tracing for this wrapper
12161         function, so that stderr of the wrapped command is unchanged,
12162         allowing for verification of the contents.
12164 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
12166         passfd: avoid valgrind uninitalised data warning
12167         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
12168         to include just the fd we've initialized, rather than including
12169         the extra space used for alignment.
12171 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
12173         uniwbrk/u32-wordbreaks-tests: fix copyright
12174         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
12176         dup2: doc and test for Android bug
12177         Reported by Kevin Cernekee in:
12178         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
12179         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12180         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
12182 2015-02-23  Kevin Cernekee  <cernekee@google.com>
12184         Replace dup2() on Android
12185         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
12186         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
12187         fails.  Using rpl_dup2() fixes this because it has an explicit test
12188         for this condition.
12190 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
12192         Android doesn't define RLIM_SAVED_*
12193         Portability problem reported by Kevin Cernekee in:
12194         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
12195         * doc/posix-headers/sys_resource.texi (sys/resource.h):
12196         Mention the portability problem.
12197         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
12198         Define if not defined.
12199         * m4/dup2.m4 (gl_FUNC_DUP2):
12200         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12201         Likewise.
12203 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12205         vasnprintf-posix-tests: use consistent test
12206         * tests/test-vasnprintf-posix.c (test_function):
12207         Use "<" in assert instead of "<=", for consistency with other tests.
12209 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12211         printf, isinf, etc.: noncanonical != NaN
12212         Do not require that isinf, printf, etc. treat noncanonical
12213         values as NaNs.  Instead, require only that they do not crash.
12214         Problem reported by Joseph Myers in:
12215         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
12216         * doc/posix-functions/dprintf.texi (dprintf):
12217         * doc/posix-functions/fprintf.texi (fprintf):
12218         * doc/posix-functions/isfinite.texi (isfinite):
12219         * doc/posix-functions/isinf.texi (isinf):
12220         * doc/posix-functions/isnan.texi (isnan):
12221         * doc/posix-functions/printf.texi (printf):
12222         * doc/posix-functions/snprintf.texi (snprintf):
12223         * doc/posix-functions/sprintf.texi (sprintf):
12224         * doc/posix-functions/vdprintf.texi (vdprintf):
12225         * doc/posix-functions/vfprintf.texi (vfprintf):
12226         * doc/posix-functions/vprintf.texi (vprintf):
12227         * doc/posix-functions/vsnprintf.texi (vsnprintf):
12228         * doc/posix-functions/vsprintf.texi (vsprintf):
12229         Document this.
12230         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
12231         * m4/isinf.m4 (gl_ISINFL_WORKS):
12232         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
12233         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
12234         * tests/test-isfinite.c (test_isfinitel):
12235         * tests/test-isinf.c (test_isinfl):
12236         * tests/test-isnan.c (test_long_double):
12237         * tests/test-isnanl.h (main):
12238         * tests/test-snprintf-posix.h (test_function):
12239         * tests/test-sprintf-posix.h (test_function):
12240         * tests/test-vasnprintf-posix.c (test_function):
12241         * tests/test-vasprintf-posix.c (test_function):
12242 o       Test only that noncanonical values do not cause crashes, not that
12243         they are treated as NaNs.  In some cases this means a larger
12244         output buffer is needed.
12246 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
12248         fts: remove redundant close() (trivial)
12249         * lib/fts.c (fts_read): Remove redundant call to close().
12250         Spotted by coverity.
12252 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12254         getdtablesize: port better for Android
12255         Problem reported by Kevin Cernekee in:
12256         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
12257         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
12258         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
12259         Instead, just use getrlimit, taking care to avoid Cygwin bug.
12261         poll: fixes for large fds
12262         * lib/poll.c (poll): Don't check directly for NFD too large.
12263         Don't rely on undefined behavior in FD_SET when an arg exceeds
12264         FD_SETSIZE.  Always set revents afterwards, even if to zero.
12265         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
12266         as that makes the test a bit stricter.
12268 2015-02-19  Kevin Cernekee  <cernekee@google.com>
12270         fcntl: Fix cross compiling
12271         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
12272         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
12274 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12276         dup2, fcntl: cross-compile better for Android
12277         Problem reported by Kevin Cernekee in:
12278         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
12279         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
12280         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
12281         there's little need to cross-compile for older kernels nowadays.
12282         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
12283         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
12285 2015-02-18  Pádraig Brady  <P@draigBrady.com>
12287         getopt: don't crash on memory exhaustion
12288         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
12289         memory exhaustion.  In the _LIBC case we use alloca() as is
12290         already done in glibc, so we don't need to consider the separate
12291         error path in that awkward case.  Also fix a memory leak when
12292         ambiguous options are present.
12293         Reported by Tobias Stoeckmann
12295 2015-02-17  Mike Miller  <mtmiller@ieee.org>
12297         tempname: allow compilation with C++ (trivial)
12298         * lib/tempname.h [C++]: Specify extern "C" linkage.
12299         * lib/tempname.h (try_tempname):
12300         * lib/tempname.c (__try_tempname, __gen_tempname):
12301         Rename 'try' to 'tryfunc'.
12303 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12305         dup2, fcntl: port to AIX
12306         * m4/dup2.m4 (gl_FUNC_DUP2):
12307         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12308         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
12309         The former works on AIX 7.1 but the latter does not.
12310         Also, this may work better with Android; see:
12311         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
12313 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12315         getdtablesize, dup2, fcntl: port to Android
12316         Problem reported by Kevin Cernekee in:
12317         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
12318         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
12319         Mention that getdtablesize doesn't work on Android.
12320         * lib/getdtablesize.c: Use getrlimit substitute only if
12321         getdtablesize is declared.  This should suffice for Cygwin
12322         while not breaking Android.
12323         * m4/dup2.m4 (gl_FUNC_DUP2):
12324         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12325         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
12326         standardized but the latter is not, and sysconf works on Android.
12327         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
12328         Also check that getdtablesize is declared.
12329         This removes the need for a special case for Android.
12331 2015-02-16  Kevin Cernekee  <cernekee@google.com>
12333         localename: Implement gl_locale_name_thread_unsafe for Android
12334         * lib/localename.c: Android API level >= 21 supports two hardcoded
12335         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
12336         the internal __locale_t struct.
12338 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
12340         fts: avoid crash when a cycle is added while traversing
12341         This could be triggered by auto-mounting a recursive bind mount.
12342         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
12343         * lib/fts.c (fts_read): Avoid removing the original hash table item
12344         when leaving a directory that caused a cycle, and preserve the FTS_DC
12345         flag.
12347 2015-02-16  Daiki Ueno  <ueno@gnu.org>
12349         uniname/uniname: support character alias
12350         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
12351         Generate one-way mapping from aliases to codepoints in the
12352         generated tables.  Special case variation selectors to reduce
12353         table size.
12354         * lib/uniname/uniname.c (unicode_character_name): Special case
12355         variation selectors.
12356         (unicode_name_character): Special case variation selectors and
12357         their aliases.
12358         * lib/uniname/uninames.h: Regenerate.
12359         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
12360         * modules/uniname/uniname-tests (Files): Add
12361         tests/uniname/NameAliases.txt.
12362         * tests/uniname/test-uninames.c: Mark as static.
12363         (ALIASLEN): Define.
12364         (struct unicode_alias): New struct.
12365         (unicode_aliases): New variable.
12366         (fill_aliases): New function.
12367         (test_alias_lookup): New test function.
12368         (main): Run the 'test_alias_lookup' test if the second argument is
12369         given.
12370         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
12371         second argument.
12373 2015-02-11  Kevin Cernekee  <cernekee@google.com>
12375         Fix FILE struct compatibility with Android API level >= 21
12376         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
12377         __sferror.  Recent versions of Bionic's stdio.h no longer define
12378         __sferror.
12379         * lib/fbufmode.c: Likewise.
12380         * lib/fflush.c: Likewise.
12381         * lib/fpurge.c: Likewise.
12382         * lib/freadable.c: Likewise.
12383         * lib/freadahead.c: Likewise.
12384         * lib/freading.c: Likewise.
12385         * lib/freadptr.c: Likewise.
12386         * lib/freadseek.c: Likewise.
12387         * lib/fseeko.c: Likewise.
12388         * lib/fseterr.c: Likewise.
12389         * lib/fwritable.c: Likewise.
12391         Assume unbroken ungetc() on Android
12392         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
12393         test case passed when running on an Android host, and the code
12394         hasn't really changed since 2009.
12396         getdtablesize: Fix Android build
12397         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
12398         versions have this symbol in the .so library (at least 32-bit
12399         platforms) but are missing the declaration in the header file,
12400         causing the m4 logic to guess incorrectly.
12402         localename: Fix Android build
12403         * modules/localename (Depends-on): Add langinfo.
12405         getugroups: Fix Android build
12406         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
12407         functions.
12409         euidaccess: Fix Android build
12410         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
12411         AT_EACCESS gets declared.
12413         linkat_nofollow: Add fallback case for cross compiling
12414         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
12416         net_if: Handle content-free <net/if.h> system headers
12417         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
12418         struct if_nameindex.  If not, enable the replacement header.
12420         signal_h: Fix Android build
12421         * lib/signal.in.h: Add Android to the list of platforms that declare
12422         pthread_sigmask() in <pthread.h> instead of <signal.h>.
12424         duplocale: Fix Android build of duplocale-tests
12425         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
12426         is included by test-duplocale.c (but not by duplocale.c).
12427         * modules/duplocale-tests (configure.ac): Check for monetary.h.
12428         * tests/test-duplocale.c: Skip test if monetary.h is absent.
12429         * doc/posix-headers/monetary.texi: Add Android to the list of
12430         platforms missing monetary.h.
12432 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12434         tests: avoid recent -Werror=unused-variable regression in test-locale
12435         * tests/test-locale.c (main): Reference the variable to avoid the
12436         "unused variable" warning.
12438 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12440         maint: various whitespace cleanups in tempname
12441         * lib/tempname.c: Normalize spacing and line length.
12442         * lib/tempname.h: Likewise.
12443         * modules/tempname: Likewise.
12445 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12447         tests: provide returns_() to simplify exit status checking
12448         * tests/init.sh (returns_): A new function for use in tests,
12449         to allow for easier checking of return values, where you expect
12450         a command to exit with failure status.  By checking for a particular
12451         exit code, you don't hide any crashes for example.
12453 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12455         mountlist: only use libmount when specified
12456         There are currently many shared libs dependencies introduced by
12457         libmount with associated runtime and virt mem overhead.
12458         Therefore don't enable by default.
12459         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
12461 2015-02-08  Daiki Ueno  <ueno@gnu.org>
12463         uniname/unimame-tests: don't link with -lunistring
12464         * modules/uniname/uniname-tests (Makefile.am): Don't link against
12465         $(LIBUNISTRING).  Document the rationale why we need to
12466         conditionalize the test.
12468 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
12470         fstrcmp: don't assume strlen < INT_MAX
12471         * lib/fstrcmp.c: Include stddef.h and stdint.h.
12472         (uintptr_t): Remove, as we're now assuming stdint.
12473         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
12474         Prefer ptrdiff_t to int when the value could exceed INT_MAX
12475         if the input string is long.
12476         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
12477         uintptr_t to size_t when the underlying value is a pointer casted
12478         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
12479         * modules/fstrcmp (Depends-on): Add stdint.
12481         diffseq: prefer ptrdiff_t to ssize_t
12482         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
12483         ptrdiff_t is the natural type for signed indexes.
12484         On a few older platforms, ssize_t is narrower than size_t.
12486         xalloc: fix typo that suppressed warnings
12487         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
12488         This typo, introduced a couple of years ago, mistakenly suppressed
12489         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
12490         -Wmissing-declarations warnings.
12492         full-read: fix license notice typo
12493         * lib/full-read.h: Remove a stray line in the license notice.
12494         Reported by Sam Ellis in: http://bugs.gnu.org/19808
12496         crypto/gc: fix a -Wswitch warning
12497         Reported by Bruce Korb in:
12498         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
12499         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
12501 2015-02-03  Pádraig Brady  <P@draigBrady.com>
12503         gnulib-tool: fix handling of patch(1) diagnostics
12504         * gnulib-tool: Send diagnostics from patch(1) to stderr,
12505         as otherwise gnulib-tool will reparse that output and attempt
12506         to lookup modules.
12508 2015-02-03  Pádraig Brady  <P@draigBrady.com>
12510         bootstrap: exit immediately upon gnulib-tool failure
12511         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
12512         This was noticed when gnulib-tool exited early due to failure
12513         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
12514         but various confusing errors were then given as the build proceeded.
12516 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
12518         symlinkat: include all required header files
12519         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
12520         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
12521         Reported at https://savannah.gnu.org/bugs/index.php?44151
12522         and by Jack Howarth.
12524 2015-01-29  Pádraig Brady  <P@draigBrady.com>
12526         localename: support Solaris 12 and illumos
12527         * lib/localename.c (gl_locale_name_thread_unsafe): call
12528         getlocalename_l() on newer __sun platforms.
12529         Reported by Alexander Pyhalov.
12530         Fix suggested by Rich Burridge.
12532 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
12534         locale: fix tests on illumos (trivial)
12535         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
12536         so move from global scope to main().
12538 2015-01-24  Daiki Ueno  <ueno@gnu.org>
12540         unictype: avoid undefined left-shift behavior
12541         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
12542         gcc's -fsanitize=shift and running its tests triggered:
12543           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
12544             places cannot be represented in type 'int'
12545         Cast LHS to 'unsigned int' after integer promotion.
12546         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
12547         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
12549 2015-01-20  Daiki Ueno  <ueno@gnu.org>
12551         libunistring: bump version of unitypes dependants
12552         Due to the header file search order, all the headers which depend
12553         on unitypes.h need to be generated, when the preinstalled
12554         libunistring is older.
12555         * modules/unicase/base (configure.ac): Bump minimum version to
12556         0.9.4.
12557         * modules/uniconv/base (configure.ac): Likewise.
12558         * modules/unilbrk/base (configure.ac): Likewise.
12559         * modules/uninorm/base (configure.ac): Likewise.
12560         * modules/unistdio/base (configure.ac): Likewise.
12561         * modules/unistr/base (configure.ac): Likewise.
12562         * modules/uniwbrk/base (configure.ac): Likewise.
12563         * modules/uniwidth/base (configure.ac): Likewise.
12565 2015-01-20  Daiki Ueno  <ueno@gnu.org>
12567         unictype/category-none: fix link with libunistring
12568         Since _UC_CATEGORY_NONE is not a public symbol, it will be
12569         prefixed with "libstring_" when compiled as part of libunistring.
12570         To avoid undefined symbol at link time, increase the minimum
12571         version when the dependant modules are updated.
12572         * modules/unictype/category-none (configure.ac): Bump minimum
12573         version to 0.9.5.
12575 2015-01-20  Daiki Ueno  <ueno@gnu.org>
12577         unitypes: fix build with installed libunistring
12578         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
12579         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
12580         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
12582 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12584         time: port to MinGW32 3.21
12585         Problem reported by Eli Zaretskii in:
12586         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
12587         * lib/time.in.h:
12588         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
12589         * modules/time (Depends-on):
12590         Fall back on unistd.h if the other include files don't define
12591         struct timespec.
12593         update-copyright: apply to self
12594         * build-aux/update-copyright: Fix copyright date.  How ironic!
12596 2015-01-15  Daiki Ueno  <ueno@gnu.org>
12598         libunistring: update to Unicode 7.0.0
12599         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
12600         Manichaean names.
12601         * lib/unictype/joininggroup_name.h: Likewise.
12602         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
12603         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
12604         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
12605         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
12606         (fill_arabicshaping, joining_group_as_c_identifier): Support those
12607         enum values.
12608         (is_property_alphabetic): Accept newly added characters to
12609         cuneiform numeric signs.
12610         (is_property_default_ignorable_code_point): Reject U+0605.
12611         (FIELDLEN): Increase from 120 to 160.
12612         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
12613         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
12614         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
12615         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
12616         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
12617         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
12618         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
12619         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
12620         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
12621         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
12622         U+1E8D0..U+1E8D6.
12623         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
12624         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12625         lib/uniwidth/width.c.
12626         * all generated files under lib/uni* and tests/uni*: Regenerate.
12628 2015-01-14  Daiki Ueno  <ueno@gnu.org>
12630         libunistring: update to Unicode 6.3.0
12631         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
12632         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
12633         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
12634         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
12635         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
12636         Update WB5, WB9, WB10, WB13a, and WB13b.
12637         * tests/uniwbrk/test-uc-wordbreaks.c
12638         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
12639         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
12640         (UC_BIDI_PDI): New enumeration values.
12641         (bidi_category_byname): Support those enum values.
12642         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
12643         dedicated property assigned.
12644         (is_property_case_ignorable): Check 0x0027.
12645         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
12646         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
12647         (output_wbp): Support those enum values.
12648         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
12649         (UC_BIDI_PDI): New enumeration values.
12650         * lib/unictype/bidi_byname.gperf: Add those property names.
12651         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
12652         U+180E, U+1A1B, and U+2066..U+2069.
12653         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12654         lib/uniwidth/width.c.
12655         * all generated files under lib/uni* and tests/uni*: Regenerate.
12657 2015-01-14  Daiki Ueno  <ueno@gnu.org>
12659         libunistring: update to Unicode 6.2.0
12660         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
12661         (unilbrk_table): Adjust table size.
12662         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
12663         for LBP_RI.
12664         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
12665         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
12666         Normalize table index skipping ignored properties.
12667         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
12668         WBP_EXTEND and WBP_FORMAT, which are now computed without using
12669         the table.
12670         * lib/uniwbrk/wbrktable.h: Adjust table size.
12671         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
12672         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
12673         Support rule GB8a.
12674         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
12675         * tests/unigbrk/test-uc-is-grapheme-break.c
12676         (graphemebreakproperty_to_string): Support GBP_RI.
12677         * tests/uniwbrk/test-uc-wordbreaks.c
12678         (wordbreakproperty_to_string): Support WBP_RI.
12679         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
12680         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
12681         (output_lbp): Support LBP_RI.  Adjust some characters changed from
12682         LBP_AL to LBP_ID.
12683         (output_lbp): Support LBP_RI.
12684         (WBP_RI): New enumeration value.
12685         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
12686         (output_wbp): Support WBP_RI.
12687         (GBP_RI): New enumeration value.
12688         (output_gbp_test, fill_org_gbp): Support GBP_RI.
12689         * all generated files under lib/uni* and tests/uni*: Regenerate.
12691 2015-01-14  Daiki Ueno  <ueno@gnu.org>
12693         libunistring: update to Unicode 6.1.0
12694         * lib/gen-uni-tables.c (output_joining_group): Switch to
12695         3-level table to accommodate joining groups defined with higher
12696         codepoint value.  Since there are only 88 groups defined in
12697         Unicode 7.0.0, use 7-bit packed format for level3 entries.
12698         (get_lbp): Update for Unicode 6.1.0.
12699         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
12700         3-level table.
12701         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
12702         joining group name.
12703         * lib/unictype/joininggroup_name.h: Likewise.
12704         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
12705         (unilbrk_table): Adjust table size.
12706         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
12707         for LBP_HL.
12708         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
12709         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
12710         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
12711         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
12712         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
12713         U+302E..U+302F.
12714         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12715         lib/uniwidth/width.c.
12716         * all generated files under lib/uni* and tests/uni*: Regenerate.
12717         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
12719 2015-01-15  Daiki Ueno  <ueno@gnu.org>
12721         uniwbrk/u32-wordbreaks-tests: add conformance test
12722         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
12723         tests/uniwbrk/test-uc-wordbreaks.c,
12724         tests/uniwbrk/test-uc-wordbreaks.sh, and
12725         tests/uniwbrk/WordBreakTest.txt.
12726         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
12727         test-uc-wordbreaks to $(check_PROGRAMS), and define
12728         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
12729         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
12730         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
12732 2015-01-15  Daiki Ueno  <ueno@gnu.org>
12734         uniwbrk: ignore Extended/Format characters at BOL not BOS
12735         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
12736         characters if the previous character property is one of
12737         WBP_NEWLINE, WBP_CR, and WBP_LF.
12739 2015-01-11  Jim Meyering  <meyering@fb.com>
12741         test-strstr.c: avoid a trivial leak
12742         * tests/test-strstr.c (main): Free haystack.
12744         update-copyright: recognize groff's \(co marker
12745         * build-aux/update-copyright (circle_c_re): Also accept
12746         uses of \(co, as found in gzip.1.
12748 2015-01-08  Pádraig Brady  <P@draigBrady.com>
12750         maint.mk: fix compatibility with OS X nm
12751         * top/maint.mk (_gl_tight_scope): Use the -g option to
12752         show exported items rather than the -e option which is
12753         ignored on all platforms except OS X where it gives an error.
12754         Reported by Assaf Gordon.
12756 2015-01-07  KO Myung-Hun  <komh@chollian.net>
12758         localcharset: improve charset detection on OS/2
12759         Use system codepage when appropriate.  Map OS/2 codepages to
12760         GNU canonical charset names if possible.
12761         * lib/config.charset: Don't output aliases if "$os" is os2*.
12762         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
12763         result for OS/2.
12764         (locale_charset) [OS2]: Use system codepage if codeset is omitted
12765         from the locale name which is neither "C" nor "POSIX".
12767 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
12769         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
12770         This reverts the last patch but one, as it shouldn't be needed now
12771         that the typo is fixed.
12772         * lib/count-leading-zeros.h (count_leading_zeros_ll):
12773         * lib/count-trailing-zeros.h:
12774         * lib/count-one-bits.h:
12775         Go back to using 64-bit intrinsics.
12777         count-leading-zeros: fix pragma typos
12778         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
12779         Fix typos in declaration of intrinsics when _MSC_VER.
12781 2015-01-06  Pádraig Brady  <P@draigBrady.com>
12783         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
12784         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
12785         intrinsics in this case.
12786         * lib/count-trailing-zeros.h: Likewise.
12787         * lib/count-one-bits.h: Likewise.
12789 2015-01-06  Daiki Ueno  <ueno@gnu.org>
12791         uniname/uniname: update to Unicode 7.0.0
12792         To accommodate new characters added since Unicode 5.1.0, this
12793         changes the internal representation of codepoint ranges.
12794         Previously, we grouped codepoint ranges by manually assigned 4-bit
12795         tag, which only allowed 16 groups.  This removes the limitation by
12796         switching to binary search on a table.  For the detail rationale
12797         and the benchmark results, see:
12798         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
12799         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
12800         to INDEX, as it no longer represents a codepoint.
12801         (range): New struct.
12802         (main): Switch to intervals list from a bit-pattern based
12803         classification.
12804         * lib/uniname/uninames.h: Regenerate.
12805         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
12806         * modules/uniname/base (configure.ac): Bump minimum version to
12807         0.9.5.
12808         * modules/uniname/uniname (configure.ac): Bump minimum version to
12809         0.9.5.
12811 2015-01-05  Eric Blake  <eblake@redhat.com>
12813         doc: update INSTALL from autoconf
12814         * doc/install.texi: Resync from autoconf.
12815         * doc/INSTALL: Reflect recent autoconf update.
12816         * doc/INSTALL.ISO: Likewise.
12817         * doc/INSTALL.UTF-8: Likewise.
12819         stdio: fix use of PRIdMAX on modern mingw
12820         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
12821         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
12822         to work with modern mingw.
12824 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
12826         pthread: detect git mingw builds with only partial pollution
12827         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
12828         pollution, as seen temporarily in Fedora 21.
12830 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12832         lib-symbol-versions: cache script check
12833         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
12834         Cache the check for linker version scripts.
12835         From a suggestion by Christophe Curis in:
12836         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
12838 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
12840         maint: fix grammar nits in propername (trivial change)
12841         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
12842         and use an adequate verb and tense.
12844 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
12846         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
12847         * module/gendocs: Add 'doc/gendocs_template_min'.
12849         * build-aux/gendocs.sh: Change email addresses and upstream URLs
12850         from to Gnulib's.
12851         (scripturl, templateurl): Adjust accordingly.
12853 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12855         gendocs: copyright date and version fix
12856         Reported by Karl Berry in:
12857         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
12858         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
12859         Fix copyright date.
12860         * build-aux/gendocs.sh (scriptversion): Update.
12862 2015-01-01  Karl Berry  <karl@gnu.org>
12864         * doc/install.texi,
12865         * build-aux/mdate-sh,
12866         * build-aux/depcomp,
12867         * build-aux/config.guess,
12868         * build-aux/config.sub,
12869         * build-aux/ar-lib,
12870         * build-aux/compile: revert copyright updates (some from last
12871         year) in slaved files.
12873 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12875         version-etc: new year
12876         * doc/gnulib.texi:
12877         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
12878         * all files: Run 'make update-copyright'.
12880 2014-12-30  Pádraig Brady  <P@draigBrady.com>
12882         xstrtol: ensure errno is reset
12883         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
12884         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
12886         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
12888 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12890         utimens: fix dependency typo
12891         * modules/utimens (Depends-on): Remove 'assure'.
12892         This bug was introduced in the recent 'assure' patch.
12894 2014-12-22  Eric Blake  <eblake@redhat.com>
12896         docs: mention why libgen.h is bad
12897         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
12899 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12901         assure: new module
12902         This works better than 'assert' when compiling with -DNDEBUG,
12903         as it avoids some compiler diagnostics in that case.
12904         Reported by Norihiro Tanaka in:
12905         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
12906         * MODULES.html.sh (func_all_modules): Add 'assure'.
12907         * lib/assure.h, modules/assure: New files.
12908         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
12909         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
12910         Prefer 'assure' to 'assert'.
12911         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
12912         * modules/chdir-long, modules/cycle-check, modules/fchdir:
12913         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
12914         Depend on 'assure'.
12916 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
12918         stdalign: port better to HP compilers
12919         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
12920         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
12922         stdalign: work around Apple GCC 4.0 bug
12923         Reported by David Fang in:
12924         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
12925         * lib/stdalign.in.h (_Alignas):
12926         * m4/stdalign.m4 (gl_STDALIGN_H):
12927         Do not use aligned attribute with GCC 4.0 on Apple.
12929 2014-12-16  Pádraig Brady  <P@draigBrady.com>
12931         getcwd: fix test failure on OS X 10.9
12932         * m4/getcwd-path-max.m4: Avoid the replacement if it
12933         won't be effective due to the PATH_MAX limitation of lstat().
12934         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
12935         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
12936         for this case for use in tests, and also exclude this
12937         case when setting REPLACE_GETCWD.
12938         * tests/test-getcwd.c (test_long_name): Restrict the
12939         tested path length so that lstat() will not be passed
12940         a path greater than PATH_MAX.
12941         Also key a test condition on HAVE_OPENAT_SUPPORT rather
12942         than AT_FDCWD, since the latter is set unconditionally
12943         since Sep 2009 in commit 52c658e9.
12945 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
12947         parse-datetime: avoid a compiler warning with byacc (trivial)
12948         * lib/parse-datetime.y (yylex): Use the same prototype in the
12949         function definition as the declaration, to avoid a -Wstrict-prototypes
12950         warning seen when using byacc.
12952 2014-12-12  Daiki Ueno  <ueno@gnu.org>
12954         unicase/locale-language-tests: fix LOCALE_FR test
12955         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
12956         a French locale with traditional encoding.
12957         Reported by umerqayam in:
12958         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
12960 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12962         stddef: support C11's max_align_t
12963         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
12964         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
12965         Do not undef, as that might cause max_align_t to be defined twice.
12966         Instead, change use to check for _GL_STDDEF_WINT_T too.
12967         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
12968         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
12969         Check for max_align_t.
12970         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
12971         * modules/stddef-tests (Depends-on): Add stdalign.
12972         * tests/test-stddef.c: Test max_align_t.
12974 2014-12-11  Daiki Ueno  <ueno@gnu.org>
12976         unistd: fix iOS check conditional
12977         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
12978         as 0 or 1 in <TargetConditionals.h>, and the previous check always
12979         yielded true on non-iOS environment.
12980         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
12981         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
12982         they are defined.
12984 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
12986         posixtm: avoid compiler warning in a better way
12987         * lib/posixtm.c (IF_LINT): Remove.
12988         (year, posix_time_parse):
12989         Return true (not 0) if successful.  All callers changed.
12990         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
12992 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
12994         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
12995         started with '/' on EMX.
12997 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
12999         freopen: workaround freopen() on OS/2 kLIBC
13000         * lib/freopen.c (rpl_freopen): Workaround.
13001         * m4/freopen.m4: Add os2* case.
13003         get_shared_library_fullname: port to EMX
13004         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
13005         on EMX, respectively.
13006         (_DLL_InitTerm): New on EMX.
13007         (get_shared_library_fullname): Implement on EMX.
13009         find_executable: port to EMX
13010         * lib/progreloc.c (find_executable): Implement on EMX.
13012         sched: check struct sched_param in spawn.h as well
13013         * lib/sched.in.h: Include spawn.h on kLIBC.
13014         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
13016 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
13018         bootstrap: Allow perl modules in $buildreq
13019         * build-aux/bootstrap: Add case for perl modules.
13021 2014-12-08  Pádraig Brady  <P@draigBrady.com>
13023         apply _GL_ATTRIBUTE_PURE to some inline functions
13024         clang 3.4.2 flagged these inline functions as pure
13025         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
13026         * lib/sig-handler.h (get_handler): Likewise.
13027         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
13028         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
13030 2014-12-06  Pádraig Brady  <P@draigBrady.com>
13032         vasnprintf: fix potential use after free
13033         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
13034         flagged by clang-analyzer 3.4.2.
13036 2014-12-05  Pádraig Brady  <P@draigBrady.com>
13038         filevercmp, posixtm: avoid compiler warnings with -O3
13039         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
13040         * lib/posixtm.c: (IF_LINT): Define.
13041         (posix_time_parse): Use it to void a "may be used uninitialized"
13042         warning, seen only with -O3.
13044 2014-12-05  Bruno Haible  <bruno@clisp.org>
13046         Fix LDBL80_WORDS macro on big endian platforms.
13047         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
13048         LDBL80_WORDS macro.
13049         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13050         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13051         * tests/test-isfinite.c (test_isfinitel): Likewise.
13052         * tests/test-isinf.c (test_isinfl): Likewise.
13053         * tests/test-isnan.c (test_long_double): Likewise.
13054         * tests/test-isnanl.h (main): Likewise.
13055         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
13056         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
13057         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
13058         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
13059         Reported by Pádraig Brady.
13061 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
13063         git-version-gen: do not print new line characters
13064         * build-aux/git-version-gen: Use printf instead of echo and tr.
13066         gnulib-tool: recognize x:* as an absolute path
13067         * gnulib-tool (func_gnulib_dir): Add ?:* case.
13068         (func_relconcat): Likewise.
13070 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
13072         argp: avoid extraneous translation and mem leak with empty pre doc
13073         * lib/argp-help.c (argp_doc): Never translate the empty string,
13074         when "\v" is the first or last character of the string, as that
13075         has a reserved meaning to return the header info from a po file.
13076         This also fixes a small memory leak in the !post case.
13077         The issue can be seen with this command for example:
13078         LC_MESSAGES=en_US grub2-mknetdir --help
13080 2014-11-27  Daiki Ueno  <ueno@gnu.org>
13082         uniname/uniname-tests: skip if system's libunistring is used
13083         * modules/uniname/uniname-tests (Makefile.am): Skip test if
13084         uniname/uniname module is not compiled.
13086 2014-11-27  Pádraig Brady  <P@draigBrady.com>
13088         printf: fix configure check on big endian systems
13089         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
13091 2014-11-22  Daiki Ueno  <ueno@gnu.org>
13093         pipe-filter-gi, pipe-filter-ii: port to AIX
13094         On AIX 7.1, 'select' is defined as static and cannot be referred
13095         to from inline function.
13096         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
13097         the definition...
13098         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
13099         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
13101 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
13103         gitlog-to-changelog: add --until
13104         * build-aux/gitlog-to-changelog: Support new --until option.
13105         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
13107 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
13109         extern-inline: update commentary about GCC bugs
13110         * m4/extern-inline.m4: Add another GCC bug number to comments.
13112 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13114         gen-uni-tables: untabify
13115         * lib/gen-uni-tables.c: Untabify.
13117 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13119         gen-uni-tables: check out-of-range values added to 3-level tables
13120         * lib/gen-uni-tables.c (output_category, output_bidi_category)
13121         (output_joining_type, output_ident_category): Check out-of-range
13122         values added to 3-level tables.
13124 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13126         gen-uni-tables: utilize 'assert'
13127         * lib/gen-uni-tables.c: Include <assert.h>.
13128         (output_category, output_combclass, output_decimal_digit_test)
13129         (output_decimal_digit, output_digit_test, output_digit)
13130         (output_numeric, get_mirror_value, fill_properties)
13131         (fill_property30, is_property_alphabetic)
13132         (is_property_default_ignorable_code_point)
13133         (is_property_uppercase, is_property_lowercase)
13134         (is_property_cased, is_property_case_ignorable)
13135         (is_property_changes_when_lowercased, is_property_iso_control)
13136         (is_property_math, fill_arabicshaping, output_joining_group)
13137         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
13138         (output_wbp, fill_org_gbp, get_decomposition)
13139         (output_decomposition, fill_composition_exclusions)
13140         (debug_output_composition_tables, output_composition_tables)
13141         (redistribute_casefolding_rules, output_casing_rules): Use
13142         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
13143         reporting.
13145 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13147         gen-uni-tables: cosmetic improvements
13148         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
13149         variables specification.
13150         (is_outdigit): Remove unused function.
13152 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
13154         fcntl-h-tests: port to PA-RISC GNU/Linux
13155         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
13157 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13159         fts: port to C89
13160         Problem reported for MSVC 16 by Gisle Vanem in:
13161         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
13162         * lib/fts.c (fts_build): Avoid declaration before statement.
13164 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
13166         unistd: port to iOS
13167         Problem reported by André Klitzing in:
13168         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
13169         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
13171 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13173         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
13174         Problem reported by Alan Modra in:
13175         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
13176         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
13177         Always cast the function arg, reverting this part of the previous
13178         change.
13180 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
13182         obstack: avoid potentially-nonportable function casts
13183         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
13184         Remove, replacing with ...
13185         (call_chunkfun, call_freefun): New static functions.
13186         All uses changed.  Avoid potentially-nonportable casts.
13187         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
13188         (_obstack_begin_worker): Omit last two args, since they
13189         rely on potentially-nonportable casts.  All callers changed.
13190         * lib/obstack.h (_OBSTACK_CAST): New macro.
13191         Use it everywhere the old API used a potentially-nonportable cast.
13192         The new API doesn't cast.
13193         (struct obstack): Use unions rather than requiring
13194         potentially-nonportable casts.
13195         (obstack_chunkfun, obstack_freefun): Return void.
13197 2014-11-03  Alan Modra  <amodra@gmail.com>
13199         obstack: fix macro return values
13200         * lib/obstack.h (obstack_next_free): Return void *.
13201         (obstack_1grow_fast, obstack_blank_fast): Return void.
13202         For __GNUC__ macros:
13203         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
13204         For !__GNUC__ macros:
13205         (obstack_make_room, obstack_grow, obstack_grow0)
13206         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
13208 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13210         obstack: do not assume system-supplied obstack is size_t safe
13211         * m4/obstack.m4: New file.
13212         * modules/obstack (Files): Add it.
13214         obstack: port to platforms that #define __alignof__
13215         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
13216         not if !_LIBC.  We don't know of any platforms that #define
13217         __alignof__, but it might be useful in tests.  Conversely,
13218         glibc assumes GCC.
13220 2014-11-03  Pádraig Brady  <P@draigBrady.com>
13222         linkat: don't unconditionally replace on GNU/Linux
13223         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
13224         was redundant for a few reasons.  It was present to support compiling
13225         on new systems but running on the old narrow window of Linux 2.6.1[67].
13226         It setup and cleaned up test files which weren't actually used.
13227         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
13228         implicit in the following check.
13230 2014-11-03  Pádraig Brady  <P@draigBrady.com>
13232         linkat: wrap to handle symlinks on OS X 10.10
13233         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
13234         but not usable because it doesn't support creating hardlinks
13235         to symlinks.  Therefore add a generic test for this capability
13236         and fallback to our emulation if linkat() fails with ENOTSUP.
13238 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13240         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
13241         * doc/posix-functions/open.texi (open):
13242         * doc/posix-functions/openat.texi (openat):
13243         Document that these functions do not set errno to ELOOP when
13244         a symlink is opened with O_NOFOLLOW.
13246 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
13248         obstack: add NEWS entry for recent incompatible changes
13249         * NEWS: Describe recent changes.
13251 2014-10-30  Pádraig Brady  <P@draigBrady.com>
13253         mountlist: don't use libmount to decide on dummy/remote
13254         * lib/mountlist.c (read_file_system_list): Don't use the libmount
13255         routines to determine whether a file system is dummy or remote,
13256         as they're not currently compatible.  For example the remoteness
13257         is determined on file system type (for which the list seems incomplete),
13258         rather than simply checking for a ':' in the device name.
13259         Also libmount currently determines that 'tmpfs' is a dummy file system
13260         even though it has associated storage.
13262 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13264         obstack: prefer __alignof__ to alignof
13265         This is for portability to pre-4.7 GCC when compiling glibc.
13266         See Joseph S. Myers in:
13267         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
13268         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
13269         New macro, defined by including and using <alignof.h>.
13270         (MAX): New macro.
13271         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
13272         Do not use enums as they are not portable to some broken compilers.
13273         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
13275         obstack: prefer alignof to calculating alignments by hand
13276         * lib/obstack.c: Include <stdalign.h>.
13277         (struct fooalign): Remove.
13278         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
13279         * modules/obstack (Depends-on): Add stdalign.
13281 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
13283         obstack: use size_t alignments and check for overflow
13284         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
13285         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
13286         * lib/obstack.h (struct obstack.alignment_mask):
13287         Use _OBSTACK_SIZE_T, not int, for alignments.
13288         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
13289         overflows, e.g., when adding the alignment.
13291 2014-10-29  Alan Modra  <amodra@gmail.com>
13293         obstack: 64-bit obstack support, part 3
13294         This finally enables full 64-bit obstack support.  The glibc
13295         shared library specific code is removed from obstack.c too, and
13296         the error handling code conditionally compiled under control of
13297         another macro, _OBSTACK_NO_ERROR_HANDLER.
13298         * lib/obstack.h: Include string.h earlier.
13299         (_OBSTACK_INTERFACE_VERSION): Define.
13300         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
13301         * lib/obstack.c: Don't include shlib-compat.h.
13302         (OBSTACK_INTERFACE_VERSION): Delete.
13303         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
13304         glibc code is compatible with version 2.  Don't include stdio.h for
13305         __GNU_LIBRARY.
13306         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
13307         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
13308         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
13309         glibc shared library specific source.
13311         obstack: 64-bit obstack support, part 2
13312         This gets us 4G obstack support, without changing ABI
13313         compatibility, apart from possibly introducing some
13314         signed/unsigned comparison warnings in code that uses obstack.h.
13315         a) Replace "int" size parameters, return values, and macro local vars
13316            with _OBSTACK_SIZE_T, an "unsigned int" for now.
13317         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
13318         c) Make all obstack macros checking available room use obstack_room.
13319            "next_free + desired > chunk_limit" may wrap the lhs for chunks
13320            allocated near the top of memory.
13321         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
13322         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
13323         in place of "int" size parameters, return values and local vars.
13324         (_CHUNK_SIZE_T): Define.
13325         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
13326         union use an _OBSTACK_SIZE_T integer type.
13327         For __GNUC__ versions of the following macros...
13328         (obstack_room): Rename local var.
13329         (obstack_make_room): Use obstack_room.
13330         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
13331         obstack_int_grow, obstack_blank): Likewise.
13332         (obstack_finish): Use unsigned comparison when comparing aligned
13333         next_free against chunk_limit.
13334         (obstack_free): Cast OBJ to remove possible const qualifier.
13335         For !__GNUC__ versions of the following macros...
13336         (obstack_make_room): Use obstack_room.
13337         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
13338         obstack_int_grow, obstack_blank): Likewise.
13339         (obstack_finish): Use unsigned comparision when comparing aligned
13340         next_free against chunk_limit.
13341         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
13342         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
13343         _OBSTACK_SIZE_T.
13344         (_obstack_begin, _obstack_begin_1): Likewise.
13345         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
13346         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
13348         obstack: 64-bit obstack support, part 1
13349         a) Correct calls to alloc function, to use a size_t arg.  "long" is
13350            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
13351            and "size_t" 64 bits.
13352         b) Consolidate _obstack_begin and _obstack_begin1 code.
13353         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
13354         use "size_t" rather than "long".
13355         (_obstack_begin, _obstack_begin1): Likewise.
13356         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
13357         obstack_chunkfun): Update alloc function casts.
13358         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
13359         (chunkfun_type, freefun_type): New typdefs.
13360         (_obstack_begin_worker): Split out from ..
13361         (_obstack_begin, _obstack_begin_1): ..here.
13363         obstack: tidy part 2
13364         a) Don't be concerned about "not polluting the namespace with stddef.h
13365            symbols" in obstack.h, since gnulib string.h includes stddef.h
13366            anyway, and it seems unlikely that anyone would care.
13367         b) Don't roll our own slow memcpy in _obstack_newchunk.
13368         c) Rename obstack_free to _obstack_free.  This makes the naming
13369            consistent with other obstack functions and obviates the need for
13370            __obstack_free.  Ancient obstack.c defined both obstack_free and
13371            _obstack_free.  We continue to do that for _LIBC via an alias.
13372         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
13373            is clever, but nowadays gcc warns on undefined macros.  You'll get
13374            an undefined macro warning if simulating an old gcc with -U__GNUC__
13375            -U__GNUC_MINOR__ -D__GNUC__=1.
13376         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
13377         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
13378         (__obstack_free): Delete, update refs.
13379         (_obstack_free): Rename from obstack_free.
13380         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
13381         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
13382         * lib/obstack.c: Don't include stddef.h.
13383         (COPYING_UNIT): Delete.
13384         (_obstack_begin): Formatting fix.
13385         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
13386         (_obstack_free): Rename from __obstack_free, update alias.  Move
13387         undef of obstack_free to where it is needed.
13389         obstack: tidy part 1
13390         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
13391            to me, and result in overlong lines after later patches.
13392         b) Move error handling code, to avoid a forward declaration and to
13393            simplify later patches in this series.
13394         * lib/obstack.h (struct obstack <temp>): Rename fields of union
13395         and update all uses.
13396         * lib/obstack.c: Include stdlib.h earlier.
13397         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
13398         in file.
13399         (print_and_abort): Remove now redundant forward declaration.
13401 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13403         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
13404         Without this change, in bleeding-edge fileutils Autoconf complains
13405         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
13406         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
13407         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
13408         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
13410 2014-10-24  Daiki Ueno  <ueno@gnu.org>
13412         iconv: avoid false detection of non-working iconv
13413         The INBUF arguments of iconv can be either 'const char **'
13414         or 'char **'.  If CC is g++, the difference causes a compile error
13415         and thus leads to a false detection of non-working iconv.
13416         Reported by Eli Zaretskii and Werner LEMBERG in:
13417         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
13418         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
13419         iconv.  Bump serial number.
13421 2014-10-23  Pádraig Brady  <P@draigBrady.com>
13423         bootstrap: print more diagnostics for missing programs
13424         * build-aux/bootstrap: only suppress stderr when checking for
13425         alternative program names.  This supports programs issuing non
13426         standard error messages.
13428 2014-10-23  Pádraig Brady  <P@draigBrady.com>
13430         bootstrap: only update the gnulib submodule
13431         * build-aux/bootstrap: Restrict the "submodule update" command
13432         to the gnulib path.
13434 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13436         symlinkat: port to AIX 7.1
13437         * doc/posix-functions/symlinkat.texi (symlinkat):
13438         Mention AIX porting problem.
13439         * lib/symlinkat.c: Always include errno.h.
13440         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
13441         * lib/unistd.in.h (symlinkat): Add replacement machinery.
13442         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
13443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
13444         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
13445         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
13446         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
13448         readlinkat: port to AIX 7.1
13449         * doc/posix-functions/readlink.texi (readlink):
13450         * doc/posix-functions/readlinkat.texi (readlinkat):
13451         Mention AIX porting problem.
13452         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
13453         New function.
13454         * lib/unistd.in.h (readlinkat): Add replacement machinery.
13455         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
13456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
13457         * modules/readlinkat (configure.ac): Also compile replacement
13458         if REPLACE_READLINKAT.
13459         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
13461 2014-10-12  Karl Berry  <karl@gnu.org>
13463         * doc/posix-functions/dirname.texi: remove spurious {.
13465 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
13467         basename, dirname: Improve documentation.
13468         * doc/posix-functions/basename.texi: Mention dirname module and
13469         base_name() function.
13470         * doc/posix-functions/dirname.texi: Mention dir_name() and
13471         mdir_name() functions.
13472         Suggested by Werner LEMBERG <wl@gnu.org>.
13474 2014-09-24  Jim Meyering  <meyering@fb.com>
13476         exclude: declare exclude_patopts static
13477         * lib/exclude.c (exclude_patopts): Declare static,
13478         to avoid triggering a -Wmissing-prototypes warning.
13479         The alternative (declaring it in the .h file) would
13480         require publicizing the private "struct patopts".
13482 2014-09-21  Werner Lemberg  <wl@gnu.org>
13484         dirname: support compilation with C++
13485         * lib/dirname.h: Add necessary C linkage declarations.
13487 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
13489         qsort_r: include <config.h>
13490         Problem reported by Tom G. Christensen in:
13491         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
13492         * lib/qsort.c [!_LIBC]: Include <config.h> first.
13494 2014-09-16  Dylan Cali  <calid1984@gmail.com>
13496         avltree-list: avoid compiler warnings (trivial)
13497         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
13498         -Werror=suggest-attribute=pure.
13499         * lib/gl_array_list.c: Likewise.
13500         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
13501         declaration to avoid -Werror=missing-prototypes.  This is not added
13502         to a header as only exported for tests.  Add (void) to the
13503         check_invariants() call to indicate we're discarding the result
13504         in this context which avoids -Werror=unused-value.  Note we don't
13505         use ignore_value here to avoid a dependency as we know we'll not
13506         be adding __attribute__((warn_unused_result)) to check_invariants().
13507         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
13509 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
13511         qsort_r: new module, for GNU-style qsort_r
13512         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
13514 2014-09-15  Werner LEMBERG  <wl@gnu.org>
13516         strerror_r-posix: support compilation with C++
13517         * lib/strerror_r.c: Add necessary C linkage declarations.
13519 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
13521         fcntl-h: fix compilation with Intel C++ compiler (trivial)
13522         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
13524 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
13526         mountlist: use /proc/self/mountinfo when available
13527         Use libmount to propagate device IDs provided by Linux in
13528         /proc/self/mountinfo.  This will give more accurate output when
13529         using df in chroot'ed environments as the device IDs are not
13530         determined by stat() which may be inaccurate within the chroot.
13531         * lib/mountlist.c (read_file_system_list): Use the libmount routines
13532         from util-linux to parse "/proc/self/mountinfo" or fall back to
13533         standard getmntent() processing.
13534         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
13535         getmntent() is used, as is the case on GNU/Linux.
13537 2014-09-07  Eric Wong  <normalperson@yhbt.net>
13539         users.txt: add cmogstored
13540         cmogstored has used gnulib since the beginning in 2012 to support
13541         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
13543 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
13545         Trivial change.
13546         * gnulib-tool: Use same options as build-aux/bootstrap to download
13547         PO files.
13549 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
13551         Trivial change.
13552         * gnulib-tool: Fallback to wget when rsync of PO files fails.
13554 2014-09-04  Eric Blake  <eblake@redhat.com>
13556         maintainer-makefile: add syntax check for useless ';;'
13557         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
13559 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
13561         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
13562         Problem reported by Assaf Gordon in:
13563         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
13564         Apparently Ubuntu is doing some fancy link-time optimization
13565         that doesn't work with -lpthread but does work with -pthread.
13566         Work around the bug by preferring -pthread to -lpthread.
13567         * m4/pthread.m4 (gl_PTHREAD_CHECK):
13568         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
13569         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13570         Treat -pthread like -lpthread.
13572 2014-09-04  Eric Blake  <eblake@redhat.com>
13574         error: drop spurious semicolon
13575         * lib/error.c (__error_at_line): Fix ';;'.
13577 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13579         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
13580         * m4/gnulib-common.m4 (AC_C_RESTRICT):
13581         Override AC_C_RESTRICT unconditionally.
13582         Update from autoconf, incorporating:
13583         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
13584         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
13586 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13588         manywarnings: add GCC 4.9 warnings
13589         Also, make it easier to maintain this in the future.
13590         * build-aux/gcc-warning.spec: Add -Wabi-tag,
13591         -Wconditionally-supported, -Wdelete-incomplete,
13592         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
13593         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
13594         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
13595         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
13596         only for older GCC versions that need them.  Handle
13597         -Wnormalized=nfc specially, so that the 'comm' command used
13598         for maintenance doesn't get confused.
13600 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13602         vasnprintf: fix bugs in width computation
13603         * lib/vasnprintf.c (VASNPRINTF):
13604         Rework previous change, which introduced a bug,
13605         to avoid the warning in a different way.
13606         Avoid undefined behavior if the width arg is less than -INT_MAX.
13607         Avoid unnecessary use of HAS_WIDTH local.
13609 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
13611         vasnprintf: Avoid signed/unsigned comparison warning.
13612         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
13613         compare end addr of generated string w/ maximum end addr.
13615 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
13617         parse-datetime: Avoid pointer difference.
13618         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
13619         instead of calculating difference of pointers.  This removes an
13620         annoying warning, devoid of any use.
13622 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
13624         qsort_r: new module, for GNU-style qsort_r
13625         This works even on FreeBSD, which has an incompatible qsort_r API.
13626         * MODULES.html.sh: Add it.
13627         * doc/glibc-functions/qsort_r.texi: It's now supported.
13628         * lib/qsort.c: New file, taken from glibc with minor changes
13629         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
13630         removed.
13631         * lib/qsort_r.c: New file, compiled only on FreeBSD.
13632         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
13633         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
13634         * modules/qsort_r, modules/qsort_r-tests: New files.
13635         * modules/stdlib (Makefile): Set up its defaults.
13636         * tests/test-qsort_r.c: New file.
13638 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
13640         vla: new module
13641         GNU RCS can use this, mostly for documentation I expect.  See:
13642         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
13643         * MODULES.html.sh: Add vla.
13644         * lib/vla.h, modules/vla: New files.
13646 2014-08-07  Daiki Ueno  <ueno@gnu.org>
13648         localename: make gl_locale_name_thread really thread-safe on Windows
13649         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
13650         "glthread/lock.h".
13651         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
13652         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
13654 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
13656         getpass: don't assume struct termios
13657         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
13658         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
13659         * lib/getpass.c (getpass): Port to systems lacking struct termios.
13661         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
13662         Problem reported by Jonas 'Sortie' Termansen in:
13663         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
13664         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
13665         Implement via sysconf for platforms that lack getdtablesize.
13667         vararrays: modernize AC_C_VARARRAYS for C11
13668         This backports a change I recently made to Autoconf.
13669         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
13670         VLAs are not supported, as this is what C11 does.  The old macro
13671         HAVE_C_VARARRAYS is still defined if they are supported, but is
13672         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
13674 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
13676         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
13677         * build-aux/install-reloc (func_create_wrapper): Also wrap
13678         strerror-override, stat, stat.
13680 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
13682         sys_select: fix FD_ZERO problem on Solaris 10
13683         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
13684         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
13685         to expand to an expression that invoked memset without necessarily
13686         including <string.h>.  The problem was that the first include
13687         defined _SYS_TIME_H, causing the second include to short-circuit.
13688         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
13689         Also, fix what appears to be a cut-and-paste typo, by replacing
13690         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
13691         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
13693         accept: document Solaris 10 type glitch
13694         * doc/posix-functions/accept.texi (accept): Mention that
13695         Solaris 10 'accept' takes void * last arg, not socklen_t *.
13697 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
13699         extern-inline: port to FreeBSD, DragonFly
13700         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
13701         is present if either __DragonFly__ or __FreeBSD__ is defined.
13702         FreeBSD problem reported by Andrey Borzenkov in:
13703         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
13704         Also, worry about __APPLE__ only if __MACH__ is also defined,
13705         as this is more consistent with the rest of gnulib.
13706         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
13707         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
13709 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
13711         regex: Make #if/#ifdef usage consistent for DEBUG
13712         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
13713         of the inconsistent usage of #if and #ifdef as that works with
13714         both Glibc and Gnulib's style.
13716 2014-07-31  Eric Blake  <eblake@redhat.com>
13718         openat-die: use _Noreturn markup
13719         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
13720         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
13721         _Noreturn.
13723 2014-07-30  Eric Blake  <eblake@redhat.com>
13725         test-open: port to cygwin, which lacks Fortify
13726         * tests/test-open.h (ALWAYS_INLINE): New macro.
13727         (__always_inline): Don't abuse internal symbol on non-glibc.
13729 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
13731         localename: Enforce declarations before statements.
13732         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
13733         first statement.
13735 2014-07-18  Jim Meyering  <meyering@fb.com>
13737         test-userspec: don't look up numeric user names
13738         * tests/test-userspec.c: I found a system for which getpwnam("0")
13739         returned a pointer to a non-root user's entry, and that made the
13740         test fail.
13741         (T): Prefix each numeric input with "+", to inhibit lookup.
13743 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
13745         localcharset, localename: MS-Windows support for non-default locales
13746         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
13747         falling back on the default system codepage, try extracting
13748         the codepage from what 'setlocale' returns.  This allows to
13749         take into account changes of the codeset due to non-default
13750         locale set by a previous call to 'setlocale'.
13751         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
13752         Define if not already defined.
13753         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
13754         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
13755         current locale by calling 'setlocale', then converting the
13756         locale name into LCID by calling 'get_lcid'.  This allows to
13757         take into account changes in the current locale from the
13758         default one, in contrast to GetThreadLocale.
13760 2014-07-14  Daiki Ueno  <ueno@gnu.org>
13762         announce-gen: avoid failure when Digest::SHA is installed
13763         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
13764         Digest::SHA1->new in print_checksums fails.
13765         * build-aux/announce-gen (digest_classes): New associative array
13766         for available message digest implementations.
13767         (print_locations): Use it.
13769 2014-07-13  Pádraig Brady  <P@draigBrady.com>
13771         gettext: revert "update macros to version 0.19"
13772         This reverts commit 9b9370ca, as it currently requires that
13773         developers of any project that explicitly uses the gettext module
13774         or implicitly uses it through the utimens-tests or
13775         futimens-tests modules, use gettext >= 0.19.
13776         However there are some stability and availablity issues with
13777         that version at present.  We can reinstate this soon, when stability
13778         is addressed and packages are more readily available.
13780 2014-07-12  Jim Meyering  <meyering@fb.com>
13782         regex: don't deref NULL upon heap allocation failure
13783         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
13784         failure in one more place.
13785         To trigger the segfault, configure grep -with-included-regex,
13786         build it, and run these commands:
13787         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
13788         I discovered this while replying to a private report from
13789         Jens Schleusener about excessive memory consumption by grep
13790         when using a regular expression like the one above.
13792 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
13794         regex: fix memory leak in compiler
13795         Fix by Andreas Schwab in:
13796         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
13797         * lib/regcomp.c (parse_reg_exp): Deallocate partially
13798         constructed tree before returning error.
13800 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
13802         announce-gen: avoid perl warnings
13803         * build-aux/announce-gen: add two minor checks to avoid
13804         "use of uninitialized value" warnings when command-line parameters are
13805         missing.
13807 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
13809         localename: avoid -Wsuggest-attribute={const,pure} warnings
13810         * lib/localename.c (string_has): Tag internal function as pure.
13811         * lib/localename.h (gl_locale_name_default): Tag extern declaration
13812         as const when appropriate.
13814 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
13816         nl_langinfo: Fix last change.
13817         * lib/nl_langinfo.c (includes): Drop redundant include.
13819 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
13821         error: Fix -Wundef warnings in glibc
13822         * lib/error.c [_LIBC]: Define default macros for
13823         glibc.
13824         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
13825         Check _LIBC before STRERROR_R_CHAR_P.
13827         error: Sync from glibc master
13828         * lib/error.c [_LIBC]: Remove INTUSE usage.
13829         (error_tail): Remove unused macro ALLOCA_LIMIT.
13830         Fix potential buffer overflow.  Fix potential NULL dereference
13831         in strcmp.
13833 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
13835         nl_langinfo: fix build under mingw
13836         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
13838 2014-07-09  Andrew D Warshall  <warshall@99main.com>
13840         mountlist: do not classify a bind-mounted dir entry as "dummy"
13841         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
13842         1-argument getmntent() (instead of assuming absence).
13844 2014-07-08  Eric Blake  <eblake@redhat.com>
13846         maint.mk: less syntax-check noise when SIGPIPE is ignored
13847         * top/maint.mk (_sc_header_without_use)
13848         (sc_require_config_h_first): Parse full list.
13850 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
13851             Paul Eggert  <eggert@cs.ucla.edu>
13853         nl_langinfo: CODESET on MS-Windows and more items from localeconv
13854         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
13855         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
13856         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
13857         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
13858         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
13859         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
13860         Include <stdio.h> if Microsoft Windows.
13861         Include <time.h> if !REPLACE_NL_LANGINFO.
13862         (ctype_codeset): New function, taken from rpl_nl_langinfo,
13863         and with improvements for Microsoft Windows.
13864         (rpl_nl_langinfo): Use it.
13865         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
13866         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
13867         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
13868         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
13869         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
13870         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
13871         corresponding values returned by 'localeconv'.  Compute the values
13872         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
13873         'strftime' with a suitable struct tm value.
13875 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13877         Bruno Haible has stepped down as maintainer.
13878         See Karl Berry in:
13879         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
13880         Daiki Ueno has volunteered to maintain libunistring; see:
13881         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
13882         * modules/gen-uni-tables, modules/libunistring:
13883         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
13884         * modules/unicase/base, modules/unicase/cased:
13885         * modules/unicase/empty-prefix-context:
13886         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
13887         * modules/unicase/locale-language, modules/unicase/special-casing:
13888         * modules/unicase/tocasefold, modules/unicase/tolower:
13889         * modules/unicase/totitle, modules/unicase/toupper:
13890         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
13891         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
13892         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
13893         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
13894         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
13895         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
13896         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
13897         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
13898         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
13899         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
13900         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
13901         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
13902         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
13903         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
13904         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
13905         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
13906         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
13907         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
13908         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
13909         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
13910         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
13911         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
13912         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
13913         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
13914         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
13915         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
13916         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
13917         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
13918         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
13919         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
13920         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
13921         * modules/unicase/ulc-casexfrm, modules/unicodeio:
13922         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
13923         * modules/uniconv/u16-conv-to-enc:
13924         * modules/uniconv/u16-strconv-from-enc:
13925         * modules/uniconv/u16-strconv-from-locale:
13926         * modules/uniconv/u16-strconv-to-enc:
13927         * modules/uniconv/u16-strconv-to-locale:
13928         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
13929         * modules/uniconv/u32-strconv-from-enc:
13930         * modules/uniconv/u32-strconv-from-locale:
13931         * modules/uniconv/u32-strconv-to-enc:
13932         * modules/uniconv/u32-strconv-to-locale:
13933         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
13934         * modules/uniconv/u8-strconv-from-enc:
13935         * modules/uniconv/u8-strconv-from-locale:
13936         * modules/uniconv/u8-strconv-to-enc:
13937         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
13938         * modules/unictype/bidicategory-all:
13939         * modules/unictype/bidicategory-byname:
13940         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
13941         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
13942         * modules/unictype/bidiclass-byname:
13943         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
13944         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
13945         * modules/unictype/block-all, modules/unictype/block-list:
13946         * modules/unictype/block-of, modules/unictype/block-test:
13947         * modules/unictype/category-C, modules/unictype/category-Cc:
13948         * modules/unictype/category-Cf, modules/unictype/category-Cn:
13949         * modules/unictype/category-Co, modules/unictype/category-Cs:
13950         * modules/unictype/category-L, modules/unictype/category-LC:
13951         * modules/unictype/category-Ll, modules/unictype/category-Lm:
13952         * modules/unictype/category-Lo, modules/unictype/category-Lt:
13953         * modules/unictype/category-Lu, modules/unictype/category-M:
13954         * modules/unictype/category-Mc, modules/unictype/category-Me:
13955         * modules/unictype/category-Mn, modules/unictype/category-N:
13956         * modules/unictype/category-Nd, modules/unictype/category-Nl:
13957         * modules/unictype/category-No, modules/unictype/category-P:
13958         * modules/unictype/category-Pc, modules/unictype/category-Pd:
13959         * modules/unictype/category-Pe, modules/unictype/category-Pf:
13960         * modules/unictype/category-Pi, modules/unictype/category-Po:
13961         * modules/unictype/category-Ps, modules/unictype/category-S:
13962         * modules/unictype/category-Sc, modules/unictype/category-Sk:
13963         * modules/unictype/category-Sm, modules/unictype/category-So:
13964         * modules/unictype/category-Z, modules/unictype/category-Zl:
13965         * modules/unictype/category-Zp, modules/unictype/category-Zs:
13966         * modules/unictype/category-all, modules/unictype/category-and:
13967         * modules/unictype/category-and-not, modules/unictype/category-byname:
13968         * modules/unictype/category-longname, modules/unictype/category-name:
13969         * modules/unictype/category-none, modules/unictype/category-of:
13970         * modules/unictype/category-or, modules/unictype/category-test:
13971         * modules/unictype/category-test-withtable:
13972         * modules/unictype/combining-class:
13973         * modules/unictype/combining-class-all:
13974         * modules/unictype/combining-class-byname:
13975         * modules/unictype/combining-class-longname:
13976         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
13977         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
13978         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
13979         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
13980         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
13981         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
13982         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
13983         * modules/unictype/digit, modules/unictype/joininggroup-all:
13984         * modules/unictype/joininggroup-byname:
13985         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
13986         * modules/unictype/joiningtype-all:
13987         * modules/unictype/joiningtype-byname:
13988         * modules/unictype/joiningtype-longname:
13989         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
13990         * modules/unictype/mirror, modules/unictype/numeric:
13991         * modules/unictype/property-all, modules/unictype/property-alphabetic:
13992         * modules/unictype/property-ascii-hex-digit:
13993         * modules/unictype/property-bidi-arabic-digit:
13994         * modules/unictype/property-bidi-arabic-right-to-left:
13995         * modules/unictype/property-bidi-block-separator:
13996         * modules/unictype/property-bidi-boundary-neutral:
13997         * modules/unictype/property-bidi-common-separator:
13998         * modules/unictype/property-bidi-control:
13999         * modules/unictype/property-bidi-embedding-or-override:
14000         * modules/unictype/property-bidi-eur-num-separator:
14001         * modules/unictype/property-bidi-eur-num-terminator:
14002         * modules/unictype/property-bidi-european-digit:
14003         * modules/unictype/property-bidi-hebrew-right-to-left:
14004         * modules/unictype/property-bidi-left-to-right:
14005         * modules/unictype/property-bidi-non-spacing-mark:
14006         * modules/unictype/property-bidi-other-neutral:
14007         * modules/unictype/property-bidi-pdf:
14008         * modules/unictype/property-bidi-segment-separator:
14009         * modules/unictype/property-bidi-whitespace:
14010         * modules/unictype/property-byname:
14011         * modules/unictype/property-case-ignorable:
14012         * modules/unictype/property-cased:
14013         * modules/unictype/property-changes-when-casefolded:
14014         * modules/unictype/property-changes-when-casemapped:
14015         * modules/unictype/property-changes-when-lowercased:
14016         * modules/unictype/property-changes-when-titlecased:
14017         * modules/unictype/property-changes-when-uppercased:
14018         * modules/unictype/property-combining:
14019         * modules/unictype/property-composite:
14020         * modules/unictype/property-currency-symbol:
14021         * modules/unictype/property-dash:
14022         * modules/unictype/property-decimal-digit:
14023         * modules/unictype/property-default-ignorable-code-point:
14024         * modules/unictype/property-deprecated:
14025         * modules/unictype/property-diacritic:
14026         * modules/unictype/property-extender:
14027         * modules/unictype/property-format-control:
14028         * modules/unictype/property-grapheme-base:
14029         * modules/unictype/property-grapheme-extend:
14030         * modules/unictype/property-grapheme-link:
14031         * modules/unictype/property-hex-digit:
14032         * modules/unictype/property-hyphen:
14033         * modules/unictype/property-id-continue:
14034         * modules/unictype/property-id-start:
14035         * modules/unictype/property-ideographic:
14036         * modules/unictype/property-ids-binary-operator:
14037         * modules/unictype/property-ids-trinary-operator:
14038         * modules/unictype/property-ignorable-control:
14039         * modules/unictype/property-iso-control:
14040         * modules/unictype/property-join-control:
14041         * modules/unictype/property-left-of-pair:
14042         * modules/unictype/property-line-separator:
14043         * modules/unictype/property-logical-order-exception:
14044         * modules/unictype/property-lowercase, modules/unictype/property-math:
14045         * modules/unictype/property-non-break:
14046         * modules/unictype/property-not-a-character:
14047         * modules/unictype/property-numeric:
14048         * modules/unictype/property-other-alphabetic:
14049         * modules/unictype/property-other-default-ignorable-code-point:
14050         * modules/unictype/property-other-grapheme-extend:
14051         * modules/unictype/property-other-id-continue:
14052         * modules/unictype/property-other-id-start:
14053         * modules/unictype/property-other-lowercase:
14054         * modules/unictype/property-other-math:
14055         * modules/unictype/property-other-uppercase:
14056         * modules/unictype/property-paired-punctuation:
14057         * modules/unictype/property-paragraph-separator:
14058         * modules/unictype/property-pattern-syntax:
14059         * modules/unictype/property-pattern-white-space:
14060         * modules/unictype/property-private-use:
14061         * modules/unictype/property-punctuation:
14062         * modules/unictype/property-quotation-mark:
14063         * modules/unictype/property-radical:
14064         * modules/unictype/property-sentence-terminal:
14065         * modules/unictype/property-soft-dotted:
14066         * modules/unictype/property-space:
14067         * modules/unictype/property-terminal-punctuation:
14068         * modules/unictype/property-test, modules/unictype/property-titlecase:
14069         * modules/unictype/property-unassigned-code-value:
14070         * modules/unictype/property-unified-ideograph:
14071         * modules/unictype/property-uppercase:
14072         * modules/unictype/property-variation-selector:
14073         * modules/unictype/property-white-space:
14074         * modules/unictype/property-xid-continue:
14075         * modules/unictype/property-xid-start:
14076         * modules/unictype/property-zero-width, modules/unictype/scripts:
14077         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
14078         * modules/unictype/syntax-c-whitespace:
14079         * modules/unictype/syntax-java-ident:
14080         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
14081         * modules/unigbrk/u16-grapheme-breaks:
14082         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
14083         * modules/unigbrk/u32-grapheme-breaks:
14084         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
14085         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
14086         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
14087         * modules/unigbrk/uc-is-grapheme-break:
14088         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
14089         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
14090         * modules/unilbrk/u16-width-linebreaks:
14091         * modules/unilbrk/u32-possible-linebreaks:
14092         * modules/unilbrk/u32-width-linebreaks:
14093         * modules/unilbrk/u8-possible-linebreaks:
14094         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
14095         * modules/unilbrk/ulc-possible-linebreaks:
14096         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
14097         * modules/uniname/uniname, modules/uninorm/base:
14098         * modules/uninorm/canonical-decomposition:
14099         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
14100         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
14101         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
14102         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
14103         * modules/uninorm/nfkc, modules/uninorm/nfkd:
14104         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
14105         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
14106         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
14107         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
14108         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
14109         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
14110         * modules/unistdio/base, modules/unistdio/u-printf-args:
14111         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
14112         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
14113         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
14114         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
14115         * modules/unistdio/u16-u16-sprintf:
14116         * modules/unistdio/u16-u16-vasnprintf:
14117         * modules/unistdio/u16-u16-vasprintf:
14118         * modules/unistdio/u16-u16-vsnprintf:
14119         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
14120         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
14121         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
14122         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
14123         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
14124         * modules/unistdio/u32-u32-asnprintf:
14125         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
14126         * modules/unistdio/u32-u32-sprintf:
14127         * modules/unistdio/u32-u32-vasnprintf:
14128         * modules/unistdio/u32-u32-vasprintf:
14129         * modules/unistdio/u32-u32-vsnprintf:
14130         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
14131         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
14132         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
14133         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
14134         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
14135         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
14136         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
14137         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
14138         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
14139         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
14140         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
14141         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
14142         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
14143         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
14144         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
14145         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
14146         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
14147         * modules/unistr/u16-check, modules/unistr/u16-chr:
14148         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
14149         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
14150         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
14151         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
14152         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
14153         * modules/unistr/u16-move, modules/unistr/u16-next:
14154         * modules/unistr/u16-prev, modules/unistr/u16-set:
14155         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
14156         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
14157         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
14158         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
14159         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
14160         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
14161         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
14162         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
14163         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
14164         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
14165         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
14166         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
14167         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
14168         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
14169         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
14170         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
14171         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
14172         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
14173         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
14174         * modules/unistr/u32-next, modules/unistr/u32-prev:
14175         * modules/unistr/u32-set, modules/unistr/u32-startswith:
14176         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
14177         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
14178         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
14179         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
14180         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
14181         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
14182         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
14183         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
14184         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
14185         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
14186         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
14187         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
14188         * modules/unistr/u8-check, modules/unistr/u8-chr:
14189         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
14190         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
14191         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
14192         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
14193         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
14194         * modules/unistr/u8-next, modules/unistr/u8-prev:
14195         * modules/unistr/u8-set, modules/unistr/u8-startswith:
14196         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
14197         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
14198         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
14199         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
14200         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
14201         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
14202         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
14203         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
14204         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
14205         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
14206         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
14207         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
14208         * modules/uniwbrk/base, modules/uniwbrk/table:
14209         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
14210         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
14211         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
14212         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
14213         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
14214         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
14215         * modules/uniwidth/width, modules/utf16-ucs4:
14216         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
14217         * modules/utf8-ucs4-unsafe:
14218         Change maintainer from Bruno Haible to Daiki Ueno.
14219         This is my guess at the libunistring modules; please feel free
14220         to fix if I guessed incorrectly.
14221         * modules/accept4, modules/acl, modules/acos, modules/acosf:
14222         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
14223         * modules/areadlink, modules/array-list, modules/array-mergesort:
14224         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
14225         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
14226         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
14227         * modules/binary-io, modules/bison-i18n, modules/btowc:
14228         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
14229         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
14230         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
14231         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
14232         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
14233         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
14234         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
14235         * modules/closedir, modules/concat-filename, modules/copy-file:
14236         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
14237         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
14238         * modules/csharpcomp-script, modules/csharpexec:
14239         * modules/csharpexec-script, modules/ctype, modules/diffseq:
14240         * modules/dprintf, modules/dprintf-posix, modules/dup:
14241         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
14242         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
14243         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
14244         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
14245         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
14246         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
14247         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
14248         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
14249         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
14250         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
14251         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
14252         * modules/findprog, modules/findprog-lgpl, modules/floor:
14253         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
14254         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
14255         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
14256         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
14257         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
14258         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
14259         * modules/freadable, modules/freadahead, modules/freadptr:
14260         * modules/freadseek, modules/freopen, modules/frexp:
14261         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
14262         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
14263         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
14264         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
14265         * modules/ftello, modules/full-read, modules/full-write:
14266         * modules/fwritable, modules/fwriteerror, modules/gcd:
14267         * modules/get-rusage-as, modules/get-rusage-data:
14268         * modules/getdtablesize, modules/getrusage, modules/gettext:
14269         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
14270         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
14271         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
14272         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
14273         * modules/iconv, modules/iconv-h, modules/iconv_open:
14274         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
14275         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
14276         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
14277         * modules/integer_length_ll, modules/ioctl, modules/isatty:
14278         * modules/isblank, modules/isnand, modules/isnand-nolibm:
14279         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
14280         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
14281         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
14282         * modules/javaexec, modules/javaexec-script, modules/javaversion:
14283         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
14284         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
14285         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
14286         * modules/lib-symbol-visibility, modules/libsigsegv:
14287         * modules/linked-list, modules/linkedhash-list, modules/list:
14288         * modules/localcharset, modules/locale, modules/localeconv:
14289         * modules/localename, modules/lock, modules/log, modules/log-ieee:
14290         * modules/log10, modules/log10-ieee, modules/log10f:
14291         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
14292         * modules/log1p, modules/log1p-ieee, modules/log1pf:
14293         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
14294         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
14295         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
14296         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
14297         * modules/logf, modules/logf-ieee, modules/login_tty:
14298         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
14299         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
14300         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
14301         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
14302         * modules/mbscspn, modules/mbsinit, modules/mbslen:
14303         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
14304         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
14305         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
14306         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
14307         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
14308         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
14309         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
14310         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
14311         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
14312         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
14313         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
14314         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
14315         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
14316         * modules/posix_spawn, modules/posix_spawn-internal:
14317         * modules/posix_spawn_file_actions_addclose:
14318         * modules/posix_spawn_file_actions_adddup2:
14319         * modules/posix_spawn_file_actions_addopen:
14320         * modules/posix_spawn_file_actions_destroy:
14321         * modules/posix_spawn_file_actions_init:
14322         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
14323         * modules/posix_spawnattr_getpgroup:
14324         * modules/posix_spawnattr_getschedparam:
14325         * modules/posix_spawnattr_getschedpolicy:
14326         * modules/posix_spawnattr_getsigdefault:
14327         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
14328         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
14329         * modules/posix_spawnattr_setschedparam:
14330         * modules/posix_spawnattr_setschedpolicy:
14331         * modules/posix_spawnattr_setsigdefault:
14332         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
14333         * modules/pow, modules/powf, modules/printf-frexp:
14334         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
14335         * modules/progname, modules/propername, modules/pselect:
14336         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
14337         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
14338         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
14339         * modules/read, modules/readdir, modules/readlink:
14340         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
14341         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
14342         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
14343         * modules/relocatable-script, modules/remainder:
14344         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
14345         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
14346         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
14347         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
14348         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
14349         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
14350         * modules/setlocale, modules/sh-quote, modules/shutdown:
14351         * modules/signal, modules/signbit, modules/sigpipe:
14352         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
14353         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
14354         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
14355         * modules/snippet/link-warning, modules/snippet/unused-parameter:
14356         * modules/snprintf, modules/snprintf-posix, modules/spawn:
14357         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
14358         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
14359         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
14360         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
14361         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
14362         * modules/streq, modules/strerror_r-posix, modules/striconv:
14363         * modules/striconveh, modules/striconveha, modules/strncat:
14364         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
14365         * modules/sublist, modules/sys_resource, modules/sys_utsname:
14366         * modules/sys_wait, modules/system-posix, modules/system-quote:
14367         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
14368         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
14369         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
14370         * modules/truncf, modules/truncf-ieee, modules/truncl:
14371         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
14372         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
14373         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
14374         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
14375         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
14376         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
14377         * modules/wait-process, modules/waitpid, modules/wcpcpy:
14378         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
14379         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
14380         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
14381         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
14382         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
14383         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
14384         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
14385         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
14386         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
14387         * modules/write, modules/xconcat-filename, modules/xlist:
14388         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
14389         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
14390         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
14391         * modules/y0, modules/y1, modules/yn:
14392         Remove Bruno Haible as maintainer; if he's the sole maintainer,
14393         change the maintainer to 'all'.  Let's hope someone volunteers.
14395 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
14397         mktime: merge #if/#ifdef usage from glibc
14398         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
14399         as that works with both Glibc's and Gnulib's style.
14400         See thread starting at Siddhesh Poyarekar's bug report at:
14401         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
14403 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
14405         git-version-gen: improve option descriptions
14406         * build-aux/git-version-gen: Mention that --prefix and --fallback
14407         have a mandatory argument.
14409 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
14411         regex: fix memory leak in compiler
14412         Fix by Andreas Schwab in:
14413         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
14414         * lib/regcomp.c (parse_expression): Deallocate partially
14415         constructed tree before returning error.
14417         regex: merge patch from libc
14418         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
14419         Combine __USE_BSD and __USE_SVID into __USE_MISC.
14420         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
14422 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14424         acl: port to gcc -Wredundant-decls
14425         From a request by Dmitry Antipov in:
14426         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
14427         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
14428         "#ifndef _GL_ACL_H".
14430 2014-06-11  Bruce Korb  <bkorb@gnu.org>
14431         Jim Meyering  <meyering@fb.com>
14433         parse-duration: eliminate 68-year duration limit
14434         * lib/parse-duration.c: Include "intprops.h".
14435         (TIME_MAX): Rename to MAX_DURATION and define to
14436         TYPE_MAXIMUM(time_t).
14437         * modules/parse-duration (Depends-on): Add intprops.
14438         Reported by Jonas 'Sortie' Termansen.
14440 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14442         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
14443         * modules/pthread (Depends-on): Add 'extensions', as it defines
14444         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
14445         (configure.ac-early): New section.
14446         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
14447         it is no longer needed.
14449 2014-06-14  Pádraig Brady  <P@draigBrady.com>
14451         pthread: define thread-safe macros on some platforms
14452         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
14453         for thread-safe operation on some platforms.
14455 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14457         regex: don't be multithreaded if USE_UNLOCKED_IO.
14458         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
14459         * lib/regex_internal.h: Do not use multithreaded version if
14460         USE_UNLOCKED_IO is defined.  This is a hack, but it works
14461         around a porting bug with coreutils 8.22 on AIX 7.1.
14463 2014-06-11  Daiki Ueno  <ueno@gnu.org>
14465         gettext: update macros to version 0.19
14466         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
14467         depend on gl_EXTERN_INLINE and drop support for older Bison
14468         versions.
14470 2014-06-10  Pádraig Brady  <P@draigBrady.com>
14472         select,poll: fix console handle check on windows 8
14473         lib/poll.c (IsConsoleHandle): Change from testing the lower
14474         2 bits of the handle to the more expensive but accurate syscall.
14475         lib/select.c: Likewise.
14477 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
14479         select: fix waiting on anonymous pipes on MS-Windows
14480         * lib/select.c (rpl_select): Fall back to polling when select()
14481         indicates there is nothing to check, while due to the timeout not
14482         expiring, activity is indicated on one of the handles.
14483         Also clear the TIMEOUT argument if the timer does expire.
14485 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
14487         times: fix to return non constant value on MS-Windows
14488         * lib/times.c (times): Don't use the process creation time,
14489         rather clock() which on windows returns the number of
14490         clock ticks since the process started.
14492 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
14494         isatty: fix to work on windows 8
14495         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
14496         2 bits of the handle to the more expensive but accurate syscall.
14498 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14500         maint: fix typo in fdl.texi
14501         * doc/fdl.texi: Fix typo (missing '@').
14502         Somehow this was in fdl.texi but not fdl-1.3.texi.
14504 2014-06-06  Ben Walton  <bdwalton@gmail.com>
14506         mountlist: avoid hasmntopt const type warning on solaris
14507         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
14508         with char * instead of const char *.  Passing the constant string
14509         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
14510         to avoid the warning.
14512 2014-06-04  Eric Blake  <eblake@redhat.com>
14514         maintainer-makefile: delete obsolete code
14515         * top/maint.mk (build_aux): Drop old code, as threatened.
14517         maintainer-makefile: avoid spurious error messages
14518         * top/maint.mk (syntax-check): Guard definition and use of
14519         $(shell) by whether Makefile is present.
14521 2014-06-03  Ben Walton  <bdwalton@gmail.com>
14523         rename: avoid unused-but-set-variable compiler warning
14524         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
14525         it is possible that dst_exists may be set but not used.  Mark it with
14526         the unused attribute to avoid compiler warnings.
14528 2014-06-02  Ben Walton  <bdwalton@gmail.com>
14530         rename: mark a label as potentially unused
14531         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
14532         by marking the out label as potentially unused.
14533         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
14535 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14537         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
14538         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
14540 2014-06-02  Ben Walton  <bdwalton@gmail.com>
14542         acl: apply pure attribute to two functions
14543         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
14544         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
14546 2014-06-01  Pádraig Brady  <P@draigBrady.com>
14548         gnulib-common.m4: add _GL_UNUSED_LABEL
14549         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
14550         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
14552 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
14554         dup2, fcntl, fcntl-h: port to AIX 7.1
14555         This fixes some porting problems discovered when testing the latest
14556         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
14557         in grep but it could be important for other applications.
14558         * doc/posix-functions/dup2.texi:
14559         * doc/posix-functions/fcntl.texi:
14560         * doc/posix-headers/fcntl.texi:
14561         Document AIX bugs.
14562         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
14563         Define to 0 if outside 'int' range.
14564         * m4/dup2.m4 (gl_FUNC_DUP2):
14565         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14566         Check for getdtablesize.  If it's available, test a value just
14567         outside its range instead of testing 1000000.  When cross-compiling,
14568         guess that AIX will fail this improved test.
14570 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
14572         printf, config.rpath: Port to FreeBSD 10.
14573         Problem reported by Tijl Coosemans in:
14574         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
14575         * build-aux/config.rpath (hardcode_libdir_flag_spec)
14576         (hardcode_direct): Simplify FreeBSD configuration.
14577         (library_names_spec): Don't mishandle FreeBSD 10+.
14578         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
14579         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
14580         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
14581         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
14582         Don't mishandle FreeBSD 10+ when cross-compiling.
14584         ftoastr: work around compiler bug in IBM xlc 12.1
14585         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
14586         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
14587         around a compiler bug in IBM xlc 12.1.0.0: it complains
14588         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
14589         _GL_FLT_PREC_BOUND.'
14591 2014-05-30  Kieran Colford  <colfordk@gmail.com>
14593         valgrind-tests: fixed misleading help message
14594         * m4/valgrind-tests.m4: The help message generated by configure
14595         implied that valgrind was disabled by default, which it wasn't.
14596         Adjusted the help message using s/enable/disable/ to clarify.
14598 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
14600         isfinite, isinf, isnan tests: fix for little-endian PowerPC
14601         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
14602         first double of a PowerPC "double double" pair.
14603         * tests/test-isinf.c (test_isinfl): Likewise.
14604         * tests/test-isnan.c (test_long_double): Likewise.
14605         * tests/test-isnanl.h (main): Likewise.
14606         * tests/test-signbit.c (test_signbitl): Likewise.
14608 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14610         exclude-tests: port to AIX 7.1
14611         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
14612         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
14613         the regex code uses locks.
14615 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
14617         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
14618         Without this fix, Emacs would sometimes call sigprocmask instead
14619         of pthread_sigmask, which is a no-no in multithreaded applications.
14620         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
14621         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14622         Suppress check for pthread_sigmask working without -lpthread if
14623         the application always links with -lpthread.  Do not link with
14624         $LIBMULTITHREAD if gl_THREADLIB is not defined.
14625         * m4/timer_time.m4 (gl_TIMER_TIME):
14626         Require gl_THREADLIB only if it is defined.  Do not append
14627         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
14629 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
14631         gnulib-tool: wget translations using --no-verbose rather than --quiet
14632         This allows the user to see error messages if any (--quiet hides them)
14633         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
14635 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
14637         gnulib-tool: adjust translation wget to avoid a https redirection
14638         Context: http://translationproject.org/latest/gnulib redirects to
14639            https://translationproject.org/latest/gnulib/
14640         Rationale: if the user falls back to wget, she doesn't have rsync and
14641         is probably in a minimal build environment, where packages such as
14642         'ca-certificates' are missing as well, resulting in a failed (and
14643         difficult to detect since ignored) translation initial fetch.
14644         Consequently let's avoid https if possible, and add the missing
14645         trailing slash.  This also avoids an unnecessary 302 redirection.
14646         * gnulib-tool: Add trailing slash to gnulib URL.
14648 2014-05-22  Pádraig Brady  <P@draigBrady.com>
14650         getlogin_r-tests: check return value rather than errno
14651         * tests/test-getlogin_r.c (main): As per POSIX we should be
14652         verifying the return value from getlogin_r() rather than errno.
14654 2014-05-22  Pádraig Brady  <P@draigBrady.com>
14656         getlogin_r-tests: fix various issues in recent change
14657         * tests/test-getlogin_r.c: Include required headers that were
14658         missed in recent commit eec20b4e.
14659         Also consistently check the errno rather than the return value from
14660         getlogin_r as POSIX only specifies that non zero is returned on error.
14661         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
14663 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14665         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
14666         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
14667         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
14668         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
14669         * lib/spawn-pipe.c:
14670         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
14671         and then 'int open64(const char *, int, ...);', which means the
14672         declaration for 'open' gets lost if we later '#undef open'.
14673         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
14674         where the compilation reported the non-fatal error "In function
14675         'openat_proc_name' ... warning: implicit declaration of function
14676         'open'".  In this case the error is relatively harmless, but in
14677         other cases it might not be so minor.
14679 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
14681         xalloc: don't potentially generate invalid code for xmemdup calls
14682         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
14683         this function can initialize the newly-allocated storage with new
14684         pointers, which means this function is not malloc-like.  See:
14685         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
14687 2014-05-19  Pádraig Brady  <P@draigBrady.com>
14689         getlogin_r-tests: avoid false failure under sudo/ssh etc.
14690         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
14691         changes from commit 97249cf29 to not depend on environment variables.
14693 2014-05-18  Pádraig Brady  <P@draigBrady.com>
14695         getlogin-tests: avoid false failure under cron
14696         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
14697         since that's not what's under test.  Centos 6 was seen to return
14698         EINVAL for ttyname() when run from cron.
14700 2014-05-16  Jim Meyering  <meyering@fb.com>
14702         mbrtowc.m4: fix a comment typo
14703         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
14704         emitted documentation string.
14706 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14708         mbrlen, mbrtowc: fix bug with empty input
14709         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
14710         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
14711         so this is mainly for documentation.
14712         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
14713         (gl_FUNC_MBRTOWC): Use it.
14714         * tests/test-mbrtowc.c (main): Test for the bug.
14716 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
14718         doc: document mbrtowc and mbrlen problem with empty input
14719         * doc/posix-functions/mbrlen.texi (mbrlen):
14720         * doc/posix-functions/mbrtowc.texi (mbrtowc):
14721         Document portability problem when the input string is empty.  See:
14722         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
14724         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
14725         Problem reported by Eli Zaretskii in:
14726         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
14727         * doc/posix-functions/execl.texi (execl):
14728         * doc/posix-functions/execle.texi (execle):
14729         * doc/posix-functions/execlp.texi (execlp):
14730         * doc/posix-functions/execv.texi (execv):
14731         * doc/posix-functions/execve.texi (execve):
14732         * doc/posix-functions/execvp.texi (execvp):
14733         Mention spawn+exit problem on non-Cygwin Windows platforms.
14735 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
14737         getlogin-tests: avoid false failure under sudo/ssh etc.
14738         * modules/getlogin-tests (configure.ac): Check for ttyname().
14739         * tests/test-getlogin.c (main): Don't depend on environment variables
14740         to correlate with getlogin(), since sudo and ssh etc. can tamper
14741         with the LOGNAME and USER env vars.  Instead lookup the name from
14742         the uid associated with the stdin tty.
14744 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14746         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
14747         These were found when building the latest grep snapshot on IRIX 6.5.
14748         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
14749         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
14750         never used later.
14751         * lib/quotearg.c (quoting_options_from_style):
14752         * lib/xstrtol.c (__xstrtol):
14753         Use enum instead of 0, to pacify IRIX 6.5 cc.
14755 2014-04-18  Pádraig Brady  <P@draigBrady.com>
14757         gitlog-to-changelog: revert inclusion of git-log-fix file
14758         * build-aux/git-log-fix: Delete dummy file.
14759         * modules/gitlog-to-changelog: Don't reference (overwrite)
14760         the project specific git-log-fix file.
14762 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
14764         maint.mk: Relax the copyright check to cater for non FSF projects
14765         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
14766         to not require the "Free" suffix after the copyright years.
14768 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
14770         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
14771         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
14772         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
14773         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
14774         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
14776 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
14778         exclude: port to strict C99
14779         Strict C does not allow converting a function pointer to void *
14780         and vice versa.  Pass a pointer to a function pointer instead.
14781         * lib/exclude.c (add_exclude_file):
14782         Pass the address of the function pointer.
14783         (call_addfn): And deference the address here, to match.
14785 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
14787         regex: do not depend on malloc-gnu
14788         * modules/regex (Depends-on): Remove malloc-gnu.
14789         It's no longer needed, because of the 2012-12-29 patch
14790         "regex: port to hosts where malloc (0) == NULL".
14791         Reported by Nathan Kennedy in:
14792         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
14794 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
14796         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
14797         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
14798         * doc/posix-functions/expl.texi: Mention the workaround.
14800 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
14802         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
14803         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
14804         size to be zero even when the pointer is nonnull.  This
14805         accommodates the use case where P is malloc (0) and *PN is 0 on a
14806         host where malloc (0) yields nonnull.
14808 2014-04-09  Eric Blake  <eblake@redhat.com>
14810         fts: avoid unnecessary strlen calls
14811         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
14813 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14815         fts: avoid unnecessary strlen calls
14816         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
14817         when that can be faster than strlen.
14819 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
14821         fts: avoid unnecessary strlen calls
14822         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
14823         (fts_build): Store the length of the dp->d_name entry in a local variable
14824         instead of calling strlen() several times via the above, removed macro.
14825         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
14826         run by ~4%, yet this reduces the execution time by about a third if run
14827         via "ltrace -c rm -rf some-dir".
14829 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14831         obstack: Remove ancient NeXTSTEP gcc support conditional
14832         This change will ease merging with glibc.  The "#if ... __NEXT__"
14833         causes a warning with -Wundef which glibc now enables by default.
14834         Problem reported by Will Newton in
14835         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
14836         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
14837         so go with that.
14838         * lib/obstack.h (__extension__):
14840 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14842         obstack: merge with glibc changes
14843         * lib/obstack.c, lib/obstack.h: Merge from glibc.
14844         This is mostly indenting and commentary changes.
14845         Instances of 'register' have been removed.
14847 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
14849         strftime: wrap macros in "do {...} while(0)"
14850         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
14851         this macro in "do {...} while(0)" to prevent false use as a
14852         single statement, e.g., in an un-braced "{}" else-block.
14853         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
14854         (strftime_case_): Remove 'else' after 'goto' - which was the
14855         only non-fatal, un-braced use of one of the above macros.
14856         Spotted by coverity (NESTING_INDENT_MISMATCH).
14858 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
14860         modechange: avoid memory leaks for invalid octal modes
14861         * lib/modechange.c (mode_compile): During the parsing of
14862         notations like +40, free the 'mc' buffer for invalid mode
14863         strings like +17777 (greater than the maximum octal mode),
14864         =18 (bad octal mode characters) or u=1 ('affected' with
14865         octal modes).
14866         Reproducer, e.g.:
14867             $ valgrind --leak-check=full chmod +17777 file
14868         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
14869         add notations +40, 00440, etc.".
14870         Spotted by coverity (RESOURCE_LEAK).
14872 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14874         gitlog-to-changelog: include a dummy git-log-fix file
14875         Problem reported by Nathan Stratton Treadway in:
14876         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
14877         * build-aux/git-log-fix: New file.
14879 2014-03-13  Jim Meyering  <meyering@fb.com>
14881         gitlog-to-changelog: also include the file, git-log-fix
14882         * modules/gitlog-to-changelog (Files): Add git-log-fix.
14883         Reported by Assaf Gordon.
14885 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
14887         regex: port to OS X 10.8.5 en_US.UTF-8 locale
14888         This fixes a bug when ignoring case and when comparing the
14889         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
14890         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
14891         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
14892         titlecase letter is neither lowercase nor uppercase, but
14893         uppercasing the titlecase letter (via towupper) yields the
14894         uppercase letter, so the two letters should match when ignoring case.
14895         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
14896         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
14897         Don't test whether a character is lowercase before uppercasing it.
14899 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
14901         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
14902         This is basically one of the options Bruno Haible proposed in:
14903         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
14904         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
14905         * lib/stdint.in.h: Use it.
14906         * modules/stdint (Depends-on): Add sys_types.
14908 2014-02-26  Pádraig Brady  <P@draigBrady.com>
14910         parse-datetime: fix crash or infloop in TZ="" parsing
14911         * lib/parse-datetime.y (parse_datetime): Break out of the
14912         TZ="" parsing loop once the second significant " is found.
14913         Also skip over any subsequent whitespace to be consistent
14914         with the non TZ= case.
14915         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
14917 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14919         savedir: new symbol for fast-read version
14920         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
14921         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
14922         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
14923         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
14925 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
14927         unistd: port readlink to Mac OS X 10.3.9
14928         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
14929         around self-include problem in Mac OS X 10.3.9 when combined with
14930         readlink module.  Problem reported by Klaus Zietler in
14931         <http://bugs.gnu.org/16825>.
14933 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14935         diffseq: remove TOO_EXPENSIVE heuristic
14936         Problem with diffutils reported by Vincent Lefevre in
14937         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
14938         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
14939         Although appropriate for circa-1993 hardware, these days the heuristic
14940         seems to be more trouble than it's worth.
14941         * lib/diffseq.h: Modernize citations.
14942         (struct context): Remove member too_expensive.
14943         All uses changed.
14944         (struct partition): Remove members lo_minimal, hi_minimal.
14945         All uses changed.
14946         (diag, compareseq): Remove arg find_minimal.  All uses changed.
14947         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
14948         1993 to make 'diff' run faster (but not as well) on large inputs.
14949         These days, computers are fast enough that it's typically better
14950         to run slower but more accurately.
14951         * lib/fstrcmp.c: Remove duplicate comment.
14952         * lib/fstrcmp.c (strcmp_bounded):
14953         * lib/git-merge-changelog.c (compute_differences):
14954         Adjust to diffseq.h changes.
14955         * NEWS: Document the change.
14957         savedir: simplify by using stpcpy
14958         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
14959         (streamsavedir): Use stpcpy instead.
14960         * modules/savedir (Depends-on): Add stpcpy.
14962 2014-02-21  Pádraig Brady  <P@draigBrady.com>
14964         spawn: fix link error on uclibc
14965         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
14966         to incorporate -lrt if needed (on uclibc for example).
14967         * modules/posix_spawn: Reference the substituted LIB.
14969 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
14970         timer: fix uClibc detection of threading
14971         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
14972         enabled in uClibc.
14974 2014-02-21  Eric Blake  <eblake@redhat.com>
14976         maintainer-makefiles: provide AC_PROG_SED for older autoconf
14977         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
14979 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
14981         exclude: add support for posix regexps
14983         This commit adds support for POSIX extended regular expressions
14984         and fixes a long-standing memory leak (pattern buffer was never
14985         freed).  It also implements a new interface function to read
14986         exclude patterns from a FILE, which passes an additional parameter
14987         to its callback function, thereby allowing to preserve its state
14988         between invocations.
14990         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
14991         (pattern_buffer): New struct.
14992         (exclude): New member patbuf.
14993         (exclude_add_pattern_buffer): New function.
14994         (free_exclude_segment): Free regexps.
14995         (free_exclude): Free allocated pattern buffers.
14996         (exclude_patopts): New function.
14997         (file_pattern_matches): Use exclude_patopts.
14998         (add_exclude): support regexps.
14999         (add_exclude_fp): New function.
15000         (add_exclude_file): Rewrite using add_exclude_fp.
15001         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
15002         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
15003         (add_exclude_fp)
15004         (add_exclude_file): Rewrite using add_exclude_fp.
15005         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
15006         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
15007         (add_exclude_fp)
15008         (exclude_add_pattern_buffer): New prototypes.
15009         * modules/exclude: Depends on regex and filename.
15011 2014-02-20  Eric Blake  <eblake@redhat.com>
15013         maintainer-makefiles: use $(SED) for syntax check
15014         * modules/maintainer-makefile (configure.ac): Check for sane sed.
15015         * top/maint.mk: Change sed to $(SED).
15017 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
15018             Paul Eggert  <eggert@cs.ucla.edu>
15020         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
15021         Patch based on an idea by Dick Streefland in
15022         <https://savannah.gnu.org/patch/?7892>.
15023         * NEWS: Document this.
15024         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
15025         (direntry_t, comparison_function): New types.
15026         (direntry_cmp_name): New function.
15027         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
15028         (streamsavedir, savedir): New arg OPTION.
15029         (streamsavedir): Simplify memory allocation.
15030         (fdsavedir): Remove.
15031         * lib/savedir.h (enum savedir_option): New type.
15032         (streamsavedir, savedir): New arg OPTION.
15033         (fdsavedir): Remove.
15035 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
15037         file-type: add support for doors and other less-common file types
15038         Problem with S_ISDOOR reported by Rich Burridge.
15039         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
15040         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
15041         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
15043 2014-01-23  Eric Blake  <eblake@redhat.com>
15045         pthread: work around winpthread header pollution on mingw
15046         * lib/time.in.h: Move pthread workarounds...
15047         * lib/pthread.in.h: ...here.
15048         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
15049         detect macro pollution on mingw.
15050         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
15052 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15054         qacl: check for fchmod
15055         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
15056         and qset-acl.c both use HAVE_FCHMOD.
15058 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
15060         fdopen-tests: port to Tru64
15061         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
15062         descriptor that is not open, as POSIX doesn't specify the
15063         resulting behavior and the test does not work on Tru64.
15064         Problem reported by Steven M. Schweda in:
15065         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
15067         stdalign: port to HP-UX compilers
15068         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
15069         if __HP_cc or __HP_aCC are nonzero.
15071 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
15073         strtoimax: port to platforms lacking 'long long'
15074         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
15075         check whether strtoll is declared, which causes the C file to
15076         wrongly report an error.  Problem reported by Steven M. Schweda in:
15077         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
15078         * lib/strtoimax.c (strtoull):
15079         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
15080         (strtoll): Declare only if HAVE_LONG_LONG_INT.
15082 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
15084         relocatable-perl: fix texi syntax
15085         * doc/relocatable-maint.texi: Escape braces.
15087 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
15089         relocatable-perl: like relocatable-script, but for Perl scripts
15090         * build-aux/relocatable.pl.in: Add.
15091         * doc/relocatable-maint.texi: Add documentation.
15092         * modules/relocatable-perl: Add.
15094 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
15096         tests: fix export bug in previous patch
15097         Problem reported by Jim Meyering.
15098         * tests/init.sh (re_shell): New var, which is exported instead of
15099         re_shell_.
15101         tests: simplify porting to Solaris 10 /bin/sh
15102         Some test cases in 'grep' need a shell that groks '$(';
15103         export re_shell_ for their benefit.  Problem reported for 'grep'
15104         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
15105         * tests/init.sh (re_shell_): Export if it's used.
15107 2014-01-06  Eric Blake  <eblake@redhat.com>
15109         md5, sha1, sha256, sha512: support older autoconf
15110         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
15111         for autoconf < 2.63b.
15113         include_next: port to autoconf 2.63
15114         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
15116 2014-01-04  Jim Meyering  <meyering@fb.com>
15118         maint: add a gnulib-local rule to keep non-ascii out of .texi files
15119         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
15120         so that "make sc_maint" will ding anyone who puts non-ascii
15121         in any of gnulib's .texi files.
15123 2014-01-03  Jim Meyering  <meyering@fb.com>
15125         freadable, fwritable, fwriting: declare with the "pure" attribute
15126         * lib/freadable.h (freadable): Declare with the "pure" attribute.
15127         * lib/fwritable.h (fwritable): Likewise.
15128         * lib/fwriting.h (fwriting): Likewise.
15129         Suggested by Bruno Haible.
15131         maint.mk: adapt openat.h-include-without-use test
15132         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
15133         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
15134         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
15135         With this change, running "make sc_maint" in gnulib's top-level
15136         directory now passes for me.
15138 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15140         doc: use ASCII in .texi files where UTF-8 isn't needed
15141         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
15142         * doc/posix-functions/setkey.texi, doc/regex.texi:
15143         Use ASCII input, not UTF-8.
15145 2014-01-02  Jim Meyering  <meyering@fb.com>
15147         freading: declare with the "pure" attribute
15148         * lib/freading.h (freading): Declare with the "pure" attribute.
15150         manywarnings: remove -Wmudflap
15151         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
15152         it is no longer supported in gcc-4.9-to-be.
15154 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15156         relocatable-script: remove unused code
15157         Problem reported by Reuben Thomas in:
15158         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
15159         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
15161 2014-01-01  Jim Meyering  <meyering@fb.com>
15163         maint: fix public-submodule-commit to work with newer git
15164         * top/maint.mk (public-submodule-commit): Remove excess quoting.
15165         We were over-quoting the test arguments, and somewhere prior to
15166         version 1.8.5.2.229, git stopped removing those excess quotes,
15167         which made the test fail, since the unexpanded strings would
15168         always differ; using GIT_TRACE=1 confirmed that the git merge-base
15169         command wasn't even being run.
15171 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15173         doc: update main copyright year
15174         * doc/gnulib.texi: Update copyright date.
15176 2014-01-01  Eric Blake  <eblake@redhat.com>
15178         version-etc: new year
15179         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
15180         * all files: run 'make update-copyright'
15182 2013-12-24  Eric Blake  <eblake@redhat.com>
15184         passfd: give nicer error for recvfd at eof
15185         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
15186         * tests/test-passfd.c (main): Enhance test to cover this.
15188 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
15190         gettimeofday: port recent C++ fix to Emacs
15191         Without this further patch, Emacs won't build due to
15192         the portcheck failing.  Also, this simplifies the patch a bit.
15193         * lib/time.in.h (localtime, gmtime): Don't replace unless
15194         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
15195         * lib/time.in.h (localtime, gmtime):
15196         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
15197         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
15198         * modules/time (time.h):
15199         Don't worry about the possibility of localtime and gmtime
15200         being absent; they're present in all C libraries we know about.
15201         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
15202         Don't assume sys_time is present and has been initialized.
15203         Instead, use a hack that should work even if it hasn't been.
15204         Don't use a portcheck for gmtime or localtime; this supports
15205         the hack.
15206         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
15208 2013-12-17  John W. Eaton  <jwe@gnu.org>
15210         gettimeofday: fix C++ crosscompilation
15212         Never replace gmtime and localtime by macros when compiling with
15213         C++, this prevents <ctime> from being included.
15215         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
15216         define gmtime and localtime as preprocessor macros.  Instead
15217         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
15218         REPLACE_LOCALTIME substitutions.
15219         * lib/time.in.h: Declare gmtime and localtime when needed.
15220         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
15221         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
15222         * modules/time: Depend on gettimeofday, and substitute the above
15223         variables in time.h.
15225 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
15227         qacl: port to Windows better
15228         See Eli Zaretskii in
15229         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
15230         * lib/file-has-acl.c (acl_access_nontrivial):
15231         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
15232         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
15234 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
15236         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
15237         * lib/gl_openssl.h: Cast void pointers to a specific type.
15239 2013-12-07  Pádraig Brady  <P@draigBrady.com>
15241         open-tests: fix build failure with -Werror=old-style-declaration
15242         * tests/test-open.h: Reorder the inline to avoid the issue.
15244 2013-12-07  Pádraig Brady  <P@draigBrady.com>
15246         md5, sha1, sha256, sha512: fix link error with partial libcrypto
15247         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
15248         init time, so that if early checks find crypto routines,
15249         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
15250         avoiding link failures.
15252 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15254         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
15255         This provides a new way to specify the default for
15256         gl_CRYPTO_CHECK, one that is reflected in the --help message.
15257         Emacs uses this, as well as the old way.
15258         This attempts to implement a suggestion by Pádraig Brady in
15259         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
15260         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
15261         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
15263         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
15264         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
15265         Add support for a new option, --with-openssl=auto, which causes
15266         the library to be used if available and silently ignored if not.
15267         Add support to allow configure.ac to specify its own
15268         default, by setting with_openssl_default before invoking gl_INIT.
15270 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
15272         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
15273         Problem reported by Daiki Ueno in:
15274         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
15275         * tests/test-open.h (__always_inline):
15276         New macro, if not already defined.
15277         (test_open): Use it.
15279 2013-12-04  Eric Blake  <eblake@redhat.com>
15281         include_next: minimize code duplication
15282         * modules/include_next (Depends-on): Add absolute-header.
15283         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
15284         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
15286 2013-12-04  Pádraig Brady  <P@draigBrady.com>
15288         getcwd: fix compile error in configure check
15289         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
15291 2013-12-04  Pádraig Brady  <P@draigBrady.com>
15293         regex: suppress core dumps from detection code
15294         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
15295         to suppress core dumps that may well occur on glibc systems.
15296         These core dumps might not be cleaned up automatically, or could
15297         trigger some system core dump handling logic.
15299 2013-12-03  Pádraig Brady  <P@draigBrady.com>
15301         md5, sha1, sha256, sha512: support mandating use of openssl
15302         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
15303         description, to list the now 3 separate options.  also don't
15304         mention the default=no, since this is implicit given the option
15305         is described as --with-openssl rather than --without-openssl.
15306         If projects change the default they're free to document that.
15307         with --with-openssl[=yes] we now error out when the specified
15308         hash algorithm is not available in libcrypto.
15310 2013-12-03  Ivailo  <xakepa10@gmail.com>
15312         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
15313         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
15314         -Wformat-nonliteral checks, as these edge cases are part of the test.
15316 2013-12-03  Eric Blake  <eblake@redhat.com>
15318         regex: avoid glibc deadlock during configure
15319         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
15320         glibc bug 15078 in turn triggers bug 16159.
15321         Reported by Michal Privoznik.
15323 2013-12-02  Pádraig Brady  <P@draigBrady.com>
15325         md5, sha1, sha256, sha512: use openssl routines if available.
15326         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
15327         routines will be used if available, requiring apps to link @LIB_CRYPTO@
15328         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
15329         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
15330         in the standard system location.
15331         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
15332         * m4/sha256.m4: Likewise with SHA256.
15333         * m4/sha512.m4: Likewise with SHA512.
15334         * m4/md5.m4: Likewise with MD5.
15335         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
15336         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
15337         * lib/sha256.h: Likewise with SHA256.
15338         * lib/sha512.h: Likewise with SHA512.
15339         * lib/md5.h: Likewise with MD5.
15340         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
15341         * lib/sha256.c: Likewise with SHA256.
15342         * lib/sha512.c: Likewise with SHA512.
15343         * lib/md5.c: Likewise with MD5.
15344         * modules/crypto/sha1 (Link:): Add the new optional lib.
15345         (Depends-on:): Add dependency on extern-inline.
15346         * modules/crypto/sha256: Likewise.
15347         * modules/crypto/sha512: Likewise.
15348         * modules/crypto/md5: Likewise.
15349         * modules/crypto/sha1-tests: Reference the lib here too.
15350         * modules/crypto/md5-tests: Likewise.
15351         * modules/crypto/gc-des-tests: Likewise.
15352         * modules/crypto/gc-hmac-md5-tests: Likewise.
15353         * modules/crypto/gc-hmac-sha1-tests: Likewise.
15354         * modules/crypto/gc-hmac-sha256-tests: Likewise.
15355         * modules/crypto/gc-hmac-sha512-tests: Likewise.
15356         * modules/crypto/gc-md5-tests: Likewise.
15357         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
15358         * modules/crypto/gc-sha1-tests: Likewise.
15359         * modules/crypto/gc-tests: Likewise.
15360         * modules/crypto/hmac-md5-tests: Likewise.
15361         * modules/crypto/hmac-sha1-tests: Likewise.
15362         * modules/crypto/hmac-sha256-tests: Likewise.
15363         * modules/crypto/hmac-sha512-tests: Likewise.
15365 2013-11-29  RV1971  <rv1971@web.de>
15367         base64: (trivial) fix compilation regression on some compilers
15368         * lib/base64.c: Don't return the void function,
15369         instead split to a separate return statement.
15371 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
15373         ignore-value: revert previous code change
15374         * lib/ignore-value.h (ignore_value): Use __extension__ and
15375         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
15376         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
15377         Change the comment to try to explain this better.
15379 2013-11-27  Pádraig Brady  <P@draigBrady.com>
15381         selinux-h: improve stub types and add more stub functions
15383         * lib/se-selinux.in.h: Change security_context_t to a typedef
15384         rather than a define, as it's a pointer type and so is better
15385         as a typedef to avoid issues declaring multiple variables
15386         with the comma operator.  Also add stub for string_to_security_class().
15387         * lib/se-context.in.h: Add stub functions for
15388         context_{type,range,role,user}_get().
15390 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
15392         ignore-value: prefer GCC version back through 2.0
15393         The code didn't match the comments, so I did a bit of software
15394         archaeology.  GCC 2.0 seems to support __extension__ and
15395         __typeof__, so fix both code and comments to use 2.0.
15396         * lib/ignore-value.h (ignore_value): Use __extension__ and
15397         __typeof__ for GCC 2.0 through 3.3, too.
15399 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
15401         pty: Activate the signature wrapper of forkpty.
15402         The intended preprocessor macro HAVE_FORKPTY is
15403         never defined, yet `lib/forkpty.c' depends on it.
15405         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
15406         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
15407         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
15409 2013-11-18  Jim Meyering  <meyering@fb.com>
15410         and Paul Eggert  <eggert@cs.ucla.edu>
15412         quotearg: don't attempt to store 1 << 31 into an "int"
15413         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
15414         gcc's new -fsanitize=undefined and running its tests triggered some
15415         new test failures due to undefined behavior, all with this diagnostic:
15416           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
15417             cannot be represented in type int
15418         Rather than shifting "1" left to form a mask, shift the bits right and
15419         simply use "1" as the mask.
15421 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
15423         error: depend on stdio
15424         Problem reported by Nikos Mavrogiannopoulos in
15425         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
15426         * modules/error (Depends-on): Add stdio.
15428 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
15430         * doc/relocatable-maint.texi (Supporting Relocation): Improve
15431         wording.
15432         Reported by Reuben Thomas <rrt@sc3d.org>.
15434 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
15436         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
15437         New function and macro, to work around _DARWIN_C_SOURCE problem.
15438         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
15440 2013-11-11  Pádraig Brady  <P@draigBrady.com>
15442         base64: provide a fast path for encoding well sized buffers
15443         Avoid conditionals in the base64 encoding loop,
15444         which was seen to give 60% better throughput.
15445         * lib/base64.c (base64_encode_fast): A new function to be called
15446         when we don't want to NUL terminate, and we have enough space
15447         in the output to encode the given input.
15448         (base64_encode): Call the _fast() version when appropriate.
15449         Also remove a redundant mask with 0x3F on the first encoded byte.
15451 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
15453         extern-inline: port better to OS X 10.9
15454         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
15455         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
15456         OS X 10.9, except for g++ where the bug is still present.
15457         See <http://trac.macports.org/ticket/41033>.
15459 2013-11-08  Eric Blake  <eblake@redhat.com>
15461         fpending: fix regression on DragonFly BSD
15462         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
15463         * lib/fpending.h (__fpending): Don't declare twice.
15464         Reported by GW in
15465         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
15467 2013-11-05  Jim Meyering  <meyering@fb.com>
15469         hash: relax license to LGPLv2+, for libguestfs
15470         * modules/hash (License): Change from GPL to LGPLv2+.
15472 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15474         intprops: port to Oracle Studio c99
15475         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
15476         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
15478 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
15480         obstack: pacify HP C
15481         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
15482         warning "conversion from pointer to smaller integer" from HP
15483         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
15484         C89 or later nowadays, so cast to void instead of int.  Privately
15485         reported by H.Merijn Brand.  Also, change header to match glibc's,
15486         to make checking against glibc easier.
15488 2013-10-29  Jim Meyering  <meyering@fb.com>
15490         maint.mk: prefer gpgv2 over gpgv
15491         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
15492         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
15493         Reported by Gary Vaughan.
15495 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15497         isnan: port to VAX
15498         Reported by John Klos for NetBSD-5/VAX in
15499         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
15500         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
15501         (FUNC): Use it.
15503 2013-10-28  Jim Meyering  <meyering@fb.com>
15505         gnulib-tool: protect against CDPATH
15506         * gnulib-tool: Many "cd" built-in functions print a directory name
15507         to stdout when CDPATH is set, e.g.,
15508           $ bash -c 'CDPATH=/; cd tmp'
15509           /tmp
15510         Unset it, when possible.  Prompted by a comment from Bruce Korb.
15512         maint.mk: restore functionality removed by recent change...
15513         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
15514         the context of a shallow-cloned gnulib repository: "git describe"
15515         would fail in such a directory.  However, that change made it so
15516         the reported gnulib revision no longer includes the version number
15517         or a commit count, even when run from a full clone.
15518         * top/maint.mk (gnulib-version): Use the full "git describe"
15519         output when possible, e.g., the form above, rather than the
15520         abbreviated, no-tag, no-commit-count string, and fall back to
15521         using a 10-byte hash, rather than the default minimal-length
15522         hash prefix, since while the minimal-length one may be fine today,
15523         it is likely not to be unique for very long.
15525 2013-10-26  Jim Meyering  <meyering@fb.com>
15527         maint.mk: fix "release" target to build _version
15528         This fixes a bug in README-release whereby following the outlined
15529         steps, one would publish a tarball whose programs would report
15530         --version output not consistent with the package version number.
15531         This bug caused grep-2.15 to produce a grep program whose
15532         --version option made it print 2.14.56-1e3d rather than 2.15.
15533         * top/maint.mk (release): Making this target build "_version"
15534         ensures that the new version number is reflected in configure.
15536 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
15538         install-reloc: Support multi-binary installation.
15539         * build-aux/install-reloc: Support installing multiple programs in
15540         one invocation, as done by Automake starting with commit
15541         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
15542         Haible <bruno@clisp.org>, archived at
15543         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
15544         Reported by Sylvain <beuc@gnu.org>.
15546 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15548         selinux-h: Really build without selinux when library is missing.
15549         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
15550         continue without selinux, as already told in the warning message.
15552 2013-10-21  Jim Meyering  <meyering@fb.com>
15554         regex: also remove dependency on HAVE_WCSCOLL
15555         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
15557 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
15559         xfreopen: Fix typo. s/frepoen/freopen/
15560         * lib/xfreopen.c: Fix description.
15561         * modules/xfreopen: Likewise.
15563 2013-10-21  Jim Meyering  <meyering@fb.com>
15565         regex: don't depend on wcscoll
15566         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
15567         It is no longer used.
15569 2013-10-20  Jim Meyering  <meyering@fb.com>
15571         error: add the printf attribute to a static function
15572         * lib/error.c (error_tail): Add the printf attribute, to placate
15573         gcc's -Werror=suggest-attribute=format option.
15575 2013-09-30  Jim Meyering  <meyering@fb.com>
15577         fpending, obstack, strerror-override: use pure+const function attrs
15578         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
15579         * lib/obstack.c (_obstack_allocated_p): Likewise.
15580         * lib/obstack.h (_obstack_memory_used): Likewise.
15581         (_obstack_memory_used): Likewise.
15582         * lib/strerror-override.h (strerror_override): Declare with
15583         the "const" attribute.
15585 2013-10-18  Eric Blake  <eblake@redhat.com>
15587         extern-inline: make safe for -Wundef usage
15588         Reported by Vladimir 'phcoder' Serbinenko in
15589         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
15590         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
15592 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15594         mkfifo-tests, etc.: allow HP-UX 11.11 bug
15595         Problem reported by Daniel Richard G. in
15596         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
15597         * doc/posix-functions/mkfifo.texi (mkfifo):
15598         * doc/posix-functions/mkfifoat.texi (mkfifoat):
15599         * doc/posix-functions/mknod.texi (mknod):
15600         * doc/posix-functions/mknodat.texi (mknodat):
15601         Document the HP-UX 11.11 bug.
15602         * tests/test-mkfifo.h (test_mkfifo):
15603         Allow the HP-UX 11.11 bug.
15605 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15607         acl: allow cross-compilation to Gentoo
15608         Problem reported by Gabriel Marcano in
15609         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
15610         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
15611         test only whether it links.
15613 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15615         mgetgroups: remove dependency on realloc-gnu
15616         The dependency violates the comment in realloc-gnu, which
15617         says that tests can't depend on realloc-gnu; some tests depend
15618         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
15619         Problem reported by Daniel Richard G. in
15620         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
15621         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
15622         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
15623         not realloc-gnu.
15625 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15627         regex-tests: port to HP-UX 11.11
15628         Problem reported by Daniel Richard G. in
15629         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
15630         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
15632 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15634         verify: document some 'assume' pitfalls
15635         * doc/verify.texi (Compile-time Assertions):
15636         Mention that 'assume (E)' can sometimes slow things down.
15637         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
15639 2013-10-10  Eric Blake  <eblake@redhat.com>
15641         strtoumax: fix typo in previous commit.
15642         * modules/strtoumax (Depends-on): Fix typo.
15643         * modules/strtoimax (Depends-on): Likewise.
15645 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15647         strtoumax: port to Solaris 8
15648         This problem was introduced in the recent HP-UX patch.
15649         Reported by Tom G. Christensen in
15650         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
15651         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
15652         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
15654 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
15656         strtoimax, strtoumax: port to HP-UX 11.11
15657         Problem reported by Daniel Richard G. in
15658         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
15659         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
15660         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
15661         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
15662         REPLACE_STRTOUMAX.
15663         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
15664         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
15665         Replace the function if defined as a macro but not as a function.
15666         * modules/inttypes-incomplete (inttypes.h): Substitute
15667         REPLACE_STRTOUMAX.
15668         * modules/strtoumax (configure.ac): Replace strtoumax if
15669         REPLACE_STRTOUMAX.
15671 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15673         strtoimax: port to HP-UX 11.11
15674         Problem reported by Daniel Richard G.
15675         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
15676         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
15677         they might clash with inttypes.h.
15679 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15681         New module 'count-trailing-zeros'.
15682         * MODULES.html.sh: Mention it.
15683         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
15684         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
15685         * modules/count-trailing-zeros-tests:
15686         * tests/test-count-trailing-zeros.c:
15687         New files.
15689         count-leading-zeros: port to MSC; support types wider than 64 bits
15690         The ideas behind the MSC port are stolen from Emacs.
15691         * lib/count-leading-zeros.h:
15692         Don't include verify.h: it's no longer needed, as types wider than
15693         64 bits are now supported.
15694         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
15695         performance with MSC.  All uses changed.  Do not assume that TYPE
15696         has at most 64 bits.
15697         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
15698         All uses changed.  Fold the subtraction from 31 into the table.
15700         count-one-bits: port to MSC; support types wider than 64 bits
15701         The ideas behind the MSC port are stolen from Emacs.
15702         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
15703         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
15704         Don't include verify.h: it's no longer needed, as types wider than
15705         64 bits are now supported.
15706         (COUNT_ONE_BITS_GENERIC): New macro.
15707         (popcount_supported) [_MSC_VER]: New inline function.
15708         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
15709         performance with MSC.  All uses changed.  Do not assume that TYPE
15710         has at most 64 bits.
15711         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
15713 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
15715         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
15716         * lib/mountlist.c (read_file_system_list): fix leak of directory
15717         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
15719 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15721         tests: improve diagnostic when an assertion fails
15722         * tests/macros.h (ASSERT): Report the assertion that failed.
15724 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
15726         verify: new macro 'assume'
15727         This is taken from Emacs, and should be generally useful.
15728         * doc/verify.texi (assume): Document it.
15729         * lib/verify.h (assume): New macro.
15730         (__has_builtin): Expand to 0 if not defined.
15732 2013-09-26  Eric Blake  <eblake@redhat.com>
15734         dup2, dup3: work around another cygwin crasher
15735         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
15736         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
15737         * tests/test-dup2.c (main): Likewise.
15738         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
15739         * lib/dup3.c (dup3): Likewise.
15740         * doc/posix-functions/dup2.texi (dup2): Document it.
15741         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15743         getdtablesize: work around cygwin issue
15744         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
15745         * modules/getdtablesize (configure.ac): Build replacement.
15746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
15747         * modules/unistd (Makefile.am): Expose the witness.
15748         * lib/unistd.in.h (getdtablesize): Declare replacement.
15749         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
15750         * tests/test-getdtablesize.c (main): Test it.
15751         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
15753 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
15755         pmccabe2html: escaping of special characters
15756         Escape all '<', '>', and '&' in HTML output.
15757         * build-aux/pmccabe2html (html_fnc): Call gsub()
15758         instead of sub() to capture all '<', '>', and '&'.
15759         Neither of '<' and '>' is special in a regexp,
15760         so first arguments to gsub() are corrected. Also,
15761         in replacement strings, ampersand must be escaped.
15762         Finally, '&' must be handled first, then '<' and '>'.
15764 2013-09-24  Eric Blake  <eblake@redhat.com>
15766         manywarnings: enable nicer gcc warning messages
15767         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
15768         some -f options for optimal warnings.
15770 2013-09-21  Jim Meyering  <meyering@fb.com>
15772         timespec: use the new TIMESPEC_RESOLUTION in a few more places
15773         * lib/timespec-add.c (timespec_add): Also replace 999999999
15774         with TIMESPEC_RESOLUTION - 1.
15775         * lib/timespec-sub.c (timespec_sub): Likewise.
15777 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
15779         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
15780         Problem reported by Dagobert Michelsen via Eric Blake in
15781         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
15782         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
15783         not AC_COMPILE_IFELSE.
15785 2013-09-23  Eric Blake  <eblake@redhat.com>
15787         configmake: support new --runstatedir option
15788         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
15789         even if autoconf was too old to provide the command line option.
15790         * modules/configmake (Makefile.am): Propagate it to .h file.
15792 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15794         ctype, string: depend on extern-inline
15795         This is needed to complete the recent OS X fixes.
15796         Also, fix related documentation as suggested by Eric Blake.
15797         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
15798         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
15799         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
15800         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
15801         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
15802         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
15803         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
15804         * doc/posix-functions/toupper.texi:
15805         List the 'ctype' gnulib module.
15806         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
15807         * doc/posix-functions/strncpy.texi:
15808         List the 'string' gnulib module.
15809         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
15810         Add string.
15811         * modules/ctype, modules/string (Depends-on): Add extern-inline.
15813 2013-09-19  Pádraig Brady  <P@draigBrady.com>
15815         userspec: support optional parameters to parse_user_spec()
15816         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
15817         then avoid group processing and treat the full spec as a user.
15818         (parse_with_separator): Allow the USERNAME and GROUPNAME to
15819         be optional params (NULL), in which case they're ignored.
15821 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
15823         timespec: new function make_timespec, and new constants
15824         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
15825         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
15826         (make_timespec): New function.
15827         * lib/dtotimespec.c (dtotimespec):
15828         * lib/timespec-add.c (timespec_add):
15829         * lib/timespec-sub.c (timespec_sub):
15830         * lib/utimens.c (validate_timespec):
15831         * lib/utimensat.c (rpl_utimensat):
15832         Use these new constants and functions.
15834         stdio: OS X port of putc_unlocked + extern inline
15835         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
15836         * doc/posix-functions/putc_unlocked.texi:
15837         * doc/posix-functions/putchar_unlocked.texi:
15838         Document this portability problem.
15840         signal: OS X port of sigaddset etc. + extern inline
15841         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
15842         (sigismember): #undef on problematic Apple platforms.
15843         * doc/posix-functions/sigaddset.texi:
15844         * doc/posix-functions/sigdelset.texi:
15845         * doc/posix-functions/sigemptyset.texi:
15846         * doc/posix-functions/sigfillset.texi:
15847         * doc/posix-functions/sigismember.texi:
15848         Document this portability problem.
15850         extern-inline: do not always suppress extern inline on OS X
15851         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
15852         extern inline on Apple only if the particular compile-time
15853         configuration is known to have the problem.
15854         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
15855         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
15856         other Gnulib modules.
15858         extern-inline: document fixes for ctype and wctype macros
15859         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
15860         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
15861         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
15862         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
15863         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
15864         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
15865         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
15866         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
15867         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
15868         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
15869         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
15870         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
15871         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
15872         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
15873         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
15874         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
15875         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
15876         * doc/posix-functions/strncpy.texi:
15877         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
15878         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
15879         Document that Gnulib fixes portability problems with these
15880         functions on OS X 10.8 and earlier when called from plain inline
15881         or extern inline functions.
15883 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
15885         fflush, freadahead, fseeko: Fix for Android
15886         Suggested by Bruno Haible in:
15887         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
15888         * lib/stdio-impl.h: Use local __sfileext definition.
15890 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
15892         pmccabe2html: Portability to other awk versions.
15893         The functions systime() and strftime() are available
15894         in Gawk only.  Properly close two HTML-tags 'style'
15895         and 'span'.
15896         * build-aux/pmccabe2html (BEGIN): Store timing
15897         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
15898         systime() in HTML_COMMENT.
15899         (html_header): Correctly close tag 'style'.
15900         (END): Replace strftime() by CHRONOS_TIME.  Close
15901         tag 'span' correctly, not as 'div'.
15903 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
15905         getgroups: statement without effect
15906         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
15907         Change equality conditional to expected assignment.
15909 2013-09-09  Eric Blake  <eblake@redhat.com>
15911         glob: fix compilation
15912         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
15914 2013-09-07  Eric Blake  <eblake@redhat.com>
15916         glob: fix build for platforms without __THROW
15917         * lib/glob.in.h (__THROW): Add definition again.
15919 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
15921         regex-quote: fix buffer access out of bounds
15922         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
15923         * lib/regex-quote.c (regex_quote_spec_pcre):
15924         Fix typo that resulted in an out-of-bounds read.
15926 2013-09-04  Eric Blake  <eblake@redhat.com>
15928         glob: avoid -Wattribute warnings on glibc
15929         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
15930         __THROWNL, not __THROW, on static functions.
15931         * lib/glob.in.h (__THROW): Adjust...
15932         (__THROWNL): ...accordingly.
15934 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
15936         headers: check that _GL_INLINE_HEADER_BEGIN is defined
15937         Suggested by Bruce Korb in:
15938         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
15939         * doc/extern-inline.texi (extern inline):
15940         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
15941         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
15942         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
15943         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
15944         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
15945         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
15946         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
15947         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
15948         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
15949         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
15950         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
15951         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
15952         * lib/xtime.h:
15953         Check that _GL_INLINE_HEADER_BEGIN is defined.
15955 2013-08-29  Pádraig Brady  <P@draigBrady.com>
15957         bootstrap: remove the --version requirement from ancillary tools
15958         * build-aux/bootstrap (check_exists): A new refactored function to
15959         determine if a command exists.
15960         (find_tool): Use the new function which does not require the
15961         --version option to be supported.
15962         (check_versions): Use the new function.
15964 2013-08-26  Simon Josefsson  <simon@josefsson.org>
15966         gc: support HMAC-SHA256 and HMAC-SHA512.
15967         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
15968         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
15969         functions.
15970         (gc_hmac_md5): Use symbolic constant.
15971         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
15972         (gc_hmac_sha256, gc_hmac_sha512): New functions.
15973         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
15974         * m4/sha256.m4: Protect against empty expansion.
15975         * m4/sha512.m4: Likewise.
15976         * lib/hmac-sha256.c: New file.
15977         * lib/hmac-sha512.c: Likewise.
15978         * m4/gc-hmac-sha256.m4: Likewise.
15979         * m4/gc-hmac-sha512.m4: Likewise.
15980         * m4/gc-sha256.m4: Likewise.
15981         * m4/gc-sha512.m4: Likewise.
15982         * modules/crypto/gc-hmac-sha256: Likewise.
15983         * modules/crypto/gc-hmac-sha256-tests: Likewise.
15984         * modules/crypto/gc-hmac-sha512: Likewise.
15985         * modules/crypto/gc-hmac-sha512-tests: Likewise.
15986         * modules/crypto/hmac-sha256: Likewise.
15987         * modules/crypto/hmac-sha256-tests: Likewise.
15988         * modules/crypto/hmac-sha512: Likewise.
15989         * modules/crypto/hmac-sha512-tests: Likewise.
15990         * tests/test-gc-hmac-sha256.c: Likewise.
15991         * tests/test-gc-hmac-sha512.c: Likewise
15992         * tests/test-hmac-sha256.c: Likewise.
15993         * tests/test-hmac-sha512.c: Likewise
15995 2013-08-24  Daiki Ueno  <ueno@gnu.org>
15997         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
15998         of AC_CHECK_DECLS.
16000 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16002         selinux-at: omit unnecessary include
16003         * lib/selinux-at.c: Don't include dosname.h; not needed, since
16004         this source file doesn't use its macros, and subsidiary files that
16005         use the macros already include it.
16007 2013-08-21  Eric Blake  <eblake@redhat.com>
16009         d-ino: avoid false negative on symlink
16010         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
16011         Reported by Stephane Chazelas.
16013 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
16015         bootstrap: port to OpenBSD sed
16016         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
16017         does not interpret `-' as a file argument to mean stdin.
16019 2013-08-15  Eric Blake  <eblake@redhat.com>
16021         warnings: minor optimization
16022         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
16024         warnings: check -Wfoo rather than -Wno-foo
16025         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
16026         -Wno-, test if the compiler recognizes the positive form instead.
16028 2013-08-15  Karl Berry  <karl@gnu.org>
16030         * config/srclist-update: add option "doclicense" to placate
16031         pulling *.texi files from Emacs.  Write terse usage
16032         documentation at the top.
16034 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
16036         xvasprintf-tests: port to GCC with hardening flags
16037         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
16038         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
16039         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
16041 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16043         fpending: port to recent Cygwin change to stdio_ext.h
16044         Reported by LRN in
16045         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
16046         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
16047         just declare __fpending unless it's a macro.
16048         A duplicate decl shouldn't hurt.
16049         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
16050         call compiles and links, instead of separately checking for
16051         decl and lib function.
16052         * modules/fpending (configure-ac):
16053         Adjust to fpending.m4's renaming of shell variable.
16055 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16057         sys_time: port to OpenBSD
16058         * lib/sys_time.in.h: Simply delegate to the system's header
16059         in the BSDish cases as well.  Problem reported by Mike Miller in
16060         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
16061         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
16062         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
16063         wider than time_t.
16065 2013-08-09  Pádraig Brady  <P@draigBrady.com>
16067         bootstrap: support checksum utils having -c but not --status
16068         * build-aux/bootstrap: Only look for sha1sum if updating po files.
16069         Add sha1 to the list of supported checksum utils since it's now
16070         supported through adjustments below.
16071         (update_po_files): Remove the use of --status
16072         in a way that will suppress all error messages, but since this is
16073         only used to minimize updates, it shouldn't cause an issue.
16074         Exit early if there is a problem updating the po file checksums.
16075         (find_tool): Remove the check for --version support as this
16076         is optional as per commit 86186b17.  Don't even check for the
16077         presence of the command as if that is needed, it's supported
16078         through configuring prerequisites in bootstrap.conf.
16079         Prompt that when a tool isn't found, one can define an environment
16080         variable to add to the hardcoded search list.
16082 2013-08-05  Jim Meyering  <meyering@fb.com>
16084         regex: port to non-glibc/lock-using systems
16085         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
16086         system with GNULIB_LOCK would fail due to absence of the
16087         included "glthread/lock.h".  This would affect any package
16088         for which the "lock" module is used only by the regex module,
16089         and not explicitly used.
16090         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
16091         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
16092         Add a dependency on the "lock" module.
16094 2013-07-20  Daiki Ueno  <ueno@gnu.org>
16096         localecharset: make locale_charset thread-safe on Mac OS X
16097         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
16098         instead of MB_CUR_MAX.
16100 2013-07-20  Daiki Ueno  <ueno@gnu.org>
16102         gettext: update to version 0.18.3
16103         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
16104         require AC_PROG_SED to allow user to specify custom sed command when
16105         generating en@quot PO file.
16107 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
16109         bootstrap: use correct source when copying build-aux files
16110         * build-aux/bootstrap (gnulib_extra_files): This variable is
16111         relative to upstream gnulib layout, not downstream.
16113 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
16115         tmpdir: fix bug in VMS port
16116         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
16117         See Steven M. Schweda in
16118         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
16120 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16122         tmpdir: port to VMS, to // != /, and to long dirs
16123         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
16124         __secure_getenv, so that we're more like the glibc version.
16125         All uses changed.
16126         (path_search): Don't put slash after directory if __VMS.
16127         Problem reported by Steven M. Schweda in
16128         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
16129         Simplify code to add slash; no need for a loop.
16130         Do not remove trailing slash from "//".
16131         Do not assume dlen <= INT_MAX.
16133 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16135         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
16136         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
16137         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
16138         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
16140         accept4, dup3, pipe2: port to Cygwin
16141         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
16142         * lib/accept4.c (accept4) [O_BINARY]:
16143         * lib/dup3.c (dup3) [O_BINARY]:
16144         * lib/pipe2.c (pipe2) [O_BINARY]:
16145         Use set_binary_mode, not setmode.
16146         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
16147         * modules/binary-io (Depends-on): Remove module indicator.
16148         These last two bits undo the previous change to pipe2 and binary-io.
16150 2013-07-09  Pádraig Brady  <P@draigBrady.com>
16152         mountlist: add support for deallocating returned list entries
16153         * lib/mountlist.c (free_mount_entry): A new exported function
16154         to deallocate a mount list entry.
16155         (read_file_system_list): Refactor to use the new deallocation function.
16156         Suggested by Anton Ovchinnikov.
16158 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
16160         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
16161         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
16162         * lib/stdalign.in.h (_Alignas, _Alignof):
16163         Port to FreeBSD 9.1, and to C11 and C++11.
16164         (_Alignas): Also support ICC.
16165         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
16166         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
16168 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16170         fnmatch: don't goto over declaration
16171         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
16172         undefined behavior for goto over a declaration.
16173         Problem reported by Charlie Brown in
16174         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
16176         pipe2: decouple from binary-io a bit
16177         This is for Emacs, which needs pipe2 but not binary-io.
16178         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
16179         * modules/binary-io (Depends-on): Add module indicator.
16181 2013-07-03  Eric Blake  <eblake@redhat.com>
16183         mgetgroups: relax license to LGPLv2+
16184         * modules/getugroups (License): Change from GPLv3+.
16185         * modules/mgetgroups (License): Likewise.
16186         * modules/getgroups (License): Change from LGPLv3+.
16188         xalloc-oversized: relax license to LGPLv2+
16189         * modules/xalloc-oversized (License): Change from GPLv3+.
16191         nproc: relax license to LGPLv2+
16192         * modules/nproc (License): Change from LGPLv3+.
16194         bootstrap: honor --no-git
16195         * build-aux/bootstrap: Don't even try to use git when user is
16196         pointing to a static checkout.
16198 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
16200         ignore-value: port to gcc -pedantic
16201         * lib/ignore-value.h (ignore_value):
16202         Port to gcc -pedantic, by using __extension__.
16203         Reindent as per usual gnulib style nowadays.
16204         Simplify GCC version check.
16206 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
16208         extern-inline: port to gcc -std=c89
16209         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
16210         Do not use __gnu_inline__ if pedantic and pre-C99.
16212 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
16214         doc: document extern-inline
16215         * doc/extern-inline.texi: New file.
16216         * doc/gnulib.texi (alloca-opt): Include it.
16217         * m4/extern-inline.m4: Move some comments to documentation,
16218         and others closer to what they describe.
16220         doc: chatter less
16221         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
16222         (updated-stamp): Use it.  This causes 'make' to output just
16223         one file name rather than zillions.
16225         fflush, fseeko: port to musl cross-compiles
16226         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
16227         on some implementation that (1) is not known to be buggy,
16228         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
16229         cross-compiled to so we can't easily check for lack of
16230         conformance.  This is for cross-compiling to musl.
16231         Reported by Rich Felker in
16232         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
16233         * m4/fclose.m4 (gl_FUNC_FCLOSE):
16234         * m4/fflush.m4 (gl_FUNC_FFLUSH):
16235         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
16236         Adjust to above change.
16237         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
16238         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
16239         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
16240         known not to work, or unknown.
16242 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16244         msvc-inval: port to mingw-w64
16245         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
16246         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
16247         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
16249 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
16251         getcwd-lgpl: port to Tru64
16252         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
16253         Problem reported by Steven M. Schweda in
16254         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
16256         tests: port large-fd POSIX spawn tests to OS X
16257         Problem reported by Daiki Ueno in
16258         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
16259         * tests/test-posix_spawn_file_actions_addclose.c:
16260         * tests/test-posix_spawn_file_actions_adddup2.c:
16261         * tests/test-posix_spawn_file_actions_addopen.c:
16262         Include <limits.h>, for OPEN_MAX, if available.
16263         (big_fd): New static function.
16264         (main): Use it.
16266 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
16268         tests/nap.h: use an adaptive delay to avoid ctime update issues
16269         The recent change in nap.h (5191133e) decreased the probability of lost
16270         races to about a third, however such problems could still be observed
16271         in virtual machines and openSUSE's OBS.
16272         Before, nap() detected the needed time once empirically and then used
16273         that delay (together with a small correction multiplier) in further
16274         calls.  This problem has been reported and discussed several times,
16275         including guesses about possible kernel issues:
16276         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
16277         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
16278         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
16279         http://bugs.gnu.org/12820
16280         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
16281         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
16282         Now, nap() avoids the race alltogether by verifying on a reference
16283         file whether a timestamp difference has happened.
16284         * tests/nap.h (nap_fd): Define file descriptor variable for the
16285         witness file.
16286         (nap_works): Change return value to bool.  Change passing
16287         the old file's status by value instead of by reference as this function
16288         does no longer update that timestamp; rename the function argument from
16289         st to old_st.  Remove the local variables cdiff and mdiff because that
16290         function now returns true/false instead of the precise delay.
16291         (guess_delay): Remove function.
16292         (clear_tmp_file): Add new function to close and unlink the witness file.
16293         (nap): Instead of re-using the delay which has been calculated during
16294         the first call, avoid the race by actually verifying that a timestamp
16295         difference can be observed on the current file system.  Use an adaptive
16296         approach for the delay to minimize execution time.  Assert that the
16297         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
16298         = 2^31 - 1 = 2.1s.
16299         Use atexit to call clear_tmp_file when the process terminates.
16301 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16303         sig2str: port to C++
16304         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
16305         Reported by Daniel J Sebald in
16306         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
16308 2013-05-30  Eric Blake  <eblake@redhat.com>
16310         docs: mention cygwin shortcoming in <sys/un.h>
16311         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
16313         vasnprintf: silence mingw compiler warning
16314         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
16316 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16318         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
16319         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
16320         This fixes a porting bug I recently reintroduced in regex, and
16321         some other instances that I discovered while testing the fix.
16322         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
16323         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
16324         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
16325         with an empty argument if this is a pedantic pre-C99 GCC.
16326         * lib/verify.h: Do not use _Static_assert if this is a pedantic
16327         pre-C11 GCC.
16329         regex: adapt to locking regime instead of depending on pthread
16330         Instead of depending on pthread, adapt to whatever thread
16331         modules are in use.  Problem reported by Ludovic Courtès in
16332         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
16333         and by Mats Erik Andersson in
16334         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
16335         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
16336         Support either the 'lock' module, or the 'pthread' module, or
16337         no module.
16338         (lock_lock, lock_unlock): New macros.
16339         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
16340         * modules/lock, modules/pthread (configure.ac): Add module indicator.
16341         * modules/regex (Depends-on): Remove pthread.
16343 2013-05-22  Eric Blake  <eblake@redhat.com>
16345         getgroups: document portability issues
16346         * doc/glibc-functions/initgroups.texi (initgroups): Mention
16347         multithread safety.
16348         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
16349         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
16350         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
16351         getugroups.
16352         * doc/posix-functions/getgroups.texi (getgroups): Mention
16353         multithread safety and mgetgroups.
16355 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
16357         test-lchown, test-chown: also skip test if chown fails with EPERM
16358         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
16359         skip this test, to handle FAT file systems.
16360         * tests/test-chown.h (test_chown): Likewise.
16362 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16364         regex: fix dfa race in multithreaded uses
16365         Problem reported by Ludovic Courtès in
16366         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
16367         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
16368         New macros.  All uses of __libc_lock_define, __libc_lock_init
16369         changed to use the first two of these.
16370         (__libc_lock_lock, __libc_lock_unlock): New macros, for
16371         non-glibc platforms.
16372         (struct re_dfa_t): Define the lock unconditionally.
16373         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
16374         '#ifdef _LIBC"s.
16375         * modules/regex (Depends-on): Add pthread, if we use the
16376         included regex.
16378         * lib/regcomp.c: Do actions that are not needed for glibc,
16379         but may be needed elsewhere.
16380         (regfree, re_compile_internal): Destroy the lock.
16381         (re_compile_internal): Check for lock-initialization failure.
16383         malloca: port to compilers that reject size-zero arrays
16384         This fixes a bug introduced in my previous patch.
16385         * lib/malloca.c (struct preliminary_header): Use an int
16386         rather than a character array of size int; that's simpler.
16387         (struct header): Remove, replacing with ...
16388         (union header): New type.  This avoids the need for declaring a
16389         character array of size zero, which is not allowed on some platforms.
16390         All uses changed.
16392 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
16394         parse-datetime, tests: don't use "string" + int
16395         Recent versions of 'clang' complain about C source code that
16396         uses expressions of the form '"string literal" + integer',
16397         I guess on the theory that it's confusing for readers who are
16398         used to C++.  On those grounds I suppose it's OK to make this
16399         minor style change.
16400         * lib/parse-datetime.y (parse_datetime):
16401         * tests/test-fchdir.c (main):
16402         * tests/test-snprintf-posix.h (test_function):
16403         * tests/test-snprintf.c (main):
16404         * tests/test-vasnprintf-posix.c (test_function):
16405         * tests/test-vasnprintf.c (test_function):
16406         * tests/test-vsnprintf.c (main):
16407         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
16408         Rewrite '"str" + E' to '&"str"[E]'.
16410 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
16412         argmatch: port to C++
16413         * lib/argmatch.h [__cplusplus]: Add extern "C".
16415         argp: typo fix
16416         * lib/argp-help.c: Typo in comment.
16418 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
16420         manywarnings: update for GCC 4.8.0
16421         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
16422         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
16423         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
16424         -Wmissing-noreturn, as they are duplicates of other warnings.
16425         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
16426         was documented to be flaky in earlier versions of GCC.
16428         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
16429         * tests/test-spawn.c (main):
16430         * tests/test-sys_socket.c (main):
16431         * tests/test-sys_wait.c (main):
16432         Don't have a switch value that isn't covered by a case.
16434         getaddrinfo-tests: port --enable-gcc-warnings to clang
16435         * tests/test-getaddrinfo.c (simple):
16436         Avoid casts from looser to stricter-aligned pointers.
16438         thread: port --enable-gcc-warnings to clang
16439         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
16440         Include <signal.h>, to pacify a warning about pthread_sigmask.
16442         stdio: use __REDIRECT for fwrite, fwrite_unlocked
16443         * lib/stdio.in.h (fwrite):
16444         When working around bug 11959, use __REDIRECT rather than '#define
16445         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
16446         fix the -Wunused-value issue with clang, and it works with GCC too.
16447         Problem with targeting reported by Eric Blake in
16448         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
16449         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
16450         debugging the fwrite issue.
16452         stdio: port --enable-gcc-warnings to clang
16453         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
16454         since the GCC workaround for fwrite does not pacify clang.
16456         sig2str: port --enable-gcc-warnings to clang
16457         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
16459         obstack: port --enable-gcc-warnings to clang
16460         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
16461         Avoid casts from looser to stricter-aligned pointers.
16463         memchr2: port --enable-gcc-warnings to clang
16464         * lib/memchr2.c (memchr2):
16465         Avoid casts from looser to stricter-aligned pointers.
16467         mbsstr: port --enable-gcc-warnings to clang
16468         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
16469         Avoid casts from looser to stricter-aligned pointers.
16471         malloca: port --enable-gcc-warnings to clang
16472         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
16473         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
16475         inttostr: port --enable-gcc-warnings to clang
16476         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
16478         warnings: port to clang
16479         Problem reported by Daniel P. Berrange via Eric Blake in
16480         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
16481         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
16482         (gl_WARN_ADD): Use it.
16484 2013-05-11  Jim Meyering  <meyering@fb.com>
16486         quotearg: do not read beyond end of buffer
16487         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
16488         end of an ARG for which no length was specified.  With an N-byte
16489         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
16490         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
16491         via coreutils' misc/sort-debug-keys.sh test and detected by running
16492         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
16493         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
16494         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
16495         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
16496         characters correctly."
16498 2013-05-11  Daiki Ueno  <ueno@gnu.org>
16500         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
16501         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
16502         compilation target is Mac OS X 10.6.
16503         Problem reported by parafin and Andoni Morales in
16504         <http://savannah.gnu.org/bugs/?37844> and
16505         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
16507 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
16509         mkdir-p: remove assumptions about umask and mode
16510         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
16511         umask is 0, or that MODE is a subset of MODE_BITS.
16513 2013-05-10  Eric Blake  <eblake@redhat.com>
16515         maint.mk: catch more abuse of HAVE_DECL in syntax-check
16516         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
16518 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
16520         deps: require Automake >= 1.9.6 in generated Makefile fragments
16522         That is the same minimal version required in the DEPENDENCIES file.
16523         Moreover, the old code generated a requirement of Automake >= 1.5,
16524         and that is an insanely outdated version.
16526         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
16527         * tests/havelib/rpathlx/Makefile.am: Likewise.
16528         * tests/havelib/rpathly/Makefile.am: Likewise.
16529         * tests/havelib/rpathlyx/Makefile.am: Likewise.
16530         * tests/havelib/rpathlz/Makefile.am: Likewise.
16531         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
16532         * tests/havelib/rpathx/Makefile.am: Likewise.
16533         * tests/havelib/rpathy/Makefile.am: Likewise.
16534         * tests/havelib/rpathz/Makefile.am: Likewise.
16536 2013-05-08  Eric Blake  <eblake@redhat.com>
16538         bootstrap: AC_INIT may have more than four parameters
16539         * build-aux/bootstrap (extract_package_name): Correctly extract
16540         non-empty tarname field.  Avoid range in regex.
16541         Based on a report by Sami Kerola <kerolasa@iki.fi>.
16543 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16545         qacl: port to MS-Windows port of GNU Emacs
16546         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
16547         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
16548         port of GNU Emacs.  Problem reported by Eli Zaretskii in
16549         <http://bugs.gnu.org/14295#14>.
16551 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
16553         acl: include quote.h
16554         * lib/copy-acl.c: Include quote.h.
16555         * lib/set-acl.c: Likewise.
16557 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
16559         fchownat, renameat, unlinkat: update statat dependencies
16560         These modules use statat and lstatat, not fstatat; so depend on
16561         the statat module, which was split out recently from fstatat.
16562         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
16563         * modules/renameat: Likewise.  Also delete fstat.
16564         URL: http://bugs.gentoo.org/468790
16566 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
16568         Assume gnulib is checked out from Git, not CVS
16570         In fact, access to the gnulib repository through CVS has been
16571         disabled, or more precisely, got broken and was never restored; see:
16572         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
16574         Note that support for CVS is not removed completely and unthinkingly
16575         by this change: only support for CVS checkouts of gnulib itself is
16576         removed.  For example, the 'bootstrap' script still cater to .cvsingore
16577         files and CVS directories, for the benefit of those poor gnulib clients
16578         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
16580         * gnulib-tool: Simplify accordingly.
16581         * posix-modules: Likewise.
16582         * MODULES.html.sh: Likewise.
16583         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
16584         repository.
16585         * doc/gnulib-intro.texi: Likewise.
16586         * doc/gnulib-readme.texi: Likewise.
16587         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
16588         sample '.gitignore' file rather than a sample '.cvsignore'.
16589         * NEWS: Update.
16590         * m4/extensions.m4: While at it, remove a comment mistakenly referring
16591         to "CVS Autoconf" rather than "git Autoconf".
16593 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
16595         utimensat-tests, etc.: try to fix some races
16596         Problem reported by Bernhard Voelker in
16597         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
16598         I don't know whether this patch fixes that race condition, but it
16599         fixes *some* race conditions, so it should be a win.
16600         * modules/chown-tests (Depends-on):
16601         * modules/fchownat-tests (Depends-on):
16602         * modules/fdutimensat-tests (Depends-on):
16603         * modules/futimens-tests (Depends-on):
16604         * modules/lchown-tests (Depends-on):
16605         * modules/stat-time-tests (Depends-on):
16606         * modules/utimens-tests (Depends-on):
16607         * modules/utimensat-tests (Depends-on):
16608         Depend on nanosleep, not usleep.
16609         * modules/chown-tests (test_chown_LDADD):
16610         * modules/lchown-tests (test_lchown_LDADD):
16611         * modules/stat-time-tests (test_stat_time_LDADD):
16612         New macro.
16613         * modules/fchownat-tests (test_fchownat_LDADD):
16614         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
16615         * modules/futimens-tests (test_futimens_LDADD):
16616         * modules/utimens-tests (test_utimens_LDADD):
16617         * modules/utimensat-tests (test_utimensat_LDADD):
16618         Add $(LIB_NANOSLEEP).
16619         * modules/stat-time-tests (Files): Add tests/nap.h.
16620         * tests/nap.h: Include <limits.h>, for INT_MAX.
16621         (lt_mtime): Remove.
16622         (diff_timespec): New function.
16623         (get_stat): Rename from get_mtime.  All callers changed.
16624         (nap_works): Determine the needed delay by inspecting the
16625         file system's timestamp jumps; this should be more reliable.
16626         Look at both mtime and ctime, and take the maximum of the two jumps.
16627         (nap_works, guess_delay):
16628         Return a nanosecond count, not a microsecond count.
16629         All callers changed.
16630         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
16631         failure.
16632         (nap): Multiply the guess by 1.125, to accommodate the case where
16633         the file system's clock is a bit slower than nanosleep's clock.
16634         * tests/test-stat-time.c (BASE): New macro.
16635         Include nap.h.
16636         (nap): Remove; nap.h now defines this.  This removes a duplicate
16637         implementation of 'nap'.
16639         utimens, utimensat: work around Solaris UTIME_OMIT bug
16640         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
16641         Linux kernel 2.6.32 does.  Work around it in the same way.
16642         * doc/posix-functions/futimens.texi (futimens):
16643         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
16644         * lib/utimens.c (fdutimens, lutimens):
16645         * lib/utimensat.c (rpl_utimensat): Work around the bug.
16647         gettext: now it's your responsibility to add -I$(top_builddir)/intl
16648         Formerly, it was your responsibility to do this for all Makefile.ams
16649         other than Gnulib's.  Now it's your responsibility to do it for
16650         Gnulib's Makefile.am, too.
16651         * NEWS: Document this.
16652         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
16654         acl: include errno.h to get errno
16655         Reported by Daiki Ueno in
16656         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
16657         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
16659 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
16661         tests: don't assume getdtablesize () <= 10000000
16662         * modules/cloexec-tests:
16663         * modules/dup2-tests:
16664         * modules/dup3-tests:
16665         * modules/nonblocking-tests:
16666         * modules/posix_spawn_file_actions_addclose-tests:
16667         * modules/posix_spawn_file_actions_adddup2-tests:
16668         * modules/posix_spawn_file_actions_addopen-tests:
16669         * modules/unistd-safer-tests:
16670         Depend on the getdtablesize module.
16671         * tests/test-cloexec.c:
16672         * tests/test-dup-safer.c:
16673         * tests/test-dup2.c:
16674         * tests/test-dup3.c:
16675         * tests/test-fcntl.c:
16676         * tests/test-nonblocking.c:
16677         * tests/test-posix_spawn_file_actions_addclose.c:
16678         * tests/test-posix_spawn_file_actions_adddup2.c:
16679         * tests/test-posix_spawn_file_actions_addopen.c:
16680         Don't assume getdtablesize () <= 10000000.
16682 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
16684         extern-inline: work around bug in Sun c99
16685         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
16686         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
16688 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
16690         qacl: new module, broken out from the acl module
16691         This is for GNU Emacs, which wants the acl functions but does
16692         not want 'error' invoked when they fail.
16693         * lib/acl-internal.h: Do not include error.h, quote.h.
16694         (ENOSYS, ENOTSUP): Remove; no longer needed.
16695         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
16696         * lib/acl.h: Include <stdbool.h>.
16697         (acl_errno_valid): New function.
16698         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
16699         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
16700         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
16701         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
16702         (ACL_INTERNAL_INLINE): Remove; no longer needed.
16703         * lib/file-has-acl.c (file_has_acl):
16704         * lib/qcopy-acl.c (qcopy_acl):
16705         * lib/qset-acl.c (qset_acl):
16706         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
16707         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
16708         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
16709         lib/file-has-acl.c, m4/acl.m4 to qacl module.
16710         Add lib/set-acl.c.
16711         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
16712         Add qacl.
16713         (configure.ac): Move gl_FUNC_ACL to qacl module.
16714         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
16715         Rename set-mode-acl.c to set-acl.c.
16716         * lib/acl-errno-valid.c: New file.
16717         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
16718         copy_acl function remains in copy-acl.c.
16719         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
16720         (_): Remove; not needed.
16721         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
16722         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
16723         * modules/qacl: New file, moved from the old modules/acl.
16724         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
16725         Remove set-mode-acl.c, copy-acl.c.
16726         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
16728         alignof, intprops, malloca: port better to IBM's C compiler
16729         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
16730         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
16731         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
16733 2013-04-25  Daiki Ueno  <ueno@gnu.org>
16735         wctype-h: fix gettext link error on mingw
16736         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
16737         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
16738         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
16739         rpl_towupper and rpl_towupper.
16741 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
16743         regex-tests, regex: allow glibc re_search behavior
16744         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
16745         re_search input data to make the multi-character collating element
16746         in it clearly visible, and treat re_search return code 0 as valid.
16747         * m4/regex.m4 (gl_REGEX): Likewise.
16749 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
16751         stdalign: doc fix
16752         * doc/posix-headers/stdalign.texi (stdalign.h):
16753         Gnulib doesn't support '_Alignof expr'.
16755 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16757         stdalign: port to stricter ISO C11
16758         ISO C11 says that _Alignof's operand must be a parenthesized type.
16759         Problem reported by Eli Zaretskii in
16760         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
16761         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
16762         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
16764 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
16766         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
16767         Problem reported by Marco Atzeri in
16768         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
16769         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
16770         Simply delegate to the system <sys/select.h> in this case too.
16771         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
16772         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
16773         be needed on Solaris either.
16774         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
16775         Simply delegate to the system <sys/time.h> in this case.
16777 2013-03-19  Karl Berry  <karl@gnu.org>
16779         * build-aux/gnupload: check for erroneous (with gnupload) use of
16780         ftp-upload.gnu.org, tweak help.
16782 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16784         copy-file, rpmatch: fix problems found by cppcheck
16785         Reported by Arno Onken in
16786         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
16787         * lib/rpmatch.c (try): Fix memory leak.
16788         * lib/copy-file.c: Include "ignore-value.h".
16789         (qcopy_file_preserving): Ignore chown value.
16790         * modules/copy-file (Depends-on): Add ignore-value.
16792 2013-01-27  Jim Meyering  <jim@meyering.net>
16794         prefix-gnulib-mk: give better diagnostics
16795         * build-aux/prefix-gnulib-mk: Don't just "die".
16796         Give better diagnostics upon failure.
16798 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
16800         putenv: port to Solaris 10
16801         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
16802         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
16803         is not what is wanted here.
16804         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
16805         declaration, not for its existence.
16807 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
16809         mktime: fix configure typo
16810         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
16812 2013-03-12  Eric Blake  <eblake@redhat.com>
16814         regex-tests: skip UTF-8 test on mingw
16815         * modules/regex-tests (Depends-on): Add localcharset.
16816         * tests/test-regex.c (main): Use it to skip test on mingw.
16818 2013-03-11  Eric Blake  <eblake@redhat.com>
16820         tests: make it easier to bypass alarm time in debugger
16821         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
16822         * tests/test-memmem.c (main): Likewise.
16823         * tests/test-passfd.c (main): Likewise.
16824         * tests/test-ptsname.c (main): Likewise.
16825         * tests/test-ptsname_r.c (main): Likewise.
16826         * tests/test-strcasestr.c (main): Likewise.
16827         * tests/test-strstr.c (main): Likewise.
16829         regex: port to mingw's recent addition of undeclared alarm
16830         * doc/posix-functions/alarm.texi (alarm): Document that alarm
16831         exists but still doesn't work in newer mingw.
16832         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
16833         not existence.  Ensure SIGALRM is not trapped.
16834         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
16835         * m4/regex.m4 (gl_REGEX): Likewise.
16836         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
16837         * tests/test-regex.c (main): Use correct probe for alarm.
16839         putenv: avoid compilation warning on mingw
16840         * lib/putenv.c (_unsetenv): Protect variable declaration.
16841         (putenv): Fix indentation.
16843 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
16845         unistd: don't prevent Tru64 Unix from using gnulib strtod.
16846         * lib/unistd.in.h: be careful not to include un-needed system
16847         stdlib.h from here, because that prevents gnulib stdlib.h from
16848         defining rpl_strtod correctly.
16850 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
16852         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
16853         changesets, but for the 'precision 0' test.
16854         * tests/test-vasprintf-posix.c (test_function): Don't insist on
16855         round-to-even, since POSIX says rounding is implementation-defined
16856         and OS X 10.8.2 rounds 1.51 to 1 here.
16858         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
16859         changeset.
16860         * tests/test-vasprintf-posix.c (test_function): Don't insist on
16861         round-to-even, since POSIX says rounding is implementation-defined
16862         and OS X 10.8.2 rounds 1.5 to 1 here.
16864 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16866         vasnprintf-posix-tests: allow rounding 1.5 to 1
16867         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
16868         round-to-even, since POSIX says rounding is implementation-defined
16869         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
16870         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
16872         bootstrap: port to FreeBSD
16873         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
16874         that treat '--' differently.  Reported by Mats Erik Andersson in
16875         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
16877 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
16879         regex: rename remaining __attribute calls to __attribute__.
16880         2012-02-25 changed definition of __attribute, but left some uses
16881         unchanged, preventing compilation of regex module on most non-gcc
16882         environments.
16883         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
16884         (lookup_collation_sequence_value, build_range_exp)
16885         (build_collating_symbol): Set attributes with newly renamed
16886         __attribute__ decorator.
16887         * lib/regex_internal.c (re_string_peek_byte_case)
16888         (re_node_set_compare, re_node_set_contains): Likewise.
16889         * lib/regexec.c (acquire_init_state_context): Likewise.
16891 2013-03-06  Bruno Haible  <bruno@clisp.org>
16893         execute: Revert last change, but use a different condition.
16894         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
16895         on Windows.
16897 2013-03-05  Eric Blake  <eblake@redhat.com>
16899         execute: drop dead code
16900         * lib/execute.c (nonintr_close, nonintr_open): Delete.
16902 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
16904         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
16905         * m4/non-recursive-gnulib-prefix-hack.m4
16906         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
16907         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
16908         <http://bugs.gnu.org/10305#237>.
16910 2013-03-04  Eric Blake  <eblake@redhat.com>
16912         test-getsockopt: avoid compiler warning
16913         * tests/test-getsockopt.c (includes): Ensure close is declared.
16915 2013-03-02  Bruno Haible  <bruno@clisp.org>
16917         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
16918         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
16920 2013-03-02  Bruno Haible  <bruno@clisp.org>
16922         gettext: Update to version 0.18.2.
16923         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
16924         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
16925                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
16927 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16929         regex: merge patches from libc
16931         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
16932         * lib/regex_internal.h (__attribute__): Rename from __attribute.
16933         All uses changed.
16934         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
16935         (re_string_wchar_at, re_string_elem_size_at):
16936         Mark function as possibly unused.
16938         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
16939         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
16940         elements compare against the byte sequence of it, not its name.
16942 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16944         putenv: port better to native Windows
16945         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
16946         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
16947         (_unsetenv): Use _putenv if available.
16948         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
16949         a bit less likely to cause damage.
16950         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
16951         Fix the wrong value with SetEnvironmentVariable.
16952         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
16953         code better.
16955 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16957         regex: ignore old-style-definition warnings
16958         * lib/regex.c: Add pragma to ignore these warnings.
16959         Problem reported for GNU tar by Pavel Raiskup.
16961 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
16963         getcwd: support coreutils better
16964         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
16965         but this might not be correct in coreutils, which disables
16966         the raw decl checks.  Problem reported by Nagendra in
16967         <http://bugs.gnu.org/10305#192>.
16968         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
16969         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
16970         Test the getcwd function, not any macro, since getcwd.c wants the
16971         function.
16972         * m4/getcwd.m4 (gl_FUNC_GETCWD):
16973         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
16974         compile, as might happen if there's a macro but no function.
16976         strtod: support coreutils better
16977         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
16978         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
16979         disables the raw decl checks.  This assumes there is an underlying
16980         strtod, but that's a safe assumption these days.
16981         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
16983         mountlist: port to HP NonStop
16984         Reported by Joachim Schmitz in
16985         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
16986         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
16987         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
16989 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16991         extern-inline: avoid compilation error with HP-UX cc
16992         Reported by Richard Lloyd in
16993         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
16994         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
16995         Suppress extern inline with HP-UX cc.  This should be safe,
16996         though it may hurt performance.  Perhaps someone with some HP-UX
16997         experience can come up with a higher-performance fix.
16999 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17001         putenv: fix heap corruption with mixed putenv/_putenv
17002         Problem reported by Michael Goffioul in
17003         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
17004         * lib/putenv.c (putenv) [HAVE__PUTENV]:
17005         Rely on _putenv to allocate the new environment.
17006         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
17007         * modules/putenv (configure.ac): Use it.
17009 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
17011         unsetenv etc.: port to Solaris 11 + GNU Emacs
17012         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
17013         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
17014         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
17015         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
17016         idea but is too painful to fix right now), and without this gnulib
17017         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
17018         compiling unsetenv.c on Solaris 11.  Fix the problem for
17019         unsetenv.c, and fix other similar occurrences.
17021 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17023         secure_getenv: fix C++ declaration typo
17024         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
17025         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
17026         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
17028 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17030         careadlinkat: stop exporting careadlinkatcwd
17031         Only Emacs used it directly, and Emacs no longer needs it.
17032         * NEWS: Document this simplification.
17033         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
17034         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
17035         for readlink.
17036         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
17037         Don't include stdlib.h; no longer needed.
17038         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
17039         * lib/relocwrapper.c: Adjust comment to match new dependencies.
17040         * modules/areadlink (Depends-on): Add readlink.
17041         (Maintainer): Add self.
17042         * modules/careadlinkat (Depends-on): Remove readlink.
17044         extensions: port better to HP-UX
17045         This is merged from git Autoconf.
17046         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
17047         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
17048         so that it's compatible with the value used when compiling.
17050         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
17051         Problem reported by Mats Erik Andersson in
17052         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
17053         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
17054         openpty function exists, not merely when we intend to replace it.
17055         This corrects the 2013-01-31 patch, which mistakenly defined
17056         HAVE_OPENPTY even on hosts that lacked it.
17058 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
17060         secure_getenv: fix include typo
17061         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
17063         secure_getenv: port better to FreeBSD and Solaris
17064         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
17065         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
17066         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
17067         This works better on BSDish platforms.
17068         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
17069         Test for issetugid if __secure_getenv is missing.
17071 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17073         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
17074         Some of these changes are merged in from git Autoconf.
17075         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
17076         When deciding whether to define _XOPEN_SOURCE, inspect the
17077         preprocessor macro __hpux instead of the more-heavyweight
17078         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
17079         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
17080         as the key for __EXTENSIONS__.
17082         unistd: avoid namespace pollution on non-glibc systems
17083         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
17084         This avoids namespace pollution on non-glibc systems, by causing
17085         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
17086         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
17087         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
17089 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17091         tmpdir: use secure_getenv
17092         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
17093         Define to secure_getenv, not getenv.
17094         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
17095         as that's now secure_getenv's job.
17096         * modules/tmpdir (Depends-on): Add secure_getenv.
17098         tempname: use secure_getenv
17099         * lib/tempname.c (__secure_getenv) [!_LIBC]:
17100         Define to secure_getenv, not getenv.
17101         * modules/tempname (Depends-on):
17102         Add secure_getenv.
17104         secure_getenv: new module
17105         * MODULES.html.sh (Extra functions based on ANSI C 89):
17106         Add secure_getenv.
17107         * doc/glibc-functions/secure_getenv.texi: New file.
17108         * doc/gnulib.texi: Include it.
17109         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
17110         New files.
17111         * lib/stdlib.in.h (secure_getenv): New decl.
17112         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
17113         * modules/stdlib (stdlib.h):
17114         Add secure_getenv checks.
17116 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
17118         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
17119         Reported for OS X 10.8.2 by Assaf Gordon in
17120         <http://bugs.gnu.org/13516>.
17121         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
17122         !HAVE_OPENAT && !HAVE_FDOPENDIR.
17123         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
17124         so that they can be kept in sync more easily.  Avoid PATH_MAX
17125         test on the Hurd.  Sync from test-getcwd.c for errno tests after
17126         mkdir or chdir failure.
17127         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
17128         lib/getcwd.c.
17129         (test_abort_bug): Do not test for the deep directory bug unless we
17130         have openat support.  Avoid PATH_MAX test on the Hurd.
17132         regex-tests, regex: fix bug: memset undeclared
17133         * tests/test-regex.c: Don't include regex.h twice.  Include
17134         string.h, to declare memset.  Christensen's report also mentioned
17135         this issue.
17136         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
17137         test-regex.c, to avoid future problems like this.  Remove
17138         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
17139         twice.
17141         regex-tests: fix link errors on older Solaris
17142         These need to link with @LIBINTL@ to get libintl_gettext.
17143         Problem reported by Tom G. Christensen in
17144         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
17145         * modules/regex-tests (test_regex_LDADD): New macro.
17147 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
17149         regex-tests: new module
17150         * modules/regex-tests, tests/test-regex.c: New files.
17152         regex: fix off-by-one error in configure test
17153         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
17155 2013-01-31  Eric Blake  <eblake@redhat.com>
17157         regex: avoid infinite configure test
17158         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
17160 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
17162         openpty: fix bug where HAVE_OPENPTY wasn't defined
17163         See the thread starting at:
17164         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
17165         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
17166         openpty function exists, not merely when we intend to replace it.
17168 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17170         sys_time: port to Solaris 2.6
17171         There is a circularity problem on Solaris 2.6, where <time.h> includes
17172         <sys/time.h> for struct timespec.  The include nesting is gnulib
17173         <time.h>, system <time.h>, gnulib <sys/time.h>, system
17174         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
17175         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
17176         <sys/siginfo.h>; the last, innermost file needs struct
17177         timestruc_t, which is defined in <sys/time.h>, which has not been
17178         fully parsed.  Problem reported by Tom G. Christensen in
17179         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
17180         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
17181         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
17182         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
17183         uses split double-inclusion guards.
17185 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17187         regex: test for buffer overrun
17188         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
17189         for the just-fixed regex bug.
17191 2013-01-29  Andreas Schwab  <schwab@suse.de>
17193         regex: fix buffer overrun in regexp matcher [BZ #15078]
17194         * lib/regexec.c (extend_buffers): Add parameter min_len.
17195         (check_matching): Pass minimum needed length.
17196         (clean_state_log_if_needed): Likewise.
17197         (get_subexp): Likewise.
17199 2013-01-28  Pádraig Brady  <P@draigBrady.com>
17201         mountlist: don't consider "devtmpfs" as dummy
17202         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
17203         as there is storage associcated with it.
17205 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
17207         futimens-tests, utimens-tests: Depend on gettext.
17208         This works around a problem introduced in my 2013-01-12 patch,
17209         which added @LIBINTL@ to these modules.
17210         * modules/futimens-tests (Depends-on):
17211         * modules/utimens-tests (Depends-on): Add gettext.
17213 2013-01-26  Eric Blake  <eblake@redhat.com>
17215         test-getpeername: fix typo
17216         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
17218 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
17220         bootstrap: remove the need for a sorted .gitignore file
17221         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
17222         rename to insert_if_absent(), so that we don't need or generate
17223         a sorted .gitignore file.  We do require a .gitignore with no
17224         existing duplicate entries and enforce that.
17225         (sort_patterns): Remove this function as we now use the simpler
17226         technigue of inserting blacklist entries at the top of the file,
17227         assuming gnulib won't be inserting !whitelist entries.
17229 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17231         readlinkat: don't depend on gl_FUNC_OPENAT
17232         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
17233         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
17234         renameat.m4, symlinkat.m4; but one thing at a time.
17236         statat: new module, split out from fstatat
17237         GNU Emacs needs the POSIX-specified fstatat, but not the
17238         gnulib-specified statat and lstat.  Split the latter two into a
17239         new module 'statat'.
17240         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
17241         * lib/openat.h, lib/statat.c (STATAT_INLINE):
17242         Rename from FSTATAT_INLINE. All uses changed.
17243         * modules/fstatat (Files): Remove lib/statat.c.
17244         (gl_MODULE_INDICATOR([fstatat])): Remove.
17245         (lib_SOURCES): Remove.
17246         (Maintainer): Add self.
17247         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
17248         * tests/test-fstatat.c (BASE): Don't define if already defined.
17249         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
17251 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17253         tests: don't assume fd 99 is closed
17254         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
17255         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
17256         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
17257         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
17258         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
17259         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
17260         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
17261         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
17262         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
17263         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
17264         * tests/test-fwrite.c, tests/test-getpeername.c:
17265         * tests/test-getsockname.c, tests/test-getsockopt.c:
17266         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
17267         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
17268         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
17269         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
17270         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
17271         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
17272         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
17273         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
17274         * tests/test-unlinkat.c, tests/test-unlockpt.c:
17275         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
17276         Close file descriptor 99, instead of assuming it's already closed.
17278 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17280         stpncpy: port to OS X 10.8
17281         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
17282         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
17284 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17286         unistd: port to recent mingw
17287         * lib/unistd.in.h: Remove special invocation convention for mingw,
17288         which breaks for the latest mingw version.  See John W. Eaton in
17289         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
17291         largefile: port better to Mac OS X 10.5
17292         This patch is backported from Autoconf git.
17293         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
17294         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
17295         with ino_t size being different for configuration time versus
17296         build/run time.  Problem reported by PHO in
17297         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
17299 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
17301         doc: clarify -Werror
17302         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
17303         clarify that it's intended for developers, not for ordinary builds,
17304         and mention --enable-gcc-warnings as one possible use.
17306 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
17308         stdint: fix build with Android's Bionic fox x86
17309         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
17310         was already included as _SSIZE_T_DEFINED_ might also be defined
17311         in include/machine/_types.h, which is included by stdio.h
17313 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
17315         net_if-tests: port to Solaris 7 + GCC 3.4.6
17316         Problem reported by Tom G. Christensen in
17317         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
17318         * tests/test-net_if.c (ni): Move to next the code that uses it,
17319         so that it's declared only if needed.
17321 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
17323         net_if-tests: port to older Solaris
17324         Problem reported by Tom G. Christensen in
17325         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17326         * modules/net_if-tests (NET_IF_LIB): New substitution.
17327         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
17328         (HAVE_IF_NAMEINDEX): New C macro.
17329         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
17331         system-quote-tests: port to older Solaris
17332         Problem reported by Tom G. Christensen in
17333         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17334         * tests/test-system-quote-child.c (fopen, fread): Undef.
17336         c-xvasprintf etc.: fix link errors on older Solaris
17337         These need to link with @LIBINTL@ to get libintl_gettext.
17338         Problem reported by Tom G. Christensen in
17339         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17340         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
17341         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
17342         * modules/futimens-tests (test_futimens_LDADD):
17343         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
17345 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17347         locale: port to Solaris 2.6 and 7 + GNU gettext
17348         * lib/locale.in.h: Just include_next <locale.h> when
17349         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
17350         when combining the localename module with GNU gettext 0.18.2.
17351         Problem reported by Tom G. Christensen in
17352         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
17354 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17356         stdlib: port to Solaris 2.6
17357         Also, the code worked on Solaris 7 through 9 only by accident.
17358         Problem reported by Tom G. Christensen in
17359         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
17360         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
17361         simply include the system stdlib.h.
17362         * lib/getopt.in.h (__need_system_stdlib_h):
17363         * lib/pthread.in.h (__need_system_stdlib_h):
17364         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
17365         Define when including <stdlib.h>, to avoid problems at least for
17366         the pthread case on Solaris 2.6 and 7.  These .h files can get by
17367         with the system stdlib.h.
17369 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
17371         doc: update main copyright year
17372         * doc/gnulib.texi: Update copyright date.
17374         doc: improve ISO 8601 discussion
17375         * doc/parse-datetime.texi (Combined date and time of day items):
17376         Specify more carefully what formats are supported and what is
17377         done with excess precision.
17379 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
17381         doc: avoid small caps
17382         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
17383         they're more trouble than they're worth.  Suggested by Karl Berry
17384         in <http://bugs.gnu.org/13360>.
17386         regex: conform to strict C
17387         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
17388         From Aharon Robbins.
17390         gnulib-tool: fix incompatibility with autopoint 0.18.2
17391         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
17392         Problem reported by Tom G. Christensen in
17393         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
17395 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
17397         fprintftime: bring back and reword fwrite comment
17398         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
17400         stdio: remove now-unnecessary stdio.c
17401         Since stdio.in.h no longer uses inline functions, we no longer
17402         need to compile the extern versions.
17403         * lib/stdio.c: Remove.
17404         * modules/stdio (Files): Remove lib/stdio.c.
17405         (lib_SOURCES): Remove.
17407         unicodeio: depend on stdio, not ignore-value
17408         * lib/unicodeio.c: Do not include ignore-value.h.
17409         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
17410         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
17412         fprintftime: depend on stdio, not ignore-value
17413         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
17414         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
17415         since the stdio module arranges to silence that warning now.
17416         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
17418 2012-10-04  Simon Josefsson  <simon@josefsson.org>
17420         stdint-tests: Fix expanded-before-required-warning.
17421         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
17423 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17425         fwrite: silence __wur only for older glibc versions
17426         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
17427         This will help us remove this workaround some time in the far future.
17429 2013-01-03  Eric Blake  <eblake@redhat.com>
17431         fwrite: silence __wur without using inline
17432         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
17433         just gcc, and in a way that avoids inline issues.
17434         * modules/stdio (Depends-on): Drop extern-inline.
17436 2013-01-03  Jim Meyering  <jim@meyering.net>
17438         update-copyright: avoid copyright notice date corruption
17439         Given a sequence of copyright year numbers in which the final
17440         one was a two-digit number that happened to be a substring of
17441         a preceding four-digit year number, we would mistakenly update
17442         the substring (from two- to four-digit) rather than the two-digit
17443         number at the end, which, combined with the addition of the current
17444         4-digit year number would yield two 5-digit year numbers, e.g.,
17445         here, it would convert the first "99" to "1999, 2013" rather than
17446         the final one:
17447           1991, 99
17448           11999, 20131, 1999
17449         * build-aux/update-copyright: Tighten a regexp.
17450         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
17451         Reported by Joseph Myers in
17452         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
17454 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17456         regex: omit needless signed-pointer casts
17457         * lib/regcomp.c (build_charclass, build_charclass_op):
17458         Use char *, not unsigned char *, for class name and extra.
17459         The char values are always nonnegative so there's no need to
17460         insist on unsigned char * here, and using char * removes the need
17461         for casts.  Reported by Aharon Robbins in
17462         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17464         regex: support Gawk, which never uses alloca
17465         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
17466         Do not include in this case.  Gawk doesn't supply a substitute
17467         alloca.h and doesn't need one.
17469         regex: port __libc_lock_define usage to C89
17470         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
17471         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
17472         does not conform to C89, as it has an empty macro argument.
17473         Reported by Aharon Robbins in
17474         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17476 2013-01-01  Eric Blake  <eblake@redhat.com>
17478         maint: update all copyright year number ranges
17479         Run "make update-copyright".
17481         version-etc: bump copyright year reported in --version
17482         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
17484 2012-12-31  Eric Blake  <eblake@redhat.com>
17486         sigprocmask-tests: skip test if pid is unexpectedly large
17487         * tests/test-sigprocmask.c (main): Add range check.
17489         git-version-gen: avoid test -z portability glitch
17490         * build-aux/git-version-gen: Prefer portable test spelling, since
17491         git-version-gen is run on more than just developer machines.
17493 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
17495         git-version-gen: add --fallback option to use if git is not present
17496         * build-aux/git-version-gen: Add support for the new option --fallback,
17497         which comes into play when there is no $tarball_version_file and
17498         git is not working.
17499         (scriptversion): Update.
17501         maint.mk: handle missing git with more grace
17502         * top/maint.mk (no-submodule-changes, public-submodule-commit):
17503         Quietly proceed if git is not present.
17505 2012-12-31  Eric Blake  <eblake@redhat.com>
17507         dup2: work around cygwin bug
17508         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
17509         * lib/dup2.c (rpl_dup2): Work around it.
17510         * doc/posix-functions/dup2.texi (dup2): Document it.
17512 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17514         regex: remove unnecessary dependency on localcharset.h
17515         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
17516         hasn't been needed for years.
17517         * modules/regex (Depends-on): Remove localcharset.
17519         regex: revert single-byte change
17520         * lib/regexec.c (check_node_accept_bytes): Revert previous change
17521         to this function.  This was alredy fixed in a different way, at
17522         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
17523         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
17524         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
17526         regex: simplify based on Gawk version
17527         * lib/regex_internal.c (re_dfa_add_node): Simplify.
17528         Reported by Aharon Robbins in
17529         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17531 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17533         regex: check that pattern char is single-byte
17534         Reported by Aharon Robbins in
17535         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17536         * lib/regexec.c (check_node_accept_bytes):
17537         Return 0 if the pattern string has a multibyte character here.
17539         regex: implement rational ranges
17540         Reported by Aharon Robbins in
17541         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17542         * lib/regcomp.c (build_range_exp) [!_LIBC]:
17543         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
17544         Implement rational ranges.
17546         regex: avoid redefining __wctype
17547         Reported by Aharon Robbins in
17548         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17549         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
17550         #undef before defining.
17552         regex: port to hosts where malloc (0) == NULL
17553         Reported by Aharon Robbins in
17554         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17555         * lib/regex_internal.c (re_node_set_alloc):
17556         Don't assume that malloc (0) yields nonnull.
17557         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
17558         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
17559         * modules/regex (Files): Add m4/eealloc.m4.
17561         regex: port to C89
17562         Reported by Aharon Robbins in
17563         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17564         * lib/regcomp.c (init_word_char): Declaration before statement.
17566         regex: merge glibc changes
17567         Also, copy the license wording from glibc.  This simplifies
17568         merging changes.  gnulib-tool will change the wording to GPL as
17569         appropriate, when importing it to other packages.  The only
17570         glibc change made since the last merge, which needs merging, is:
17571         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
17572         * lib/regex_internal.h (gettext): Remove use of INTUSE.
17574         * users.txt: Add Emacs.
17576         doc: omit mention of version when not needed
17577         * doc/gnulib-intro.texi (Portability and Application Code):
17578         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
17579         Don't mention particular dates or versions when not necessary, so
17580         that the documentation won't go out of date so quickly.
17582         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
17584 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
17586         bootstrap: pass --force to autoreconf.
17587         * build-aux/bootstrap (AUTORECONFFLAGS): New.
17588         Add "--force" so that Automake's ylwrap and other such tools
17589         be updated at each bootstrap invocation.
17590         Use it.
17592 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17594         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
17595         The earlier patch forgot to update one of the #if conditions, causing
17596         a problem on Debian testing i386 reported by Mats Erik Andersson
17597         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
17598         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
17599         (__argp_fmtstream_puts, argp_fmtstream_puts)
17600         (__argp_fmtstream_write, argp_fmtstream_write)
17601         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
17603         * doc/gnulib-readme.texi: Minor fixups.
17604         (Portability guidelines): Modernize URLs.  Remove some repetition.
17605         (Indent with spaces not TABs): Reword to avoid too-long lines.
17606         Remove some '@ifset standalone' stuff that isn't used.
17608         * doc/gnulib-readme.texi (Portability guidelines):
17609         ctype.h, not ctime.h.
17611         Correct name of POSIX.1-2001.
17612         * doc/posix-functions/fgetc.texi (fgetc):
17613         * doc/posix-functions/fgets.texi (fgets):
17614         * doc/posix-functions/fread.texi (fread):
17615         * doc/posix-functions/fscanf.texi (fscanf):
17616         * doc/posix-functions/getc.texi (getc):
17617         * doc/posix-functions/getchar.texi (getchar):
17618         * doc/posix-functions/scanf.texi (scanf):
17619         POSIX.1-2001, not POSIX-2001.
17621         doc: move README into manual
17622         * README: Move contents to new file doc/gnulib-readme.texi.
17623         Replace with a one-line summary.
17624         * doc/gnulib.texi (Brief Overview): New section,
17625         with old intro preface.  Include gnulib-readme.texi for contents.
17626         (Philosophy): Rename from "Introduction", since this
17627         section no longer introduces the rest.  Write a new preface.
17628         * doc/gnulib-readme.texi: New file, with the old contents of
17629         README texinfo-ized.  This way, the README info appears
17630         in the online and printed manual.
17632 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
17634         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
17635         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
17636         c_vasprintf() prototype.
17638 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
17640         c-vasprintf: Fix "empty declaration" warning reported by GCC.
17641         * lib/c-vasprintf.h: Remove stray semicolon.
17643 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17645         gettext: avoid obsolete macro AM_PROG_MKDIR_P
17646         It is obsolete and is planned to be removed from Automake 1.14; see
17647         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
17648         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
17649         (installdirs-data, installdirs-data-yes):
17650         Use $(MKDIR_P), not $(mkdir_p).
17651         * m4/intl.m4 (AM_INTL_SUBDIR):
17652         * m4/po.m4 (AM_PO_SUBDIRS):
17653         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
17655 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17657         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
17658         On this platform, we are not optimizing but we are using
17659         the substitute for extern inlines, so compile as if
17660         C99-style extern inline, or a substitute, is available.
17661         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
17662         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
17663         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
17664         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
17665         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
17666         Declare as ARGP_FS_EI, not as extern.
17667         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
17668         (__option_is_short, _option_is_end, __option_is_end)
17669         [!_LIBC && __USE_EXTERN_INLINES]:
17670         Declare as ARGP_EI, not as extern.
17672 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17674         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
17675         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
17676         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
17677         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
17678         ...), as the latter is fatal with older Autoconfs.
17679         Problem reported and fix suggested by Eric Blake in thread starting at
17680         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
17682 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17684         AC_PROG_MKDIR_P: don't workaround if not buggy
17685         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
17686         Define only for Autoconf versions before 2.62.
17687         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
17688         undocumented m4_PACKAGE_VERSION, for consistency with the
17689         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
17690         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
17691         was introduced in 2.62.
17693 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
17695         New 'c-*printf' modules for formatted output in C locale.
17697         New module 'c-vasnprintf'.
17698         * modules/c-vasnprintf: New file.
17699         * lib/c-vasnprintf.c: New file.
17700         * lib/c-vasnprintf.h: New file.
17702         New module 'c-snprintf'.
17703         * modules/c-snprintf: New file.
17704         * modules/c-snprintf-tests: New file.
17705         * lib/c-snprintf.c: New file.
17706         * lib/c-snprintf.h: New file.
17707         * tests/test-c-snprintf.c: New file.
17708         * tests/test-c-snprintf.sh: New file.
17710         New module 'c-vsnprintf'.
17711         * modules/c-vsnprintf: New file.
17712         * modules/c-vsnprintf-tests: New file.
17713         * lib/c-vsnprintf.c: New file.
17714         * lib/c-vsnprintf.h: New file.
17715         * tests/test-c-vsnprintf.c: New file.
17716         * tests/test-c-vsnprintf.sh: New file.
17718         New module 'c-vasprintf'.
17719         * modules/c-vasprintf: New file.
17720         * modules/c-vasprintf-tests: New file.
17721         * lib/c-asprintf.c: New file.
17722         * lib/c-vasprintf.c: New file.
17723         * lib/c-vasprintf.h: New file.
17724         * tests/test-c-vasprintf.c  +: New file.
17725         * tests/test-c-vasprintf.sh: New file.
17727         New module 'c-xvasprintf'.
17728         * modules/c-xvasprintf: New file.
17729         * modules/c-xvasprintf-tests: New file.
17730         * lib/c-xasprintf.c: New file.
17731         * lib/c-xvasprintf.c: New file.
17732         * lib/c-xvasprintf.h: New file.
17733         * tests/test-c-xvasprintf.c: New file.
17734         * tests/test-c-xvasprintf.sh: New file.
17736 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17738         argp: better 'inline'
17739         Use extern-inline module to declare extern inline functions.
17740         This avoids some bogus warning diagnostics.  Problem discovered
17741         when modifying GNU tar to use the manywarnings module.
17742         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
17743         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
17744         Define based on extern-inline.
17745         * modules/argp (Depends-on): Add extern-inline.
17747 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17749         filemode, sys_stat: Handle MPX files a la AIX.
17750         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
17751         * lib/sys_stat.in.h (S_ISMPX): New macro.
17752         * tests/test-sys_stat.c: Add tests for MPX files.
17754 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17756         x-to-1: honor $PERL
17757         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
17758         a chance to use his preferred version of Perl.  This is typically
17759         required by Darwin users whose default /usr/bin/perl does not have all
17760         the libraries required by help2man, and who need to use their MacPorts
17761         installation of Perl instead.
17763 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
17765         gnu-web-doc-update: add all the new files, even in new directories
17766         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
17767         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
17768         Use it.
17769         (main): Don't use cvsutils to get the list of unknown files,
17770         just add all the existing files and directories.
17772 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
17774         gnu-web-doc-update: improve --help
17775         * build-aux/gnu-web-doc-update: Move comments into --help.
17777 2012-12-07  Eric Wong  <normalperson@yhbt.net>
17779         mountlist: recognize more "dummy" file systems
17780         * lib/mountlist.c (ME_DUMMY_0):
17781         Add these dummy FS names to the list:
17782         - "debugfs" virtual filesystem for kernel debugging
17783         - "devpts" PTY slave filesystem
17784         - "devtmpfs" device filesystem on top of tmpfs/ramfs
17785         - "fusectl" control filesystem for FUSE
17786         - "mqueue" enumerates POSIX message queues
17787         - "rpc_pipefs" kernel <-> userspace bridge for NFS
17788         - "sysfs" is for exporting kernel objects
17789         - "devfs" device filesystem for Linux 2.4 and FreeBSD
17791 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
17793         extern-inline: avoid incompatibility with Darwin Libc
17794         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
17795         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
17796         Problem reported by Akim Demaille in
17797         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
17799 2012-12-11  Simon Josefsson  <simon@josefsson.org>
17801         gnupload: Work with GnuPG using gpg-agent (for smartcards).
17802         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
17803         let it handle password prompting.
17805 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
17807         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
17808         * lib/canonicalize.c (canonicalize_filename_mode):
17809         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
17810         fetching the current directory.  Don't overrun the beginning of
17811         rpath if there's no slashes after the MS-Windows drive letter.
17813 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
17815         maint.mk: avoid extra forks
17816         * top/maint.mk (_cfg_mk): The GNU make manual documents that
17817         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
17818         So use that instead of "$(shell test -f FILE && echo FILE)".
17820 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17822         vasnprintf: fix ASCII_ONLY typo
17823         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
17824         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
17825         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
17826         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
17827         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
17829 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
17831         list, oset, xlist, xoset: fix extern inline issue with C99
17832         This was introduced by my recent changes for 'inline'.
17833         Problem reported for gettext by Daiki Ueno in
17834         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
17835         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
17836         (gl_list_nx_create, gl_list_size, gl_list_node_value)
17837         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
17838         (gl_list_previous_node, gl_list_get_at)
17839         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
17840         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
17841         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
17842         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
17843         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
17844         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
17845         (gl_list_iterator_free, gl_sortedlist_search)
17846         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
17847         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
17848         (gl_sortedlist_remove):
17849         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
17850         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
17851         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
17852         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
17853         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
17854         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
17855         (gl_list_add_at, gl_sortedlist_add):
17856         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
17857         Wrap these extern decls inside "#if 0", because they are implemented
17858         as inline functions, and extern inline is not what's wanted here.
17859         It would simplify these .h files to remove the extern decls entirely,
17860         although a downside would be less-clear separation between
17861         specification and implementation.
17863 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
17865         sys_stat: no 'static inline'
17866         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
17867         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
17869         extern-inline: no 'static inline'
17870         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
17871         Do not require AC_C_INLINE.
17872         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
17873         'static inline', for older compilers.
17875         snippet/warn-on-use: no 'static inline'
17876         * build-aux/snippet/warn-on-use.h:
17877         Remove unnecessary 'inline' in comment.
17879         rbtree-list, rbtreehash-list: no 'static inline'
17880         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
17881         * lib/gl_anytree_list2.h (node_at):
17882         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
17883         (gl_oset_first, add_nodes_to_buckets):
17884         Now static, not static inline.
17886         regex: no 'static inline'
17887         * lib/regex_internal.c (calc_state_hash):
17888         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
17889         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
17890         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
17891         Now static, not static inline.
17892         (inline) [__GNUC__ < 3 && _LIBC]:
17893         Remove macro; no longer needed.
17895         xvasprintf: no 'static inline'
17896         * lib/xvasprintf.c (xstrcat):
17897         Now static, not static inline.
17898         * m4/xvasprintf.m4 (gl_XVASPRINTF):
17899         Do not require AC_C_INLINE.
17901         parse-datetime, parse-duration: no 'static inline'
17902         * lib/parse-datetime.y (to_uchar):
17903         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
17904         (scale_n_add):
17905         Now static, not static inline.
17906         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
17907         * modules/parse-duration (configure.ac):
17908         Do not require AC_C_INLINE.
17910         getaddrinfo: no 'static inline'
17911         * lib/getaddrinfo.c (validate_family):
17912         Now static, not static inline.
17913         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
17914         Do not require AC_C_INLINE.
17916         ftruncate, fts, lstat, openat, raise: no 'static inline'
17917         * lib/ftruncate.c (chsize_nothrow):
17918         * lib/fts.c (opendirat, diropen):
17919         * lib/lstat.c (orig_lstat):
17920         * lib/openat.c (orig_openat):
17921         * lib/raise.c (raise_nothrow):
17922         Now static, not static inline.
17923         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
17924         * m4/fts.m4 (gl_FUNC_FTS_CORE):
17925         * m4/lstat.m4 (gl_PREREQ_LSTAT):
17926         * m4/openat.m4 (gl_PREREQ_OPENAT):
17927         * m4/raise.m4 (gl_PREREQ_RAISE):
17928         Do not require AC_C_INLINE.
17930         fflush, stat: no 'static inline'
17931         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17932         (clear_ungetc_buffer, disable_seek_optimization)
17933         (restore_seek_optimization, update_fpos_cache):
17934         * lib/stat.c (orig_stat):
17935         Now static, not static inline.
17936         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
17937         (update_fpos_cache):
17938         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
17939         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
17940         * m4/stat.m4 (gl_PREREQ_STAT):
17941         Do not require AC_C_INLINE.
17943         error, filevercmp: no 'static inline'
17944         * lib/error.c (is_open, flush_stdout):
17945         * lib/filevercmp.c (order):
17946         Now static, not static inline.
17947         * m4/error.m4 (gl_PREREQ_ERROR):
17948         * modules/filevercmp (configure.ac):
17949         Do not require AC_C_INLINE.
17951         dup, execute, fatal-signal, etc.: no 'static inline'
17952         * lib/dup.c (dup_nothrow):
17953         * lib/execute.c (nonintr_close, nonintr_open):
17954         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
17955         * lib/fopen.c (orig_fopen):
17956         * lib/freadseek.c (freadptrinc):
17957         * lib/freopen.c (orig_freopen):
17958         * lib/fstat.c (orig_fstat, fstat_nothrow):
17959         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
17960         (get_rusage_as_via_iterator):
17961         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
17962         * lib/getdtablesize.c (_setmaxstdio_nothrow):
17963         * lib/isatty.c (_isatty_nothrow):
17964         * lib/open.c (orig_open):
17965         * lib/read.c (read_nothrow):
17966         * lib/sigprocmask.c (signal_nothrow):
17967         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
17968         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
17969         * lib/wait-process.c (unregister_slave_subprocess):
17970         * lib/write.c (write_nothrow):
17971         Now static, not static inline.
17972         * lib/spawn-pipe.c (nonintr_open): Define only if
17973         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
17974         * m4/dup.m4 (gl_PREREQ_DUP):
17975         * m4/execute.m4 (gl_EXECUTE):
17976         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
17977         * m4/fopen.m4 (gl_PREREQ_FOPEN):
17978         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
17979         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
17980         * m4/fstat.m4 (gl_PREREQ_FSTAT):
17981         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
17982         * m4/isatty.m4 (gl_PREREQ_ISATTY):
17983         * m4/open.m4 (gl_PREREQ_OPEN):
17984         * m4/read.m4 (gl_PREREQ_READ):
17985         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
17986         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
17987         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
17988         * m4/wait-process.m4 (gl_WAIT_PROCESS):
17989         * m4/write.m4 (gl_PREREQ_WRITE):
17990         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
17991         Do not require AC_C_INLINE.
17993         c-strtod, memcoll, readutmp: no 'static inline'
17994         * lib/c-strtod.c (c_locale):
17995         * lib/memcoll.c (strcoll_loop):
17996         * lib/readutmp.c (desirable_utmp_entry):
17997         Now static, not static inline.
17998         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
17999         * m4/memcoll.m4 (gl_MEMCOLL):
18000         * m4/readutmp.m4 (gl_READUTMP):
18001         Do not require AC_C_INLINE.
18003         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
18004         * lib/arctwo.c (to_uchar):
18005         * lib/md4.c (set_uint32):
18006         * lib/md5.c (set_uint32):
18007         * lib/sha1.c (set_uint32):
18008         * lib/sha256.c (set_uint32):
18009         * lib/sha512.c (set_uint64):
18010         Now static, not static inline.  This is a bit simpler, and doesn't
18011         affect performance with GCC and default optimization.
18012         * m4/arctwo.m4 (gl_ARCTWO):
18013         * m4/md4.m4 (gl_MD4):
18014         * m4/md5.m4 (gl_MD5):
18015         * m4/sha1.m4 (gl_SHA1):
18016         * m4/sha256.m4 (gl_SHA256):
18017         * m4/sha512.m4 (gl_SHA512):
18018         Do not require AC_C_INLINE.
18020         cond, lock, thread: better 'inline'
18021         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
18022         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
18023         New macros.  Use them instead of static inline, for header functions.
18024         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
18025         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
18026         * lib/glthread/lock.c (gl_waitqueue_init)
18027         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
18028         * lib/glthread/thread.c (get_current_thread_handle):
18029         Change 'static inline' to 'inline'.
18030         * lib/glthread/cond.h, lib/glthread/thread.h:
18031         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18032         * m4/cond.m4 (gl_COND):
18033         * m4/lock.m4 (gl_PREREQ_LOCK):
18034         * m4/thread.m4 (gl_THREAD):
18035         Do not require AC_C_INLINE.
18036         * modules/cond, modules/thread (Depends-on): Add extern-inline.
18038         chdir-long, cycle-check, savewd: better 'inline'
18039         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
18040         (find_non_slash):
18041         * lib/cycle-check.c (is_zero_or_power_of_two):
18042         * lib/savewd.c (savewd_delegating):
18043         Change 'static inline' to 'inline'.
18044         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
18045         Replace all remaining uses of 'static inline' with it.
18046         * lib/savewd.h:
18047         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18048         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
18049         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
18050         * m4/savewd.m4 (gl_SAVEWD):
18051         Do not require AC_C_INLINE.
18052         * modules/savewd (Depends-on): Add extern-inline.
18054         base32, base64: no need for 'inline'
18055         * lib/base32.c (to_uchar, get_8, decode_8):
18056         * lib/base64.c (to_uchar, get_4, decode_4):
18057         Change 'static inline' to 'inline'.
18058         * m4/base32.m4 (gl_PREREQ_BASE32):
18059         * m4/base64.m4 (gl_PREREQ_BASE64):
18060         Do not require AC_C_INLINE.
18062         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
18063         * lib/gl_array_oset.c (gl_array_nx_add_at):
18064         (gl_array_remove_at):
18065         * lib/gl_linkedhash_list.c (hash_resize_after_add)
18066         (add_to_bucket, remove_from_bucket):
18067         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
18068         Change 'static inline' to 'static', as it's simpler to omit
18069         'inline' unless there's a significant performance advantage.
18071         list, oset, xlist, xoset, xsublist: simplify via extern inline
18072         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
18073         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
18074         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
18075         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
18076         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
18077         New macro.  Replace all uses of 'static inline' with it.
18078         [HAVE_INLINE]: Implement functions as *_INLINE functions,
18079         instead of as macros FOO that are defined to static inline
18080         functions FOO_inline.
18081         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
18082         * lib/gl_xsublist.c:
18083         Reimplement from scratch, by defining the corresponding *_INLINE
18084         macro and including the corresponding .h file.  This is simpler.
18085         * modules/list, modules/oset, modules/xlist, modules/xoset:
18086         (Files): Remove m4/gl_list.m4.
18087         (configure.ac): Remove gl_LIST.
18088         * m4/gl_list.m4: Remove.
18089         * modules/list, modules/oset, modules/xlist, modules/xoset:
18090         * modules/xsublist:
18091         (Depends-on): Depend on extern-inline, not inline.
18093         xalloc: better 'inline'
18094         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
18095         New macro.  Replace all uses of 'static inline' with it.
18096         (static_inline): Remove.
18097         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
18098         Let 'extern inline' do the work automatically, instead of doing
18099         it by hand.
18100         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
18101         Remove.  All uses removed.
18102         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
18104         gethrxtime: better 'inline'
18105         * lib/xtime.c: New file.
18106         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
18107         * lib/xtime.h (XTIME_INCLUDE):
18108         New macros.  Replace all uses of 'static inline' with them.
18109         * lib/gethrxtime.c (gethrxtime): Define only if
18110         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
18111         this source file is now always compiled, because of the extern inline.
18112         * lib/gethrxtime.h, lib/xtime.h:
18113         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18114         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
18115         if gethrtime works, as they're not needed in that case.
18116         (gl_XTIME): Do not require AC_C_INLINE.
18117         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
18118         compiled now.  Move the check into gl_GETHRXTIME.
18119         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
18120         (Depends-on): Add extern-inline.
18121         (configure.ac): gethrxtime is always compiled now.
18122         (lib_SOURCES): Add gethrxtime.c.
18124         wctype-h: better 'inline'
18125         * lib/wctype-h.c: New file.
18126         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
18127         New macro.  Replace all uses of 'static inline' with it.
18128         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18129         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
18130         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
18131         (Depends-on): Add extern-inline.
18133         unistd: better 'inline'
18134         * lib/unistd.c: New file.
18135         * lib/unistd.in.h (_GL_UNISTD_INLINE):
18136         New macro.  Replace all uses of 'static inline' with it.
18137         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18138         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
18139         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
18140         (Depends-on): Add extern-inline.
18142         sys_socket: better 'inline'
18143         * lib/sys_socket.c: New file.
18144         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
18145         New macro.  Replace all uses of 'static inline' with it.
18146         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18147         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
18148         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
18149         (Depends-on): Add extern-inline.
18151         stdio: better 'inline'
18152         * lib/stdio.c: New file.
18153         * lib/stdio.in.h (_GL_STDIO_INLINE):
18154         New macro.  Replace all uses of 'static inline' with it.
18155         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18156         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
18157         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
18158         (Depends-on): Add extern-inline.
18160         sigaction: better 'inline'
18161         * lib/sig-handler.c: New file.
18162         * lib/sig-handler.h (SIG_HANDLER_INLINE):
18163         New macro.  Replace all uses of 'static inline' with it.
18164         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18165         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
18166         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
18167         (Depends-on): Add extern-inline.
18169         selinux-h: better 'inline'
18170         * lib/se-context.c, lib/se-selinux.c: New files.
18171         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
18172         * lib/se-context.in.h (SE_CONTEXT_INLINE):
18173         New macro.  Replace all uses of 'static inline' with it.
18174         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18175         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
18176         New macro.  Replace all uses of 'static inline' with it.
18177         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18178         * modules/selinux-h (Files, lib_SOURCES):
18179         Add lib/se-context.c, lib/se-selinux.c.
18180         (Depends-on): Add extern-inline.
18181         (configure.ac): Do not require AC_C_INLINE.
18183         pthread: better 'inline'
18184         * lib/pthread.c: New file.
18185         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
18186         New macro.  Replace all uses of 'static inline' with it.
18187         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18188         * m4/pthread.m4 (gl_PTHREAD_CHECK):
18189         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
18190         * modules/pthread (Files): Add lib/pthread.c.
18191         (Depends-on): Add extern-inline.
18193         math: better 'inline'
18194         * lib/math.c: New file.
18195         * lib/math.in.h (_GL_MATH_INLINE):
18196         New macro.  Replace all uses of 'static inline' with it.
18197         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18198         * m4/math_h.m4 (gl_MATH_H):
18199         Do not require AC_C_INLINE.
18200         * modules/math (Files, lib_SOURCES):
18201         Add lib/math.c.
18202         (Depends-on): Add extern-inline.
18204         count-one-bits: better 'inline'
18205         * lib/count-one-bits.c: New file.
18206         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
18207         New macro.  Replace all uses of 'static inline' with it.
18208         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18209         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
18210         Do not require AC_C_INLINE.
18211         * modules/count-one-bits (Files, lib_SOURCES):
18212         Add lib/count-one-bits.c.
18213         (Depends-on): Add extern-inline.
18215         count-leading-zeros: better 'inline'
18216         * lib/count-leading-zeros.c: New file.
18217         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
18218         New macro.  Replace all uses of 'static inline' with it.
18219         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18220         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
18221         Do not require AC_C_INLINE.
18222         * modules/count-leading-zeros (Files, lib_SOURCES):
18223         Add lib/count-leading-zeros.c.
18224         (Depends-on): Add extern-inline.
18226         bitrotate: better 'inline'
18227         * lib/bitrotate.c: New file.
18228         * lib/bitrotate.h (BITROTATE_INLINE):
18229         New macros.
18230         Replace all uses of 'static inline' with them.
18231         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18232         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
18233         (Depends-on): Add extern-inline.
18234         (configure.ac): Do not require AC_C_INLINE.
18236 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
18238         maint.mk: avoid gratuitous failure
18239         Reported by Stefano Lattarini in
18240         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
18241         * top/maint.mk (public-submodule-commit): Quote more safely.
18243 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
18245         canonicalize, canonicalize-lgpl: support MS-Windows file names
18246         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
18247         for test cases, which it'd be nice to add at some point.
18248         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
18249         * lib/canonicalize.c (canonicalize_filename_mode):
18250         * lib/canonicalize-lgpl.c (__realpath):
18251         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
18252         slash is at the beginning of the file name.  Use ISSLASH, instead
18253         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
18254         the first character with '/'.  Test for
18255         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
18256         with a drive letter.
18257         * lib/canonicalize.c (SLASHES): New macro.
18258         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
18260 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
18262         fts: introduce FTS_VERBATIM
18263         * lib/fts_.h (FTS_VERBATIM): New bit flag.
18264         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
18265         * lib/fts.c (fts_open): Honor it.
18267 2012-11-09  Pádraig Brady  <P@draigBrady.com>
18269         getlogin-tests: allow errno == ENXIO
18270         * tests/test-getlogin.c (main): Skip tests if getlogin fails
18271         with errno == ENXIO (No controlling tty).
18272         getlogin_r-tests: Likewise. Also allow errno == ENOENT
18273         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
18274         with errno == ENOENT.  This was reported to happen in various
18275         situations on GNU/Linux.
18277 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
18279         getlogin-tests: allow errno == ENOENT
18280         * tests/test-getlogin.c (main): Skip tests if getlogin fails
18281         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
18282         when running a test in an Emacs shell buffer.
18284 2012-11-08  Jim Meyering  <jim@meyering.net>
18286         tests/nap.h: avoid warning about unused variable
18287         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
18289         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
18290         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
18291         white space before each of the special-cased file names, to avoid
18292         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
18293         in http://bugs.gnu.org/12830.
18295 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18297         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
18298         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
18299         fails with errno == EBADF when fd is opened with O_PATH.
18300         Reported by Jim Meyering in
18301         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
18302         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
18303         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
18305 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18307         test-utimens: speed up by taking shorter naps
18308         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
18309         New functions.
18310         (nap): Use them, to do a better job of guessing the delay.
18311         On Fedora 17 with ext4 atop md atop hard disks, this made
18312         test-utimens run 10x faster, because the test napped for
18313         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
18314         <http://bugs.gnu.org/12820#11>.
18316 2012-11-07  Jim Meyering  <jim@meyering.net>
18318         mountlist.c: fix a compilation failure
18319         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
18320         I introduced while transforming commit v0.0-7683-g613bcb6
18322 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18324         errno: port to LynxOS 178 2.2.2
18325         Problem reported by Joel Brobecker in
18326         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
18327         * doc/posix-headers/errno.texi (errno.h): Document this.
18328         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
18329         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
18330         Supply a string for EILSEQ.
18331         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
18333 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18335         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
18336         Linux kernel 2.6.39 introduced O_PATH (see
18337         <http://lwn.net/Articles/433854/>) and this is a better fallback
18338         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
18339         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
18340         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
18341         * lib/fcntl.in.h (O_ACCMODE):
18342         * tests/test-fcntl-h.c (main):
18343         Do not reject O_ACCMODE merely because it has more than the
18344         minimal number of bits, as POSIX allows extensions here.
18346 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
18348         mountlist: do not classify a bind-mounted dir entry as "dummy"
18349         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
18350         the "none"-testing clause.
18351         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
18352         exception for bind-mounted directories.
18354 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
18356         quote: provide a means to escape strings with nul characters
18357         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
18358         (quote, quote_n): Rename formal arguments for consistency with
18359         quotearg.
18361 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18363         test-raise: don't assume 199 is an invalid signal
18364         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
18366         sh-quote-tests: port to Solaris 9
18367         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
18368         Problem reported by Dagobert Michelsen in
18369         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
18371 2012-10-28  Jim Meyering  <jim@meyering.net>
18373         maint.mk: rename a new configurable variable
18374         * top/maint.mk (_gl_translatable_string_re): Rename from
18375         translation-markers: _gl_ prefix to insulate from user Makefile code,
18376         and the _re suffix to inform that it's a regular expression.
18378 2012-10-26  Eric Blake  <eblake@redhat.com>
18380         maint.mk: let packages tweak sc_po_check pattern
18381         * top/maint.mk (sc_po_check): Add translation-markers, to allow
18382         finding files with other translation markers.
18384 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18386         euidaccess: speed up 'configure' on GNU hosts
18387         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
18388         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
18389         it's needed only in this case.  Use AC_CHECK_DECLS, not
18390         AC_CHECK_DECLS_ONCE.
18391         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
18392         or AC_REQUIRE for AC_FUNC_GETGROUPS.
18394         * lib/regexec.c (re_search_internal): Fix grammar in comment.
18396 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
18398         fchmodat, fchownat, fstatat: port to non-inlining compilers
18399         Problem reported for FreeBSD 9 by Jim Meyering in
18400         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
18401         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
18402         New files, which define FCHMODAT_INLINE etc.
18403         * lib/fchmodat.c (FCHMODAT_INLINE):
18404         * lib/fchownat.c (FCHOWNAT_INLINE):
18405         * lib/fstatat.c (FSTATAT_INLINE):
18406         Remove, as chmodat.c etc. now do this.
18407         * modules/fchmodat (Files): Add lib/chmodat.c.
18408         * modules/fchownat (Files): Add lib/chownat.c.
18409         * modules/fstatat (Files): Add lib/statat.c.
18411 2012-10-15  Jim Meyering  <jim@meyering.net>
18413         fchmodat.c, fchownat.c: compile-impeding typos
18414         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
18415         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
18416         Introduced in commit v0.0-7636-gd202279.
18418 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
18420         fcntl-h: support GNU flags like O_IGNORE_CTTY
18421         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
18422         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
18423         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
18424         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
18425         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
18426         Define to 0 if not already defined.
18427         * tests/test-fcntl-h.c: Test these new flags.
18429 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18431         faccessat, etc.: support AT_FDCWD-only use
18432         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
18433         this function only if its first argument is AT_FDCWD.
18434         Emacs wants faccessat for AT_EACCESS but not for any first-arg
18435         values other than AT_FDCWD, so it doesn't want all the openat
18436         machinery with fchdir etc.
18437         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
18438         * modules/fstatat, modules/mkdirat, modules/openat (Files):
18439         * modules/unlinkat (Files):
18440         Remove lib/openat-priv.h, as at-internal supplies this file.
18441         Removing this file here allows us to support programs like Emacs
18442         that avoid at-internal.
18444         faccessat: speed up 'configure' on mainstream hosts
18445         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
18446         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
18447         since it's only on unusual platforms that we need to check for
18448         'access', and it's better not to slow 'configure' down on all
18449         platforms.
18451         faccessat: port to Solaris 10
18452         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
18453         Needed on Solaris 10, which doesn't have AT_EACCESS,
18454         so we need the Gnulib fcntl.h, which defines it.
18456 2012-10-14  Pádraig Brady  <P@draigBrady.com>
18457         canonicalize: fix C89 compilation
18458         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
18459         declarations so C89 is supported.  Also remove the comment
18460         referencing memorty allocation as the suggested feature could
18461         not be implemented as suggested.
18462         Reported by Michael Goffioul.
18464 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18466         group-member: omit unnecessary dependencies
18467         This is for Emacs, which has its own allocator and where we
18468         don't want to use xalloc.
18469         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
18470         since we no longer use xmalloc.  Do not include stdbool.h, since
18471         the changes below happen to remove the only use of bool.
18472         (GROUPBUF_SIZE): New constant.
18473         (struct group_info): Remove n_groups member.  Add groupbuf member.
18474         This lets us get the groups without using malloc, usually.
18475         (free_group_info, get_group_info): Adjust to this.
18476         (get_group_info): Return the number of groups found, or -1 on error.
18477         Use plain malloc not xmalloc, and treat its failure as if there
18478         are no groups, as the user already loses in case of error.
18479         (group_member): Simplify, based on changes to get_group_info.
18480         * modules/group-member (Depends-on): Remove dependencies on
18481         xalloc and stdbool.  Add dependency on xalloc-oversized.
18483 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
18485         gethrxtime: port to C++
18486         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
18488 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
18490         ptsname: fix macro-name typo
18491         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
18493 2012-10-03  Simon Josefsson  <simon@josefsson.org>
18495         inttostr: Relax license.
18496         * modules/inttostr (License): Change from LGPL to LGPLv2+.
18498 2012-10-03  Eric Blake  <eblake@redhat.com>
18500         ptsname_r: support ptys returned by FreeBSD posix_openpt
18501         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
18502         lives in /dev/pts/.
18504 2012-10-02  Eric Blake  <eblake@redhat.com>
18506         pselect: reject invalid file descriptors
18507         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
18508         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
18509         * modules/pselect (Depends-on): Add dup2.
18510         * doc/posix-functions/pselect.texi (pselect): Document this.
18512         select: reject invalid file descriptors
18513         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
18514         * lib/select.c (rpl_select) [!win32]: Work around it.
18515         * modules/select (Depends-on): Add dup2.
18516         * doc/posix-functions/select.texi (select): Document this.
18518         select: enhance test
18519         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
18520         New functions.
18521         (test_function): Enhance test.
18522         (do_select_bad_fd): Avoid any stale errno values.
18524         ptsname: reject invalid file descriptors
18525         http://www.austingroupbugs.net/view.php?id=503
18526         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
18527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
18528         * modules/stdlib (Makefile.am): Replace witness.
18529         * lib/stdlib.in.h (ptsname): Allow for replacement.
18530         * modules/ptsname (configure.ac): Trigger replacement.
18531         * doc/posix-functions/ptsname.texi (ptsname): Document this.
18533 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
18535         hash-pjw-bare: new module
18536         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
18537         * lib/hash-pjw-bare.h: Likewise.
18538         * modules/hash-pjw-bare: New file.
18539         * MODULES.html.sh (Misc): Add it.
18541 2012-10-02  Eric Blake  <eblake@redhat.com>
18543         manywarnings: cater to more gcc infelicities
18544         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
18545         -Wuninitialized without -O.
18547 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
18549         select, poll tests: Make setsockopt invocation effective.
18550         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
18551         the bind() call.
18552         * tests/test-select.h (open_server_socket): Likewise.
18554 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
18556         sockets, sys_stat: restore AC_C_INLINE
18557         This undoes the 2012-09-22 patch.
18558         * m4/sockets.m4 (gl_SOCKETS):
18559         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
18560         Restore AC_C_INLINE, since MSVC requires __inline or _inline
18561         and does not support plain 'inline'.  Reported by Bruno Haible in
18562         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
18564 2012-09-30  Bruno Haible  <bruno@clisp.org>
18566         localeconv tests: Avoid test failure on OpenIndiana.
18567         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
18568         skip the 'grouping' and 'mon_grouping' tests.
18569         Reported by Jim Meyering.
18571 2012-09-30  Bruno Haible  <bruno@clisp.org>
18573         havelib: Follow libtool developments.
18574         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
18575         Suggested by Simon Josefsson.
18577 2012-09-29  Jim Meyering  <meyering@redhat.com>
18579         fstatat.c: fix a compile-impeding typo
18580         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
18581         Introduced in commit v0.0-7636-gd202279.
18582         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
18584 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
18586         extern-inline: provide a -Wundef safe config.h
18587         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
18588         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
18589         to produce a -Wundef warning free config.h.
18591 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18593         hash-pjw: relax license to LGPLv2+
18594         * modules/hash-pjw (License): Relax, with consent of author.
18596 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
18598         maint.mk: fix strict vs. lazy variable issues with RELEASE
18599         * top/maint.mk (_equal): New function.
18600         (member_check): Strip the result to avoid spurious spaces.
18601         (url_dir_list): Do not use ifeq, which is strict, as it will
18602         require RELEASE_TYPE to be defined.
18603         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
18604         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
18605         (announcement_Cc_alpha,announcement_mail_headers_alpha)
18606         (announcement_Cc_beta,announcement_mail_headers_beta)
18607         (announcement_Cc_stable,announcement_mail_headers_stable): these.
18608         (release): Do not depend on $(release-type), as it forces its
18609         evaluation.  Bounce to it.
18611 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
18613         maint.mk: formatting changes
18614         * top/maint.mk: Indent bodies of if's.
18616 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
18618         maint.mk: factor the validation of RELEASE_TYPE
18619         With help from Jim Meyering.
18620         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
18621         * top/maint.mk (_empty, _sp): Move their definition earlier.
18622         (member-check, release-type): New.
18623         Use the latter instead of $(RELEASE_TYPE).
18624         Remove now useless local checks.
18626 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
18628         maint.mk: provide "make upload" to ease uploading
18629         See
18630         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
18631         Do not depend simply on the current $(VERSION), as there may have been
18632         new commits since the tarball generation.  Rather, rely on $(RELEASE),
18633         as "make release-commit" already does.
18635         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
18636         "make TYPE".
18638         * top/maint.mk (upload_command, upload, release): New.
18639         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
18640         (VERSION): first word of $(RELEASE) is always right.
18641         (emit_upload_commands): Adjust.
18642         * top/README-release: Update.
18644 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
18646         maint.mk: silent rules
18647         With help from Stefano Lattarini.
18648         * top/maint.mk (writable-files): Use $(AM_V_GEN).
18649         (announcement): Use $(AM_V_at).
18651 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
18653         localename: port gl_locale_name_thread_unsafe to FreeBSD
18654         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
18655         and use the simpler FreeBSD implementation on Mac OS X as well.
18656         Original idea suggested by Ed Maste in
18657         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
18659 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18661         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
18662         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
18663         * lib/mbuiter.c, lib/xsize.c: New files.
18664         * lib/binary-io.h (BINARY_IO_INLINE):
18665         * lib/eealloc.h (EEALLOC_INLINE):
18666         * lib/mbfile.h (MBFILE_INLINE):
18667         * lib/mbiter.h (MBITER_INLINE):
18668         * lib/mbuiter.h (MBUITER_INLINE):
18669         * lib/xsize.h (XSIZE_INLINE):
18670         New macros.
18671         Replace all uses of 'static inline' with them.
18672         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18673         * m4/eealloc.m4 (gl_EEALLOC):
18674         * m4/mbfile.m4 (gl_MBFILE):
18675         * m4/mbiter.m4 (gl_MBITER):
18676         * m4/xsize.m4 (gl_XSIZE):
18677         Do not require AC_C_INLINE.
18678         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
18679         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
18680         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
18681         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
18682         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
18683         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
18684         * modules/binary-io, modules/eealloc, modules/mbfile:
18685         * modules/mbiter, modules/mbuiter:
18686         (Depends-on): Add extern-inline.
18688         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
18689         * lib/pipe-filter-aux.c: New file.
18690         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
18691         Replace all uses of 'static inline' with it.
18692         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18693         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
18694         (filter_retcode): No real need for inline here.
18695         * modules/pipe-filter-gi, modules/pipe-filter-ii:
18696         (Files): Add lib/pipe-filter-aux.c.
18697         (Depends-on): Add extern-inline.
18698         (configure.ac): Do not require AC_C_INLINE.
18699         (lib_SOURCES): Add pipe-filter-aux.c.
18701         fdutimensat: omit unnecessary AC_C_INLINE
18702         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
18704         fchmodat, fchownat, fstatat: use extern-inline
18705         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
18706         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
18707         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
18708         New macros.
18709         * lib/openat.h:
18710         Replace all uses of 'static inline' with them.
18711         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18712         * modules/fchmodat, modules/fchownat, modules/fstatat:
18713         * modules/openat-h:
18714         (Depends-on):
18715         Add extern-inline.
18716         (configure.ac): Remove AC_C_INLINE.
18718         acl, mbchar, priv-set: use extern-inline
18719         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
18720         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
18721         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
18722         New macros.
18723         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
18724         Replace all uses of 'static inline' with it.
18725         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18726         * m4/acl.m4 (gl_FUNC_ACL):
18727         * m4/mbchar.m4 (gl_MBCHAR):
18728         * m4/priv-set.m4 (gl_PRIV_SET):
18729         Remove AC_C_INLINE, since 'inline' is no longer used directly.
18730         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
18731         Add extern-inline.
18733         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
18734         * m4/sockets.m4 (gl_SOCKETS):
18735         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
18736         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
18737         environments where it's already guaranteed to work, so we needn't
18738         check for it at 'configure'-time.
18740         tls-tests: omit unnecessary 'inline'
18741         * tests/test-tls.c (perhaps_yield): No longer inline.
18742         Simplicity and portability trump efficiency in test cases.
18744         utimens-tests: avoid unnecessary 'inline'
18745         * modules/fdutimensat-tests (configure.ac):
18746         * modules/futimens-tests (configure.ac):
18747         * modules/utimens-tests (configure.ac):
18748         * modules/utimensat-tests (configure.ac):
18749         Remove AC_C_INLINE.
18750         * tests/test-utimens-common.h (ctime_compare):
18751         No longer inline.  Simplicity and portability trump efficiency here.
18753         misc: don't limit commentary to inline functions
18754         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
18755         * lib/xalloc-oversized.h, lib/xsize.h:
18756         Contrast macros to functions in general, not just to inline functions,
18757         when the commentary does not apply only to inline functions.
18759 2012-09-20  Jim Meyering  <meyering@redhat.com>
18761         non-recursive-gnulib-prefix-hack: new module
18762         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
18763         the file that originated in Bison.
18764         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
18765         largely copied from a snippet that resided in bison's configure.ac.
18766         * modules/non-recursive-gnulib-prefix-hack: New file.
18767         * MODULES.html.sh (Support for maintaining and releasing projects):
18768         Add it.
18770 2012-09-18  Jim Meyering  <meyering@redhat.com>
18772         maint.mk: generalize _gl_tight_scope for non-recursive make
18773         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
18774         that *.h would describe additional .h files in the directory
18775         specified by $(_gl_TS_dir).  I.e., add this...
18776         (_gl_TS_other_headers): New variable.
18778         maint.mk: exempt trailing blanks found in "binary" files
18779         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
18780         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
18781         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18783 2012-09-17  Jim Meyering  <meyering@redhat.com>
18785         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
18786         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
18787         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
18788         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18790 2012-09-17  Jim Meyering  <meyering@redhat.com>
18792         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
18793         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
18794         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
18795         It is not in the same category as "exit (0)" or "exit (1)", and
18796         besides, I know of no symbolic name for that 77.  Reported by
18797         Richard W.M. Jones in
18798         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18800 2012-09-17  Jim Meyering  <meyering@redhat.com>
18802         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
18803         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
18804         all uses of #define, not just those that start in column 1.
18805         Richard W.M. Jones reported a false positive in
18806         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18808 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18810         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
18811         * lib/localcharset.c (locale_charset) [DARWIN7]:
18812         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
18813         as these two values are incompatible.  Problem reported by Max Horn.
18814         For more discussion, please see
18815         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
18817         doc: document sticky-EOF issue
18818         * doc/posix-functions/fgetc.texi (fgetc):
18819         * doc/posix-functions/fgets.texi (fgets):
18820         * doc/posix-functions/fread.texi (fread):
18821         * doc/posix-functions/fscanf.texi (fscanf):
18822         * doc/posix-functions/getc.texi (getc):
18823         * doc/posix-functions/getchar.texi (getchar):
18824         * doc/posix-functions/scanf.texi (scanf):
18825         Mention that glibc and default Solaris do not conform to
18826         C99 and POSIX-2001 or later, with respect to how getchar
18827         etc. behave when feof reports nonzero.
18829 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
18831         poll: fix poll(0, NULL, msec)
18832         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
18833         but nfd is 0.  In that case poll should behave like select.
18835 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
18836             Paolo Bonzini  <bonzini@gnu.org>
18838         poll: fix for systems that can't recv() on a non-socket
18839         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
18840         is readable.  In this case POLLHUP will not be supported.
18841         * doc/posix-functions/poll.texi: Document this.
18843 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
18845         poll/select: document portability problems not fixed by Gnulib.
18846         * doc/posix-functions/poll.texi: poll does not work well on
18847         pipes under Windows.  It has the same limitations as select on
18848         BeOS.
18849         * doc/posix-functions/select.texi: select does not work well
18850         on pipes under Windows.
18852 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18854         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
18855         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
18856         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
18857         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
18859 2012-09-06  Eric Blake  <eblake@redhat.com>
18861         net_if: give more details about the bug being fixed
18862         * doc/posix-headers/net_if.texi: Add clarification.
18864 2012-09-05  Eric Blake  <eblake@redhat.com>
18866         net_if: new module
18867         * modules/net_if: New module, borrowing ideas from netinet_in.
18868         * m4/net_if_h.m4: New file.
18869         * lib/net_if.in.h: Likewise.
18870         * doc/posix-headers/net_if.texi (net/if.h): Document it.
18871         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18872         * tests/test-net_if.c: Make function checks conditional.
18873         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
18875 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18877         readutmp: fix non-portable UT_PID use
18878         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
18879         Use `UT_PID (u) > 0' as absolute condition.
18881 2012-09-04  Jim Meyering  <meyering@redhat.com>
18883         fts: reduce two or more trailing spaces to just one, usually
18884         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
18885         or more slashes, trim all but the final one.  But if a name consists
18886         solely of two slashes, don't modify it.  If it consists solely of
18887         three or more slashes, strip all but one.
18889         This is part of the solution to a minor problem with rm:
18890         it would print a bogus ELOOP diagnostic when failing to remove
18891         the slash-decorated name of a symlink-to-directory:
18893             $ mkdir d && ln -s d s && env rm -r s/
18894             rm: cannot remove 's': Too many levels of symbolic links
18896         With the change below and a trivial don't-trim-trailing-slashes
18897         adjustment to remove.c, it does this:
18899             $ env rm -r s/
18900             rm: cannot remove 's/': Not a directory
18902         Improved by: Eric Blake
18904         fts: when there is no risk of overlap, use memcpy, not memmove
18905         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
18907 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18909         stdbool: be more compatible with mixed C/C++ compiles
18910         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
18911         Define to bool, true, false, respectively, as GCC's builtin
18912         stdbool.h does.  Problem reported by Michael Goffioul in
18913         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
18915 2012-08-28  Jim Meyering  <meyering@redhat.com>
18917         revert last change: it was not needed
18918         * tests/test-vc-list-files-git.sh: There's already a test for
18919         a working git, just below.
18921 2012-08-28  Jim Meyering  <meyering@redhat.com>
18923         tests: test-vc-list-files-git.sh: skip if git is not available
18924         * tests/test-vc-list-files-git.sh: Skip this test when git is
18925         not available.
18927 2012-08-26  Bruno Haible  <bruno@clisp.org>
18929         gnulib-tool: Remove no-op option --no-changelog.
18930         * gnulib-tool (func_usage): Don't mention --no-changelog.
18931         (do_changelog): Remove variable.
18932         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18934 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18936         doc: remove fdl-1.2.texi
18937         It is no longer used or maintained, and its use of @acronym
18938         is problematic.  See the thread containing
18939         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
18940         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
18941         * doc/old-licenses/fdl-1.2.texi: Remove.
18943         execinfo: port to FreeBSD
18944         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
18945         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
18946         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
18947         * modules/execinfo (Link): Add $(LIB_EXECINFO).
18949 2012-08-23  Jim Meyering  <meyering@redhat.com>
18951         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
18952         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
18953         to placate gcc's -Wold-style-declaration.
18955 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18957         doc: do not use @acronym
18958         * doc/inet_ntoa.texi (inet_ntoa):
18959         * doc/parse-datetime.texi (Seconds since the Epoch)
18960         (Specifying time zone rules):
18961         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
18962         Don't use @acronym.  Problem reported by John Darlington in
18963         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
18965 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18967         stdnoreturn: port to newer GCCs
18968         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
18969         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
18970         Problem reported by Jim Meyering in
18971         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
18972         Also, rename the 'test' function to a void a clash with the
18973         already-supplied 'main' function; this fixes a bug that incorrectly
18974         rejected GCC 4.7.1's <stdnoreturn.h>.
18975         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
18976         Document GCC problem.
18978 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
18980         pipe-filter: fix comment typo
18981         * lib/pipe-filter.h: Mention correct function.
18983 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18985         execinfo: new module
18986         This is for Emacs.  Currently, it provides a no-effect stub
18987         on all platforms where it does not already work.
18988         It already works on glibc-based systems, and on Solaris 11.
18989         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
18990         New files.
18991         * doc/glibc-headers/execinfo.texi (execinfo.h):
18992         * MODULES.html.sh (Misc): Document it.
18994 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18996         extern-inline: support old GCC 'inline'
18997         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
18998         if available.  This applies to GCC versions 2.7 through 4.2, or
18999         when newer GCC is using -fgnu89-inline.  The goal is to address
19000         some of the performance issues mentioned by Bruno Haible in
19001         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
19003 2012-08-20  Eric Blake  <eblake@redhat.com>
19005         maint.mk: avoid redundant file name in message
19006         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
19007         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
19008         (sc_makefile_path_separator_check): Remove bogus $(ME).
19010 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
19012         timer-time: fix link order when static linking on glibc
19013         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
19014         _after_ -lrt so that it's significant.
19016 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19018         timespec: omit unnecessary AC_C_INLINE
19019         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
19021         stat-time: omit unnecessary AC_C_INLINE
19022         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
19023         Do not require AC_C_INLINE.
19025         ignore-value: omit unnecessary AC_C_INLINE
19026         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
19028         sys_select: avoid 'static inline'
19029         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
19031         mktime: avoid 'static inline'
19032         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
19033         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
19035 2012-08-19  Bruno Haible  <bruno@clisp.org>
19037         gnulib-tool: Improve coding style.
19038         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
19039         func_emit_lib_Makefile_am.
19040         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19042 2012-08-19  Bruno Haible  <bruno@clisp.org>
19044         gnulib-tool: Fix indentation.
19045         * gnulib-tool (func_import): Fix indentation.
19047 2012-08-19  Bruno Haible  <bruno@clisp.org>
19049         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
19050         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
19051         on the list of removed files.
19053 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19055         test-parse-datetime: avoid glibc leap-second glitch
19056         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
19057         with the 2012 rules.  Problem reported by Bruce Dubbs in
19058         <http://bugs.gnu.org/12206>.
19060 2012-08-14  Bruno Haible  <bruno@clisp.org>
19062         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
19063         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
19064         from argument.
19065         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19067 2012-08-14  Eric Blake  <eblake@redhat.com>
19069         ldexp: relax license
19070         * modules/ldexp (License): Trivial relax, since the module only
19071         provides a permissively licensed m4 file.
19073 2012-08-13  Bruno Haible  <bruno@clisp.org>
19075         gnulib-tool: Fix persistence of --witness-c-macro option.
19076         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
19077         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19079 2012-08-11  Eric Blake  <eblake@redhat.com>
19081         count-leading-zeros: use a lookup table on non-gcc compilers
19082         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
19083         alternate implementation, suggested by Jim Meyering.
19085 2012-08-10  Eric Blake  <eblake@redhat.com>
19087         count-leading-zeros: new module
19088         * modules/count-leading-zeros: New module.
19089         * m4/count-leading-zeros.m4: New file.
19090         * lib/count-leading-zeros.h: Likewise.
19091         * modules/count-leading-zeros-tests: New test.
19092         * tests/test-count-leading-zeros.c: New file.
19093         * MODULES.html.sh (Integer arithmetic functions): Document it.
19095 2012-08-07  Simon Josefsson  <simon@josefsson.org>
19096             Jim Meyering  <meyering@redhat.com>
19098         maintainer-makefile: Fix syntax error with dash.
19099         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
19100         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
19102 2012-08-05  Jim Meyering  <meyering@redhat.com>
19104         extern-inline: also ignore -Wmissing-declarations
19105         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
19106         required with gcc-4.8.0-to-be.
19108         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
19109         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
19110         for /error ?([^,]*)/.  This avoids false-positives for strings like
19111         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
19113 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
19115         gnumakefile: better interaction with Automake-NG
19116         * modules/gnumakefile [Makefile.am]: The makefiles generated by
19117         Automake-NG always contain a definition of VPATH, even in non-VPATH
19118         builds (its value being simply '.' in that case).  So, in the
19119         'clean-GNUmakefile' rule, to determine whether running under a
19120         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
19121         '$(VPATH)' expands to the empty string.
19123 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
19125         base64: Use extern C scope in header file, for C++.
19126         * lib/base64.h: Add C++ namespace protection.
19128 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
19130         stat-time, timespec, u64: support naive out-of-dir builds
19131         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
19132         Use '#include "foo.h"', not '#include <foo.h>', when including
19133         one's own interface.  This works better when configuring with
19134         out-of-directory builds, since packages need not add an
19135         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
19137 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
19139         utimens: use extern-inline
19140         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
19141         * lib/utimens.h: Add copyright notice, since this is now large enough
19142         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19143         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
19144         * modules/utimens (Depends-on): Add extern-inline.
19146         u64: use extern-inline
19147         * lib/u64.c: New file.
19148         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19149         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
19150         * modules/u64 (Files): Add lib/u64.c.
19151         (Depends-on): Add extern-inline.
19152         (configure.ac): No need to require AC_C_INLINE, since extern-inline
19153         does that now.
19154         (lib_SOURCES): Add u64.c.
19156         timespec: use extern-inline
19157         * lib/timespec.c: New file.
19158         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19159         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
19160         * modules/timespec (Files): Add lib/timespec.c.
19161         (Depends-on): Add extern-inline.
19162         (lib_SOURCES): Add timespec.c.
19164         stat-time: use extern-inline
19165         * lib/stat-time.c: New file.
19166         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19167         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
19168         * modules/stat-time (Files): Add lib/stat-time.c.
19169         (Depends-on): Add extern-inline.
19170         (lib_SOURCES): Add stat-time.c.
19172         extern-inline: new module
19173         * modules/extern-inline, m4/extern-inline.m4: New files.
19174         This is for better support of 'extern inline' a la ISO C99,
19175         with a portable alternative on compilers that do not support
19176         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
19177         of the Emacs executable, when compiled with debugging disabled,
19178         which is a typical way that Emacs is built while developing.
19180 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
19182         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
19183         * build-aux/do-release-commit-and-tag: Move variable definitions
19184         together.
19185         ($branch): Instead of defaulting to "master", default to the current
19186         branch (as gnu-web-doc-update does).
19187         (help): Display the current values of the option arguments.
19188         * top/maint.mk (release-commit): New.
19189         * top/README-release: Simplify the corresponding step.
19191 2012-07-30  Eric Blake  <eblake@redhat.com>
19193         passfd: fix comment on recvfd
19194         * lib/passfd.c (recvfd): Fix comment.
19195         Reported by Jann Horn <jannhorn@googlemail.com>.
19197 2012-07-30  Jim Meyering  <meyering@redhat.com>
19199         maint.mk: avoid a sub-shell
19200         * top/maint.mk (release-prep): Remove unneeded sub-shell.
19202 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19204         maint.mk: use silent-rules support from Automake
19205         * top/maint.mk (news-check, vc-diff-check, announcement)
19206         (no-submodule-changes, alpha beta stable, release-prep)
19207         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
19209 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19211         maint.mk: provide a web-manual-update target
19212         * top/maint.mk: here.
19213         * top/README-release: Use it to simplify the web manual update step.
19215 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19217         README-release: shorten the circuit to post a news
19218         * top/README-release: Point directly to the news submission form.
19220 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19222         gnu-web-doc-update: fix --help
19223         * build-aux/gnu-web-doc-update: The information "top level" was written
19224         twice.
19226 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19228         maint.mk: absolute VPATH issue
19229         * top/maint.mk (release-prep): Help Git find .git/.
19230         From Jim Meyering.
19232 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19234         gitlog-to-changelog: fix previous change
19235         * build-aux/gitlog-to-changelog: Fix condition.
19236         Add missing ";".
19238 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19240         gitlog-to-changelog: don't expect .git to be in $srcdir
19241         Reported by Bruno Haible.
19242         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
19243         * build-aux/gitlog-to-changelog (&git_dir_option): New.
19244         Use it.
19246 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19248         maint.mk: absolute VPATH build fix
19249         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
19250         $(srcdir) is not a parent of $(builddir).
19252 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
19254         clean-temp: Fix memory leak.
19255         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
19256         'files' members of tmpdir.
19258 2012-07-27  Jim Meyering  <meyering@redhat.com>
19260         maint.mk: new rule: refresh-gnulib-patches
19261         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
19262         Use this rule to refresh them.
19263         * top/maint.mk (refresh-gnulib-patches): New rule.
19265 2012-07-24  Bruno Haible  <bruno@clisp.org>
19267         gnulib-tool: Fix handling of inctests variable.
19268         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
19269         Reported by Nick Bowler <nbowler@elliptictech.com>.
19271 2012-07-22  Bruno Haible  <bruno@clisp.org>
19273         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
19274         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
19275         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
19276         Remove exemption for getpass.h.
19277         Suggested by Eric Blake.
19279 2012-07-20  Eric Blake  <eblake@redhat.com>
19281         verify: document conflict with -Wnested-externs
19282         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
19284         maint.mk: forbid exit(-1)
19285         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
19287 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
19289         fsusage: port back to Solaris
19290         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
19291         error (fsd not declared) on Solaris 10.  Reported privately by
19292         Andrew Borodin.
19294 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
19296         gnu-web-doc-update: fix error messages
19297         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
19299         gnu-web-doc-update: check the requirements.
19300         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
19301         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
19302         * build-aux/bootstrap (find_tool): Comment change.
19304 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
19306         maint.mk: minor simplication.
19307         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
19308         for default values.
19310 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
19312         gitlog-to-changelog: VPATH build issues
19313         If builddir is not a subdirectory of srcdir, running git from it will
19314         fail.
19315         * build-aux/gitlog-to-changelog (--srcdir): New option.
19317 2012-07-15  Bruno Haible  <bruno@clisp.org>
19319         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
19320         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
19321         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
19322         Remove exemption for fpending.h.
19323         Suggested by Eric Blake.
19325 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19327         pthread_sigmask: fix bug on FreeBSD 9
19328         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
19329         Include string.h.
19330         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
19331         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
19332         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
19333         but pthread_sigmask (1729, NULL, NULL) returns zero.
19334         See <http://bugs.gnu.org/11884>.
19335         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
19336         by inspecting whether the main call changed the old mask.
19338 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
19340         README-release: make it more legible
19341         * top/README-release: Improve typography slightly.
19343 2012-07-15  Jim Meyering  <meyering@redhat.com>
19345         maint: require that each sc_... command start with "@"
19346         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
19347         "make sc_maint" helps us avoid this nit.
19349 2012-07-15  Jim Meyering  <meyering@redhat.com>
19351         maint.mk: add leading "@" to quiet new "make syntax-check" rule
19352         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
19354 2012-07-13  Eric Blake  <eblake@redhat.com>
19356         maint.mk: new syntax check for HAVE_DECL checks
19357         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
19358         * cfg.mk
19359         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
19360         Exempt some false positives.
19361         Based on a report by Karel Zak.
19363         argp: make HAVE_DECL usage consistent
19364         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
19365         macros, not whether they are defined.
19366         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
19367         convention with other declaration checks.
19368         Reported by Karel Zak, with suggestions from Paul Eggert.
19370         stat-time: relax license to LGPLv2+
19371         * modules/stat-time (License): Relax, with consent of all authors.
19373         strndup: fix m4 usage error
19374         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
19375         defined, to either 0 or 1.
19376         Reported by Karel Zak.
19378 2012-07-11  Jim Meyering  <meyering@redhat.com>
19380         maint: enable the sc_avoid_if_before_free syntax-check rule
19381         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
19382         (if_before_free_offenders_): Define.
19383         (if_before_free_basename_re_): Define.
19384         Exempt current files with useless if-before-free.
19386 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
19388         gettext: do not assume '#define ... defined ...' behavior
19389         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
19390         Do not use '#define FOO ... defined BAR ...', as the C standard says
19391         it's not portable to expect that this works after macro expansion.
19392         Problem reported for gzip by Steven M. Schweda in
19393         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
19395 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19397         getloadavg: clean out old Emacs and Autoconf cruft
19398         See Glenn Morris in <http://bugs.gnu.org/11905>.
19399         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
19400         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
19401         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
19402         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
19404 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
19406         bootstrap: let warn be like tests/init.sh's warn_
19407         Reported by Jim Meyering.
19408         * build-aux/bootstrap (warn): Remove, replaced by...
19409         (warnf_, warn_): these.
19410         Adjust callers.
19411         Shorten messages that no longer fit in 80 columns.
19413 2012-07-09  Bruno Haible  <bruno@clisp.org>
19415         getopt: Simplify after Emacs changed.
19416         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
19417         (gl_GETOPT_IFELSE): Remove macro.
19419 2012-07-09  Jim Meyering  <meyering@redhat.com>
19421         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
19422         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
19424         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
19425         Bugs in both of those conspired to make the
19426         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
19427         _sc_search_regexp's handling of non-empty $in_files would filter
19428         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
19429         choice of in_files value meant there would be no match in most
19430         projects, due to the presence of two or more Makefile.in files.
19431         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
19432         Fix a bug in how a non-empty $$in_files was processed:
19433         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
19434         in spite of the name, it's a regexp, not a list of file names.
19436 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
19438         getloadavg, getopt: fix commentary re configure.in
19439         Autoconf is deprecating the name 'configure.in', so change it to
19440         to the new name 'configure.ac' in a couple of places.
19441         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
19442         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
19443         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
19444         Emacs has renamed it to configure.ac, and it no longer refers
19445         to these macros anyway.
19447         timespec: mark functions with const attributes
19448         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
19449         Mark with _GL_ATTRIBUTE_CONST.
19451 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
19453         canonicalize[-lgpl]: handle "guessing" values when cross-building
19454         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19455         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
19456         matches "*yes" instead of just "yes".  Regression introduced in commit
19457         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
19459 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
19460             Bruno Haible  <bruno@clisp.org>
19462         canonicalize: make the right guess when cross-compiling to GNU
19463         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
19464         determine whether cross-compiling to glibc systems, so as to
19465         include GNU/Hurd.
19467 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19469         timespec-sub: avoid duplicate include
19470         * lib/timespec-sub.c: Do not include <config.h> twice.
19471         Reported by Juanma Barranquero.
19473 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
19475         bootstrap: use a more consistent error reporting scheme
19476         * build-aux/bootstrap (warn, die): New.
19477         Use them.
19479 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19481         sys_time: allow too-wide tv_sec
19482         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
19483         timeval even if tv_sec is wider than time_t.  This allows
19484         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
19485         as without this patch gnulib replaces struct timeval
19486         and OpenBSD futimes therefore has a type mismatch.
19487         * doc/posix-headers/sys_time.texi: Mention this.
19489         pthread: check for both pthread_create and pthread_join
19490         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
19491         alter the check so that it tests for both pthread_create and
19492         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
19493         Suggested by Bruno Haible and Richard Yao in
19494         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
19496         parse-datetime: doc tuneup
19497         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
19498         spacing issues.
19500 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
19502         do-release-commit-and-tag: fix the previous commit
19503         * build-aux/do-release-commit-and-tag: Actually the test was right,
19504         but the comment and the error message were misleading.
19505         Fix comment, and improve error message.
19506         Perform check first, so that NEWS is not modified uselessly.
19508         do-release-commit-and-tag: fix typo
19509         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
19510         _not_ start with a stub.
19512 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
19514         pthread: check for pthread_create, not pthread_join
19515         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
19516         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
19517         pthread_join in libc.  I hope this removes the need for all the
19518         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
19519         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
19521 2012-07-04  Jim Meyering  <meyering@redhat.com>
19523         parse-datetime: fix failure to diagnose invalid input
19524         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
19525         rather than diagnosing the invalid input.  Now it reports this:
19526         date: invalid date '\260'
19527         * lib/parse-datetime.y (to_uchar): Define.
19528         (yylex): Don't sign-extend "other" bytes.
19529         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
19530         Thanks to Bruno Haible for the patch to this file.
19531         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
19532         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
19534 2012-07-03  Jim Meyering  <meyering@redhat.com>
19536         bootstrap: do not require now-removed build-aux/missing
19537         Now that build-aux/missing is, er, missing, bootstrap would
19538         silently fail.
19539         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
19540         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
19541         no longer part of gnulib.
19542         Diagnose the failure.
19544 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19546         alloca: add support for HP NonStop TNS/E native
19547         * lib/alloca.in.h (alloca): Support the new host.
19548         From a suggestion by Joachim Schmitz in
19549         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
19551 2012-07-02  Pádraig Brady  <P@draigBrady.com>
19553         fsusage: remove code not needed on non GNU/Linux systems.
19555         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
19556         Don't include headers no longer needed in this case.
19557         * lib/fsusage.c [STAT_STATVFS &&
19558         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
19559         STAT_STATFS2_FRSIZE to exclude code not used in this case.
19561 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
19563         fsusage: include files needed for glibc 2.6 fallback
19564         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
19565         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
19566         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
19567         Problem reported by Ludovic Courtès in
19568         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
19570         fsusage: avoid needless check on GNU/Linux
19571         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
19572         on GNU/Linux systems, since it can't possibly work.
19574 2012-07-01  Bruno Haible  <bruno@clisp.org>
19576         log: Fix an autoconf >= 2.64 warning.
19577         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
19578         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
19580 2012-06-28  Bruno Haible  <bruno@clisp.org>
19582         log10f: Fix possible configuration problem.
19583         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
19584         $LOGF_LIBM.
19585         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
19587 2012-06-28  Bruno Haible  <bruno@clisp.org>
19589         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
19590         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
19591         not gl_cv_func_unlink_works.
19592         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
19594 2012-06-27  Eric Blake  <eblake@redhat.com>
19596         config: drop scripts that automake says are not independent
19597         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
19598         * build-aux/elisp-comp: Delete.
19599         * build-aux/missing: Likewise.
19600         * build-aux/ylwrap: Likewise.
19601         * modules/elisp-comp: Likewise.
19602         * MODULES.html.sh: Drop mention of elisp-comp.
19603         * NEWS: Mention this.
19605 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
19607         root-uid: new module
19608         This is for portability to Tandem's NonStop Kernel.
19609         * lib/root-uid.h, modules/root-uid: New files.
19610         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
19611         * lib/write-any-file.c, tests/test-sethostname2.c:
19612         Include "root-uid.h".
19613         * lib/euidaccess.c (euidaccess):
19614         * lib/pt_chown.c (main):
19615         * lib/unlinkdir.c (cannot_unlink_dir):
19616         * lib/write-any-file.c (can_write_any_file):
19617         * m4/mknod.m4 (gl_FUNC_MKNOD):
19618         * tests/test-sethostname2.c (geteuid, main):
19619         Don't assume ROOT_UID == 0.
19620         * modules/euidaccess (Depends-on):
19621         * modules/pt_chown (Depends-on):
19622         * modules/sethostname-tests (Depends-on):
19623         * modules/unlinkdir (Depends-on):
19624         * modules/write-any-file (Depends-on):
19625         Add root-uid.
19627         regex: use locale-independent comparison for codeset name
19628         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
19629         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
19630         for codeset name.
19631         * lib/regex_internal.h: Do not include <strings.h>, since we
19632         no longer use strcasecmp.
19633         * modules/regex (Depends-on): Remove strcase.
19635 2012-06-23  Bruno Haible  <bruno@clisp.org>
19637         getopt-posix: No longer guarantee that option processing is resettable.
19638         * doc/posix-functions/getopt.texi: Drop description of problem with
19639         internal state. Fix info about mingw and msvc9.
19640         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
19641         option processing by getopt(). Run three test programs instead of one.
19642         Simplify cross-compilation guess.
19643         * NEWS: Mention the change.
19644         Reported by Rich Felker <dalias@aerifal.cx>.
19646 2012-06-26  Bruno Haible  <bruno@clisp.org>
19648         argp, regex: Ensure strcasecmp gets declared.
19649         * lib/argp-help.c: Include <strings.h>.
19650         * lib/regex_internal.h: Likewise.
19651         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
19653 2012-06-24  Bruno Haible  <bruno@clisp.org>
19655         ptsname_r: Make it consistent with ptsname on AIX.
19656         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
19657         implementation as for OSF/1.
19658         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
19659         a pty master.
19661         ptsname_r: Make it consistent with ptsname on OSF/1.
19662         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
19663         OSF/1.
19665 2012-06-24  Bruno Haible  <bruno@clisp.org>
19667         ttyname_r: Fix result on OSF/1, Solaris.
19668         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
19670 2012-06-24  Bruno Haible  <bruno@clisp.org>
19672         ptsname_r: Add support for Solaris.
19673         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
19674         Solaris.
19676         ptsname_r: Fix test failure on native Windows.
19677         * modules/ptsname_r (Depends-on): Add isatty.
19679         ptsname_r: Fix test failures on IRIX, Solaris.
19680         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
19681         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
19682         accordingly.
19683         * lib/ptsname_r.c: Include <fcntl.h>.
19684         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
19685         set errno if fd is invalid.
19686         * tests/test-isatty.c (main): Update comments.
19688 2012-06-24  Bruno Haible  <bruno@clisp.org>
19690         ptsname test: Extend test.
19691         * tests/test-ptsname.c: Include <errno.h>.
19692         (main): Test behaviour with invalid file descriptor.
19694 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19696         time: fix obsolete comment
19697         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
19698         reference to HAVE_STRUCT_TIMESPEC in comment.
19700 2012-06-23  Bruno Haible  <bruno@clisp.org>
19702         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
19703         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
19704         does not handle abbreviated long options with equivalent
19705         disambiguations, set gl_replace_getopt to yes.
19706         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
19708 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
19710         time_r: fix typo that always overrode localtime_r decl
19711         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
19712         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
19713         not in a standard include.
19715 2012-06-22  Bruno Haible  <bruno@clisp.org>
19717         Write "Mac OS X" instead of "MacOS X".
19718         * README: Write "Mac OS X" instead of "MacOS X".
19719         * build-aux/bootstrap: Likewise.
19720         * build-aux/install-reloc: Likewise.
19721         * lib/acl-internal.h: Likewise.
19722         * lib/acl_entries.c: Likewise.
19723         * lib/argp-ba.c: Likewise.
19724         * lib/argp-pv.c: Likewise.
19725         * lib/config.charset: Likewise.
19726         * lib/copy-acl.c: Likewise.
19727         * lib/csharpexec.c: Likewise.
19728         * lib/euidaccess.c: Likewise.
19729         * lib/fbufmode.c: Likewise.
19730         * lib/fflush.c: Likewise.
19731         * lib/file-has-acl.c: Likewise.
19732         * lib/filemode.h: Likewise.
19733         * lib/fpurge.c: Likewise.
19734         * lib/freadable.c: Likewise.
19735         * lib/freadahead.c: Likewise.
19736         * lib/freading.c: Likewise.
19737         * lib/freadptr.c: Likewise.
19738         * lib/freadseek.c: Likewise.
19739         * lib/fseeko.c: Likewise.
19740         * lib/fseterr.c: Likewise.
19741         * lib/fsusage.c: Likewise.
19742         * lib/fwritable.c: Likewise.
19743         * lib/fwriting.c: Likewise.
19744         * lib/get-rusage-as.c: Likewise.
19745         * lib/get-rusage-data.c: Likewise.
19746         * lib/getdomainname.c: Likewise.
19747         * lib/idpriv-drop.c: Likewise.
19748         * lib/idpriv-droptemp.c: Likewise.
19749         * lib/localcharset.c: Likewise.
19750         * lib/locale.in.h: Likewise.
19751         * lib/localename.c: Likewise.
19752         * lib/mbsrtowcs-state.c: Likewise.
19753         * lib/nproc.c: Likewise.
19754         * lib/passfd.c: Likewise.
19755         * lib/posix_openpt.c: Likewise.
19756         * lib/printf-parse.c: Likewise.
19757         * lib/progreloc.c: Likewise.
19758         * lib/safe-read.h: Likewise.
19759         * lib/safe-write.h: Likewise.
19760         * lib/sched.in.h: Likewise.
19761         * lib/set-mode-acl.c: Likewise.
19762         * lib/signal.in.h: Likewise.
19763         * lib/stdint.in.h: Likewise.
19764         * lib/stdio-impl.h: Likewise.
19765         * lib/stdlib.in.h: Likewise.
19766         * lib/strtod.c: Likewise.
19767         * lib/sys_select.in.h: Likewise.
19768         * lib/tcgetsid.c: Likewise.
19769         * lib/unistd.in.h: Likewise.
19770         * lib/unlockpt.c: Likewise.
19771         * lib/vasnprintf.c: Likewise.
19772         * lib/vma-iter.c: Likewise.
19773         * lib/wcsrtombs-state.c: Likewise.
19774         * m4/acl.m4: Likewise.
19775         * m4/acosl.m4: Likewise.
19776         * m4/asinl.m4: Likewise.
19777         * m4/atanl.m4: Likewise.
19778         * m4/c-stack.m4: Likewise.
19779         * m4/cosl.m4: Likewise.
19780         * m4/expl.m4: Likewise.
19781         * m4/extensions.m4: Likewise.
19782         * m4/fdatasync.m4: Likewise.
19783         * m4/fmal.m4: Likewise.
19784         * m4/frexp.m4: Likewise.
19785         * m4/frexpf.m4: Likewise.
19786         * m4/frexpl.m4: Likewise.
19787         * m4/fsusage.m4: Likewise.
19788         * m4/getdomainname.m4: Likewise.
19789         * m4/getloadavg.m4: Likewise.
19790         * m4/getopt.m4: Likewise.
19791         * m4/gettext.m4: Likewise.
19792         * m4/gnulib-common.m4: Likewise.
19793         * m4/intdiv0.m4: Likewise.
19794         * m4/intlmacosx.m4: Likewise.
19795         * m4/largefile.m4: Likewise.
19796         * m4/ldexpl.m4: Likewise.
19797         * m4/link-follow.m4: Likewise.
19798         * m4/locale-ar.m4: Likewise.
19799         * m4/locale-fr.m4: Likewise.
19800         * m4/locale-ja.m4: Likewise.
19801         * m4/locale-tr.m4: Likewise.
19802         * m4/locale-zh.m4: Likewise.
19803         * m4/locale_h.m4: Likewise.
19804         * m4/lock.m4: Likewise.
19805         * m4/logl.m4: Likewise.
19806         * m4/mathfunc.m4: Likewise.
19807         * m4/minus-zero.m4: Likewise.
19808         * m4/mktime.m4: Likewise.
19809         * m4/mmap-anon.m4: Likewise.
19810         * m4/multiarch.m4: Likewise.
19811         * m4/nanosleep.m4: Likewise.
19812         * m4/nocrash.m4: Likewise.
19813         * m4/poll.m4: Likewise.
19814         * m4/printf-frexpl.m4: Likewise.
19815         * m4/printf.m4: Likewise.
19816         * m4/signbit.m4: Likewise.
19817         * m4/sinl.m4: Likewise.
19818         * m4/sqrtl.m4: Likewise.
19819         * m4/strerror_r.m4: Likewise.
19820         * m4/tanl.m4: Likewise.
19821         * m4/threadlib.m4: Likewise.
19822         * m4/ttyname_r.m4: Likewise.
19823         * m4/unlink.m4: Likewise.
19824         * m4/visibility.m4: Likewise.
19825         * m4/wcwidth.m4: Likewise.
19826         * tests/minus-zero.h: Likewise.
19827         * tests/test-alloca-opt.c: Likewise.
19828         * tests/test-copy-acl.sh: Likewise.
19829         * tests/test-copy-file.sh: Likewise.
19830         * tests/test-fdatasync.c: Likewise.
19831         * tests/test-file-has-acl.sh: Likewise.
19832         * tests/test-flock.c: Likewise.
19833         * tests/test-fsync.c: Likewise.
19834         * tests/test-localename.c: Likewise.
19835         * tests/test-malloca.c: Likewise.
19836         * tests/test-nonblocking-pipe.h: Likewise.
19837         * tests/test-nonblocking-socket.h: Likewise.
19838         * tests/test-openpty.c: Likewise.
19839         * tests/test-posix_openpt.c: Likewise.
19840         * tests/test-ptsname.c: Likewise.
19841         * tests/test-ptsname_r.c: Likewise.
19842         * tests/test-sameacls.c: Likewise.
19843         * tests/test-select.h: Likewise.
19844         * tests/test-set-mode-acl.sh: Likewise.
19845         * tests/test-snprintf-posix.h: Likewise.
19846         * tests/test-sprintf-posix.h: Likewise.
19847         * tests/test-strtod.c: Likewise.
19848         * tests/test-time.c: Likewise.
19849         * tests/test-vasnprintf-posix.c: Likewise.
19850         * tests/test-vasprintf-posix.c: Likewise.
19851         * doc/acl-resources.txt: Likewise.
19852         * doc/**/*.texi: Likewise.
19853         Reported by Max Horn <max@quendi.de>.
19855 2012-06-22  Bruno Haible  <bruno@clisp.org>
19857         grantpt: Relax requirement regarding invalid file descriptors.
19858         * lib/grantpt.c: Don't include <fcntl.h>.
19859         (grantpt): Don't verify the validity of the file descriptor.
19860         * modules/grantpt (Depends-on): Remove fcntl-h.
19861         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
19862         file descriptors.
19863         * doc/posix-functions/grantpt.texi: Document more platforms on which
19864         grantpt succeeds for invalid file descriptors.
19865         Reported by Rich Felker <dalias@aerifal.cx>.
19867 2012-06-22  Bruno Haible  <bruno@clisp.org>
19869         fbufmode test: Don't test unportable behaviour.
19870         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
19871         (main): Invoke it three times.
19872         Reported by Szabolcs Nagy <nsz@port70.net>
19873         and Rich Felker <dalias@aerifal.cx>.
19875 2012-06-21  Bruno Haible  <bruno@clisp.org>
19877         gnulib-tool: Refactor inctests variable.
19878         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
19879         (func_modules_transitive_closure,
19880         func_modules_transitive_closure_separately,
19881         func_import, func_create_testdir): Update.
19883         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
19884         * gnulib-tool: Accept option --without-tests.
19885         (func_usage): Document --without-tests option. Rearrange.
19886         (inctests): Normalize according to the mode.
19887         * NEWS: Mention the change.
19888         Suggested by Simon Josefsson.
19890 2012-06-21  Bruce Korb  <bkorb@gnu.org>
19892         parse-duration test: Avoid spurious output.
19893         * tests/test-parse-duration.sh: Reindent with leading tabs.
19895 2012-06-21  Jim Meyering  <meyering@redhat.com>
19897         maint: disable the strncpy prohibition
19898         * cfg.mk: Do not prohibit strncpy here.
19900 2012-06-21  Bruno Haible  <bruno@clisp.org>
19902         nonblocking: Avoid compilation error on mingw64.
19903         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
19904         fscanf.
19905         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
19906         * modules/vfscanf (configure.ac): Likewise.
19907         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
19908         definition only if stdio.h has prepared it.
19909         Reported by Daniel P. Berrange <berrange@redhat.com>.
19911 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
19913         gnulib-tool: Use readlink if it is available.
19914         * gnulib-tool (func_readlink): Choose function more appropriately.
19916 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19918         posixtm-tests: port to buggy compiler
19919         Problem reported by Simon Josefsson in
19920         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
19921         * modules/posixtm-tests (Depends-on): Add stdint.
19922         * tests/test-posixtm.c (struct posixtm_test.t_expected):
19923         Now of type int_least64_t, not int64_t, both because that's
19924         what INT64_C returns and because int_least64_t works even
19925         on 72-bit hosts.
19926         (T): Use INT64_C on constants outside the traditional int range,
19927         to work around compiler bug noted by Simon.
19929         mktime: fix integer overflow in 'configure'-time test
19930         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
19931         after integer overflow.  Problem reported by Rich Felker in
19932         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
19933         Also, don't look for further instances of a bug if we've already
19934         found one instance; this helps 'configure' run faster.
19936 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
19938         tmpfile, clean-temp: Fix invocation of GetVersionEx.
19939         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
19940         GetVersionEx correctly.
19941         * lib/clean-temp.c (supports_delete_on_close): Likewise.
19943 2012-06-20  Bruno Haible  <bruno@clisp.org>
19945         fdopen: Allow implementations that don't reject invalid fd arguments.
19946         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
19947         succeeds.
19948         Reported by Rich Felker <dalias@aerifal.cx>.
19950 2012-06-20  Simon Josefsson  <simon@josefsson.org>
19952         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
19953         bring in LIBINTL.
19955 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19957         init.sh: do not rely on autoupated PWD
19958         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
19959         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
19960         Although Nelson's bug was not necessarily fixed by this patch,
19961         it seems wise to make the change for safety.
19962         * tests/init.sh (path_prepend_): Do not rely on PWD updating
19963         automagically after 'cd'; this is not reliable on older shells.
19964         (setup_): Fail if we cannot cd to temporary directory.
19966 2012-06-19  Bruno Haible  <bruno@clisp.org>
19968         stat, fstat: Avoid warnings on mingw64.
19969         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
19970         redefining.
19971         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
19972         Reported by Daniel P. Berrange <berrange@redhat.com>.
19974 2012-06-19  Bruno Haible  <bruno@clisp.org>
19976         stdioext: Add support for musl libc.
19978         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
19979         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
19981         * m4/fseterr.m4: New file.
19982         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
19983         function exists.
19984         * modules/fseterr (Files): Add m4/fseterr.m4.
19985         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
19986         __fseterr does not exist.
19987         (Makefile.am): Remove fseterr.c from lib_SOURCES.
19989         * lib/freadable.h: Update comment.
19991         * lib/fwritable.h: Update comment.
19993         * lib/freading.h: Update comment.
19995         * lib/fwriting.h: Update comment.
19997         * m4/freadahead.m4: New file.
19998         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
19999         that function exists.
20000         * modules/freadahead (Files): Add m4/freadahead.m4.
20001         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
20002         __freadahead does not exist.
20003         (Makefile.am): Remove freadahead.c from lib_SOURCES.
20005         * m4/freadptr.m4: New file.
20006         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
20007         function exists.
20008         * modules/freadptr (Files): Add m4/freadptr.m4.
20009         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
20010         __freadptr does not exist.
20011         (Makefile.am): Remove freadptr.c from lib_SOURCES.
20013         * m4/freadseek.m4: New file.
20014         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
20015         exists.
20016         * modules/freadseek (Files): Add m4/freadseek.m4.
20017         (configure.ac): Invoke gl_FUNC_FREADSEEK.
20019         * lib/fpurge.c (fpurge): Update comment.
20021         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
20023 2012-06-19  Bruno Haible  <bruno@clisp.org>
20025         *printf-posix: Put more info into config.log.
20026         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
20027         exit code into config.log.
20029 2012-06-19  Bruno Haible  <bruno@clisp.org>
20031         getopt-gnu: Fix exit code overflow in autoconf test.
20032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
20033         to keep them below < 128.
20035 2012-06-17  Jim Meyering  <meyering@redhat.com>
20037         maint.mk: fix typo in code to derive GPG key at release time
20038         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
20040 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
20042         regex: avoid warning when pointers are not long
20043         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
20044         and uintptr_t, not long, for portability to hosts where pointers and
20045         long have different sizes.  Issue noted by Daniel P. Berrange in
20046         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
20047         and fix suggested by Bruno Haible in
20048         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
20050 2012-06-17  Bruno Haible  <bruno@clisp.org>
20052         dummy: Relicense into the public domain.
20053         * modules/dummy (License): Set to "public domain".
20054         Suggested by Reuben Thomas.
20056 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
20058         announce-gen: VPATH issues
20059         * build-aux/announce-gen (--srcdir): New option, used to trim the
20060         $srcdir part of the path from $builddir to NEWS.
20061         * top/maint.mk (announcement): Adjust.
20063 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
20065         gnu-web-doc-update: VPATH builds
20066         * build-aux/gnu-web-doc-update (--builddir): New option.
20067         Revamp the handling of options.
20068         Prefer $(...) to `...`.
20069         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
20070         the template, and it is GNU mktemp specific.
20071         Prefer set -e to long series of &&.
20072         Restore the initial git branch, not "master".
20073         Properly initialize submodules (don't rely only on bootstrap).
20074         Do not reconfigure blindly, use config.status.
20075         * top/README-release: Update instructions for gnu-web-doc-update.
20077 2012-06-11  Jim Meyering  <meyering@redhat.com>
20079         maint.mk: revert most of the previous change re "all these"
20080         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
20081         For rationale, see the discussion at
20082         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
20084 2012-06-10  Karl Berry  <karl@gnu.org>
20086         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
20088         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
20090 2012-06-10  Bruce Korb  <bkorb@gnu.org>
20092         parse-duration: Relicense under LGPLv2+.
20093         * modules/parse-duration (License): Change to LGPLv2+.
20095 2012-06-10  Jim Meyering  <meyering@redhat.com>
20097         maint.mk: prohibit common grammar error: "all these"
20098         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
20099         the list of prohibited word sequences.  It should be "all of these".
20100         * lib/tempname.c (__gen_tempname): Fix one of them.
20102 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20104         do-release-commit-and-tag: support VPATH builds
20105         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
20106         (noteworthy): Defined earlier to factor its value.
20107         (noteworthy_stub): New.
20108         Use it to factor.
20109         (help_version): Split into...
20110         (help, version): these.
20111         Adjust the option processing part.
20112         Support "--option=value" in addition to "--option value".
20113         (builddir): New.
20114         (--builddir): New option.
20115         * top/README-release: Document this.
20116         Reword slightly so that the reader cannot understand that he
20117         has to do these steps before calling do-release-commit-and-tag.
20119 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20121         readme-release: also require announce-gen and maintainer-makefile
20122         * modules/readme-release (Depends-on): here.
20123         * modules/announce-gen, modules/do-release-commit-and-tag,
20124         modules/gnu-web-doc-update, modules/maintainer-makefile
20125         (Description): Point to readme-release.
20127 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20129         maint.mk: fix VPATH issues.
20130         * top/maint.mk (news-check): GNU Make understand $< very well.
20131         (release-prep): NEWS is in $(srcdir).
20133 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
20135         readme-release: require the promoted modules.
20136         * modules/readme-release (Depends-on): Add
20137         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
20138         in this text.
20140 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20141             Bruno Haible  <bruno@clisp.org>
20143         error, strerror-override: Support mingw64 from Fedora 17.
20144         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
20145         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
20146         EINPROGRESS.
20147         * lib/strerror-override.h (strerror_override): Test it.
20148         * lib/strerror-override.c (strerror_override): Likewise.
20149         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
20151 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20152             Bruno Haible  <bruno@clisp.org>
20154         error, strerror-override: Support mingw64 from Fedora 17.
20155         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
20156         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
20157         * lib/strerror-override.h (strerror_override): Test it.
20158         * lib/strerror-override.c (strerror_override): Likewise.
20160 2012-06-03  Bruno Haible  <bruno@clisp.org>
20162         error, strerror-override: Support new errno values from POSIX:2008.
20163         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
20164         ENOTRECOVERABLE.
20165         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
20166         platforms.
20167         * lib/strerror-override.c (strerror_override): Conditionalize the
20168         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
20169         * lib/strerror-override.h (strerror_override): Declare also if
20170         GNULIB_defined_EOWNERDEAD is defined.
20171         * tests/test-errno.c (e130, e131): New variables.
20172         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
20173         ENOTRECOVERABLE.
20174         Reported by Paolo Bonzini.
20176 2012-05-31  Jim Meyering  <meyering@redhat.com>
20178         savewd: add missing dependency on sys_wait module
20179         * modules/savewd (Depends-on): Add sys_wait, needed at least
20180         for MSVC.  Report and suggested change by Michael Goffioul.
20182 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20184         system-quote-tests: port to CentOS 5
20185         Problem reported by Tom G. Christensen in
20186         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
20187         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
20189 2012-05-29  Jim Meyering  <meyering@redhat.com>
20191         maint: fix typos in comments and ChangeLog
20192         Culprits identified and fixed mostly automatically using these commands:
20193         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
20194         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
20195         using http://github.com/lyda/misspell-check
20196         * ChangeLog: Fix typos.
20197         * doc/solaris-versions: Likewise.
20198         * lib/regexec.c (re_search_stub): Likewise.
20199         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20201 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20203         manywarnings: remove duplicate -Wmultichar entry
20204         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
20205         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
20206         so keep the entry marked as documented.
20208 2012-05-27  Karl Berry  <karl@gnu.org>
20210         * config/srclist.txt (mktime.c): remove last libc sync,
20211         perhaps just temporarily.
20213 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
20215         regex: don't assume uint64_t or uint32_t
20216         * lib/regcomp.c (init_word_char): Don't assume that the types
20217         uint64_t and uint32_t exist.  The C standard doesn't guarantee
20218         them, and on some 32-bit compilers there is no uint64_t.
20219         Problem reported by Gianluigi Tiesi in
20220         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
20222 2012-05-25  Jim Meyering  <meyering@redhat.com>
20224         maint.mk: add strncpy-prohibiting syntax-check rule
20225         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
20227 2012-05-24  Jim Meyering  <meyering@redhat.com>
20229         maint.mk: compute $(gpg_key_ID) more portably
20230         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
20231         That use of sed is not portable to some fringe systems.
20232         Reported by Paul Eggert in
20233         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
20235 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20237         mktime: sync from glibc
20238         * config/srclist.txt: Uncomment mktime.c.
20239         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
20240         First, indent with tabs, since glibc uses tabs and doesn't want to
20241         change and we'd rather be identical to glibc.  Also, two small
20242         coding changes:
20243         (isdst_differ): Use &&, not &, as && is the usual style.
20244         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
20245         for clarity.
20247 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20249         announce-gen: du -h is more portable than du --human
20250         * build-aux/announce-gen (sizes): Invoke du with -h instead
20251         of --human.  Accept leading white space in its output.
20253 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20255         announce-gen: Improve diagnostics.
20256         * build-aux/announce-gen: When parsing command line options,
20257         prefer "announce-gen: option --release-type requires an argument"
20258         to "Option release-type requires an argument".
20260 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20262         maint.mk: gpg_key_ID: use sed more portably
20263         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
20264         the closing brace.
20265         (refresh-po): Fuse two sed invocations into one.
20267 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
20269         gitlog-to-changelog: support the log message format used in Bison.
20270         * build-aux/gitlog-to-changelog: Support --strip-tab and
20271         --strip-cherry-picked.
20273 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20275         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
20276         the rest of the current time slice to another thread in the current
20277         process. So if the thread that feeds the file decscriptor we're
20278         polling is not in the current process, we get busy-waiting.
20279         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
20280         Patch from Theodore Leblond.
20281         * lib/select.c: Split polling out of the loop that sets the output
20282         fd_sets.  Check for zero result and loop if the wait timeout is
20283         infinite.
20285 2012-05-21  Simon Josefsson  <simon@josefsson.org>
20287         select: Fix build error on IRIX 6.5.
20288         * lib/select.c: Include stddef.h for NULL.
20290 2012-05-21  Simon Josefsson  <simon@josefsson.org>
20292         gc: fix libgcrypt detection on older machines.
20293         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
20294         copyright years because the file has been distributed every year
20295         since it was created.
20297 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
20299         crypto: fix bug in large buffer handling
20300         Problem reported by Serge Belyshev for glibc in
20301         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
20302         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
20303         * lib/md4.c (md4_process_block):
20304         * lib/md5.c (md5_process_block):
20305         * lib/sha1.c (sha1_process_block):
20306         * lib/sha256.c (sha256_process_block):
20307         Don't assume the buffer length is less than 2**32.
20308         * lib/sha512.c (sha512_process_block): Likewise.
20309         Here, the bug is present only in the rare case where the host does
20310         not support uint64_t or where size_t is wider than 64 bits.
20311         Use u64size to work around the problems.
20312         * lib/u64.h (u64size): New macro.
20314 2012-05-15  Pádraig Brady  <P@draigBrady.com>
20316         fsusage: fix block size returned on older Linux 2.6
20318         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
20319         which is available since Linux 2.6.
20320         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
20321         when the member is available so it can be used as a fallback.
20322         * doc/posix-functions/statvfs.texi: Mention the hang issue
20323         on Linux < 2.6.36.
20325 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20327         bootstrap: suppress stderr chatter
20328         * build-aux/bootstrap (insert_sorted_if_absent, main program):
20329         Omit unnecessary chatter to stderr.  The main program chatter
20330         was there only inadvertantly.
20332         bootstrap: .gitignore files created by autopoint, libtool
20333         I ran into this problem when bootstrapping the latest diffutils.
20334         After './bootstrap', 'git status' reported lots of untracked files
20335         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
20336         autopoint and do not need to be version-controlled.
20337         * build-aux/bootstrap: Put into .gitignore the files that
20338         autopoint and libtool create, by keeping track of files that exist
20339         after but not before these programs are run.
20340         (version_controlled_file): Move up.  2nd arg is now full file
20341         name, not base name; this is more convenient.  Put CVS at the end,
20342         as it's now somewhat deprecated.
20344 2012-05-14  Jim Meyering  <meyering@redhat.com>
20346         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
20347         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
20348         definition.  Reported by Bruno Haible.
20350 2012-05-13  Bruno Haible  <bruno@clisp.org>
20351             Paul Eggert  <eggert@cs.ucla.edu>
20353         binary-io: Define set_binary_mode function.
20354         * lib/binary-io.h (set_binary_mode): New function.
20355         (SET_BINARY): Define in terms of set_binary_mode.
20356         * modules/binary-io (configure.ac): Require AC_C_INLINE.
20357         * tests/test-binary-io.c (main): Accept an argument, and test either
20358         set_binary_mode or SET_BINARY depending on the argument.
20359         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
20360         argument. Clean up also t-bin-out0.tmp.
20362 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
20364         bootstrap: take advantage of POSIX shell features
20366         The 'bootstrap' script offered by Gnulib script already uses POSIX
20367         shell features (like $((...)) arithmetic expansions) that are not
20368         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
20369         means that bootstrap must already be run using a proper POSIX shell,
20370         which will thus provide more features, like ${var#pattern} parameter
20371         expansion or inversion of a command exit status with '!'.  We can
20372         thus use these features to improve the clarity and the performances
20373         of the bootstrap script.
20375         Suggested by Eric Blake.
20377         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
20378         of sed/expr plus command substitutions, to save some forks.  While
20379         we are at it, prefer the POSIX $(...) form of command substitution,
20380         rather than the legacy form `...` (since the former is visually
20381         clearer and interacts better with quoting), and prefer the idiom:
20382           "if ! CMD; then ACTION ..."
20383         over the idiom:
20384           "if CMD; then :; else ACTION ..."
20385         which was required by legacy Bourne shells not supporting '!'.
20387 2012-05-12  Bruno Haible  <bruno@clisp.org>
20389         system-quote: Add more comments.
20390         * lib/system-quote.h: Add more comments about wilcards and limitations.
20391         Suggested by Eli Zaretskii <eliz@gnu.org>.
20393         sh-quote, system-quote: Add comments about wildcards.
20394         * lib/sh-quote.h: Clarify what happens with wildcard characters.
20395         * lib/system-quote.h: Likewise.
20396         Reported by Eli Zaretskii <eliz@gnu.org>.
20398 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
20400         fsusage: check for GNU/Linux statvfs problem dynamically
20401         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
20402         Define STAT_STATFS2_BSIZE too, since in this case the code now
20403         checks dynamically whether statvfs is reliable, falling back on
20404         Linux-style statfs otherwise.
20405         (statvfs_works): New function, for dynamically testing statvfs.
20406         (get_fs_usage) [STAT_STATVFS]: Use it.
20407         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
20408         statvfs on GNU/Linux hosts, since it's now done dynamically.
20410 2012-05-10  Bruno Haible  <bruno@clisp.org>
20412         system-quote, execute, spawn-pipe: Escape '?' on Windows.
20413         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
20414         '?' character.
20415         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
20416         * tests/test-system-quote-main.c (check_all): Check also strings like
20417         "??????????".
20418         Reported by Eli Zaretskii <eliz@gnu.org>.
20420 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
20422         _Noreturn: port config.h to gcc -Wundef
20423         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
20424         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
20425         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
20427 2012-05-10  Bruno Haible  <bruno@clisp.org>
20429         system-quote: Refactor.
20430         * lib/system-quote.h (system_quote_copy): Fix comment.
20431         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
20432         New functions, extracted from system_quote_copy.
20433         (system_quote_length, system_quote_copy): Use these functions.
20434         Reported by Paul Eggert.
20436 2012-05-08  Bruno Haible  <bruno@clisp.org>
20438         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
20439         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
20441 2012-05-08  Bruno Haible  <bruno@clisp.org>
20443         Tests for module 'system-quote'.
20444         * modules/system-quote-tests: New file.
20445         * tests/test-system-quote.sh: New file.
20446         * tests/test-system-quote-main.c: New file.
20447         * tests/test-system-quote-child.c: New file.
20449         New module 'system-quote'.
20450         * lib/system-quote.h: New file.
20451         * lib/system-quote.c: New file.
20452         * modules/system-quote: New file.
20454 2012-05-08  Bruno Haible  <bruno@clisp.org>
20456         sh-quote: Make C++ safe and allow multiple inclusion.
20457         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
20458         declarations in extern "C".
20460 2012-05-08  Bruno Haible  <bruno@clisp.org>
20462         sh-quote tests: Make tests stricter.
20463         * tests/test-sh-quote.c (check_one): Check the return value of
20464         shell_quote_copy.
20465         (main): Check a string with a CR character. Check a string that
20466         contains UCHAR_MAX.
20468 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
20470         warnings.m4: provide a means to specify the program to compile.
20471         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
20472         (gl_WARN_ADD): here.
20473         Use gl_AS_VAR_APPEND.
20474         Support an argument to specify the program to compile.
20475         (gl_WARN_ADD): Accept an argument to specify the program to compile.
20476         AC_SUBST the WARN_CFLAGS when they are used.
20477         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
20478         leave this to gl_WARN_ADD.
20480 2012-05-08  Eric Blake  <eblake@redhat.com>
20482         doc: recommendations on gettext version
20483         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
20484         choice between versions.
20485         * DEPENDENCIES (gettext): Cover both approaches.
20487 2012-05-08  Jim Meyering  <meyering@redhat.com>
20489         init.sh: explain why EXEEXT support uses aliases rather than functions
20490         * tests/init.sh: Add a comment.
20492         init.sh: don't let bash aliases interfere with tests
20493         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
20494         is bash.  This avoids problems for those who alias standard commands to
20495         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
20496         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
20498 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20500         stdint: be more consistent with glibc, SunOS libc
20501         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
20502         (gl_int_fast16_t, gl_uint_fast16_t)
20503         (gl_int_fast32_t, gl_uint_fast32_t)
20504         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
20505         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
20506         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
20507         Be consistent with glibc by default, and with SunOS 5.10 and later
20508         if __sun is defined.  This lessens the likelihood of clashes if
20509         code compiled for older hosts is combined with code compiled for
20510         newer ones.  Problem reported by Niels Möller in
20511         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
20513 2012-05-07  Eric Blake  <eblake@redhat.com>
20515         isatty: relax license to LGPLv2+
20516         * modules/isatty (License): Relax license.
20518 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
20520         stat-size: comment fix
20521         * lib/stat-size.h: Remove obsolete comment about indenting.
20523 2012-05-06  Bruno Haible  <bruno@clisp.org>
20525         Tests for module 'sh-quote'.
20526         * modules/sh-quote-tests: New file.
20527         * tests/test-sh-quote.c: New file.
20529 2012-05-06  Bruno Haible  <bruno@clisp.org>
20531         sh-quote: Improve shell_quote_argv's signature.
20532         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
20533         * lib/sh-quote.c (shell_quote_argv): Likewise.
20535 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
20537         stdint: document issues with int_fast8_t etc.
20538         * doc/posix-headers/stdint.texi (stdint.h): Say that other
20539         stdint.h substitutes may define these types differently.  See
20540         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
20542 2012-05-05  Bruno Haible  <bruno@clisp.org>
20544         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
20545         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
20546         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
20547         or 'guessing no (mishandles large arguments)'.
20549 2012-05-05  Bruno Haible  <bruno@clisp.org>
20551         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
20552         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
20553         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
20554         set gl_cv_func_link_follows_symlink to "guessing no".
20556 2012-05-05  Bruno Haible  <bruno@clisp.org>
20558         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
20559         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
20560         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
20561         "guessing no".
20562         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
20564 2012-05-05  Bruno Haible  <bruno@clisp.org>
20566         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
20567         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
20568         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
20569         set gl_cv_struct_dirent_d_ino to "guessing yes".
20571 2012-05-05  Bruno Haible  <bruno@clisp.org>
20573         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
20574         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
20575         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
20576         "guessing yes".
20578 2012-05-05  Bruno Haible  <bruno@clisp.org>
20580         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
20581         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
20582         compiling to a glibc system, set gl_cv_func_signbit and
20583         gl_cv_func_signbit_gcc to "guessing yes".
20585 2012-05-05  Bruno Haible  <bruno@clisp.org>
20587         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
20588         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
20589         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
20590         to "guessing yes".
20591         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
20592         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
20594 2012-05-05  Bruno Haible  <bruno@clisp.org>
20596         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
20597         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
20598         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
20599         gl_cv_func_realpath_works to "guessing yes".
20601 2012-05-05  Bruno Haible  <bruno@clisp.org>
20603         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
20604         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
20605         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
20607 2012-05-04  Bruno Haible  <bruno@clisp.org>
20609         Tweak last commit.
20610         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
20611         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20613 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
20615         unistd_h: make it easier to avoid sys_types_h
20616         This is useful for Emacs, which has its own method of porting to
20617         Windows, and which therefore does not need the sys_types_h module.
20618         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
20619         code moved here from gl_SYS_TYPES_H.
20620         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
20621         using the code directly.
20622         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
20623         gl_SYS_TYPES_H.
20624         * modules/sys_types (Files):
20625         * modules/unistd (Files): Add m4/off_t.m4.
20627 2012-05-03  Bruno Haible  <bruno@clisp.org>
20629         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
20630         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
20631         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
20632         "guessing yes" or "guessing no".
20633         (gl_FUNC_LSTAT): Update.
20634         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
20635         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
20636         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
20638 2012-05-03  Bruno Haible  <bruno@clisp.org>
20640         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
20641         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
20642         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
20643         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
20644         cross-compiling, choose the first alternative on glibc systems.
20645         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
20647 2012-05-03  Bruno Haible  <bruno@clisp.org>
20649         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
20650         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
20651         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
20653 2012-05-03  Bruno Haible  <bruno@clisp.org>
20655         chown: Avoid "guessing no" when cross-compiling to glibc systems.
20656         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
20658 2012-05-03  Bruno Haible  <bruno@clisp.org>
20660         Avoid "guessing no" guesses when cross-compiling to glibc systems.
20661         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
20662         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
20663         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
20664         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
20665         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
20666         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
20667         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
20668         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
20669         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
20670         compiling to glibc systems, set gl_cv_func_chown_slash_works,
20671         gl_cv_func_chown_ctime_works to "guessing yes".
20672         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
20673         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
20674         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
20675         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
20676         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
20677         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
20678         compiling to glibc systems, set gl_cv_func_open_directory_works to
20679         "guessing yes".
20680         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
20681         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
20682         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
20683         "guessing yes".
20684         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
20685         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
20686         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
20687         compiling to glibc systems, set gl_cv_func_floorf_ieee to
20688         "guessing yes".
20689         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
20690         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
20691         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
20692         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
20693         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
20694         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
20695         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
20696         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
20697         "guessing yes".
20698         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
20699         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
20700         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
20701         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
20702         "guessing yes".
20703         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
20704         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
20705         "guessing yes".
20706         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
20707         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
20708         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
20709         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
20710         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
20711         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
20712         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
20713         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
20714         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
20715         compiling to glibc systems, set gl_cv_func_log10f_ieee to
20716         "guessing yes".
20717         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
20718         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
20719         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
20720         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
20721         "guessing yes".
20722         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
20723         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
20724         "guessing yes".
20725         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
20726         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
20727         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
20728         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
20729         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
20730         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
20731         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
20732         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
20733         compiling to glibc systems, set gl_cv_func_mkfifo_works to
20734         "guessing yes".
20735         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
20736         compiling to glibc systems, set gl_cv_func_mknod_works to
20737         "guessing yes".
20738         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
20739         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
20740         "guessing yes".
20741         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
20742         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
20743         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
20744         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
20745         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
20746         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
20747         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
20748         compiling to glibc systems, set gl_cv_func_svid_putenv to
20749         "guessing yes".
20750         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
20751         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
20752         "guessing yes".
20753         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
20754         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
20755         "guessing yes".
20756         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
20757         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
20758         to "guessing yes".
20759         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
20760         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
20761         to "guessing yes".
20762         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
20763         compiling to glibc systems, set gl_cv_func_rmdir_works to
20764         "guessing yes".
20765         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
20766         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
20767         gl_cv_func_unlink_parent_fails to "guessing yes".
20768         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
20769         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
20770         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
20771         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
20772         gl_cv_func_rename_dest_works to "guessing yes".
20773         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
20774         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
20775         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
20776         compiling to glibc systems, set gl_cv_func_roundf_ieee to
20777         "guessing yes".
20778         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
20779         compiling to glibc systems, set gl_cv_func_roundl_ieee to
20780         "guessing yes".
20781         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
20782         compiling to glibc systems, set gl_cv_func_setenv_works to
20783         "guessing yes".
20784         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
20785         compiling to glibc systems, set gl_cv_func_unsetenv_works to
20786         "guessing yes".
20787         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
20788         compiling to glibc systems, set gl_cv_func_sleep_works to
20789         "guessing yes".
20790         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
20791         compiling to glibc systems, set gl_cv_func_stat_file_slash to
20792         "guessing yes".
20793         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
20794         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
20795         "guessing yes".
20796         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
20797         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
20798         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
20799         compiling to glibc systems, set gl_cv_func_truncf_ieee to
20800         "guessing yes".
20801         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
20802         compiling to glibc systems, set gl_cv_func_truncl_ieee to
20803         "guessing yes".
20804         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
20805         compiling to glibc systems, set gl_cv_func_usleep_works to
20806         "guessing yes".
20807         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
20808         compiling to glibc systems, set gl_cv_func_futimesat_works to
20809         "guessing yes".
20811 2012-05-03  Bruno Haible  <bruno@clisp.org>
20813         Say "guessing yes" or "guessing no" when cross-compiling.
20814         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
20815         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
20816         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
20817         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
20818         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
20819         am_cv_func_working_getline to "guessing yes" or "guessing no".
20820         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
20821         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
20822         (gl_FUNC_MEMMEM): When cross-compiling, set
20823         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
20824         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
20825         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
20826         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
20827         set gl_cv_func_strcasestr_works_always to "guessing yes" or
20828         "guessing no".
20829         (gl_FUNC_STRCASESTR): When cross-compiling, set
20830         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
20831         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
20832         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
20833         (gl_FUNC_STRSTR): When cross-compiling, set
20834         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
20835         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
20836         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
20837         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
20838         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
20840 2012-05-01  Bruno Haible  <bruno@clisp.org>
20842         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
20843         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
20844         * build-aux/reloc-ldflags: Likewise.
20845         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
20847 2012-05-01  Bruno Haible  <bruno@clisp.org>
20849         gnulib-tool: Remove transitional code.
20850         * gnulib-tool: Don't warn about --import with 0 arguments any more.
20851         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
20853 2012-05-01  Bruno Haible  <bruno@clisp.org>
20855         getcwd: Fix misindentation.
20856         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
20858 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
20860         exclude: process exclude and include directives in order
20861         This restores the pre-2009 behavior, and is part of a fix of a
20862         grep bug reported by Quentin Arce in
20863         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
20864         * lib/exclude.c (struct exclude): Remove 'tail' member.
20865         (new_exclude_segment): Prepend the new segment instead of appending.
20866         Return void, since that's now more convenient.
20867         (file_pattern_matches): Renamed from excluded_file_pattern_p.
20868         (file_name_matches): Renamed from excluded_file_name_p.
20869         (file_pattern_matches, file_name_matches):
20870         Return true if the pattern matches, not if it excludes.
20871         All callers changed.
20872         (excluded_file_name): Process the list in reverse order;
20873         since the list is now reversed this restores the pre-2009 behavior.
20874         (add_exclude): Adjust to new reversed-order list.  Use local var
20875         rather than macro, for clarity.
20876         * tests/test-exclude7.sh: Adjust to corrected behavior.
20878         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
20879         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
20880         it's not possible here.  Handle the case of \ at end of pattern
20881         without dumping core.
20882         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
20884         _Noreturn: future-proof non-GNU and non-MSVC compilers
20885         * build-aux/snippet/_Noreturn.h (_Noreturn):
20886         * m4/gnulib-common.m4 (gl_COMMON_BODY):
20887         Do not define _Noreturn if __STDC_VERSION__ indicates this is
20888         C11 or later.  This is more likely to work with random future C
20889         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
20890         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
20892         exclude: handle wildcards with FNM_EXTMATCH
20893         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
20894         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
20895         comment that "has wildcards" really means "has or may have
20896         wildcards".  Simplify by avoiding the need to call strcspn.
20898 2012-04-29  Bruno Haible  <bruno@clisp.org>
20900         gnulib-tool: Fix list of authors.
20901         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
20903 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
20905         bootstrap: support Automake-NG in $buildreq
20906         * bootstrap (check_versions): Handle automake and aclocal from
20907         Automake-NG specially.  They can be specified as respectively
20908         the "automake-ng" and "aclocal-ng" requirements.
20910 2012-04-25  Eric Blake  <eblake@redhat.com>
20912         bootstrap: only force latest Makefile.in.in for gettext module
20913         * build-aux/bootstrap (with_gettext): Only install latest
20914         Makefile.in.in for projects requesting bleeding edge gettext.
20916 2012-04-22  Bruno Haible  <bruno@clisp.org>
20918         doc: Mention reason for replacement on glibc/Linux systems.
20919         * doc/posix-functions/dprintf.texi: Mention the problem with special
20920         'long double' values.
20921         * doc/posix-functions/fprintf.texi: Likewise.
20922         * doc/posix-functions/printf.texi: Likewise.
20923         * doc/posix-functions/snprintf.texi: Likewise.
20924         * doc/posix-functions/sprintf.texi: Likewise.
20925         * doc/posix-functions/vdprintf.texi: Likewise.
20926         * doc/posix-functions/vfprintf.texi: Likewise.
20927         * doc/posix-functions/vprintf.texi: Likewise.
20928         * doc/posix-functions/vsnprintf.texi: Likewise.
20929         * doc/posix-functions/vsprintf.texi: Likewise.
20930         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
20931         platforms with F_DUPFD_CLOEXEC problems.
20932         * doc/posix-functions/glob.texi: Mention which platforms are affected
20933         by the problem with symbolic links.
20934         * doc/posix-functions/linkat.texi: Mention the problem with
20935         AT_SYMLINK_FOLLOW on Linux.
20937 2012-04-22  Bruno Haible  <bruno@clisp.org>
20939         pwrite: Don't replace on all platforms.
20940         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
20942 2012-04-22  Bruno Haible  <bruno@clisp.org>
20944         rint* tests: Avoid gcc warnings.
20945         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
20946         * tests/test-rintf.c (INFINITY, NAN): Likewise.
20947         * tests/test-rintl.c (INFINITY, NAN): Likewise.
20949 2012-04-21  Bruno Haible  <bruno@clisp.org>
20951         users.txt: Update.
20952         * users.txt: Add freedink, wdiff. Update URLs for projects that have
20953         switched from CVS to git, bzr, or svn.
20955 2012-04-21  Bruno Haible  <bruno@clisp.org>
20957         Large File Support for native Windows platforms.
20959         * m4/largefile.m4 (gl_LARGEFILE): New macro.
20960         * modules/largefile (configure.ac): Require gl_LARGEFILE.
20962         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
20963         type.
20964         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
20965         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
20966         * doc/posix-headers/sys_types.texi: Mention the effect of the
20967         'largefile' module.
20969         * lib/fcntl.in.h: Add comments about off_t.
20970         * modules/fcntl-h (Depends-on): Add sys_types.
20972         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
20973         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
20974         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
20975         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
20976         * modules/unistd (Depends-on): Add sys_types.
20977         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
20979         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
20980         instead of lseek.
20981         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
20982         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
20983         * modules/lseek (Depends-on): Add sys_types.
20985         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
20986         msvc-nothrow.h.
20987         (SetFileSize): New function.
20988         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
20989         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
20990         if Large File Support is requested.
20991         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
20992         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
20994         * lib/stdio.in.h: Add comments about off_t.
20995         * modules/stdio (Depends-on): Add sys_types.
20997         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
20998         instead of ftello.
20999         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
21000         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
21001         (gl_PREREQ_FTELLO): New macro.
21002         * modules/ftello (Depends-on): Add sys_types.
21003         (configure.ac): Incoke gl_PREREQ_FTELLO.
21005         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
21006         instead of fseeko.
21007         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
21008         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
21009         (gl_PREREQ_FSEEKO): New macro.
21010         * modules/fseeko (Depends-on): Add sys_types.
21011         (configure.ac): Invoke gl_PREREQ_FSEEKO.
21013         * lib/sys_stat.in.h: Add comments about off_t.
21014         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
21015         64-bit integer for st_size in 'struct stat'.
21016         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
21017         Define _GL_WINDOWS_64_BIT_ST_SIZE.
21018         * modules/sys_stat (Depends-on): Add sys_types.
21019         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
21021         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
21022         instead of stat or _stat.
21024         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
21025         'struct _stati64' instead of fstat and 'struct stat'.
21026         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
21027         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
21029         Reported by Ray Satiro <raysatiro@yahoo.com>.
21031 2012-04-19  Eric Blake  <eblake@redhat.com>
21033         bootstrap: accommodate older libtool
21034         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
21035         Reported by Daniel P. Berrange.
21037 2012-04-19  Jim Meyering  <meyering@redhat.com>
21039         announce-gen: avoid failure due to lack of Digest::SHA1
21040         Even with the preferred Digest::SHA available, this script
21041         would fail when the backup module, Digest::SHA1, was not installed.
21042         * build-aux/announce-gen: Quote the conditional use of "use".
21043         Reported by Reuben Thomas in:
21044         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
21046         bootstrap: don't let a user's CDPATH setting affect this script
21047         When CDPATH is set, cd will sometimes generate output.
21048         When "cd" is run in a subshell whose output matters, that
21049         surprising-to-some output can cause malfunction.
21050         Unsetting CDPATH turns off this shell "feature."
21051         * build-aux/bootstrap (CDPATH): Unset.
21052         Reported by Reuben Thomas in:
21053         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
21054         and inspired by his patch here:
21055         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
21057 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
21058         and Jim Meyering  <meyering@redhat.com>
21060         maint.mk: catch "see @xref{}" and similar
21061         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
21062         prohibit "See also @xref{", "Also see @pxref{", and similar.
21064 2012-04-16  Jim Meyering  <meyering@redhat.com>
21066         bootstrap: really use gnulib's po/Makefile.in.in
21067         * build-aux/bootstrap: Correct the source file name in previous change.
21068         Reported by Akim Demaille.
21070         configmake: correct minor inconsistency in Makefile rule
21071         * modules/configmake (Makefile.am): All other rules like this one
21072         run the final "mv -f ..." in the same backslash-continued command
21073         as the one that does everything else.  This one put the mv -f ...
21074         command on a separate, non-backslash-continued line.
21075         Make it like the others.
21077         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
21078         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
21079         the one from gettext.  Reported by Akim Demaille.
21081 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
21083         Fix recursion of install-* into po directories.
21084         Bison's install-pdf bug reported by Hans Aberg at
21085         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
21086         * build-aux/po/Makefile.in.in (install-dvi, install-html)
21087         (install-info, install-pdf, install-ps): New targets.
21089 2012-04-16  Jim Meyering  <meyering@redhat.com>
21091         maint: avoid spurious "make sc_maint" failure
21092         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
21093         exempt all *.class file names, for lib/javaversion.class.
21095 2012-04-15  Bruno Haible  <bruno@clisp.org>
21097         lseek: Make configure test independent of environment.
21098         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
21099         Windows, we know that lseek() on pipes is broken; skip the runtime
21100         test.
21102 2012-04-14  Bruno Haible  <bruno@clisp.org>
21104         stat: Bypass buggy override in mingw64.
21105         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
21106         * lib/stat.c (stat) [mingw64]: Define to _stat.
21107         * doc/posix-functions/stat.texi: Mention mingw64 bug.
21109 2012-04-14  Bruno Haible  <bruno@clisp.org>
21111         pathmax: Fix compilation error on MSVC 9.
21112         * modules/pathmax (Depends-on): Add unistd.
21114 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
21116         README: document pointer comparison assumption
21117         * README (Portability guidelines): Document assumption about
21118         pointer comparisons, in response to a recent bug-gnulib comment by
21119         Jeffrey Kegler.
21121 2012-04-12  Bruno Haible  <bruno@clisp.org>
21123         Tests for module 'getrusage'.
21124         * modules/getrusage-tests: New file.
21125         * tests/test-getrusage.c: New file.
21127         New module 'getrusage'.
21128         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
21129         warn-on-use.h.
21130         (getrusage): New declaration.
21131         * lib/getrusage.c: New file.
21132         * m4/getrusage.m4: New file.
21133         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
21134         is declared.
21135         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
21136         HAVE_GETRUSAGE.
21137         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
21138         snippet/c++defs, snippet/warn-on-use.
21139         (Makefile.am): Update generation of sys/resource.h. Substitute
21140         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
21141         * modules/getrusage: New file.
21142         * doc/posix-functions/getrusage.texi: Mention the new module.
21144 2012-04-12  Bruno Haible  <bruno@clisp.org>
21146         Tests for module 'sys_resource'.
21147         * modules/sys_resource-tests: New file.
21148         * tests/test-sys_resource.c: New file.
21150         New module 'sys_resource'.
21151         * lib/sys_resource.in.h: New file.
21152         * m4/sys_resource_h.m4: New file.
21153         * modules/sys_resource: New file.
21154         * doc/posix-headers/sys_resource.texi: Mention the new module.
21156 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
21158         ioctl: Fix compilation error on mingw.
21159         * lib/ioctl.c: Include <windows.h>.
21160         Also reported by Ray Satiro <raysatiro@yahoo.com>.
21162 2012-04-04  Jim Meyering  <meyering@redhat.com>
21164         regex: correct #pragma guard expression
21165         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
21166         not 4.3.  Correct its cpp guard expression.
21168 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
21170         regex: remove unnecessary type punning
21171         Problem reported by Vladimir Serbinenko in
21172         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
21173         * lib/regex.h (struct re_pattern_buffer): Change the type of
21174         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
21175         Fix comment to match code.
21176         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
21177         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
21178         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
21179         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
21180         (set_regs):
21181         Omit no-longer-necessary casts.
21183 2012-04-03  Bruno Haible  <bruno@clisp.org>
21185         Tests for module 'ilogbl'.
21186         * modules/ilogbl-tests: New file.
21187         * tests/test-ilogbl.c: New file.
21189         New module 'ilogbl'.
21190         * lib/math.in.h (ilogbl): New declaration.
21191         * lib/ilogbl.c: New file.
21192         * m4/ilogbl.m4: New file.
21193         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
21194         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
21195         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
21196         Split sed invocation, to avoid the limit of 100 substitutions of
21197         HP-UX 'sed'.
21198         * modules/ilogbl: New file.
21199         * tests/test-math-c++.cc: Check the declaration of ilogbl.
21200         * doc/posix-functions/ilogbl.texi: Mention the new module.
21202 2012-04-03  Bruno Haible  <bruno@clisp.org>
21204         Tests for module 'ilogbf'.
21205         * modules/ilogbf-tests: New file.
21206         * tests/test-ilogbf.c: New file.
21208         New module 'ilogbf'.
21209         * lib/math.in.h (ilogbf): New declaration.
21210         * lib/ilogbf.c: New file.
21211         * m4/ilogbf.m4: New file.
21212         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
21213         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
21214         REPLACE_ILOGBF.
21215         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
21216         REPLACE_ILOGBF.
21217         * modules/ilogbf: New file.
21218         * tests/test-math-c++.cc: Check the declaration of ilogbf.
21219         * doc/posix-functions/ilogbf.texi: Mention the new module.
21221 2012-04-03  Bruno Haible  <bruno@clisp.org>
21223         Tests for module 'ilogb'.
21224         * modules/ilogb-tests: New file.
21225         * tests/test-ilogb.c: New file.
21226         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
21227         tests/test-logb-ieee.h.
21229         New module 'ilogb'.
21230         * lib/math.in.h (ilogb): New declaration.
21231         * lib/ilogb.c: New file.
21232         * m4/ilogb.m4: New file.
21233         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
21234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
21235         REPLACE_ILOGB.
21236         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
21237         REPLACE_ILOGB.
21238         * modules/ilogb: New file.
21239         * tests/test-math-c++.cc: Check the declaration of ilogb.
21240         * doc/posix-functions/ilogb.texi: Mention the new module.
21242 2012-04-03  Bruno Haible  <bruno@clisp.org>
21244         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
21245         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
21246         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
21247         (main): Check their values.
21248         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
21249         problem.
21251 2012-04-03  Bruno Haible  <bruno@clisp.org>
21253         Tests for module 'logbl-ieee'.
21254         * modules/logbl-ieee-tests: New file.
21255         * tests/test-logbl-ieee.c: New file.
21257         New module 'logbl-ieee'.
21258         * modules/logbl-ieee: New file.
21260         Tests for module 'logb-ieee'.
21261         * modules/logb-ieee-tests: New file.
21262         * tests/test-logb-ieee.c: New file.
21264         New module 'logb-ieee'.
21265         * modules/logb-ieee: New file.
21267         Tests for module 'logbf-ieee'.
21268         * modules/logbf-ieee-tests: New file.
21269         * tests/test-logbf-ieee.c: New file.
21270         * tests/test-logb-ieee.h: New file.
21272         New module 'logbf-ieee'.
21273         * modules/logbf-ieee: New file.
21275 2012-04-03  Bruno Haible  <bruno@clisp.org>
21277         Tests for module 'logbl'.
21278         * modules/logbl-tests: New file.
21279         * tests/test-logbl.c: New file.
21281         New module 'logbl'.
21282         * lib/math.in.h (logbl): New declaration.
21283         * lib/logbl.c: New file.
21284         * m4/logbl.m4: New file.
21285         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
21286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
21287         REPLACE_LOGBL.
21288         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
21289         REPLACE_LOGBL.
21290         * modules/logbl: New file.
21291         * tests/test-math-c++.cc: Check the declaration of logbl.
21292         * doc/posix-functions/logbl.texi: Mention the new module.
21294 2012-04-02  Bruno Haible  <bruno@clisp.org>
21296         Tests for module 'logbf'.
21297         * modules/logbf-tests: New file.
21298         * tests/test-logbf.c: New file.
21300         New module 'logbf'.
21301         * lib/math.in.h (logbf): New declaration.
21302         * lib/logbf.c: New file.
21303         * m4/logbf.m4: New file.
21304         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
21305         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
21306         REPLACE_LOGBF.
21307         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
21308         REPLACE_LOGBF.
21309         * modules/logbf: New file.
21310         * tests/test-math-c++.cc: Check the declaration of logbf.
21311         * doc/posix-functions/logbf.texi: Mention the new module.
21313 2012-04-02  Bruno Haible  <bruno@clisp.org>
21315         logb tests: More tests.
21316         * tests/test-logb.h: New file, based on tests/test-logb.c and
21317         tests/test-frexp.h.
21318         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
21319         (main): Just invoke test_function.
21320         * modules/logb-tests (Files): Add tests/test-logb.h,
21321         tests/minus-zero.h, tests/randomd.c.
21322         (Makefile.am): Add randomd.c to test_logb_SOURCES.
21324         logb: Provide replacement and workarounds.
21325         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
21326         is 1.
21327         * lib/logb.c: New file.
21328         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
21329         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
21330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
21331         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
21332         * modules/logb (Files): Add lib/logb.c.
21333         (Depends-on): Add isfinite, frexp, isnand.
21334         (configure.ac): Compile the replacement code logb.c if needed.
21335         * tests/test-math-c++.cc: Check the declaration of logb.
21336         * doc/posix-functions/logb.texi: Mention the replacement and the bug
21337         with subnormal numbers.
21339 2012-04-02  Bruno Haible  <bruno@clisp.org>
21341         log10* tests: Speed up.
21342         * tests/test-log10.h (test_function): Reduce amount of random numbers
21343         to test.
21345 2012-04-01  Bruno Haible  <bruno@clisp.org>
21347         logf-ieee: Fix test whether logf works.
21348         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
21350 2012-04-01  Bruno Haible  <bruno@clisp.org>
21352         log10l: Work around log10l-ieee test failure on IRIX 6.5.
21353         * lib/log10l.c: Include <float.h>
21354         (log10l): On IRIX, normalize the +Infinity value.
21355         * modules/log10l (Depends-on): Add 'float'.
21356         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
21357         +Infinity.
21359         log10f-ieee: Work around test failure on NetBSD 5.1.
21360         * m4/log10f-ieee.m4: New file.
21361         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
21362         test whether log10f works with a negative argument. Replace it if not.
21363         * lib/log10f.c (log10f): For negative arguments, return NaN.
21364         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
21365         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
21366         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
21368         log10f-ieee: Work around test failure on Solaris 9.
21369         * modules/log10f-ieee (Depends-on): Add log10-ieee.
21370         (configure.ac): Require gl_FUNC_LOG10F.
21372         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
21373         * m4/log10-ieee.m4: New file.
21374         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
21375         whether log10 works with a negative argument. Replace it if not.
21376         * lib/log10.c (log10): For negative arguments, return NaN.
21377         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
21378         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
21379         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
21381         Tests for module 'log10l-ieee'.
21382         * modules/log10l-ieee-tests: New file.
21383         * tests/test-log10l-ieee.c: New file.
21385         New module 'log10l-ieee'.
21386         * modules/log10l-ieee: New file.
21388         Tests for module 'log10-ieee'.
21389         * modules/log10-ieee-tests: New file.
21390         * tests/test-log10-ieee.c: New file.
21392         New module 'log10-ieee'.
21393         * modules/log10-ieee: New file.
21395         Tests for module 'log10f-ieee'.
21396         * modules/log10f-ieee-tests: New file.
21397         * tests/test-log10f-ieee.c: New file.
21398         * tests/test-log10-ieee.h: New file.
21400         New module 'log10f-ieee'.
21401         * modules/log10f-ieee: New file.
21403 2012-04-01  Bruno Haible  <bruno@clisp.org>
21405         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
21406         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
21407         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
21408         workaround.
21409         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
21410         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
21411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
21412         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
21413         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
21414         (Depends-on): Update conditions.
21415         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
21416         IRIX 6.5, OSF/1 5.1 problems.
21418 2012-04-01  Bruno Haible  <bruno@clisp.org>
21420         log10f: Work around OSF/1 5.1 bug.
21421         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
21422         * lib/log10f.c (log10f): If logf exists, use it and provide just the
21423         workaround.
21424         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
21425         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
21426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
21427         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
21428         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
21429         (Depends-on): Update conditions.
21430         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
21432 2012-04-01  Bruno Haible  <bruno@clisp.org>
21434         log10: Work around OSF/1 5.1 bug.
21435         * lib/math.in.h (log10): New declaration.
21436         * lib/log10.c: New file.
21437         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
21438         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
21439         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
21440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
21441         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
21442         * modules/log10 (Files): Add lib/log10.c.
21443         (Depends-on): Add math.
21444         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
21445         * tests/test-math-c++.cc: Check the declaration of log10.
21446         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
21448 2012-03-31  Bruno Haible  <bruno@clisp.org>
21450         log10l tests: More tests.
21451         * modules/log10l-tests (Files): Add tests/test-log10l.h,
21452         tests/minus-zero.h, tests/randoml.c.
21453         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
21454         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
21455         (main): Invoke test_function.
21457         log10f tests: More tests.
21458         * modules/log10f-tests (Files): Add tests/test-log10.h,
21459         tests/minus-zero.h, tests/randomf.c.
21460         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
21461         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
21462         (main): Invoke test_function.
21464         log10 tests: More tests.
21465         * tests/test-log10.h: New file.
21466         * modules/log10-tests (Files): Add tests/test-log10.h,
21467         tests/minus-zero.h, tests/randomd.c.
21468         (Makefile.am): Add randomd.c to test_log10_SOURCES.
21469         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
21470         (main): Invoke test_function.
21472 2012-03-31  Simon Josefsson  <simon@josefsson.org>
21474         fflush: Fix syntax error.
21475         * lib/fflush.c: Include unused-parameter.h, needed for
21476         _GL_UNUSED_PARAMETER.
21477         * modules/fflush (Depends-on): Add snippet/unused-parameter.
21479 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
21481         regex: pacify GCC when compiling GRUB
21482         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
21483         a diagnostic.  Reported by Vladimir Serbinenko in
21484         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
21486 2012-03-29  Eric Blake  <eblake@redhat.com>
21488         stdio: don't assume gets any more
21489         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
21490         support.
21491         * modules/stdio (Makefile.am): Likewise.
21492         * lib/stdio-read.c (gets): Likewise.
21493         * tests/test-stdio-c++.cc: Likewise.
21494         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
21495         * lib/stdio.in.h (gets): Make warning occur in more places.
21496         * doc/posix-functions/gets.texi (gets): Update documentation.
21497         Reported by Christer Solskogen.
21499         maint.mk: fix syntax checks without exclusions
21500         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
21501         Reported by Daniel P. Berrange.
21503         strerror_r: avoid compiler warning
21504         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
21505         level.
21507         fflush: avoid compiler warning
21508         * lib/fflush.c (update_fpos_cache): Mark variables that are
21509         potentially unused.
21511 2012-03-25  Bruno Haible  <bruno@clisp.org>
21513         Tests for module 'localeconv'.
21514         * modules/localeconv-tests: New file.
21515         * tests/test-localeconv.c: New file.
21517         New module 'localeconv'.
21518         * lib/locale.in.h (localeconv): New declaration.
21519         * lib/localeconv.c: New file.
21520         * m4/localeconv.m4: New file.
21521         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
21522         REPLACE_LOCALECONV.
21523         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
21524         REPLACE_LOCALECONV.
21525         * modules/localeconv: New file.
21526         * modules/nl_langinfo (Depends-on): Add localeconv.
21527         * modules/human (Depends-on): Likewise.
21528         * doc/posix-functions/localeconv.texi: Mention the new module.
21530 2012-03-25  Bruno Haible  <bruno@clisp.org>
21532         locale: Provide a complete 'struct lconv'.
21533         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
21534         'struct lconv' does not contain int_p_cs_precedes.
21535         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
21536         * doc/posix-headers/locale.texi: Update.
21538         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
21539         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
21540         * doc/posix-headers/locale.texi: Update.
21542         locale: Provide a working 'struct lconv'.
21543         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
21544         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
21545         'struct lconv' does not even contain decimal_point.
21546         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
21547         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
21548         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
21549         * doc/posix-headers/locale.texi: Mention the problems with
21550         'struct lconv'.
21551         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21553 2012-03-24  Bruno Haible  <bruno@clisp.org>
21555         Enable common subexpression optimization in GCC.
21556         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
21557         macros.
21558         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
21559         GCC attribute 'const'.
21560         (uc_locale_language): Declare with GCC attribute 'pure'.
21561         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
21562         with GCC attribute 'const'.
21563         * lib/unictype.in.h (uc_is_general_category_withtable,
21564         uc_combining_class, uc_combining_class_name,
21565         uc_combining_class_long_name, uc_bidi_class_name,
21566         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
21567         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
21568         uc_decimal_value, uc_digit_value, uc_numeric_value,
21569         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
21570         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
21571         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
21572         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
21573         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
21574         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
21575         Declare with GCC attribute 'const'.
21576         (uc_general_category_name, uc_general_category_long_name,
21577         uc_general_category_byname, uc_general_category,
21578         uc_is_general_category, uc_combining_class_byname,
21579         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
21580         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
21581         Declare with GCC attribute 'pure'.
21582         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
21583         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
21584         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
21585         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
21586         with GCC attribute 'pure'.
21587         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
21588         'const'.
21589         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
21590         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
21591         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
21592         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
21593         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
21594         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
21595         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
21596         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
21597         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
21598         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
21599         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
21600         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
21601         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
21602         GCC attribute 'pure'.
21603         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
21604         'const'.
21605         * lib/uniwidth.in.h (uc_width): Simplify declaration.
21606         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
21607         u32_strwidth): Declare with GCC attribute 'pure'.
21609         Enable common subexpression optimization in GCC.
21610         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
21611         (alphasort): Declare with GCC attribute 'pure'.
21612         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
21613         (atoll): Declare with GCC attribute 'pure'.
21614         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21615         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21616         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
21617         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
21618         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
21619         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
21620         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
21622 2012-03-24  Bruno Haible  <bruno@clisp.org>
21624         gnulib-tool: Avoid unintended error output from 'cmp'.
21625         * gnulib-tool (func_add_file, func_update_file, func_import): Use
21626         "cmp -s", not "cmp > /dev/null".
21628 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
21630         gnulib-tool: fix imprecise comments w.r.t. an automake bug
21632         It's not just Automake versions < 1.9b that creates an empty
21633         pkgdatadir at installation time if pkgdata_DATA is specified
21634         to empty; modern automake versions do this as well, at least
21635         until automake 1.11.4 (not yet released at the moment of writing,
21636         but soon to appear).  That behaviour was generally considered a
21637         feature rather than a bug, at least until this discussion:
21638         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
21640         See also automake bugs #10997 and #11030.
21642         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
21643         reference to relevant automake bug numbers.
21644         (func_emit_tests_Makefile_am): Likewise.
21646 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
21648         announce-gen: use Digest::SHA when possible
21649         * build-aux/announce-gen: Use Digest::SHA when possible, falling
21650         back to Digest::SHA1 if necessary.
21652 2012-03-20  Jim Meyering  <meyering@redhat.com>
21654         tests: avoid gcc warnings about argv vs. const initializers
21655         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
21656         warnings about discarding 'const' qualifier from pointer target type.
21657         * tests/test-posix_spawn2.c (main): Likewise.
21659 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
21661         README-release: simplify slightly
21662         * top/README-release: Run "git checkout master" only once.
21664 2012-03-15  Mark Wielaard  <mark@klomp.org>
21666         git-merge-changelog: add specific example on how to use with hg.
21667         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
21669 2012-03-18  Mark Wielaard  <mark@klomp.org>
21671         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
21673 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
21675         git-version-gen: don't let "prefix" envvar cause trouble
21676         * build-aux/git-version-gen (prefix): Initialize properly,
21677         so as not to use a value specified via the environment.
21678         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
21680 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
21682         regex: diagnose too-large repeat counts in EREs
21683         Previously, the code did not diagnose the too-large repeat count
21684         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
21685         as if it were 'b\{1000000000}', which is unexpected.
21686         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
21687         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
21688         is a reasonable one for this problem.  Another option would be to
21689         create a new REG_OVERFLOW error for repeat counts that are too large.
21690         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
21691         count is too large, so that the caller can distinguish the two cases.
21692         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
21693         "Too large" return code, and that repeat counts are one example of this.
21695 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
21697         doc: some glibc x32 integer width issues
21698         * doc/posix-headers/sys_types.texi (sys/types.h):
21699         * doc/posix-headers/time.texi (time.h):
21700         Mention that glibc x32 does not conform to POSIX in a couple of
21701         areas related to integer widths.
21703 2012-03-15  Bruno Haible  <bruno@clisp.org>
21705         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
21706         * lib/fma.c (VOLATILE): New macro.
21707         (FUNC): Use it to work around a GCC compiler bug.
21709 2012-03-13  Bruno Haible  <bruno@clisp.org>
21711         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21712         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
21713         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
21714         REPLACE_HYPOTL to 1.
21715         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
21717 2012-03-13  Bruno Haible  <bruno@clisp.org>
21719         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21720         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
21721         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
21722         REPLACE_REMAINDERL to 1.
21723         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
21724         bug.
21726 2012-03-13  Bruno Haible  <bruno@clisp.org>
21728         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21729         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
21730         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
21731         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
21732         too big rounding errors.
21733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
21734         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
21735         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
21736         (Depends-on): Update conditions.
21737         * tests/test-sqrtl.c (my_ldexpl): New function.
21738         (main): Add test of a particular value.
21739         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
21741 2012-03-13  Pádraig Brady  <P@draigBrady.com>
21743         doc: Update timer_* platform portability notes.
21744         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
21745         that always return ENOSYS.
21746         * doc/posix-functions/timer_delete.texi: Likewise.
21747         * doc/posix-functions/timer_gettime.texi: Likewise.
21748         * doc/posix-functions/timer_settime.texi: Likewise.
21750 2012-03-13  Bruno Haible  <bruno@clisp.org>
21752         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21753         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
21754         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
21755         REPLACE_CBRTL to 1.
21756         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
21758 2012-03-13  Bruno Haible  <bruno@clisp.org>
21760         remainderl: Avoid compilation error on AIX >= 5.2.
21761         * lib/math.in.h (remainderl): Undefine macro from the system header.
21763 2012-03-13  Bruno Haible  <bruno@clisp.org>
21765         Avoid compilation errors with MSVC option -fp:strict.
21766         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
21767         * lib/cbrtf.c: Likewise.
21768         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
21770 2012-03-12  Bruno Haible  <bruno@clisp.org>
21772         uninorm: Don't crash in out-of-memory conditions.
21773         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
21774         gracefully.
21775         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
21776         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
21778 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
21780         quote: fix syntax-check
21781         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
21782         also exports quote_quoting_options.
21784 2012-03-12  Simon Josefsson  <simon@josefsson.org>
21786         Collapse list of copyright years to ranges.  See
21787         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
21788         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
21789         build-aux/csharpexec.sh.in, build-aux/gnupload,
21790         build-aux/install-reloc, build-aux/javacomp.sh.in,
21791         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
21792         build-aux/move-if-change, build-aux/reloc-ldflags,
21793         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
21795 2012-03-11  Bruno Haible  <bruno@clisp.org>
21797         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
21798         * m4/log2f-ieee.m4: New file.
21799         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
21800         whether log2f works with a minus zero argument. Replace it if not.
21801         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
21802         (Depends-on): Add log2-ieee.
21803         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
21804         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
21806         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
21807         * m4/log2-ieee.m4: New file.
21808         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
21809         whether log2 works with a minus zero argument. Replace it if not.
21810         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
21811         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
21812         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
21814         Tests for module 'log2l-ieee'.
21815         * modules/log2l-ieee-tests: New file.
21816         * tests/test-log2l-ieee.c: New file.
21818         New module 'log2l-ieee'.
21819         * modules/log2l-ieee: New file.
21821         Tests for module 'log2-ieee'.
21822         * modules/log2-ieee-tests: New file.
21823         * tests/test-log2-ieee.c: New file.
21825         New module 'log2-ieee'.
21826         * modules/log2-ieee: New file.
21828         Tests for module 'log2f-ieee'.
21829         * modules/log2f-ieee-tests: New file.
21830         * tests/test-log2f-ieee.c: New file.
21831         * tests/test-log2-ieee.h: New file.
21833         New module 'log2f-ieee'.
21834         * modules/log2f-ieee: New file.
21836 2012-03-11  Bruno Haible  <bruno@clisp.org>
21838         Tests for module 'log2l'.
21839         * modules/log2l-tests: New file.
21840         * tests/test-log2l.c: New file.
21842         New module 'log2l'.
21843         * lib/math.in.h (log2l): New declaration.
21844         * lib/log2l.c: New file.
21845         * m4/log2l.m4: New file.
21846         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
21847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
21848         REPLACE_LOG2L.
21849         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
21850         REPLACE_LOG2L.
21851         * modules/log2l: New file.
21852         * tests/test-math-c++.cc: Check the declaration of log2l.
21853         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
21854         and OSF/1 problems.
21856 2012-03-11  Bruno Haible  <bruno@clisp.org>
21858         Tests for module 'log2f'.
21859         * modules/log2f-tests: New file.
21860         * tests/test-log2f.c: New file.
21862         New module 'log2f'.
21863         * lib/math.in.h (log2f): New declaration.
21864         * lib/log2f.c: New file.
21865         * m4/log2f.m4: New file.
21866         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
21867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
21868         REPLACE_LOG2F.
21869         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
21870         REPLACE_LOG2F.
21871         * modules/log2f: New file.
21872         * tests/test-math-c++.cc: Check the declaration of log2f.
21873         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
21874         and OSF/1 and Cygwin problems.
21876 2012-03-11  Bruno Haible  <bruno@clisp.org>
21878         Tests for module 'log2'.
21879         * modules/log2-tests: New file.
21880         * tests/test-log2.c: New file.
21881         * tests/test-log2.h: New file.
21883         New module 'log2'.
21884         * lib/math.in.h (log2): New declaration.
21885         * lib/log2.c: New file.
21886         * m4/log2.m4: New file.
21887         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
21888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
21889         REPLACE_LOG2.
21890         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
21891         REPLACE_LOG2.
21892         * modules/log2: New file.
21893         * tests/test-math-c++.cc: Check the declaration of log2.
21894         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
21895         and OSF/1 and Cygwin problems.
21897 2012-03-11  Bruno Haible  <bruno@clisp.org>
21899         exp2* tests: More tests.
21900         * tests/test-exp2.h (test_function): Test all integral arguments that
21901         don't need to overflow or denormalized numbers.
21902         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
21903         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
21904         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
21906 2012-03-10  Bruno Haible  <bruno@clisp.org>
21908         log1pl-ieee: Work around test failure on AIX 7.1.
21909         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
21911         log1pl-ieee: Work around test failure on IRIX 6.5.
21912         * m4/log1pl-ieee.m4: New file.
21913         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
21914         test whether log1pl works with a minus zero argument. Replace it if
21915         not.
21916         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
21917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
21918         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
21919         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
21920         (Depends-on): Update conditions.
21921         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
21922         m4/signbit.m4.
21923         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
21924         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
21926         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
21927         * m4/log1pf-ieee.m4: New file.
21928         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
21929         test whether log1pf works with a minus zero argument. Replace it if
21930         not.
21931         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
21932         m4/signbit.m4.
21933         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
21934         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
21936         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
21937         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
21938         (configure.ac): Require gl_FUNC_LOG1PF.
21940         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
21941         * m4/log1p-ieee.m4: New file.
21942         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
21943         whether log1p works with a minus zero argument. Replace it if not.
21944         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
21945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
21946         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
21947         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
21948         (Depends-on): Update conditions.
21949         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
21950         m4/signbit.m4.
21951         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
21952         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
21954         Tests for module 'log1pl-ieee'.
21955         * modules/log1pl-ieee-tests: New file.
21956         * tests/test-log1pl-ieee.c: New file.
21958         New module 'log1pl-ieee'.
21959         * modules/log1pl-ieee: New file.
21961         Tests for module 'log1p-ieee'.
21962         * modules/log1p-ieee-tests: New file.
21963         * tests/test-log1p-ieee.c: New file.
21965         New module 'log1p-ieee'.
21966         * modules/log1p-ieee: New file.
21968         Tests for module 'log1pf-ieee'.
21969         * modules/log1pf-ieee-tests: New file.
21970         * tests/test-log1pf-ieee.c: New file.
21971         * tests/test-log1p-ieee.h: New file.
21973         New module 'log1pf-ieee'.
21974         * modules/log1pf-ieee: New file.
21976 2012-03-10  Bruno Haible  <bruno@clisp.org>
21978         Tests for module 'log1pl'.
21979         * modules/log1pl-tests: New file.
21980         * tests/test-log1pl.c: New file.
21982         New module 'log1pl'.
21983         * lib/math.in.h (log1pl): New declaration.
21984         * lib/log1pl.c: New file.
21985         * m4/log1pl.m4: New file.
21986         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
21987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
21988         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
21989         * modules/log1pl: New file.
21990         * tests/test-math-c++.cc: Check the declaration of log1pl.
21991         * doc/posix-functions/log1pl.texi: Mention the new module.
21993 2012-03-10  Bruno Haible  <bruno@clisp.org>
21995         Tests for module 'log1pf'.
21996         * modules/log1pf-tests: New file.
21997         * tests/test-log1pf.c: New file.
21999         New module 'log1pf'.
22000         * lib/math.in.h (log1pf): New declaration.
22001         * lib/log1pf.c: New file.
22002         * m4/log1pf.m4: New file.
22003         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
22004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
22005         REPLACE_LOG1PF.
22006         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
22007         REPLACE_LOG1PF.
22008         * modules/log1pf: New file.
22009         * tests/test-math-c++.cc: Check the declaration of log1pf.
22010         * doc/posix-functions/log1pf.texi: Mention the new module.
22012 2012-03-10  Bruno Haible  <bruno@clisp.org>
22014         log1p tests: More tests.
22015         * tests/test-log1p.h: New file.
22016         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
22017         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
22018         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
22019         (main): Invoke test_function.
22021         log1p: Provide replacement for Minix and MSVC.
22022         * lib/math.in.h (log1p): New declaration.
22023         * lib/log1p.c: New file.
22024         * m4/log1p.m4: New file.
22025         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
22026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
22027         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
22028         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
22029         (Depends-on): Add math, isnand, log, round.
22030         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
22031         HAVE_LOG1P is 0.
22032         * tests/test-math-c++.cc: Check the declaration of log1p.
22033         * doc/posix-functions/log1p.texi: Mention the replacement.
22035 2012-03-10  Bruno Haible  <bruno@clisp.org>
22037         math tests: Small simplification.
22038         * tests/test-exp.h (test_function): Use the same err_bound for
22039         'double' on platforms with sizeof (long double) == sizeof (double)
22040         than on platforms with sizeof (long double) > sizeof (double).
22041         * tests/test-exp2.h (test_function): Likewise.
22042         * tests/test-expm1.h (test_function): Likewise.
22043         * tests/test-log.h (test_function): Likewise.
22045 2012-03-10  Bruno Haible  <bruno@clisp.org>
22047         Fix some comments.
22048         * lib/expl.c: Fix an ambiguous comment.
22049         * lib/expm1.c: Likewise.
22050         * lib/expm1l.c: Likewise.
22051         * lib/exp2.c: Likewise.
22052         * lib/exp2l.c: Likewise.
22054 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
22056         regex: allow inclusion of <regex.h> before <limits.h>
22057         Without this patch, portable programs had to include <limits.h> before
22058         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
22059         I ran into this problem with a test version of GNU grep on Solaris 8.
22060         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
22061         This is done conditionally so that this change can be merged
22062         back to glibc.
22063         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
22064         using the included regex.
22066         fts: depend on fdopendir
22067         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
22068         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
22069         problem was introduced when fdopendir was split out.
22071 2012-03-10  Bruno Haible  <bruno@clisp.org>
22073         Remove unused variables.
22074         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
22075         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
22077 2012-03-10  Bruno Haible  <bruno@clisp.org>
22079         isnanf-nolibm: Fix last commit.
22080         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
22082         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
22083         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
22085 2012-03-10  Bruno Haible  <bruno@clisp.org>
22087         logf-ieee: Work around test failure on NetBSD 5.1.
22088         * m4/logf-ieee.m4: New file.
22089         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
22090         whether logf works with a negative argument. Replace it if not.
22091         * lib/logf.c (logf): For negative arguments, return NaN.
22092         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
22093         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
22094         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
22096         logf-ieee: Work around test failure on Solaris 9.
22097         * modules/logf-ieee (Depends-on): Add log-ieee.
22098         (configure.ac): Require gl_FUNC_LOGF.
22100         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
22101         * m4/log-ieee.m4: New file.
22102         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
22103         log works with a negative argument. Replace it if not.
22104         * lib/log.c (log): For negative arguments, return NaN.
22105         * modules/log-ieee (Files): Add m4/log-ieee.m4.
22106         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
22107         * doc/posix-functions/log.texi: Mention the log-ieee module.
22109         Tests for module 'logl-ieee'.
22110         * modules/logl-ieee-tests: New file.
22111         * tests/test-logl-ieee.c: New file.
22113         New module 'logl-ieee'.
22114         * modules/logl-ieee: New file.
22116         Tests for module 'log-ieee'.
22117         * modules/log-ieee-tests: New file.
22118         * tests/test-log-ieee.c: New file.
22120         New module 'log-ieee'.
22121         * modules/log-ieee: New file.
22123         Tests for module 'logf-ieee'.
22124         * modules/logf-ieee-tests: New file.
22125         * tests/test-logf-ieee.c: New file.
22126         * tests/test-log-ieee.h: New file.
22128         New module 'logf-ieee'.
22129         * modules/logf-ieee: New file.
22131 2012-03-10  Bruno Haible  <bruno@clisp.org>
22133         log: Fix bug introduced on 2012-03-09.
22134         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
22136 2012-03-10  Pádraig Brady  <P@draigBrady.com>
22138         timer-time: link explicitly with pthreads on glibc
22139         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
22140         to support static linking, when newer glibc is
22141         detected, as that contains pthread emulation of
22142         POSIX timer functions where required.
22143         * modules/timer-time: Depend on threadlib to
22144         pull in the appropriate library to link.
22146 2012-03-10  Bruno Haible  <bruno@clisp.org>
22148         log* tests: More tests.
22149         * tests/test-log.h: New file.
22150         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
22151         (main): Invoke test_function.
22152         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
22153         (main): Invoke test_function.
22154         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
22155         (main): Invoke test_function.
22156         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22157         tests/randomd.c.
22158         (Makefile.am): Add randomd.c to test_log_SOURCES.
22159         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22160         tests/randomf.c.
22161         (Makefile.am): Add randomf.c to test_logf_SOURCES.
22162         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22163         tests/randoml.c.
22164         (Depends-on): Add 'float'.
22165         (Makefile.am): Add randoml.c to test_logl_SOURCES.
22167 2012-03-09  Bruno Haible  <bruno@clisp.org>
22169         logl: Work around OSF/1 5.1 bug.
22170         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
22171         * lib/logl.c (logl): If logl exists, use it and provide just the
22172         workaround.
22173         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
22174         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
22175         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
22176         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
22177         * modules/logl (configure.ac): Consider REPLACE_LOGL.
22178         (Depends-on): Update conditions.
22179         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
22181 2012-03-09  Bruno Haible  <bruno@clisp.org>
22183         logf: Work around OSF/1 5.1 bug.
22184         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
22185         * lib/logf.c (logf): If logf exists, use it and provide just the
22186         workaround.
22187         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
22188         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
22189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
22190         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
22191         * modules/logf (configure.ac): Consider REPLACE_LOGF.
22192         (Depends-on): Update conditions.
22193         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
22195 2012-03-09  Bruno Haible  <bruno@clisp.org>
22197         log: Work around OSF/1 5.1 bug.
22198         * lib/math.in.h (log): New declaration.
22199         * lib/log.c: New file.
22200         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
22201         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
22202         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
22203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
22204         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
22205         * modules/log (Files): Add lib/log.c.
22206         (Depends-on): Add math.
22207         (configure.ac): If REPLACE_LOG is 1, compile an override.
22208         * tests/test-math-c++.cc: Check the declaration of log.
22209         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
22211 2012-03-09  Jim Meyering  <meyering@redhat.com>
22213         readtokens.c: adjust wording in a comment
22214         * lib/readtokens.c: Insert omitted "that" in a comment.
22216 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
22218         modechange: add notations +40, 00440, etc.
22219         * lib/modechange.c (mode_compile): Support new notations
22220         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
22222 2012-03-08  Bruno Haible  <bruno@clisp.org>
22224         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
22225         * m4/exp2l-ieee.m4: New file.
22226         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
22227         test whether exp2l works with a NaN argument and with a negative
22228         infinity argument. Replace it if not.
22229         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
22230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
22231         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
22232         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
22233         (Depends-on): Update conditions.
22234         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
22235         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
22236         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
22238         Tests for module 'exp2l-ieee'.
22239         * modules/exp2l-ieee-tests: New file.
22240         * tests/test-exp2l-ieee.c: New file.
22242         New module 'exp2l-ieee'.
22243         * modules/exp2l-ieee: New file.
22245         Tests for module 'exp2-ieee'.
22246         * modules/exp2-ieee-tests: New file.
22247         * tests/test-exp2-ieee.c: New file.
22249         New module 'exp2-ieee'.
22250         * modules/exp2-ieee: New file.
22252         Tests for module 'exp2f-ieee'.
22253         * modules/exp2f-ieee-tests: New file.
22254         * tests/test-exp2f-ieee.c: New file.
22255         * tests/test-exp2-ieee.h: New file.
22257         New module 'exp2f-ieee'.
22258         * modules/exp2f-ieee: New file.
22260 2012-03-08  Bruno Haible  <bruno@clisp.org>
22262         Tests for module 'exp2l'.
22263         * modules/exp2l-tests: New file.
22264         * tests/test-exp2l.c: New file.
22266         New module 'exp2l'.
22267         * lib/math.in.h (exp2l): New declaration.
22268         * lib/exp2l.c: New file.
22269         * lib/expl-table.c: New file, extracted from lib/expl.c.
22270         * lib/expl.c (gl_expl_table): New declaration.
22271         (expl): Remove expl_table. Update reference.
22272         * m4/exp2l.m4: New file.
22273         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
22274         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
22275         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
22276         * modules/exp2l: New file.
22277         * modules/expl (Files): Add lib/expl-table.c.
22278         (configure.ac): Compile also expl-table.c.
22279         * tests/test-math-c++.cc: Check the declaration of exp2l.
22280         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
22281         problem.
22283 2012-03-08  Bruno Haible  <bruno@clisp.org>
22285         Tests for module 'exp2f'.
22286         * modules/exp2f-tests: New file.
22287         * tests/test-exp2f.c: New file.
22289         New module 'exp2f'.
22290         * lib/math.in.h (exp2f): New declaration.
22291         * lib/exp2f.c: New file.
22292         * m4/exp2f.m4: New file.
22293         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
22294         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
22295         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
22296         * modules/exp2f: New file.
22297         * tests/test-math-c++.cc: Check the declaration of exp2f.
22298         * doc/posix-functions/exp2f.texi: Mention the new module and the
22299         IRIX problem.
22301 2012-03-08  Bruno Haible  <bruno@clisp.org>
22303         Tests for module 'exp2'.
22304         * modules/exp2-tests: New file.
22305         * tests/test-exp2.c: New file.
22306         * tests/test-exp2.h: New file.
22308         New module 'exp2'.
22309         * lib/math.in.h (exp2): New declaration.
22310         * lib/exp2.c: New file.
22311         * m4/exp2.m4: New file.
22312         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
22313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
22314         REPLACE_EXP2.
22315         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
22316         REPLACE_EXP2.
22317         * modules/exp2: New file.
22318         * tests/test-math-c++.cc: Check the declaration of exp2.
22319         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
22320         and OpenBSD problems.
22322 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
22324         savedir: fix comment typo
22325         * lib/savedir.c (savedirstream): Fix typo in comment.
22327 2012-03-08  Bruno Haible  <bruno@clisp.org>
22329         test-readtokens.c: use const; remove unwarranted cast
22330         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
22332 2012-03-08  Bruno Haible  <bruno@clisp.org>
22334         fmal: Avoid compilation error on AIX.
22335         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
22336         AIX 5.2..7.1.
22338 2012-03-08  Bruno Haible  <bruno@clisp.org>
22340         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
22341         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
22342         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
22343         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
22344         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
22345         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
22346         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
22348 2012-03-08  Bruno Haible  <bruno@clisp.org>
22350         remainderf: Override buggy system function on IRIX 6.5.
22351         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
22352         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
22353         when it exists.
22354         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
22356 2012-03-08  Jim Meyering  <meyering@redhat.com>
22358         test-readtokens.c: avoid const-related compilation warnings
22359         * tests/test-readtokens.c: Avoid const-related compilation warnings.
22361 2012-03-07  Jim Meyering  <meyering@redhat.com>
22362             Bruno Haible  <bruno@clisp.org>
22364         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
22365         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
22366         tests/randomd.c.
22367         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
22368         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
22369         tests/randoml.c.
22370         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
22372 2012-03-07  Bruno Haible  <bruno@clisp.org>
22374         expm1l: Avoid compilation error on AIX.
22375         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
22376         AIX 5.2..7.1.
22378 2012-03-07  Bruno Haible  <bruno@clisp.org>
22380         expm1l: Don't override undeclared system function on IRIX 6.5.
22381         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
22382         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
22383         it exists. Set HAVE_DECL_EXPM1L.
22384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
22385         HAVE_EXPM1L.
22386         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
22387         HAVE_EXPM1L.
22388         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
22390 2012-03-07  Bruno Haible  <bruno@clisp.org>
22392         remainderl: Don't override undeclared system function on IRIX 6.5.
22393         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
22394         HAVE_REMAINDERL.
22395         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
22396         declared when it exists. Set HAVE_DECL_REMAINDERL.
22397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
22398         not HAVE_REMAINDERL.
22399         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
22400         HAVE_REMAINDERL.
22401         * doc/posix-functions/remainderl.texi: Mention missing declaration
22402         problem.
22404 2012-03-07  Bruno Haible  <bruno@clisp.org>
22406         rintf: Don't override undeclared system function on IRIX 6.5.
22407         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
22408         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
22409         exists. Set HAVE_DECL_RINTF.
22410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
22411         HAVE_RINTF.
22412         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
22413         HAVE_RINTF.
22414         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
22416 2012-03-07  Bruno Haible  <bruno@clisp.org>
22418         roundl: Avoid compilation error on AIX.
22419         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
22420         AIX 5.2..7.1.
22422 2012-03-07  Bruno Haible  <bruno@clisp.org>
22424         roundl: Don't override undeclared system function on IRIX 6.5.
22425         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
22426         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
22427         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
22428         * modules/roundl (configure.ac): For replacement code, test
22429         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
22430         (Depends-on): Update conditions.
22431         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
22433 2012-03-07  Bruno Haible  <bruno@clisp.org>
22435         roundf: Don't override undeclared system function on IRIX 6.5.
22436         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
22437         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
22438         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
22439         * modules/roundf (configure.ac): For replacement code, test
22440         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
22441         (Depends-on): Update conditions.
22442         * modules/roundf-ieee (Depends-on): Update conditions.
22443         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
22445 2012-03-07  Bruno Haible  <bruno@clisp.org>
22447         round: Don't override undeclared system function on IRIX 6.5.
22448         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
22449         argument.
22450         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
22451         also when it is not declared. Set HAVE_ROUND. For replacement code,
22452         test HAVE_ROUND, not HAVE_DECL_ROUND.
22453         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
22454         not HAVE_DECL_ROUND.
22455         (Depends-on): Update conditions.
22456         * modules/round-ieee (Depends-on): Update conditions.
22457         * doc/posix-functions/round.texi: Mention the IRIX problem.
22459 2012-03-07  Bruno Haible  <bruno@clisp.org>
22461         copysignf: Don't override undeclared system function on IRIX 6.5.
22462         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
22463         HAVE_COPYSIGNF.
22464         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
22465         declared when it exists. Set HAVE_DECL_COPYSIGNF.
22466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
22467         not HAVE_COPYSIGNF.
22468         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
22469         HAVE_COPYSIGNF.
22470         * doc/posix-functions/copysignf.texi: Mention missing declaration
22471         problem.
22473 2012-03-07  Jim Meyering  <meyering@redhat.com>
22475         readtokens: add tests
22476         * modules/readtokens-tests: New file.
22477         * tests/test-readtokens.c: New file.
22479 2012-03-07  Jim Meyering  <meyering@redhat.com>
22481         quotearg: the module must now include quote.h
22482         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
22483         So must the module.
22484         * modules/quotearg (Files): Add quote.h.
22486 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
22488         readtokens: avoid core dumps with unusual calling patterns
22489         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
22490         * lib/readtokens.c: Include limits.h.
22491         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
22492         (readtoken): Don't cache the delimiters; the cache code was buggy
22493         if !delim && saved_delim, or if the new n_delim differs from the old.
22494         Also, it wasn't thread-safe.
22496 2012-03-07  Bruno Haible  <bruno@clisp.org>
22498         quote: Adhere to common module description layout.
22499         * modules/quote (Makefile.am): Add back empty section.
22501 2012-03-06  Akim Demaille  <demaille@gostai.com>
22503         quote: fuse into quotearg
22504         This patch is made for the benefit of Bison.
22505         quote does not leave the choice of the quoting style to the user.
22506         quoting_style provides poor customizability, yet quoting_options,
22507         which is very rich, is hidden inside quotearg.c.  So in order to
22508         allow quote customization, move its implementation to quotearg.c.
22509         * lib/quote.c: Remove.
22510         * modules/quote: Adjust.
22511         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
22512         warning: provide all the members of literal structs.
22513         (quote_quoting_options): New.
22514         (quote, quote_n): Import implementation from quote.c.
22515         * lib/quote.h: Import the comments from quote.c.
22516         (quote_quoting_options): New.
22518 2012-03-06  Bruno Haible  <bruno@clisp.org>
22520         Tests for module 'expm1l-ieee'.
22521         * modules/expm1l-ieee-tests: New file.
22522         * tests/test-expm1l-ieee.c: New file.
22524         New module 'expm1l-ieee'.
22525         * modules/expm1l-ieee: New file.
22527         Tests for module 'expm1f-ieee'.
22528         * modules/expm1f-ieee-tests: New file.
22529         * tests/test-expm1f-ieee.c: New file.
22531         New module 'expm1f-ieee'.
22532         * modules/expm1f-ieee: New file.
22534         Tests for module 'expm1-ieee'.
22535         * modules/expm1-ieee-tests: New file.
22536         * tests/test-expm1-ieee.c: New file.
22537         * tests/test-expm1-ieee.h: New file.
22539         New module 'expm1-ieee'.
22540         * modules/expm1-ieee: New file.
22541         * m4/expm1-ieee.m4: New file.
22542         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
22543         whether expm1 works with a minus zero argument. Replace it if not.
22544         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
22545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
22546         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
22547         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
22548         (Depends-on): Update conditions.
22549         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
22550         AIX problem.
22552 2012-03-06  Bruno Haible  <bruno@clisp.org>
22554         Work around expm1f bug on IRIX 6.5.
22555         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
22556         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
22557         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
22558         not work.
22559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
22560         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
22561         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
22562         (Depends-on): Update conditions.
22563         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
22565 2012-03-06  Bruno Haible  <bruno@clisp.org>
22567         Tests for module 'expm1l'.
22568         * modules/expm1l-tests: New file.
22569         * tests/test-expm1l.c: New file.
22571         New module 'expm1l'.
22572         * lib/math.in.h (expm1l): New declaration.
22573         * lib/expm1l.c: New file.
22574         * m4/expm1l.m4: New file.
22575         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
22576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
22577         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
22578         * modules/expm1l: New file.
22579         * tests/test-math-c++.cc: Check the declaration of expm1l.
22580         * doc/posix-functions/expm1l.texi: Mention the new module.
22582 2012-03-06  Bruno Haible  <bruno@clisp.org>
22584         Tests for module 'expm1f'.
22585         * modules/expm1f-tests: New file.
22586         * tests/test-expm1f.c: New file.
22588         New module 'expm1f'.
22589         * lib/math.in.h (expm1f): New declaration.
22590         * lib/expm1f.c: New file.
22591         * m4/expm1f.m4: New file.
22592         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
22593         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
22594         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
22595         * modules/expm1f: New file.
22596         * tests/test-math-c++.cc: Check the declaration of expm1f.
22597         * doc/posix-functions/expm1f.texi: Mention the new module.
22599 2012-03-06  Bruno Haible  <bruno@clisp.org>
22601         Tests for module 'expm1'.
22602         * modules/expm1-tests: New file.
22603         * tests/test-expm1.c: New file.
22604         * tests/test-expm1.h: New file.
22606         New module 'expm1'.
22607         * lib/math.in.h (expm1): New declaration.
22608         * lib/expm1.c: New file.
22609         * m4/expm1.m4: New file.
22610         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
22611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
22612         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
22613         * modules/expm1: New file.
22614         * tests/test-math-c++.cc: Check the declaration of expm1.
22615         * doc/posix-functions/expm1.texi: Mention the new module.
22617 2012-03-06  Bruno Haible  <bruno@clisp.org>
22619         math: Ensure declarations of math functions.
22620         * modules/acosf (Depends-on): Add 'extensions'.
22621         * modules/asinf (Depends-on): Likewise.
22622         * modules/atan2f (Depends-on): Likewise.
22623         * modules/atanf (Depends-on): Likewise.
22624         * modules/cbrt (Depends-on): Likewise.
22625         * modules/cbrtf (Depends-on): Likewise.
22626         * modules/cbrtl (Depends-on): Likewise.
22627         * modules/copysignf (Depends-on): Likewise.
22628         * modules/copysignl (Depends-on): Likewise.
22629         * modules/cosf (Depends-on): Likewise.
22630         * modules/coshf (Depends-on): Likewise.
22631         * modules/expf (Depends-on): Likewise.
22632         * modules/fabsf (Depends-on): Likewise.
22633         * modules/fabsl (Depends-on): Likewise.
22634         * modules/fmaf (Depends-on): Likewise.
22635         * modules/fmal (Depends-on): Likewise.
22636         * modules/fmodf (Depends-on): Likewise.
22637         * modules/fmodl (Depends-on): Likewise.
22638         * modules/frexpf (Depends-on): Likewise.
22639         * modules/frexpl (Depends-on): Likewise.
22640         * modules/hypot (Depends-on): Likewise.
22641         * modules/hypotf (Depends-on): Likewise.
22642         * modules/hypotl (Depends-on): Likewise.
22643         * modules/ldexpf (Depends-on): Likewise.
22644         * modules/ldexpl (Depends-on): Likewise.
22645         * modules/log10f (Depends-on): Likewise.
22646         * modules/log10l (Depends-on): Likewise.
22647         * modules/log1p (Depends-on): Likewise.
22648         * modules/logb (Depends-on): Likewise.
22649         * modules/logf (Depends-on): Likewise.
22650         * modules/modff (Depends-on): Likewise.
22651         * modules/modfl (Depends-on): Likewise.
22652         * modules/powf (Depends-on): Likewise.
22653         * modules/remainderf (Depends-on): Likewise.
22654         * modules/remainderl (Depends-on): Likewise.
22655         * modules/rintf (Depends-on): Likewise.
22656         * modules/rintl (Depends-on): Likewise.
22657         * modules/sinf (Depends-on): Likewise.
22658         * modules/sinhf (Depends-on): Likewise.
22659         * modules/sqrtf (Depends-on): Likewise.
22660         * modules/tanf (Depends-on): Likewise.
22661         * modules/tanhf (Depends-on): Likewise.
22662         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
22663         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
22664         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
22665         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
22666         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
22667         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
22668         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
22669         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
22670         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
22671         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
22672         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
22673         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
22674         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
22675         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
22676         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
22677         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
22678         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
22679         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
22680         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
22681         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
22682         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
22683         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
22684         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
22685         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
22686         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
22687         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
22688         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
22689         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22690         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
22691         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
22692         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22693         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
22694         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
22695         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
22696         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
22697         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
22698         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
22699         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
22700         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
22701         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
22702         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
22704 2012-03-06  Bruno Haible  <bruno@clisp.org>
22706         math: Update module names in warnings.
22707         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22708         tanl): Use specific module name in warn-on-use warning.
22710 2012-03-06  Bruno Haible  <bruno@clisp.org>
22712         expl: Simplify computation.
22713         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
22715 2012-03-05  Bruno Haible  <bruno@clisp.org>
22717         exp* tests: More tests.
22718         * tests/test-exp.h: New file.
22719         * tests/test-exp.c: Include <float.h> and test-exp.h.
22720         (main): Invoke test_function.
22721         * tests/test-expf.c: Include <float.h> and test-exp.h.
22722         (main): Invoke test_function.
22723         * tests/test-expl.c: Include <float.h> and test-exp.h.
22724         (main): Invoke test_function.
22725         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
22726         (Makefile.am): Add randomd.c to test_exp_SOURCES.
22727         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
22728         (Makefile.am): Add randomf.c to test_expf_SOURCES.
22729         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
22730         (Depends-on): Add 'float'.
22731         (Makefile.am): Add randoml.c to test_expl_SOURCES.
22733         expl: Fix precision of computed result.
22734         * lib/expl.c: Completely rewritten.
22735         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
22736         (Maintainer): Add me.
22737         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
22739 2012-03-05  Bruno Haible  <bruno@clisp.org>
22741         cbrt* tests: More tests.
22742         * tests/test-cbrt.h: New file.
22743         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
22744         (main): Invoke test_function.
22745         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
22746         (main): Invoke test_function.
22747         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
22748         (main): Invoke test_function.
22749         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
22750         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
22751         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
22752         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
22753         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
22754         (Depends-on): Add 'float'.
22755         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
22757 2012-03-05  Bruno Haible  <bruno@clisp.org>
22759         hypot* tests: More tests.
22760         * tests/test-hypot.h: New file, partially extracted from
22761         tests/test-hypotl.c.
22762         * tests/test-hypot.c: Include test-hypot.h.
22763         (main): Invoke test_function.
22764         * tests/test-hypotf.c: Include test-hypot.h.
22765         (main): Invoke test_function.
22766         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
22767         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
22768         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
22769         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
22770         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
22771         tests/randomf.c.
22772         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
22773         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
22774         tests/randoml.c.
22775         (Depends-on): Add 'fpucw', 'float'.
22776         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
22778 2012-03-05  Bruno Haible  <bruno@clisp.org>
22780         fpucw: Doc about FreeBSD.
22781         * lib/fpucw.h: Mention FreeBSD in comments.
22783 2012-03-04  Bruno Haible  <bruno@clisp.org>
22785         sqrt* tests: More tests.
22786         * tests/test-sqrt.h: New file.
22787         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
22788         (main): Invoke test_function.
22789         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
22790         (main): Invoke test_function.
22791         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
22792         (main): Invoke test_function.
22793         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
22794         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
22795         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
22796         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
22797         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
22798         (Depends-on): Add 'float'.
22799         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
22801 2012-03-04  Bruno Haible  <bruno@clisp.org>
22803         remainder* tests: More tests.
22804         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
22805         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
22806         (main): Invoke test_function.
22807         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
22808         (main): Invoke test_function.
22809         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
22810         (main): Invoke test_function.
22811         * modules/remainder-tests (Files): Add tests/test-remainder.h,
22812         tests/randomd.c.
22813         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
22814         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
22815         tests/randomf.c.
22816         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
22817         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
22818         tests/randoml.c.
22819         (Depends-on): Add 'float'.
22820         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
22822 2012-03-04  Bruno Haible  <bruno@clisp.org>
22824         remainder, remainderf, remainderl: Fix computation for large quotients.
22825         * lib/remainder.c: Completely rewritten.
22826         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
22827         USE_FLOAT.
22828         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
22829         USE_LONG_DOUBLE.
22830         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
22831         isnand, isinf. Remove round, fma.
22832         * modules/remainderf (Files): Add lib/remainder.c.
22833         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
22834         Remove roundf, fmaf.
22835         * modules/remainderl (Files): Add lib/remainder.c.
22836         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
22837         isinf. Remove roundl, fmal.
22838         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
22839         REMAINDER_LIBM.
22840         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
22841         REMAINDERF_LIBM.
22842         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
22843         REMAINDERL_LIBM.
22845 2012-03-04  Bruno Haible  <bruno@clisp.org>
22847         fmod* tests: More tests.
22848         * tests/test-fmod.h (my_ldexp): New function.
22849         (test_function): Reduce amount of random numbers to test. Add tests
22850         of very large quotients x / y.
22851         * tests/test-fmod.c (MAX_EXP): New macro.
22852         * tests/test-fmodf.c (MAX_EXP): Likewise.
22853         * tests/test-fmodl.c (MAX_EXP): Likewise.
22855 2012-03-04  Bruno Haible  <bruno@clisp.org>
22857         fmod, fmodl: Fix computation for large quotients x / y.
22858         * lib/fmod.c: Completely rewritten.
22859         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
22860         USE_LONG_DOUBLE.
22861         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
22862         isnand. Remove fma.
22863         * modules/fmodl (Files): Add lib/fmod.c.
22864         (Depends-on): Add float, isfinite, signbit, fabsl,
22865         frexpl, ldexpl, isnanl. Remove fma.
22866         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
22867         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
22869 2012-03-03  Bruno Haible  <bruno@clisp.org>
22871         fmod* tests: More tests.
22872         * tests/test-fmod.h: New file.
22873         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
22874         (main): Invoke test_function.
22875         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
22876         (main): Invoke test_function.
22877         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
22878         (main): Invoke test_function.
22879         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
22880         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
22881         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
22882         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
22883         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
22884         (Depends-on): Add 'float'.
22885         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
22887 2012-03-03  Bruno Haible  <bruno@clisp.org>
22889         rint* tests: More tests.
22890         * tests/test-rint.h: New file, partially extracted from
22891         tests/test-rintl.c.
22892         * tests/test-rint.c: Include test-rint.h.
22893         (main): Invoke test_function.
22894         * tests/test-rintf.c: Include test-rint.h.
22895         (main): Invoke test_function.
22896         * tests/test-rintl.c: Include test-rint.h.
22897         (main): Invoke test_function.
22898         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
22899         (Makefile.am): Add randomd.c to test_rint_SOURCES.
22900         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
22901         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
22902         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
22903         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
22905 2012-03-03  Bruno Haible  <bruno@clisp.org>
22907         modf* tests: More tests.
22908         * tests/test-modf.h: New file.
22909         * tests/test-modf.c: Include <float.h> and test-modf.h.
22910         (main): Invoke test_function.
22911         * tests/test-modff.c: Include <float.h> and test-modf.h.
22912         (main): Invoke test_function.
22913         * tests/test-modfl.c: Include <float.h> and test-modf.h.
22914         (main): Invoke test_function.
22915         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
22916         (Makefile.am): Add randomd.c to test_modf_SOURCES.
22917         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
22918         (Makefile.am): Add randomf.c to test_modff_SOURCES.
22919         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
22920         (Depends-on): Add 'float'.
22921         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
22923 2012-03-03  Bruno Haible  <bruno@clisp.org>
22925         fabs* tests: More tests.
22926         * tests/test-fabs.h: New file, partially extracted from
22927         tests/test-fabsl.c.
22928         * tests/test-fabs.c (RANDOM): New macro.
22929         * tests/test-fabsf.c (RANDOM): New macro.
22930         * tests/test-fabsl.c (RANDOM): New macro.
22931         * modules/fabs-tests (Files): Add tests/randomd.c.
22932         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
22933         * modules/fabsf-tests (Files): Add tests/randomf.c.
22934         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
22935         * modules/fabsl-tests (Files): Add tests/randoml.c.
22936         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
22938 2012-03-03  Bruno Haible  <bruno@clisp.org>
22940         ldexp* tests: More tests.
22941         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
22942         * tests/test-ldexp.c (RANDOM): New macro.
22943         * tests/test-ldexpf.c (RANDOM): New macro.
22944         * tests/test-ldexpl.c (RANDOM): New macro.
22945         * modules/ldexp-tests (Files): Add tests/randomd.c.
22946         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
22947         * modules/ldexpf-tests (Files): Add tests/randomf.c.
22948         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
22949         * modules/ldexpl-tests (Files): Add tests/randoml.c.
22950         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
22952 2012-03-03  Bruno Haible  <bruno@clisp.org>
22954         frexp* tests: More tests.
22955         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
22956         * tests/test-frexp.c (RANDOM): New macro.
22957         * tests/test-frexpf.c (RANDOM): New macro.
22958         * tests/test-frexpl.c (RANDOM): New macro.
22959         * modules/frexp-tests (Files): Add tests/randomd.c.
22960         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
22961         * modules/frexpf-tests (Files): Add tests/randomf.c.
22962         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
22963         * modules/frexpl-tests (Files): Add tests/randoml.c.
22964         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
22966 2012-03-03  Bruno Haible  <bruno@clisp.org>
22968         Support for pseudo-random numbers in tests.
22969         * tests/randomf.c: New file.
22970         * tests/randomd.c: New file.
22971         * tests/randoml.c: New file.
22972         * tests/macros.h (randomf, randomd, randoml): New declarations.
22974 2012-03-03  Bruno Haible  <bruno@clisp.org>
22976         frexp* tests: Refactor.
22977         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
22978         * tests/test-frexp.c: Include and use it.
22979         * tests/test-frexpf.c: Likewise.
22980         * tests/test-frexpl.c: Likewise.
22981         * modules/frexp-tests (Files): Add tests/test-frexp.h.
22982         * modules/frexpf-tests (Files): Likewise.
22983         * modules/frexpl-tests (Files): Likewise.
22985 2012-03-02  Jim Meyering  <meyering@redhat.com>
22987         maint: don't specify XZ_OPT=-9ev in dist-related rule
22988         Using xz's -9 option is warranted only if you have a very large
22989         tarball (see xz's documentation for the sizes vs. presets), and
22990         requires 64MiB of memory at decompression time.
22991         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
22992         Automake's default of just "-e" is fine.  Override on a
22993         per-package basis by setting XZ_OPT e.g., in cfg.mk.
22995 2012-03-01  Eric Blake  <eblake@redhat.com>
22997         maint.mk: allow announcement for non-gnulib project
22998         * maint.mk (announcement): Skip gnulib version if not used.
23000 2012-03-01  Jim Meyering  <meyering@redhat.com>
23002         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
23003         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
23004         envvar settings cannot interfere.  Otherwise, setting envvars like
23005         prohibit=foo require=bar, etc. would cause spurious test failures.
23007 2012-03-01  Eric Blake  <eblake@redhat.com>
23009         maint.mk: add per-line exclusions to prohibitions
23010         * maint.mk (_sc_search_regexp): Add $exclude parameter.
23011         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
23012         (sc_const_long_option): Use it.
23014 2012-03-01  Bruno Haible  <bruno@clisp.org>
23016         Tests for module 'expl-ieee'.
23017         * modules/expl-ieee-tests: New file.
23018         * tests/test-expl-ieee.c: New file.
23020         New module 'expl-ieee'.
23021         * modules/expl-ieee: New file.
23023         Tests for module 'exp-ieee'.
23024         * modules/exp-ieee-tests: New file.
23025         * tests/test-exp-ieee.c: New file.
23027         New module 'exp-ieee'.
23028         * modules/exp-ieee: New file.
23030         Tests for module 'expf-ieee'.
23031         * modules/expf-ieee-tests: New file.
23032         * tests/test-expf-ieee.c: New file.
23033         * tests/test-exp-ieee.h: New file.
23035         New module 'expf-ieee'.
23036         * modules/expf-ieee: New file.
23038 2012-02-29  Bruno Haible  <bruno@clisp.org>
23040         cbrtl-ieee: Work around test failure on IRIX 6.5.
23041         * m4/cbrtl-ieee.m4: New file.
23042         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
23043         test whether cbrtl works with a minus zero argument. Replace it if not.
23044         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
23045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
23046         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
23047         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
23048         (Depends-on): Update conditions.
23049         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
23050         m4/signbit.m4.
23051         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
23052         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
23053         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
23055         Tests for module 'cbrtl-ieee'.
23056         * modules/cbrtl-ieee-tests: New file.
23057         * tests/test-cbrtl-ieee.c: New file.
23059         New module 'cbrtl-ieee'.
23060         * modules/cbrtl-ieee: New file.
23062         Tests for module 'cbrt-ieee'.
23063         * modules/cbrt-ieee-tests: New file.
23064         * tests/test-cbrt-ieee.c: New file.
23066         New module 'cbrt-ieee'.
23067         * modules/cbrt-ieee: New file.
23069         Tests for module 'cbrtf-ieee'.
23070         * modules/cbrtf-ieee-tests: New file.
23071         * tests/test-cbrtf-ieee.c: New file.
23072         * tests/test-cbrt-ieee.h: New file.
23074         New module 'cbrtf-ieee'.
23075         * modules/cbrtf-ieee: New file.
23077 2012-02-29  Bruno Haible  <bruno@clisp.org>
23079         cbrtf: Work around bug in IRIX 6.5 system function.
23080         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
23081         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
23082         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
23083         work.
23084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
23085         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
23086         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
23087         (Depends-on): Update conditions.
23088         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
23090 2012-02-29  Bruno Haible  <bruno@clisp.org>
23092         Tests for module 'cbrtl'.
23093         * modules/cbrtl-tests: New file.
23094         * tests/test-cbrtl.c: New file.
23096         New module 'cbrtl'.
23097         * lib/math.in.h (cbrtl): New declaration.
23098         * lib/cbrtl.c: New file.
23099         * m4/cbrtl.m4: New file.
23100         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
23101         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
23102         HAVE_DECL_CBRTL.
23103         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
23104         HAVE_DECL_CBRTL.
23105         * modules/cbrtl: New file.
23106         * tests/test-math-c++.cc: Check the declaration of cbrtl.
23107         * doc/posix-functions/cbrtl.texi: Mention the new module.
23109 2012-02-29  Bruno Haible  <bruno@clisp.org>
23111         Tests for module 'cbrtf'.
23112         * modules/cbrtf-tests: New file.
23113         * tests/test-cbrtf.c: New file.
23115         New module 'cbrtf'.
23116         * lib/math.in.h (cbrtf): New declaration.
23117         * lib/cbrtf.c: New file.
23118         * m4/cbrtf.m4: New file.
23119         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
23120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
23121         HAVE_DECL_CBRTF.
23122         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
23123         HAVE_DECL_CBRTF.
23124         * modules/cbrtf: New file.
23125         * tests/test-math-c++.cc: Check the declaration of cbrtf.
23126         * doc/posix-functions/cbrtf.texi: Mention the new module.
23128 2012-02-29  Bruno Haible  <bruno@clisp.org>
23130         cbrt: Provide replacement on MSVC and Minix.
23131         * lib/math.in.h (cbrt): New declaration.
23132         * lib/cbrt.c: New file.
23133         * m4/cbrt.m4: New file.
23134         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
23135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
23136         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
23137         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
23138         (Depends-on): Add dependencies.
23139         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
23140         * tests/test-math-c++.cc: Check the declaration of cbrt.
23141         * doc/posix-functions/cbrt.texi: Mention that the module provides a
23142         replacement.
23144 2012-02-29  Bruno Haible  <bruno@clisp.org>
23146         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
23147         * m4/hypotl-ieee.m4: New file.
23148         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
23149         test whether hypotl works with mixed NaN and Infinity arguments.
23150         Replace it if not.
23151         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
23152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
23153         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
23154         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
23155         (Depends-on): Update conditions.
23156         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
23157         (Depends-on): Add hypot-ieee.
23158         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
23159         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
23161         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
23162         * m4/hypotf-ieee.m4: New file.
23163         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
23164         test whether hypotf works with mixed NaN and Infinity arguments.
23165         Replace it if not.
23166         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
23167         (Depends-on): Add hypot-ieee.
23168         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
23169         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
23171         hypot-ieee: Work around test failure on OSF/1 and native Windows.
23172         * lib/math.in.h (hypot): New declaration.
23173         * lib/hypot.c: New file.
23174         * m4/hypot-ieee.m4: New file.
23175         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
23176         whether hypot works with mixed NaN and Infinity arguments. Replace it
23177         if not.
23178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
23179         REPLACE_HYPOT.
23180         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
23181         * modules/hypot (Files): Add lib/hypot.c.
23182         (Depends-on): Add dependencies.
23183         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
23184         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
23185         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
23186         * tests/test-math-c++.cc: Check the declaration of hypot.
23187         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
23189         Tests for module 'hypotl-ieee'.
23190         * modules/hypotl-ieee-tests: New file.
23191         * tests/test-hypotl-ieee.c: New file.
23193         New module 'hypotl-ieee'.
23194         * modules/hypotl-ieee: New file.
23196         Tests for module 'hypot-ieee'.
23197         * modules/hypot-ieee-tests: New file.
23198         * tests/test-hypot-ieee.c: New file.
23200         New module 'hypot-ieee'.
23201         * modules/hypot-ieee: New file.
23203         Tests for module 'hypotf-ieee'.
23204         * modules/hypotf-ieee-tests: New file.
23205         * tests/test-hypotf-ieee.c: New file.
23206         * tests/test-hypot-ieee.h: New file.
23208         New module 'hypotf-ieee'.
23209         * modules/hypotf-ieee: New file.
23211 2012-02-29  Bruno Haible  <bruno@clisp.org>
23213         Remove unused variables.
23214         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
23215         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
23216         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
23217         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
23219 2012-02-29  Eric Blake  <eblake@redhat.com>
23221         termios: fix pid_t always, not just for tcgetsid
23222         * doc/posix-headers/termios.texi (termios.h): Mention problem.
23223         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
23224         just when building tcgetsid.
23226 2012-02-29  Bruno Haible  <bruno@clisp.org>
23228         Tests for module 'hypotl'.
23229         * modules/hypotl-tests: New file.
23230         * tests/test-hypotl.c: New file.
23232         New module 'hypotl'.
23233         * lib/math.in.h (hypotl): New declaration.
23234         * lib/hypotl.c: New file.
23235         * m4/hypotl.m4: New file.
23236         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
23237         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
23238         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
23239         * modules/hypotl: New file.
23240         * tests/test-math-c++.cc: Check the hypotl declaration.
23241         * doc/posix-functions/hypotl.texi: Mention the new module.
23243 2012-02-29  Eric Blake  <eblake@redhat.com>
23245         tcgetsid: fix cygwin header bug
23246         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
23248         docs: update cygwin progress
23249         * doc/posix-functions/llround.texi (llround): Added in cygwin
23250         1.7.8.
23251         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
23252         * doc/glibc-functions/program_invocation_name.texi
23253         (program_invocation_name): Likewise.
23254         * doc/glibc-functions/program_invocation_short_name.texi
23255         (program_invocation_short_name): Likewise.
23256         * doc/glibc-functions/madvise.texi (madvise): Likewise.
23257         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
23258         Likewise.
23259         * doc/posix-functions/pthread_spin_destroy.texi
23260         (pthread_spin_destroy): Added in cygwin 1.7.10.
23261         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
23262         Likewise.
23263         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
23264         Likewise.
23265         * doc/posix-functions/pthread_spin_trylock.texi
23266         (pthread_spin_trylock): Likewise.
23267         * doc/posix-functions/pthread_spin_unlock.texi
23268         (pthread_spin_unlock): Likewise.
23269         * doc/posix-functions/pthread_setschedprio.texi
23270         (pthread_setschedprio): Likewise.
23271         * doc/posix-functions/pthread_attr_getstack.texi
23272         (pthread_attr_getstack): Likewise.
23273         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
23274         (pthread_attr_getstackaddr): Likewise.
23275         * doc/glibc-functions/pthread_getattr_np.texi
23276         (pthread_getattr_np): Likewise.
23277         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
23278         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
23279         * doc/posix-functions/clock_settime.texi (clock_settime):
23280         Likewise.
23281         * doc/posix-functions/pthread_attr_getguardsize.texi
23282         (pthread_attr_getguardsize): Likewise.
23283         * doc/posix-functions/pthread_attr_setguardsize.texi
23284         (pthread_attr_setguardsize): Likewise.
23285         * doc/posix-functions/pthread_attr_setstack.texi
23286         (pthread_attr_setstack): Likewise.
23287         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
23288         (pthread_attr_setstackaddr): Likewise.
23289         * doc/posix-functions/clock_getcpuclockid.texi
23290         (clock_getcpuclockid): Likewise.
23291         * doc/posix-functions/pthread_getcpuclockid.texi
23292         (pthread_getcpuclockid): Likewise.
23293         * doc/glibc-functions/error.texi (error): Likewise.
23294         * doc/glibc-functions/error_at_line.texi (error_at_line):
23295         Likewise.
23296         * doc/glibc-functions/error_message_count.texi
23297         (error_message_count): Likewise.
23298         * doc/glibc-functions/error_one_per_line.texi
23299         (error_one_per_line): Likewise.
23300         * doc/glibc-functions/error_print_progname.texi
23301         (error_print_progname): Likewise.
23302         * doc/posix-functions/pthread_condattr_getclock.texi
23303         (pthread_condattr_getclock): Likewise.
23304         * doc/posix-functions/pthread_condattr_setclock.texi
23305         (pthread_condattr_setclock): Likewise.
23306         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
23307         Likewise.
23308         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
23309         * doc/glibc-functions/getpt.texi (getpt): Likewise.
23310         * doc/glibc-functions/get_current_dir_name.texi
23311         (get_current_dir_name): Likewise.
23312         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
23313         Likewise.
23314         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
23315         wrong return type.
23316         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
23317         1.7.11.
23319 2012-02-29  Bruno Haible  <bruno@clisp.org>
23321         Tests for module 'hypotf'.
23322         * modules/hypotf-tests: New file.
23323         * tests/test-hypotf.c: New file.
23325         New module 'hypotf'.
23326         * lib/math.in.h (hypotf): New declaration.
23327         * lib/hypotf.c: New file.
23328         * m4/hypotf.m4: New file.
23329         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
23330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
23331         REPLACE_HYPOTF.
23332         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
23333         REPLACE_HYPOTF.
23334         * modules/hypotf: New file.
23335         * tests/test-math-c++.cc: Check the hypotf declaration.
23336         * doc/posix-functions/hypotf.texi: Mention the new module.
23338         hypot: Prepare for hypotf module.
23339         * m4/hypot.m4: New file.
23340         * modules/hypot (Files): Add m4/hypot.m4.
23341         (configure.ac): Invoke gl_FUNC_HYPOT.
23343 2012-02-29  Bruno Haible  <bruno@clisp.org>
23345         hypot tests: More tests.
23346         * tests/test-hypot.c: Include <float.h>.
23347         (main): Add tests about overflow and underflow.
23349 2012-02-29  Bruno Haible  <bruno@clisp.org>
23351         math code: Add comments.
23352         * lib/acosl.c: Add comment about related glibc source files.
23353         * lib/asinl.c: Likewise.
23354         * lib/atanl.c: Likewise.
23355         * lib/expl.c: Likewise.
23356         * lib/logl.c: Likewise.
23357         * lib/sincosl.c: Likewise.
23358         * lib/sinl.c: Likewise.
23359         * lib/tanl.c: Likewise.
23360         * lib/trigl.c: Likewise.
23361         * lib/cosl.c: Likewise. Fix comments.
23363 2012-02-28  Bruno Haible  <bruno@clisp.org>
23365         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
23366         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
23367         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
23368         HUGE_VALL are defined.
23369         (numeric_equald): Renamed from numeric_equal.
23370         (numeric_equalf, numeric_equall): New functions.
23371         (main): Check also HUGE_VALF, HUGE_VALL.
23372         * modules/math-tests (Files): Add tests/macros.h.
23373         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
23374         HUGE_VALL.
23376 2012-02-28  Bruno Haible  <bruno@clisp.org>
23378         doc: Move ISO C11 feature notes into POSIX chapters.
23379         * doc/posix-functions/aligned_alloc.texi: Renamed from
23380         doc/glibc-functions/aligned_alloc.texi.
23381         * doc/posix-functions/quick_exit.texi: Renamed from
23382         doc/glibc-functions/quick_exit.texi.
23383         * doc/posix-headers/uchar.texi: Renamed from
23384         doc/glibc-headers/uchar.texi.
23385         * doc/posix-functions/c16rtomb.texi: Renamed from
23386         doc/glibc-functions/c16rtomb.texi.
23387         * doc/posix-functions/c32rtomb.texi: Renamed from
23388         doc/glibc-functions/c32rtomb.texi.
23389         * doc/posix-functions/mbrtoc16.texi: Renamed from
23390         doc/glibc-functions/mbrtoc16.texi.
23391         * doc/posix-functions/mbrtoc32.texi: Renamed from
23392         doc/glibc-functions/mbrtoc32.texi.
23393         * doc/gnulib.texi: Update.
23394         (Glibc uchar.h): Remove section.
23395         Suggested by Eric Blake.
23397 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
23399         stdnoreturn: port to MSVC better
23400         MSVC standard headers use __declspec(noreturn), so #define noreturn
23401         to empty on that platform.  Reported by Bruno Haible in
23402         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
23403         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
23404         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
23406 2012-02-28  Bruno Haible  <bruno@clisp.org>
23408         doc: Mention new glibc headers and functions.
23409         * doc/glibc-headers/uchar.texi: New file.
23410         * doc/glibc-functions/aligned_alloc.texi: New file.
23411         * doc/glibc-functions/c16rtomb.texi: New file.
23412         * doc/glibc-functions/c32rtomb.texi: New file.
23413         * doc/glibc-functions/clock_adjtime.texi: New file.
23414         * doc/glibc-functions/fanotify_init.texi: New file.
23415         * doc/glibc-functions/fanotify_mark.texi: New file.
23416         * doc/glibc-functions/inet6_opt_append.texi: New file.
23417         * doc/glibc-functions/inet6_opt_find.texi: New file.
23418         * doc/glibc-functions/inet6_opt_finish.texi: New file.
23419         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
23420         * doc/glibc-functions/inet6_opt_init.texi: New file.
23421         * doc/glibc-functions/inet6_opt_next.texi: New file.
23422         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
23423         * doc/glibc-functions/inet6_rth_add.texi: New file.
23424         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
23425         * doc/glibc-functions/inet6_rth_init.texi: New file.
23426         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
23427         * doc/glibc-functions/inet6_rth_segments.texi: New file.
23428         * doc/glibc-functions/inet6_rth_space.texi: New file.
23429         * doc/glibc-functions/login.texi: New file.
23430         * doc/glibc-functions/mbrtoc16.texi: New file.
23431         * doc/glibc-functions/mbrtoc32.texi: New file.
23432         * doc/glibc-functions/name_to_handle_at.texi: New file.
23433         * doc/glibc-functions/ntp_gettimex.texi: New file.
23434         * doc/glibc-functions/open_by_handle_at.texi: New file.
23435         * doc/glibc-functions/prlimit.texi: New file.
23436         * doc/glibc-functions/process_vm_readv.texi: New file.
23437         * doc/glibc-functions/process_vm_writev.texi: New file.
23438         * doc/glibc-functions/recvmmsg.texi: New file.
23439         * doc/glibc-functions/scandirat.texi: New file.
23440         * doc/glibc-functions/sendmmsg.texi: New file.
23441         * doc/glibc-functions/setns.texi: New file.
23442         * doc/glibc-functions/timespec_get.texi: New file.
23443         * doc/gnulib.texi: Include them.
23444         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
23445         sections.
23446         Reported by Eric Blake.
23448 2012-02-28  Bruno Haible  <bruno@clisp.org>
23450         Avoid compilation errors with MSVC option -fp:strict.
23451         * lib/floor.c: Use MSVC specific pragma fenv_access.
23452         * lib/ceil.c: Likewise.
23453         * lib/trunc.c: Likewise.
23454         * lib/round.c: Likewise.
23455         * lib/rint.c: Likewise.
23456         * lib/fma.c: Likewise.
23457         * lib/integer_length.c: Likewise.
23458         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23459         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23460         * tests/test-floor2.c: Likewise.
23461         * tests/test-floorf2.c: Likewise.
23462         * tests/test-ceil2.c: Likewise.
23463         * tests/test-ceilf2.c: Likewise.
23464         * tests/test-trunc2.c: Likewise.
23465         * tests/test-truncf2.c: Likewise.
23466         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
23468 2012-02-27  Bruno Haible  <bruno@clisp.org>
23470         Tests for module 'sqrtl-ieee'.
23471         * modules/sqrtl-ieee-tests: New file.
23472         * tests/test-sqrtl-ieee.c: New file.
23474         New module 'sqrtl-ieee'.
23475         * modules/sqrtl-ieee: New file.
23477         Tests for module 'sqrt-ieee'.
23478         * modules/sqrt-ieee-tests: New file.
23479         * tests/test-sqrt-ieee.c: New file.
23481         New module 'sqrt-ieee'.
23482         * modules/sqrt-ieee: New file.
23484         Tests for module 'sqrtf-ieee'.
23485         * modules/sqrtf-ieee-tests: New file.
23486         * tests/test-sqrtf-ieee.c: New file.
23487         * tests/test-sqrt-ieee.h: New file.
23489         New module 'sqrtf-ieee'.
23490         * modules/sqrtf-ieee: New file.
23492 2012-02-27  Bruno Haible  <bruno@clisp.org>
23494         remainderl-ieee: Work around test failure on OSF/1.
23495         * m4/remainderl-ieee.m4: New file.
23496         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
23497         present, test whether remainderl works with a zero second argument.
23498         Replace it if not.
23499         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
23500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
23501         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
23502         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
23503         (Depends-on): Update conditions.
23504         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
23505         (Depends-on): Add remainder-ieee.
23506         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
23507         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
23508         module.
23510         remainderf-ieee: Work around test failure on OSF/1.
23511         * m4/remainderf-ieee.m4: New file.
23512         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
23513         present, test whether remainderf works with a zero second argument.
23514         Replace it if not.
23515         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
23516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
23517         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
23518         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
23519         (Depends-on): Update conditions.
23520         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
23521         (Depends-on): Add remainder-ieee.
23522         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
23523         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
23524         module.
23526         remainder-ieee: Work around test failure on OSF/1.
23527         * m4/remainder-ieee.m4: New file.
23528         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
23529         present, test whether remainder works with a zero second argument.
23530         Replace it if not.
23531         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
23532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
23533         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
23534         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
23535         (Depends-on): Update dependencies.
23536         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
23537         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
23538         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
23540         Tests for module 'remainderl-ieee'.
23541         * modules/remainderl-ieee-tests: New file.
23542         * tests/test-remainderl-ieee.c: New file.
23544         New module 'remainderl-ieee'.
23545         * modules/remainderl-ieee: New file.
23547         Tests for module 'remainder-ieee'.
23548         * modules/remainder-ieee-tests: New file.
23549         * tests/test-remainder-ieee.c: New file.
23551         New module 'remainder-ieee'.
23552         * modules/remainder-ieee: New file.
23554         Tests for module 'remainderf-ieee'.
23555         * modules/remainderf-ieee-tests: New file.
23556         * tests/test-remainderf-ieee.c: New file.
23557         * tests/test-remainder-ieee.h: New file.
23559         New module 'remainderf-ieee'.
23560         * modules/remainderf-ieee: New file.
23562 2012-02-27  Bruno Haible  <bruno@clisp.org>
23564         modff, modfl: Fix configure syntax error.
23565         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
23566         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
23568 2012-02-27  Bruno Haible  <bruno@clisp.org>
23570         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
23571         * m4/fmodl-ieee.m4: New file.
23572         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
23573         whether fmodl works with zero arguments. Replace it if not.
23574         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
23575         (Depends-on): Add fmod-ieee.
23576         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
23577         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
23579         fmodf-ieee: Work around test failure on OSF/1.
23580         * m4/fmodf-ieee.m4: New file.
23581         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
23582         whether fmodf works with zero arguments. Replace it if not.
23583         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
23584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
23585         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
23586         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
23587         (Depends-on): Update dependencies.
23588         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
23589         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
23590         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
23592         fmodf-ieee: Work around test failure on MSVC 9.
23593         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
23594         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
23596         fmod-ieee: Work around test failures on OSF/1, mingw.
23597         * m4/fmod-ieee.m4: New file.
23598         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
23599         whether fmod works with zero arguments. Replace it if not.
23600         * lib/math.in.h (fmod): New declaration.
23601         * lib/fmod.c: New file.
23602         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
23603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
23604         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
23605         * modules/fmod (Files): Add lib/fmod.c.
23606         (Depends-on): Add math, isinf, trunc, fma.
23607         (configure.ac): Arrange to compile lib/fmod.c if needed.
23608         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
23609         m4/signbit.m4.
23610         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
23611         * tests/test-math-c++.cc: Check the declaration of fmod.
23612         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
23614         fmodl-ieee: Fix test failures.
23615         * lib/fmodl.c (fmodl): Treat Inf specially.
23616         * modules/fmodl (Depends-on): Add isinf.
23618         Tests for module 'fmodl-ieee'.
23619         * modules/fmodl-ieee-tests: New file.
23620         * tests/test-fmodl-ieee.c: New file.
23622         New module 'fmodl-ieee'.
23623         * modules/fmodl-ieee: New file.
23625         Tests for module 'fmod-ieee'.
23626         * modules/fmod-ieee-tests: New file.
23627         * tests/test-fmod-ieee.c: New file.
23629         New module 'fmod-ieee'.
23630         * modules/fmod-ieee: New file.
23632         Tests for module 'fmodf-ieee'.
23633         * modules/fmodf-ieee-tests: New file.
23634         * tests/test-fmodf-ieee.c: New file.
23635         * tests/test-fmod-ieee.h: New file.
23637         New module 'fmodf-ieee'.
23638         * modules/fmodf-ieee: New file.
23640 2012-02-27  Bruno Haible  <bruno@clisp.org>
23642         Tests for module 'rintl-ieee'.
23643         * modules/rintl-ieee-tests: New file.
23644         * tests/test-rintl-ieee.c: New file.
23646         New module 'rintl-ieee'.
23647         * modules/rintl-ieee: New file.
23649         Tests for module 'rint-ieee'.
23650         * modules/rint-ieee-tests: New file.
23651         * tests/test-rint-ieee.c: New file.
23653         New module 'rint-ieee'.
23654         * modules/rint-ieee: New file.
23656         Tests for module 'rintf-ieee'.
23657         * modules/rintf-ieee-tests: New file.
23658         * tests/test-rintf-ieee.c: New file.
23659         * tests/test-rint-ieee.h: New file.
23661         New module 'rintf-ieee'.
23662         * modules/rintf-ieee: New file.
23664 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
23666         regex: re_search etc. should return -2 when memory exhausted
23667         This bug was uncovered when testing 'grep'.  Without the fix,
23668         re_search and friends return -1 when memory is exhausted, but -1
23669         means no match, and this causes grep to falsely report no-match
23670         instead of memory-exhaustion.  See
23671         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
23672         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
23673         trouble; this can occur if re_search_internal ran out of memory.
23675 2012-02-26  Bruno Haible  <bruno@clisp.org>
23677         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
23678         * m4/modfl-ieee.m4: New file.
23679         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
23680         whether modfl works with Inf. Replace it if not.
23681         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
23682         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
23683         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
23684         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
23685         (Depends-on): Update dependencies.
23686         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
23687         m4/signbit.m4.
23688         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
23689         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
23691         modfl-ieee: Fix dependencies.
23692         * modules/modfl-ieee (Depends-on): Add modf-ieee.
23694         modfl-ieee: Fix test failures.
23695         * lib/modfl.c (modfl): Treat NaN and Inf specially.
23696         * modules/modfl (Depends-on): Add isfinite, isinf.
23698         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
23699         * m4/modff-ieee.m4: New file.
23700         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
23701         whether modff works with NaN and Inf. Replace it if not.
23702         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
23703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
23704         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
23705         * modules/modff (configure.ac): Consider REPLACE_MODFF.
23706         (Depends-on): Update dependencies.
23707         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
23708         m4/signbit.m4.
23709         (Depends-on): Add modf-ieee.
23710         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
23711         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
23713         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
23714         * m4/modf-ieee.m4: New file.
23715         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
23716         whether modf works with NaN and Inf. Replace it if not.
23717         * lib/math.in.h (modf): New declaration.
23718         * lib/modf.c: New file.
23719         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
23720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
23721         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
23722         * modules/modf (Files): Add lib/modf.c.
23723         (Depends-on): Add math, isfinite, trunc, isinf.
23724         (configure.ac): Addrange to compile lib/modf.c if needed.
23725         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
23726         m4/signbit.m4.
23727         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
23728         * tests/test-math-c++.cc: Check the declaration of modf.
23729         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
23731         Tests for module 'modfl-ieee'.
23732         * modules/modfl-ieee-tests: New file.
23733         * tests/test-modfl-ieee.c: New file.
23735         New module 'modfl-ieee'.
23736         * modules/modfl-ieee: New file.
23738         Tests for module 'modf-ieee'.
23739         * modules/modf-ieee-tests: New file.
23740         * tests/test-modf-ieee.c: New file.
23742         New module 'modf-ieee'.
23743         * modules/modf-ieee: New file.
23745         Tests for module 'modff-ieee'.
23746         * modules/modff-ieee-tests: New file.
23747         * tests/test-modff-ieee.c: New file.
23748         * tests/test-modf-ieee.h: New file.
23750         New module 'modff-ieee'.
23751         * modules/modff-ieee: New file.
23753 2012-02-26  Bruno Haible  <bruno@clisp.org>
23755         Tests for module 'fabsl-ieee'.
23756         * modules/fabsl-ieee-tests: New file.
23757         * tests/test-fabsl-ieee.c: New file.
23759         New module 'fabsl-ieee'.
23760         * modules/fabsl-ieee: New file.
23762         Tests for module 'fabs-ieee'.
23763         * modules/fabs-ieee-tests: New file.
23764         * tests/test-fabs-ieee.c: New file.
23766         New module 'fabs-ieee'.
23767         * modules/fabs-ieee: New file.
23769         Tests for module 'fabsf-ieee'.
23770         * modules/fabsf-ieee-tests: New file.
23771         * tests/test-fabsf-ieee.c: New file.
23772         * tests/test-fabs-ieee.h: New file.
23774         New module 'fabsf-ieee'.
23775         * modules/fabsf-ieee: New file.
23777 2012-02-26  Bruno Haible  <bruno@clisp.org>
23779         Tests for module 'fmal-ieee'.
23780         * modules/fmal-ieee-tests: New file.
23781         * tests/test-fmal-ieee.c: New file.
23783         New module 'fmal-ieee'.
23784         * modules/fmal-ieee: New file.
23786         Tests for module 'fma-ieee'.
23787         * modules/fma-ieee-tests: New file.
23788         * tests/test-fma-ieee.c: New file.
23790         New module 'fma-ieee'.
23791         * modules/fma-ieee: New file.
23793         Tests for module 'fmaf-ieee'.
23794         * modules/fmaf-ieee-tests: New file.
23795         * tests/test-fmaf-ieee.c: New file.
23796         * tests/test-fma-ieee.h: New file.
23798         New module 'fmaf-ieee'.
23799         * modules/fmaf-ieee: New file.
23801 2012-02-26  Bruno Haible  <bruno@clisp.org>
23803         Tests for module 'ldexpl-ieee'.
23804         * modules/ldexpl-ieee-tests: New file.
23805         * tests/test-ldexpl-ieee.c: New file.
23807         New module 'ldexpl-ieee'.
23808         * modules/ldexpl-ieee: New file.
23810         Tests for module 'ldexp-ieee'.
23811         * modules/ldexp-ieee-tests: New file.
23812         * tests/test-ldexp-ieee.c: New file.
23814         New module 'ldexp-ieee'.
23815         * modules/ldexp-ieee: New file.
23817         Tests for module 'ldexpf-ieee'.
23818         * modules/ldexpf-ieee-tests: New file.
23819         * tests/test-ldexpf-ieee.c: New file.
23820         * tests/test-ldexp-ieee.h: New file.
23822         New module 'ldexpf-ieee'.
23823         * modules/ldexpf-ieee: New file.
23825 2012-02-26  Bruno Haible  <bruno@clisp.org>
23827         Refactor frexp*-ieee tests.
23828         * tests/test-frexp-ieee.h: New file.
23829         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
23830         (main): Just call test_function.
23831         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
23832         (main): Just call test_function.
23833         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
23834         (main): Just call test_function.
23835         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
23836         * modules/frexp-ieee-tests (Files): Likewise.
23837         * modules/frexpl-ieee-tests (Files): Likewise.
23839         Tests for module 'frexpl-ieee'.
23840         * modules/frexpl-ieee-tests: New file.
23841         * tests/test-frexpl-ieee.c: New file.
23843         New module 'frexpl-ieee'.
23844         * modules/frexpl-ieee: New file.
23846         Tests for module 'frexp-ieee'.
23847         * modules/frexp-ieee-tests: New file.
23848         * tests/test-frexp-ieee.c: New file.
23850         New module 'frexp-ieee'.
23851         * modules/frexp-ieee: New file.
23853         Tests for module 'frexpf-ieee'.
23854         * modules/frexpf-ieee-tests: New file.
23855         * tests/test-frexpf-ieee.c: New file.
23857         New module 'frexpf-ieee'.
23858         * modules/frexpf-ieee: New file.
23860 2012-02-26  Bruno Haible  <bruno@clisp.org>
23862         roundl-ieee tests: More tests.
23863         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23864         (main): Add tests for [MX] shaded specification in POSIX.
23865         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23866         (Depends-on): Add isnanl-nolibm.
23868         round-ieee tests: More tests.
23869         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23870         (main): Add tests for [MX] shaded specification in POSIX.
23871         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23872         (Depends-on): Add isnand-nolibm.
23874         roundf-ieee tests: More tests.
23875         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23876         (main): Add tests for [MX] shaded specification in POSIX.
23877         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23878         (Depends-on): Add isnanf-nolibm.
23880         truncl-ieee tests: More tests.
23881         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23882         (main): Add tests for [MX] shaded specification in POSIX.
23883         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23884         (Depends-on): Add isnanl-nolibm.
23886         trunc-ieee tests: More tests.
23887         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23888         (main): Add tests for [MX] shaded specification in POSIX.
23889         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23890         (Depends-on): Add isnand-nolibm.
23892         truncf-ieee tests: More tests.
23893         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23894         (main): Add tests for [MX] shaded specification in POSIX.
23895         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23896         (Depends-on): Add isnanf-nolibm.
23898         ceill-ieee tests: More tests.
23899         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23900         (main): Add tests for [MX] shaded specification in POSIX.
23901         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23902         (Depends-on): Add isnanl-nolibm.
23904         ceil-ieee tests: More tests.
23905         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23906         (main): Add tests for [MX] shaded specification in POSIX.
23907         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23908         (Depends-on): Add isnand-nolibm.
23910         ceilf-ieee tests: More tests.
23911         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23912         (main): Add tests for [MX] shaded specification in POSIX.
23913         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23914         (Depends-on): Add isnanf-nolibm.
23916         floorl-ieee tests: More tests.
23917         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23918         (main): Add tests for [MX] shaded specification in POSIX.
23919         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23920         (Depends-on): Add isnanl-nolibm.
23922         floor-ieee tests: More tests.
23923         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23924         (main): Add tests for [MX] shaded specification in POSIX.
23925         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23926         (Depends-on): Add isnand-nolibm.
23928         floorf-ieee tests: More tests.
23929         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23930         (main): Add tests for [MX] shaded specification in POSIX.
23931         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23932         (Depends-on): Add isnanf-nolibm.
23934 2012-02-26  Bruno Haible  <bruno@clisp.org>
23936         fpieee: More comments.
23937         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
23939 2012-02-25  Bruno Haible  <bruno@clisp.org>
23941         Tests for module 'log10l'.
23942         * modules/log10l-tests: New file.
23943         * tests/test-log10l.c: New file.
23944         * tests/test-math-c++.cc: Check the declaration of log10l.
23946         New module 'log10l'.
23947         * lib/math.in.h (log10l): New declaration.
23948         * lib/log10l.c: New file.
23949         * m4/log10l.m4: New file.
23950         * modules/log10l: New file.
23951         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
23952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
23953         HAVE_DECL_LOG10L.
23954         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
23955         HAVE_DECL_LOG10L.
23956         * doc/posix-functions/log10l.texi: Mention the new module.
23958 2012-02-25  Bruno Haible  <bruno@clisp.org>
23960         fmodl, remainder*: Avoid wrong results due to rounding errors.
23961         * lib/fmodl.c (fmodl): Correct the result if it is not within the
23962         expected bounds.
23963         * lib/remainderf.c (remainderf): Likewise.
23964         * lib/remainder.c (remainder): Likewise.
23965         * lib/remainderl.c (remainderl): Likewise.
23967 2012-02-25  Bruno Haible  <bruno@clisp.org>
23969         Tests for module 'remainderl'.
23970         * modules/remainderl-tests: New file.
23971         * tests/test-remainderl.c: New file.
23972         * tests/test-math-c++.cc: Check the declaration of remainderl.
23974         New module 'remainderl'.
23975         * lib/math.in.h (remainderl): New declaration.
23976         * lib/remainderl.c: New file.
23977         * m4/remainderl.m4: New file.
23978         * modules/remainderl: New file.
23979         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
23980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
23981         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
23982         HAVE_REMAINDERL.
23983         * doc/posix-functions/remainderl.texi: Mention the new module.
23985 2012-02-25  Bruno Haible  <bruno@clisp.org>
23987         Tests for module 'remainderf'.
23988         * modules/remainderf-tests: New file.
23989         * tests/test-remainderf.c: New file.
23990         * tests/test-math-c++.cc: Check the declaration of remainderf.
23992         New module 'remainderf'.
23993         * lib/math.in.h (remainderf): New declaration.
23994         * lib/remainderf.c: New file.
23995         * m4/remainderf.m4: New file.
23996         * modules/remainderf: New file.
23997         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
23998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
23999         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
24000         HAVE_REMAINDERF.
24001         * doc/posix-functions/remainderf.texi: Mention the new module.
24003 2012-02-25  Bruno Haible  <bruno@clisp.org>
24005         remainder: Support for MSVC.
24006         * lib/math.in.h (remainder): New declaration.
24007         * lib/remainder.c: New file.
24008         * m4/remainder.m4: New file.
24009         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
24010         (Depends-on): Add math, round, fma.
24011         (configure.ac): Use results of gl_FUNC_REMAINDER.
24012         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
24013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
24014         HAVE_DECL_REMAINDER.
24015         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
24016         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
24017         * tests/test-math-c++.cc: Check the declaration of remainder.
24018         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
24019         problems are fixed.
24021 2012-02-25  Bruno Haible  <bruno@clisp.org>
24023         Tests for module 'fmodl'.
24024         * modules/fmodl-tests: New file.
24025         * tests/test-fmodl.c: New file.
24026         * tests/test-math-c++.cc: Check the declaration of fmodl.
24028         New module 'fmodl'.
24029         * lib/math.in.h (fmodl): New declaration.
24030         * lib/fmodl.c: New file.
24031         * m4/fmodl.m4: New file.
24032         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
24033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
24034         REPLACE_FMODL.
24035         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
24036         REPLACE_FMODL.
24037         * modules/fmodl: New file.
24038         * doc/posix-functions/fmodl.texi: Mention the new module.
24040 2012-02-25  Bruno Haible  <bruno@clisp.org>
24042         Tests for module 'modfl'.
24043         * modules/modfl-tests: New file.
24044         * tests/test-modfl.c: New file.
24045         * tests/test-math-c++.cc: Check the declaration of modfl.
24047         New module 'modfl'.
24048         * lib/math.in.h (modfl): New declaration.
24049         * lib/modfl.c: New file.
24050         * m4/modfl.m4: New file.
24051         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
24052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
24053         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
24054         * modules/modfl: New file.
24055         * doc/posix-functions/modfl.texi: Mention the new module.
24057 2012-02-25  Bruno Haible  <bruno@clisp.org>
24059         Tests for module 'fabsl'.
24060         * modules/fabsl-tests: New file.
24061         * tests/test-fabsl.c: New file.
24062         * tests/test-math-c++.cc: Check the declaration of fabsl.
24064         New module 'fabsl'.
24065         * lib/math.in.h (fabsl): New declaration.
24066         * lib/fabsl.c: New file.
24067         * m4/fabsl.m4: New file.
24068         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
24069         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
24070         REPLACE_FABSL.
24071         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
24072         REPLACE_FABSL.
24073         * modules/fabsl: New file.
24074         * doc/posix-functions/fabsl.texi: Mention the new module.
24076 2012-02-25  Bruno Haible  <bruno@clisp.org>
24078         fabs tests: More tests.
24079         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
24080         (zero): New variable.
24081         (main): Add tests for signed zero.
24082         * modules/fabs-tests (Files): Add tests/minus-zero.h.
24084         fabsf tests: More tests.
24085         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
24086         (zero): New variable.
24087         (main): Add tests for signed zero.
24088         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
24090 2012-02-24  Bruno Haible  <bruno@clisp.org>
24092         atanl: Provide function definition on MSVC.
24093         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
24094         function pointer.
24095         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
24097 2012-02-24  Bruno Haible  <bruno@clisp.org>
24099         acosl: Provide function definition on MSVC.
24100         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
24101         function pointer.
24102         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
24104 2012-02-24  Bruno Haible  <bruno@clisp.org>
24106         asinl: Provide function definition on MSVC.
24107         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
24108         function pointer.
24109         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
24111 2012-02-24  Bruno Haible  <bruno@clisp.org>
24113         tanl: Provide function definition on MSVC.
24114         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
24115         function pointer.
24116         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
24118 2012-02-24  Bruno Haible  <bruno@clisp.org>
24120         cosl: Provide function definition on MSVC.
24121         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
24122         function pointer.
24123         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
24125 2012-02-24  Bruno Haible  <bruno@clisp.org>
24127         sinl: Provide function definition on MSVC.
24128         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
24129         function pointer.
24130         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
24132 2012-02-24  Bruno Haible  <bruno@clisp.org>
24134         logl: Provide function definition on MSVC.
24135         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
24136         function pointer.
24137         * lib/math.in.h (logl): Undefine if it does not exist as a function.
24139 2012-02-24  Bruno Haible  <bruno@clisp.org>
24141         expl: Provide function definition on MSVC.
24142         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
24143         function pointer.
24144         * lib/math.in.h (expl): Undefine if it does not exist as a function.
24146 2012-02-24  Bruno Haible  <bruno@clisp.org>
24148         sqrtl: Provide function definition on MSVC.
24149         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
24150         a function pointer.
24151         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
24153 2012-02-24  Bruno Haible  <bruno@clisp.org>
24155         ceill: Provide function definition on MSVC.
24156         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
24157         used as a function pointer.
24158         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
24160 2012-02-24  Bruno Haible  <bruno@clisp.org>
24162         floorl: Provide function definition on MSVC.
24163         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
24164         used as a function pointer.
24165         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
24167 2012-02-24  Bruno Haible  <bruno@clisp.org>
24169         ceilf: Provide function definition on MSVC.
24170         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
24171         used as a function pointer.
24172         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
24174 2012-02-24  Bruno Haible  <bruno@clisp.org>
24176         floorf: Provide function definition on MSVC.
24177         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
24178         used as a function pointer.
24179         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
24181 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24183         stdnoreturn: new module
24184         This implements a replacement for C11's <stdnoreturn.h>.
24185         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
24186         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
24187         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
24188         * tests/test-stdnoreturn.c: New files.
24190 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
24192         regex: fix false multibyte matches in some regular expressions
24193         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
24194         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
24195         * lib/regex_internal.c (re_string_skip_chars):
24196         Fix miscomputation of remain_len that may cause incomplete
24197         multi-byte character and false match.
24199 2012-02-24  Jim Meyering  <meyering@redhat.com>
24201         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
24202         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
24203         uses with "==" *before* the call, e.g., 0 == strcmp (...)
24204         Remove now-unnecessary str''cmp obfuscation.
24205         Suggested by Akim Demaille.
24207 2012-02-24  Bruno Haible  <bruno@clisp.org>
24209         streq: Rename macro.
24210         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
24211         * NEWS: Mention the change.
24212         * lib/mbrtowc.c (mbrtowc): Update.
24213         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
24214         * lib/wcwidth.c (wcwidth): Update.
24215         Suggested by Akim Demaille and Jim Meyering.
24217 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24219         regex: fix typo in definition of MIN
24220         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
24221         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
24223 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24224             Bruno Haible  <bruno@clisp.org>
24226         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
24227         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
24228         entries into a stack-allocated buffer directly.
24229         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
24231 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24232             Bruno Haible  <bruno@clisp.org>
24234         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
24236          - There were several instances of this pattern:
24238              for (;;) {
24239                n = acl (f, GETACLCNT, 0, NULL);
24240                [ allocate an array A of size N ]
24241                if (acl (f, GETACL, n, a) == n)
24242                  break;
24243              }
24245            This loop might never terminate if some other process is constantly
24246            manipulating the file's ACL.  The loop should be rewritten to
24247            terminate.
24249          - The acl (... GETACLNT ...) call is merely an optimization; its value
24250            is merely a hint as to how big to make the array.  A better
24251            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
24252            and just guess a reasonably-big size, growing the size and trying
24253            again if it's not large enough.  This guarantees termination, and
24254            saves a system call.
24256         * lib/acl-internal.h: Include <limits.h>.
24257         (MIN, SIZE_MAX): New macros.
24258         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
24259         a stack-allocated buffer, and use malloc if it does not fit. Don't
24260         use GETACLCNT.
24261         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
24263 2012-02-19  Bruno Haible  <bruno@clisp.org>
24265         acl: Fix endless loop on Solaris with vxfs.
24266         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
24267         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
24268         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
24269         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
24270         * tests/test-sameacls.c (main)[Solaris]: Likewise.
24271         Reported by Bill Jones in
24272         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
24274 2012-02-19  Bruno Haible  <bruno@clisp.org>
24276         acl: Fix copy-acl test failure on Solaris 11.0.
24277         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
24278         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
24279         that this function returns 0 in some more cases.
24281 2012-02-19  Bruno Haible  <bruno@clisp.org>
24283         acl: Update doc references.
24284         * doc/acl-resources.txt: Update links to Solaris documentation.
24286 2012-02-19  Bruno Haible  <bruno@clisp.org>
24288         Fix test failure in many locales on Solaris 11.
24289         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
24290         'tr' arguments.
24291         * tests/test-pipe-filter-ii1.c (main): Likewise.
24292         * build-aux/bootstrap (check_versions): Run 'tr' command with range
24293         expressions in the C locale.
24294         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24295         * m4/host-os.m4 (gl_HOST_OS): Likewise.
24297 2012-02-19  Bruno Haible  <bruno@clisp.org>
24299         gnulib-tool: Improve usage message.
24300         * gnulib-tool (func_usage): Move doc of --help and --version to the
24301         section "Operation modes".
24303 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
24305         README-release: make it easier to execute commands
24306         * top/README-release: break commands out on to separate lines.
24308 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
24310         GNUmakefile: simplify detection of unconfigured trees
24311         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
24312         whether the tree make is being run from is already configured or
24313         not.  Related simplifications.
24315 2012-02-13  Simon Josefsson  <simon@josefsson.org>
24317         * gnulib-tool (func_usage): Document --help and --version.
24319 2012-02-11  Jim Meyering  <meyering@redhat.com>
24321         bootstrap: don't exit 0 upon gnulib-tool failure
24322         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
24323         its exit status, not 0.
24325 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
24327         README-release: various improvements
24328         * top/README-release: Give a command to push changes for the
24329         release.  Add "distcheck" to list of other pre-release checks.
24330         Fix instance of "make stable" which should be "make TYPE".
24332 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24334         maint: replace FSF snail-mail addresses with URLs
24335         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
24336         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
24337         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
24338         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
24339         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
24340         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
24341         * lib/check-version.c, lib/check-version.h, lib/config.charset:
24342         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
24343         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
24344         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
24345         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
24346         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
24347         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
24348         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
24349         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
24350         * lib/glthread/thread.c, lib/glthread/thread.h:
24351         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
24352         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
24353         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
24354         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
24355         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
24356         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
24357         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
24358         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
24359         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
24360         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
24361         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
24362         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
24363         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
24364         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
24365         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
24366         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
24367         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
24368         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
24369         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
24370         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
24371         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
24372         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
24373         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
24374         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
24375         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
24376         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
24377         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
24378         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
24379         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
24380         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
24381         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
24382         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
24383         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
24384         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
24385         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
24386         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
24387         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
24388         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
24389         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
24390         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
24391         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
24392         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
24393         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
24394         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
24395         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
24396         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
24397         * tests/test-poll.c, tests/test-quotearg-simple.c:
24398         * tests/test-quotearg.c, tests/test-quotearg.h:
24399         * tests/test-round-ieee.c, tests/test-round1.c:
24400         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
24401         * tests/test-roundl-ieee.c, tests/test-roundl.c:
24402         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
24403         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
24404         * tests/test-strerror.c, tests/test-strerror_r.c:
24405         * tests/test-strsignal.c, tests/test-strverscmp.c:
24406         * tests/test-xmemdup0.c:
24407         Replace FSF snail mail addresses with URLs, as per GNU coding
24408         standards.  See glibc bug
24409         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
24411 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
24413         README-release: capitalize a word and split a line
24414         * top/README-release: Fix punctuation and spacing.
24416 2012-02-08  Akim Demaille  <demaille@gostai.com>
24418         fatal-signal: use C prototypes (with explicit void).
24419         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24420         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
24422 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24424         regex: spelling fix
24425         * lib/regexec.c: spelling fix
24427         regex: rely on stdint.h for SIZE_MAX
24428         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
24430 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24432         regex: merge glibc changes
24434         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
24435         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
24436         (init_word_char): Work even if bitset words are not exactly 32 or
24437         64 bits wide.  Don't assume there are no padding bits.
24438         * lib/regex.c [_LIBC]: Do not include <config.h>.
24439         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
24440         and -Wtype-limits.
24441         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
24442         needless disagreement with glibc.  All uses changed.  Define it to
24443         1 only if _GNU_SOURCE, to match glibc.
24444         (_REG_RM_NAME): Remove; no longer needed, since the names in
24445         question are now all protected by __USE_GNU.
24446         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
24447         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
24448         * lib/regex_internal.h (MIN): New macro.
24450         2012-01-03 Ulrich Drepper <drepper@gmail.com>
24451         * lib/regcomp.c (init_word_char): Optimize regex a bit.
24453         2011-12-30 Jakub Jelinek <jakub@redhat.com>
24454         * lib/regex_internal.c (re_string_fetch_byte_case):
24455         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
24456         is miscompiled, and it turns out it is because of an incorrect
24457         attribute on re_string_fetch_byte_case.  Unlike
24458         re_string_peek_byte_case, this one is really not pure, it modifies
24459         memory (increments pstr->cur_idx), and with the pure attribute GCC
24460         assumed it doesn't and it cached the presumed value of
24461         regexp->cur_idx in a variable across the
24462          for (;; ++i)
24463            {
24464              if (i >= BRACKET_NAME_BUF_SIZE)
24465                return REG_EBRACK;
24466              if (token->type == OP_OPEN_CHAR_CLASS)
24467                ch = re_string_fetch_byte_case (regexp);
24468              else
24469                ch = re_string_fetch_byte (regexp);
24470              if (re_string_eoi(regexp))
24471                return REG_EBRACK;
24472              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
24473                break;
24474              elem->opr.name[i] = ch;
24475            }
24477         2011-11-29 Andreas Schwab <schwab@redhat.com>
24478         * lib/regcomp.c (build_equiv_class):
24479         Fix access after end of search string in regex matcher.
24481         2011-11-12 Ulrich Drepper <drepper@redhat.com>
24482         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
24484         2011-10-12 Ulrich Drepper <drepper@redhat.com>
24485         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
24487         2011-10-11 Ulrich Drepper <drepper@redhat.com>
24488         * lib/regcomp.c (parse_branch, parse_sub_exp):
24489         More regex memory leak fixes and tests.
24490         (parse_sub_exp, parse_bracket_exp):
24491         Fix memory leak for some invalid regular expressions.
24493         2011-05-28 Ulrich Drepper <drepper@gmail.com>
24494         * lib/regex_internal.c, lib/regexec.c:
24495         Fix unnecessary overallocation due to incomplete character.  When
24496         incomplete characters are found at the end of a string the code
24497         ran amok and allocated lots of memory.  Stricter limits are now in
24498         place.
24500         2011-05-20 Reuben Thomas <rrt@sc3d.org>
24501         * lib/regex.h: Update documentation.
24503         2011-05-16 Aharon Robbins <arnold@skeeve.com>
24504         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
24506         2010-05-05 Andreas Schwab <schwab@redhat.com>
24507         * lib/regexec.c (find_collation_sequence_value):
24508         Fix lookup of collation sequence value during regexp matching.
24510         2010-01-22 Ulrich Drepper <drepper@redhat.com>
24511         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
24513         2008-01-16 Ulrich Drepper <drepper@redhat.com>
24514         * lib/regex.h: Cleanup namespace.
24516         2007-11-26 Ulrich Drepper <drepper@redhat.com>
24517         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
24519         2007-08-26 Ulrich Drepper <drepper@redhat.com>
24520         * lib/regex_internal.h: Prevent some declarations and definitions
24521         to be seen when used in tests.
24523         2005-05-06 Ulrich Drepper <drepper@redhat.com>
24524         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
24525         __libc_lock_* macros if not _LIBC.
24526         (struct re_dfa_t): Add lock.
24528 2012-02-07  Eric Blake  <eblake@redhat.com>
24530         maint.mk: also prohibit lower-case @var@
24531         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
24532         lower case, like @top_srcdir@.
24534 2012-02-04  Eric Blake  <eblake@redhat.com>
24536         canonicalize: avoid uninitialized memory use
24537         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
24538         random '/' left in dest.
24539         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
24541 2012-02-04  Bruno Haible  <bruno@clisp.org>
24543         isatty: Fix test failure of ptsname_r on native Windows.
24544         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
24545         and don't set errno.
24546         (isatty): Test first whether fd is valid. Set errno when returning 0.
24548 2012-02-04  Bruno Haible  <bruno@clisp.org>
24550         spawn-pipe tests: Fix a NULL program name in a diagnostic.
24551         * tests/test-spawn-pipe-main.c: Include progname.h.
24552         (main): Invoke set_program_name.
24553         * modules/spawn-pipe-tests (Depends-on): Add progname.
24555         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
24556         * tests/test-nonblocking-socket-main.c: Include progname.h.
24557         (main): Invoke set_program_name.
24558         * modules/nonblocking-socket-tests (Depends-on): Add progname.
24560         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
24561         * tests/test-nonblocking-pipe-main.c: Include progname.h.
24562         (main): Invoke set_program_name.
24563         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
24565 2012-02-04  Eric Blake  <eblake@redhat.com>
24567         canonicalize-lgpl: fix // handling
24568         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
24570         canonicalize: fix // handling
24571         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
24572         /// to //, since only // is special.
24574 2012-02-04  Bruno Haible  <bruno@clisp.org>
24576         ioctl: Fix test failure on native Windows.
24577         * lib/ioctl.c: Include msvc-nothrow.h.
24578         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
24580 2012-02-04  Bruno Haible  <bruno@clisp.org>
24582         fsync: Avoid test failure on native Windows.
24583         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
24584         read-only.
24586 2012-02-04  Bruno Haible  <bruno@clisp.org>
24588         sys_select: Avoid syntax error on OpenBSD 5.0.
24589         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
24590         currently being included, just include the system's <sys/select.h>.
24592 2012-02-04  Bruno Haible  <bruno@clisp.org>
24594         sys_select: Avoid syntax error on OpenBSD 5.0.
24595         * lib/sys_select.in.h: Include <signal.h> only after the include_next
24596         <sys/select.h>, not before.
24597         Reported by Jiri B <jirib@devio.us>.
24599 2012-02-04  Bruno Haible  <bruno@clisp.org>
24601         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
24602         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
24603         global variables.
24604         * tests/test-get-rusage-data.c (main): Likewise.
24605         Reported by Jim Meyering.
24607 2012-02-04  Bruno Haible  <bruno@clisp.org>
24609         stdioext: Fix last commit.
24610         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
24612 2012-02-03  Bruno Haible  <bruno@clisp.org>
24614         stdioext: Add tentative support for Plan9.
24615         * lib/stdio-impl.h: Include <errno.h>.
24616         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
24617         * lib/freadable.c (freadable): Likewise.
24618         * lib/fwritable.c (fwritable): Likewise.
24619         * lib/fbufmode.c (fbufmode): Likewise.
24620         * lib/freading.c (freading): Likewise.
24621         * lib/fwriting.c (fwriting): Likewise.
24622         * lib/freadptr.c (freadptr): Likewise.
24623         * lib/freadseek.c (freadptrinc): Likewise.
24624         * lib/freadahead.c (freadahead): Likewise.
24625         * lib/fpurge.c (fpurge): Likewise.
24626         * lib/fseeko.c (rpl_fseeko): Likewise.
24627         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
24628         Reported by Jens Staal <staal1978@gmail.com>.
24630 2012-02-02  Jim Meyering  <meyering@redhat.com>
24632         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
24633         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
24634         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
24635         not even to try to add the attribute.  Instead, add a pragma to suppress
24636         the suggestion/warning.
24638 2012-01-31  Karl Berry  <karl@gnu.org>
24640         setstate doc: typo.
24641         * doc/posix-functions/setstate.texi (setstate): { not (.
24643 2012-01-31  Bruno Haible  <bruno@clisp.org>
24645         popen: Make more robust on Windows.
24646         * lib/popen.c: On native Windows, use the _popen based code even if
24647         HAVE_POPEN is set.
24648         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
24649         environment variable on native Windows.
24651 2012-01-30  Bruno Haible  <bruno@clisp.org>
24653         pclose: Fix typo.
24654         * lib/stdio.in.h (pclose): Fix typo in warning message.
24656 2012-01-30  Bruno Haible  <bruno@clisp.org>
24658         doc about getlogin_r, setstate.
24659         * doc/posix-functions/getlogin_r.texi: List the incompatible
24660         declaration problem under "not fixed by gnulib".
24661         * doc/posix-functions/setstate.texi: Mention incompatible declaration
24662         problem on Solaris 11 and other platforms.
24664 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
24665             Bruno Haible  <bruno@clisp.org>
24667         poll tests: Make test more robust.
24668         * tests/test-poll.c: Include macros.h.
24669         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
24670         return value of various I/O operations.
24671         * modules/poll-tests (Files): Add tests/macros.h.
24673 2012-01-30  Bruno Haible  <bruno@clisp.org>
24675         sys_stat: Fix support for mingw64 and MSVC.
24676         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
24677         header files already do it.
24678         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
24679         stat itself.
24680         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
24682 2012-01-30  Bruno Haible  <bruno@clisp.org>
24684         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
24685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
24686         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
24688 2012-01-29  Bruno Haible  <bruno@clisp.org>
24690         quotearg: Fix test failure on MacOS X 10.5.
24691         * tests/test-quotearg-simple.c: Include localcharset.h.
24692         (main): If the locale encoding is not ASCII, bypass the tests of
24693         locale_quoting_style and clocale_quoting_style.
24694         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
24696 2012-01-29  Jim Meyering  <meyering@redhat.com>
24698         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
24699         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
24700         detect uses of canonicalize_file_name.
24702 2012-01-28  Bruno Haible  <bruno@clisp.org>
24704         test-framework-sh: Fix test failure with AIX 7.1 diff.
24705         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
24706         in column 1, like 'diff -c' does.
24707         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
24708         whether 'diff -u' is used. Instead, test whether the output contains
24709         some '@' character.
24711 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24713         strtoimax: eliminate need for stdint.h, inttypes.h checks
24714         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
24715         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
24716         the prerequisites for a recently-introduced strtoimax test.
24717         I guess this might cause strtoimax to be replaced when not
24718         strictly necessary on older hosts, but this shouldn't introduce
24719         any bugs and it should make Emacs 'configure' faster on typical
24720         modern hosts.  Problem discovered when importing the latest gnulib
24721         to an Emacs test version.
24722         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
24724 2012-01-28  Bruno Haible  <bruno@clisp.org>
24726         sys_time: Override 'struct timeval' on some native Windows platforms.
24727         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
24728         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
24729         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
24730         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
24731         needs to be overridden.
24732         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
24733         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
24734         * tests/test-sys_select.c: Check that the tv_sec member has the same
24735         size as a 'time_t'.
24736         * tests/test-sys_time.c: Likewise.
24737         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
24738         is set, set also REPLACE_GETTIMEOFDAY.
24739         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
24740         convert the resulting 'struct timeval' before returning.
24741         * lib/select.c: Include <sys/time.h>.
24742         (select, timeval): Undefine at the right place.
24743         * modules/select (Depends-on): Add sys_time.
24744         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
24745         some Windows platforms.
24746         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
24748 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
24750         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
24751         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
24752         an integer.
24753         * lib/fcntl.c (dupfd): Likewise.
24754         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
24756 2012-01-28  Bruno Haible  <bruno@clisp.org>
24758         fcntl: Avoid compilation error on native Windows.
24759         * modules/fcntl (Depends-on): Add 'close'.
24761 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
24763         select, poll, isatty: Avoid warnings on x86_64 mingw64.
24764         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
24765         pointer to an integer.
24766         * lib/poll.c (IsConsoleHandle): Likewise.
24767         * lib/isatty.c (IsConsoleHandle): Likewise.
24769 2012-01-28  Jim Meyering  <meyering@redhat.com>
24771         doc: clarify README-release
24772         * top/README-release: Clarify: you should make a point to have
24773         the latest stable versions of build tools in your PATH, and the
24774         reference to buildreq is solely for its list of tool names, not
24775         for its minimal-functional version numbers.
24776         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
24778         maint.mk: use more readable (yet functionally equivalent) quoting
24779         It is common to quote a single quote in a single quoted string like
24780         this:  '...'\''...'.  Unless you know the idiom, that looks like
24781         gibberish, so prefer to double-quote the string when possible.
24782         Then you can use a more readable, lone single quote: "...'..."
24783         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
24784         "don't" is more readable than the equivalent 'don'\''t'.
24785         (sc_cast_of_x_alloc_return_value): Likewise.
24786         (sc_cast_of_alloca_return_value): Likewise.
24787         (sc_makefile_path_separator_check): Similar: use ":" in '...',
24788         rather than '\'':'\''.
24790 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
24792         stdalign: relax _Alignof and tighten _Alignas test
24793         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
24794         as it was too strict: alignof must divide offsetof, but it need
24795         not equal offsetof.  Inspired by Joseph S. Myers's comment
24796         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
24797         Conversely, tighten the _Alignas test a bit, as the resulting
24798         alignment must be exactly 8.
24800 2012-01-27  Bruno Haible  <bruno@clisp.org>
24802         stdalign: Document the last change.
24803         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
24805 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
24807         stdalign: check that alignof and offsetof are consistent
24808         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
24809         Problem reported for gnulib by Richard W.M. Jones in
24810         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
24812 2012-01-27  Jim Meyering  <meyering@redhat.com>
24814         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
24815         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
24816         convert a sequence with gaps to the minimal containing range.
24817         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
24818         * tests/test-update-copyright.sh: Test for this.
24819         The FSF confirmed it is ok to do this, assuming there is at
24820         least one significant change per year in the affected range:
24821         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
24823 2012-01-26  Bruno Haible  <bruno@clisp.org>
24825         pipe2: refine doc about thread-safety
24826         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
24827         multithread-safety problem.
24828         * doc/glibc-functions/accept4.texi: Likewise.
24830 2012-01-26  Bruno Haible  <bruno@clisp.org>
24832         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
24833         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
24834         In the test program, include <fcntl.h>, for O_RDONLY.
24836 2012-01-26  Eric Blake  <eblake@redhat.com>
24838         pipe2: document lack of thread-safety in replacement
24839         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
24840         issue in replacement.
24841         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24842         Based on a report by Eric Wong.
24844 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
24845             Bruno Haible  <bruno@clisp.org>
24847         malloca: Avoid warnings on x86_64 mingw64.
24848         * lib/malloca.c: Include <stdint.h>.
24849         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
24850         * modules/malloca (Depends-on): Add stdint.
24851         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
24853 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24855         obstack: remove __STDC__ conditionals
24856         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
24857         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
24858         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
24859         m4/include_next.m4 as the only gnulib-maintained places that still
24860         refer to __STDC__.
24862 2012-01-24  Bruno Haible  <bruno@clisp.org>
24864         havelib: Modern quoting.
24865         * build-aux/config.rpath: Quote 'like this', not `like this', as per
24866         the recent change to the GNU coding standards.
24868 2012-01-24  Bruno Haible  <bruno@clisp.org>
24870         stdint: Improve support for Android.
24871         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
24872         Reported by Simon Josefsson <simon@josefsson.org>.
24874 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24876         doc: omit trailing empty lines from INSTALL etc.
24877         * doc/Makefile (INSTALL): Omit trailing empty lines.
24878         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
24879         omit trailing empty lines.  This simplifies the build procedure.
24881 2012-01-23  Jim Meyering  <meyering@redhat.com>
24883         tests: avoid spurious warnings about gl_sockets_startup
24884         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
24885         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
24886         reporting a "statement with no effect".
24887         * tests/test-accept.c (main): Mark as "(void)".
24888         * tests/test-accept4.c (main): Likewise.
24889         * tests/test-bind.c (main): Likewise.
24890         * tests/test-connect.c (main): Likewise.
24891         * tests/test-getpeername.c (main): Likewise.
24892         * tests/test-getsockname.c (main): Likewise.
24893         * tests/test-getsockopt.c (main): Likewise.
24894         * tests/test-listen.c (main): Likewise.
24895         * tests/test-recv.c (main): Likewise.
24896         * tests/test-recvfrom.c (main): Likewise.
24897         * tests/test-send.c (main): Likewise.
24898         * tests/test-sendto.c (main): Likewise.
24899         * tests/test-setsockopt.c (main): Likewise.
24900         * tests/test-shutdown.c (main): Likewise.
24902 2012-01-21  Bruno Haible  <bruno@clisp.org>
24904         locale-fr.m4: Fix for Android.
24905         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
24906         failure of the test program on Bionic libc.
24908 2012-01-21  Jim Meyering  <meyering@redhat.com>
24910         bootstrap: fail when bootstrap_post_import_hook fails
24911         Otherwise, it's far too easy to miss diagnostics emitted
24912         between gnulib-tool's output and that of running configure.
24913         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
24915 2012-01-17  Jim Meyering  <meyering@redhat.com>
24917         maint: enable sc_trailing_blank
24918         * build-aux/pmccabe.css: Remove trailing blanks.
24919         * doc/acl-cygwin.txt: Likewise.
24920         * doc/gnu-oids.texi: Likewise
24921         * cfg.mk: Enable sc_trailing_blank.
24922         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
24924 2012-01-17  Jim Meyering  <meyering@redhat.com>
24926         maint: enable sc_prohibit_openat_without_use
24927         * cfg.mk: Enable sc_prohibit_openat_without_use.
24928         Exempt lib/selinux-at.c.
24930 2012-01-17  Jim Meyering  <meyering@redhat.com>
24932         maint: enable sc_prohibit_cloexec_without_use
24933         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
24934         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
24936 2012-01-17  Jim Meyering  <meyering@redhat.com>
24938         maint: enable sc_prohibit_intprops_without_use
24939         * cfg.mk: Enable sc_prohibit_intprops_without_use
24940         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
24942 2012-01-17  Jim Meyering  <meyering@redhat.com>
24944         maint: enable sc_prohibit_hash_pjw_without_use
24945         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
24946         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
24947         to match any use of \<hash_pjw\>, i.e., not necessarily with a
24948         following " (".
24950 2012-01-17  Jim Meyering  <meyering@redhat.com>
24952         maint: enable double-word-prohibiting rule
24953         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
24954         Exempt three files.
24956 2012-01-17  Jim Meyering  <meyering@redhat.com>
24958         maint: remove empty lines at EOF, but excluding modules/*
24959         Apply syntax rules at home as well as abroad.  Most changes
24960         were induced by running this:
24961           make srcdir=. _build-aux=build-aux -f top/maint.mk \
24962             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
24963             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
24964         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
24965         Exempt modules/* and two binary files.
24966         Also exempt doc/INSTALL*, per request from Bruno Haible.
24967         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
24968         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
24969         * doc/Copyright/request-assign.future: Likewise.
24970         * doc/Copyright/request-disclaim.changes: Likewise.
24971         * doc/INSTALL: Likewise.
24972         * doc/INSTALL.ISO: Likewise.
24973         * doc/INSTALL.UTF-8: Likewise.
24974         * doc/acl-cygwin.txt: Likewise.
24975         * doc/acl-resources.txt: Likewise.
24976         * doc/fdl-1.2.texi: Likewise.
24977         * doc/fdl-1.3.texi: Likewise.
24978         * doc/fdl.texi: Likewise.
24979         * lib/argp-pin.c: Likewise.
24980         * lib/round.c: Likewise.
24981         * lib/unicase/u16-totitle.c: Likewise.
24982         * lib/unictype/block_test.c: Likewise.
24983         * lib/uninorm/canonical-decomposition.c: Likewise.
24984         * m4/README: Likewise.
24985         * m4/relocatable-lib.m4: Likewise.
24986         * tests/test-isnand-nolibm.c: Likewise.
24987         * tests/test-isnand.c: Likewise.
24988         * tests/uninorm/NormalizationTest.txt: Likewise.
24990 2012-01-17  Jim Meyering  <meyering@redhat.com>
24992         maint: add framework to run syntax-check rules against gnulib sources
24993         * cfg.mk: New file, to disable all currently-failing tests.
24994         We'll enable them one by one, as they are made to pass.
24995         * Makefile (sc_maint): New rule.
24997 2012-01-21  Bruno Haible  <bruno@clisp.org>
24999         stdint: Add support for Android.
25000         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
25001         include the system's <stdint.h>.
25002         Reported by Simon Josefsson <simon@josefsson.org>.
25004 2012-01-19  Jim Meyering  <meyering@redhat.com>
25006         bootstrap: add bootstrap_post_import_hook
25007         Bison does still need something like the gnulib_mk_hook whose
25008         invocation I had to remove along with slurp in commit 767ccd40.
25009         Technically, we could get along without it, but doing so would
25010         have required living with a warning and a mandatory post-bootstrap
25011         automake rerun.
25012         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
25013         (bootstrap_post_import_hook): New function.
25014         Invoke it after gnulib-tool --import and before autoreconf.
25016 2012-01-18  Jim Meyering  <meyering@redhat.com>
25018         gitlog-to-changelog: don't use "no_"-prefixed variable name
25019         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
25020         to enable both --cluster and --no-cluster.  Change variable name,
25021         s/\$no_cluster/$cluster/, and reverse usage to match.
25023         gitlog-to-changelog: use "||", not "or" in expressions
25024         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
25025         expressions.
25027 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
25029         gitlog-to-changelog: new option --no-cluster
25030         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
25031         clustering of adjacent commit messages.
25033 2012-01-17  Jim Meyering  <meyering@redhat.com>
25035         maint: spell file systems with two words, not one
25036         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
25037         two words, not one.
25039 2012-01-16  Jim Meyering  <meyering@redhat.com>
25041         bootstrap: add a FIXME comment to ensure we eventually remove the hack
25042         * build-aux/bootstrap (gnulib_tool_options): Add comment.
25044 2012-01-16  Eric Blake  <eblake@redhat.com>
25046         bootstrap: cater to autoconf 2.59
25047         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
25048         is not available.
25050         bootstrap: properly check for libtool
25051         * build-aux/bootstrap (libtoolize): Also run libtool when older
25052         usage is detected.
25054 2012-01-15  Bruno Haible  <bruno@clisp.org>
25056         Improve support for MSVC 9.
25057         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
25058         clashes on MSVC.
25059         * lib/fcntl.in.h: Likewise.
25060         * lib/stdlib.in.h: Likewise.
25061         * lib/sys_stat.in.h: Likewise.
25063 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
25065         gnupload: we hold the master copy of this script now
25066         For motivation and more information, see:
25067         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
25068         * build-aux/gnupload: Make it clear in the heading comments that the
25069         master copy of this file is maintained by gnulib.  Since we are at
25070         it, bump its copyright year and ...
25071         ($scriptversion): ... the date in its version.
25072         ($usage): Patches and bug reports should be sent to the gnulib list,
25073         not the automake one.
25074         * config/srclist.txt: Don't try to sync 'gnupload' from automake
25075         anymore.
25077 2012-01-15  Bruno Haible  <bruno@clisp.org>
25079         Fix module 'random'.
25080         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
25081         initstate, setstate are declared.
25083 2012-01-14  Bruno Haible  <bruno@clisp.org>
25085         Tests for module 'random'.
25086         * modules/random-tests: New file.
25087         * tests/test-random.c: New file, based on tests/test-random_r.c.
25089         New module 'random'.
25090         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
25091         declarations.
25092         * lib/random.c: New file, based on glibc/stdlib/random.c.
25093         * m4/random.m4: New file.
25094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
25095         HAVE_RANDOM.
25096         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
25097         * modules/random: New file.
25098         * config/srclist.txt: Add an entry for random.c.
25099         * doc/posix-functions/random.texi: Mention the 'random' module.
25100         * doc/posix-functions/initstate.texi: Likewise.
25101         * doc/posix-functions/setstate.texi: Likewise.
25102         * doc/posix-functions/srandom.texi: Likewise.
25104 2012-01-12  Bruno Haible  <bruno@clisp.org>
25106         random_r: Use common idioms.
25107         * lib/random_r.c: Include <stdlib.h> first.
25109         random_r: Override incompatible API on AIX, OSF/1.
25110         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
25111         Override the system function if REPLACE_RANDOM_R is 1.
25112         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
25113         and OSF/1, set REPLACE_RANDOM_R.
25114         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
25115         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
25116         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
25117         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
25118         * doc/glibc-functions/random_r.texi: Likewise.
25119         * doc/glibc-functions/setstate_r.texi: Likewise.
25121         random_r: Support for MSVC 9.
25122         * lib/random_r.c: Include stdint.h, not inttypes.h.
25124 2012-01-12  Eric Blake  <eblake@redhat.com>
25126         inet_ntop: guard extra work by IF_LINT
25127         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
25128         better code generation when not checking for warnings.
25129         Suggested by Paul Eggert and Jim Meyering.
25131         strptime: fix regression on mingw
25132         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
25133         Fix regression.  Reported by Bruno Haible.
25135 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
25136             Bruno Haible  <bruno@clisp.org>
25138         copy-file: add error-code-returning variant.
25139         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
25140         (qcopy_file_preserving): New declaration.
25141         * lib/copy-file.c (qcopy_file_preserving): Renamed from
25142         copy_file_preserving. Change return type to 'int'. Don't emit an error
25143         message here.
25144         (copy_file_preserving): New function.
25145         * tests/test-copy-file.c: Include <stdlib.h>.
25146         (main): Test qcopy_file_preserving if the environment variable
25147         NO_STDERR_OUTPUT is set.
25148         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
25149         with NO_STDERR_OUTPUT
25150         * tests/test-copy-file-2.sh: Likewise.
25152 2012-01-10  Bruno Haible  <bruno@clisp.org>
25154         copy-file: Use 'quote' module consistently.
25155         * lib/copy-file.c (copy_file_preserving): Use quote().
25157         copy-file: Refactor.
25158         * lib/copy-file.c: Include quote.h.
25159         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
25160         message here.
25161         * modules/copy-file (Depends-on): Add quote.
25163         acl: Export qcopy_acl.
25164         * lib/acl.h (qcopy_acl): New declaration.
25165         * lib/copy-acl.c (qcopy_acl): Make non-static.
25167         acl: Rename a local variable.
25168         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
25170         acl: Align return values of copy_acl and qcopy_acl.
25171         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
25172         maybe < -1.
25174 2012-01-11  Eric Blake  <eblake@redhat.com>
25176         strptime: silence gcc warnings
25177         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
25178         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
25179         Reported by Daniel P. Berrange.
25181         inet_ntop: silence gcc warning
25182         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
25183         Reported by Daniel P. Berrange.
25185 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
25187         getloadavg test: skip the test on GNU/Linux without /proc mounted
25188         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
25189         file.  When /proc is not mounted, it always fails with ENOENT.
25190         * tests/test-getloadavg.c (main): Treat ENOENT return code from
25191         getloadavg(3) the same way as ENOSYS and ENOTSUP.
25193 2012-01-10  Bruno Haible  <bruno@clisp.org>
25195         regex: Avoid link error on MSVC 9.
25196         * modules/regex (Depends-on): Add wctype.
25198 2012-01-10  Bruno Haible  <bruno@clisp.org>
25200         doc: Mention --with-tests option.
25201         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
25202         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
25203         --with-tests.
25204         Reported by Reuben Thomas.
25206 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
25208         users.txt: order package names lexicographically.
25209         * users.txt: Order package names lexicographically.
25211 2012-01-10  Jim Meyering  <meyering@redhat.com>
25213         maint.mk: fix description in comment
25214         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
25216         ignore-value: remove deprecated ignore_ptr function
25217         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
25218         * NEWS: Note this.
25220 2012-01-09  Jim Meyering  <meyering@redhat.com>
25222         test-init.sh: avoid a subshell
25223         * tests/test-init.sh: Remove protective subshell.
25224         Suggested by Bernhard Voelker.  While a subshell is normally
25225         required to protect against older shells (Solaris, FreeBSD) that
25226         warn about a missing program before performing redirection, the
25227         shell-selection tests performed by init.sh probably exclude any
25228         offending shell.
25230 2012-01-08  Bruno Haible  <bruno@clisp.org>
25232         setlocale tests: Avoid test failure on Solaris 11.0.
25233         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
25234         variable.
25236 2012-01-08  Bruno Haible  <bruno@clisp.org>
25238         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
25239         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25240         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
25241         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
25242         macro.
25243         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
25244         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
25245         * lib/spawn_faction_addopen.c: Add workaround implementation if
25246         HAVE_WORKING_POSIX_SPAWN.
25247         * modules/spawn (Makefile): Substitute
25248         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
25249         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
25250         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
25251         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
25252         (Depends-on): Update conditions.
25253         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
25254         the Solaris 11 bug.
25256 2012-01-08  Bruno Haible  <bruno@clisp.org>
25258         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
25259         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25260         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
25261         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
25262         macro.
25263         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
25264         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
25265         * lib/spawn_faction_adddup2.c: Add workaround implementation if
25266         HAVE_WORKING_POSIX_SPAWN.
25267         * modules/spawn (Makefile): Substitute
25268         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
25269         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
25270         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
25271         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
25272         (Depends-on): Update conditions.
25273         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
25274         the Solaris 11 bug.
25276 2012-01-08  Bruno Haible  <bruno@clisp.org>
25278         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
25279         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25280         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
25281         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
25282         HAVE_WORKING_POSIX_SPAWN.
25283         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
25284         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
25285         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
25286         * lib/spawn_faction_addclose.c: Add workaround implementation if
25287         HAVE_WORKING_POSIX_SPAWN.
25288         * modules/spawn (Makefile): Substitute
25289         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
25290         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
25291         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
25292         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
25293         (Depends-on): Update conditions.
25294         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
25295         the Solaris 11 bug.
25297 2012-01-08  Bruno Haible  <bruno@clisp.org>
25299         doc: Update for Solaris 11.0.
25300         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
25301         * m4/printf.m4: Update comments.
25303 2012-01-08  Bruno Haible  <bruno@clisp.org>
25305         mktime: Avoid compilation error on Solaris 11.
25306         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
25308 2012-01-08  Bruno Haible  <bruno@clisp.org>
25310         doc: Small fix.
25311         * doc/posix-headers/nl_types.texi: Correct platforms list.
25313 2012-01-08  Simon Josefsson  <simon@josefsson.org>
25315         Add lgpl-3.0 module.
25316         * MODULES.html.sh (Support for building documentation): Add
25317         lgpl-3.0.
25318         * modules/lgpl-3.0: New file.
25320 2012-01-08  Jim Meyering  <meyering@redhat.com>
25322         select.c: indent with spaces, not TABs
25323         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
25325 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25327         quotearg: do not use grave accent for left quote
25328         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
25329         locale_quoting_style.
25330         (quotearg_buffer_restyled): Fix example.
25331         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
25333 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25335         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
25336         Most programs do not have translation catalogs for English and much
25337         less separate catalogs for British and American English.  Drop the
25338         suggestion to translators about these two, and provide it
25339         automatically for Unicode locales.  Like most programs, even those
25340         using American English, we use single quotation marks.  This conflicts
25341         with the American typographic convention, but works better when you
25342         cite the entire error message within double quotes.  It also tries not
25343         to clash with established practice and with what non-gnulib programs
25344         will usually do.
25345         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
25346         using an UTF-8 or GB-18030 locale.  The list of other locales with
25347         quotes was provided by Bruno Haible.
25348         (quotearg_buffer_restyled): Adjust instructions to translators.
25349         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
25350         text, since this would be wrong when using Unicode.
25351         * modules/quotearg: Depend on c-strcaseeq.
25353 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25355         quotearg: fix Wikipedia link
25356         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
25358 2012-01-07  Simon Josefsson  <simon@josefsson.org>
25360         Fix for mingw with MSVC9.
25361         * m4/ld-version-script.m4: Check that compiler rejects version
25362         scripts with syntax errors.  Reported by Bruno Haible
25363         <bruno@clisp.org>.
25365 2012-01-06  Bruno Haible  <bruno@clisp.org>
25367         Talk about "native Windows API", not "Woe32".
25368         * lib/accept4.c: Update comments to mention native Windows.
25369         * lib/execute.c: Likewise.
25370         * lib/fatal-signal.c: Likewise.
25371         * lib/localcharset.c: Likewise.
25372         * lib/nanosleep.c: Likewise.
25373         * lib/nl_langinfo.c: Likewise.
25374         * lib/pclose.c: Likewise.
25375         * lib/pipe-filter-gi.c: Likewise.
25376         * lib/pipe-filter-ii.c: Likewise.
25377         * lib/pipe.c: Likewise.
25378         * lib/pipe2.c: Likewise.
25379         * lib/popen.c: Likewise.
25380         * lib/progreloc.c: Likewise.
25381         * lib/relocatable.c: Likewise.
25382         * lib/sigaction.c: Likewise.
25383         * lib/sigprocmask.c: Likewise.
25384         * lib/spawn-pipe.h: Likewise.
25385         * lib/spawn-pipe.c: Likewise.
25386         * lib/spawni.c: Likewise.
25387         * lib/stat-time.h: Likewise.
25388         * lib/w32spawn.h: Likewise.
25389         * tests/test-isatty.c: Likewise.
25390         * lib/config.charset: More comments.
25391         * doc/gnulib-intro.texi: Mention native Windows.
25392         * doc/posix-functions/_Exit_C99.texi: Likewise.
25393         * doc/posix-headers/fcntl.texi: Likewise.
25395 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
25397         argp: Avoid crash if translator uses % characters in a translation.
25398         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
25399         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
25401 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25403         doc: C11 and C++11 are now official
25404         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
25405         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
25406         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
25407         * modules/stdalign:
25408         Replace references to draft C1X to C11, and to draft C++0X to C++11.
25410 2012-01-06  Bruno Haible  <bruno@clisp.org>
25412         uc-is-grapheme-break tests: Tweak.
25413         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
25414         message.
25416 2012-01-06  Bruno Haible  <bruno@clisp.org>
25418         test-init.sh: correct the test for diff -u
25419         * tests/test-init.sh: Also redirect stdout to /dev/null.
25421 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
25423         Use ', not `, for quoting output.
25424         * build-aux/announce-gen (usage, sizes, print_news_deltas)
25425         (print_changelog_deltas, get_tool_versions, main program):
25426         * build-aux/git-version-gen:
25427         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
25428         * build-aux/move-if-change (help):
25429         * build-aux/useless-if-before-free (usage, main program):
25430         * check-module (parse_module_file, usage)
25431         (find_included_lib_files, check_module):
25432         * lib/argmatch.c (main) [TEST]:
25433         * lib/argp-help.c (_help):
25434         * lib/getopt1.c (main) [TEST]:
25435         * lib/git-merge-changelog.c (usage):
25436         * lib/xstrtol-error.c (xstrtol_error):
25437         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
25438         * m4/argz.m4 (gl_FUNC_ARGZ):
25439         * m4/bison.m4 (gl_BISON):
25440         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
25441         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
25442         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25443         * m4/fpending.m4 (gl_PREREQ_FPENDING):
25444         * m4/gc-random.m4 (gl_GC_RANDOM):
25445         * m4/intl.m4 (gt_CHECK_DECL):
25446         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
25447         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
25448         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
25449         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
25450         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
25451         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
25452         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
25453         * tests/test-dirname.c (main):
25454         * tests/test-getpass.c (main):
25455         * tests/test-iconvme.c (main):
25456         * tests/test-parse-datetime.c (LOG):
25457         * tests/test-xstrtoimax.sh:
25458         * tests/test-xstrtol.sh:
25459         * tests/test-xstrtoll.sh:
25460         * tests/test-xstrtoumax.sh:
25461         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
25462         * top/GNUmakefile (abort-due-to-no-makefile):
25463         Quote 'like this', not `like this', as per the recent change to
25464         the GNU coding standards.
25466 2012-01-05  Bruno Haible  <bruno@clisp.org>
25468         strtoimax: Don't force a replacement on systems where intmax_t is int.
25469         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
25470         'intmax_t' is not larger than 'int'.
25471         Reported by Pádraig Brady <P@draigBrady.com>.
25473 2012-01-05  Bruno Haible  <bruno@clisp.org>
25475         doc: Mention NetBSD bugs.
25476         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
25477         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
25479 2012-01-05  Bruno Haible  <bruno@clisp.org>
25481         strtoumax tests: Enhance tests.
25482         * tests/test-strtoumax.c (main): Add tests for large values.
25484 2012-01-05  Bruno Haible  <bruno@clisp.org>
25486         strtoimax: Work around AIX 5.1 bug.
25487         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
25488         definition.
25489         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
25490         Set HAVE_STRTOIMAX.
25491         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
25492         REPLACE_STRTOIMAX.
25493         * modules/inttypes-incomplete (Makefile.am): Substitute
25494         REPLACE_STRTOIMAX.
25495         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
25496         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
25497         (Depends-on): Update conditions.
25498         * tests/test-strtoimax.c (main): Add tests for large values.
25499         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
25501 2012-01-05  Bruno Haible  <bruno@clisp.org>
25503         inttypes: Modernize.
25504         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
25505         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
25506         (Makefile.am): Update inttypes.h rule.
25508 2012-01-05  Jim Meyering  <meyering@redhat.com>
25510         init.sh: don't waste a subshell just to redirect stderr
25511         * tests/init.sh: In testing for diff -u and diff -c, use a
25512         stderr-redirecting exec inside `...` rather than a subshell.
25514         test-init.sh: avoid failure on HP-UX 11.00
25515         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
25516         resolves to diff -c or cmp.  Reported by Bruno Haible.
25518 2012-01-05  Bruno Haible  <bruno@clisp.org>
25520         Tests for module 'strtoull'.
25521         * modules/strtoull-tests: New file.
25522         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
25524 2012-01-05  Bruno Haible  <bruno@clisp.org>
25526         Tests for module 'strtoll'.
25527         * modules/strtoll-tests: New file.
25528         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
25530 2012-01-05  Bruno Haible  <bruno@clisp.org>
25532         Tests for module 'strtoul'.
25533         * modules/strtoul-tests: New file.
25534         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
25536 2012-01-05  Bruno Haible  <bruno@clisp.org>
25538         Tests for module 'strtol'.
25539         * modules/strtol-tests: New file.
25540         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
25542 2012-01-04  Jim Meyering  <meyering@redhat.com>
25544         test-init.sh: accommodate Solaris 5.10's different diff -u output
25545         * tests/test-init.sh: Also exempt @@ lines from the comparison
25546         of diff output, since Solaris 5.10 and GNU diff formats differ.
25547         Reported by Stefano Lattarini.
25549 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25551         test-posixtm: don't assume signed integer wraparound
25552         * tests/test-posixtm.c (main): Don't assume wraparound semantics
25553         after signed integer overflow.  Inspired by (though it may not
25554         fix) Bruno Haible's bug report in
25555         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
25557         Spell out "Windows 9x" and "Windows XP".
25558         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
25559         "Windows 9x" and "WinXP" with "Windows XP".
25561 2012-01-04  Jim Meyering  <meyering@redhat.com>
25563         test-vc-list-files-cvs.sh: remove obsolete comment
25564         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
25565         double exit.  Now that's all encapsulated via skip_ and Exit.
25567 2012-01-04  Bruno Haible  <bruno@clisp.org>
25569         Talk about "native Windows API", not "Win32".
25570         * lib/classpath.c: Update comments to mention native Windows.
25571         * lib/csharpexec.c: Likewise.
25572         * lib/dup2.c: Likewise.
25573         * lib/error.c: Likewise.
25574         * lib/fcntl.c: Likewise.
25575         * lib/filename.h: Likewise.
25576         * lib/findprog.c: Likewise.
25577         * lib/get-rusage-as.c: Likewise.
25578         * lib/get-rusage-data.c: Likewise.
25579         * lib/getpagesize.c: Likewise.
25580         * lib/javaexec.c: Likewise.
25581         * lib/msvc-inval.c: Likewise.
25582         * lib/msvc-nothrow.c: Likewise.
25583         * lib/nanosleep.c: Likewise.
25584         * lib/nonblocking.c: Likewise.
25585         * lib/printf-parse.c: Likewise.
25586         * lib/setlocale.c: Likewise.
25587         * lib/sigaction.c: Likewise.
25588         * lib/strerror_r.c: Likewise.
25589         * lib/tmpdir.c: Likewise.
25590         * lib/vasnprintf.c: Likewise.
25591         * lib/w32spawn.h: Likewise.
25592         * lib/waitpid.c: Likewise.
25593         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
25594         * m4/locale-ar.m4: Likewise.
25595         * m4/locale-fr.m4: Likewise.
25596         * m4/locale-ja.m4: Likewise.
25597         * m4/locale-tr.m4: Likewise.
25598         * m4/locale-zh.m4: Likewise.
25599         * m4/printf.m4: Likewise.
25600         * tests/test-cloexec.c: Likewise.
25601         * tests/test-copy-acl.sh: Likewise.
25602         * tests/test-copy-file.sh: Likewise.
25603         * tests/test-file-has-acl.sh: Likewise.
25604         * tests/test-set-mode-acl.sh: Likewise.
25605         * tests/test-dup-safer.c: Likewise.
25606         * tests/test-dup2.c: Likewise.
25607         * tests/test-dup3.c: Likewise.
25608         * tests/test-fcntl.c: Likewise.
25609         * tests/test-nonblocking-pipe.h: Likewise.
25610         * tests/test-nonblocking-socket.h: Likewise.
25611         * tests/test-pipe.c: Likewise.
25612         * tests/test-pipe2.c: Likewise.
25613         * tests/test-spawn-pipe-child.c: Likewise.
25614         * doc/acl-resources.txt: Likewise.
25615         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
25616         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
25617         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
25618         * lib/localcharset.c: Update comments to mention native Windows.
25619         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
25620         * lib/localename.c: Likewise.
25621         * lib/progreloc.c: Likewise.
25622         * lib/relocatable.c: Likewise.
25623         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
25624         (windows_compute_revents): Renamed from win32_compute_revents.
25625         (windows_compute_revents_socket): Renamed from
25626         win32_compute_revents_socket.
25627         * lib/select.c: Update comments to mention native Windows.
25628         (windows_poll_handle): Renamed from win32_poll_handle.
25629         * m4/threadlib.m4: Update comments to mention native Windows.
25630         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
25631         --enable-threads=windows instead of --enable-threads=win32. Set
25632         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
25633         * lib/glthread/lock.h: Update comments to mention native Windows.
25634         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
25635         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
25636         USE_WIN32_THREADS.
25637         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
25638         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
25639         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
25640         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
25641         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
25642         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
25643         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
25644         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
25645         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
25646         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
25647         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
25648         * tests/test-tls.c: Likewise.
25649         Rationale:
25650         Microsoft renamed the "Win32 API" to "Windows API", as it is available
25651         on both 32-bit and 64-bit Windows systems.
25652         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
25653         line of distinction is between "native Windows" on one side and Unix/
25654         POSIX systems on the other side. More details in
25655         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
25656         Suggested by Paul Eggert.
25658 2012-01-03  Bruno Haible  <bruno@clisp.org>
25660         isatty: Support for MSVC 9.
25661         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
25662         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
25663         (_isatty_nothrow): New function.
25664         (isatty): Use it instead of _isatty.
25665         (IsConsoleHandle): Add comment, from Paolo Bonzini.
25666         * lib/poll.c (IsConsoleHandle): Likewise.
25667         * lib/select.c (IsConsoleHandle): Likewise.
25668         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
25669         (gl_PREREQ_ISATTY): New macro.
25670         * modules/isatty (Depends-on): Add msvc-inval.
25671         (configure.ac): Invoke gl_PREREQ_ISATTY.
25673 2012-01-03  Jim Meyering  <meyering@redhat.com>
25675         maint.mk: remove temporary transition aid from over 1.5 years ago
25676         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
25677         purpose was to aid in the transition (avoiding silent malfunction)
25678         from that old name to the new _sc_search_regexp.  This shim was
25679         added by commit 219c504b.
25681         init.sh: do not try to accommodate compare arguments starting with "-"
25682         * tests/init.sh (compare_dev_null_): Do not try to accommodate
25683         compare arguments that start with "-".  Besides, we do not worry
25684         about this when invoking diff or cmp; why start now with sed?
25685         Using "--" to separate options from argument would trigger sed
25686         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
25687         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
25689 2012-01-02  Bruno Haible  <bruno@clisp.org>
25691         Enhance tests for module 'isatty'.
25692         * modules/isatty-tests (Depends-on): Add pipe-posix.
25693         * tests/test-isatty.c: Include <fcntl.h>.
25694         (DEV_NULL): New macro.
25695         (main): Test the resut of isatty() also on regular files, pipes, and
25696         /dev/null.
25698         New module 'isatty'.
25699         * lib/unistd.in.h (isatty): New declaration.
25700         * lib/isatty.c: New file, based on an idea of
25701         Bastien Roucariès <roucaries.bastien@gmail.com>.
25702         * m4/isatty.m4: New file.
25703         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
25704         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
25705         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
25706         REPLACE_ISATTY.
25707         * modules/isatty: New file.
25708         * doc/posix-functions/isatty.texi: Mention the new module.
25709         Suggested by Paolo Bonzini.
25711 2012-01-02  Bruno Haible  <bruno@clisp.org>
25713         canonicalize: Tweak 2011-12-29 commit.
25714         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
25715         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
25717 2012-01-02  Jim Meyering  <meyering@redhat.com>
25719         gitlog-to-changelog: describe input syntax in --help output
25720         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
25722         gitlog-to-changelog: fix typo in --help: show backslash before email @
25723         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
25724         in sources, but not in actual output.
25726 2011-12-30  Jim Meyering  <meyering@redhat.com>
25728         gitlog-to-changelog: don't malfunction when name contains %-directive
25729         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
25730         in a name string cause trouble.  E.g., with a user name of "%s",
25731         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
25733 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
25735         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
25736         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
25737         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
25738         the "  (tiny change)" notation that is appended to the standard
25739         ChangeLog "date  name  email" header line.
25741 2012-01-01  Jim Meyering  <meyering@redhat.com>
25743         test-framework-sh: init.sh: fix "make dist" failure
25744         When using gnulib-tool's --with-tests option and any module that
25745         depends on test-framework-sh, "make dist" would fail due to the
25746         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
25747         in the gltests directory, and not in the gllib/ directory.
25748         One way to work around that is to move the EXTRA_DIST += init.sh
25749         from the primary module to the -tests one:
25750         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
25751         * modules/test-framework-sh (Makefile.am): ...not here.
25752         Reported by Tom G. Christensen in
25753         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
25755         version-etc: update copyright year reported by --version
25756         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
25758 2011-12-31  Pádraig Brady  <P@draigBrady.com>
25760         canonicalize: only stat() if required
25761         * lib/canonicalize.c (canonicalize_filename_mode):
25762         Avoid calling l?stat() when both CAN_MISSING,
25763         and CAN_NOLINKS are set, as we neither need
25764         to resolve symlinks or test component existence.
25766 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
25768         doc: cover st_ino issues once; add OpenVMS etc.
25769         * doc/posix-functions/stat.texi (stat):
25770         * doc/posix-functions/lstat.texi (lstat):
25771         * doc/posix-functions/fstatat.texi (fstatat):
25772         * doc/posix-functions/fstat.texi (fstat):
25773         Move general 'struct stat' stuff to sys_stat.texi,
25774         leaving behind a pointer.
25775         * doc/posix-headers/sys_stat.texi (sys/stat.h):
25776         Merge duplicate info about 'struct stat' problems into here.
25777         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
25778         and suggest partial workarounds.
25780         same-inode: port to OpenVMS
25781         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
25782         three st_ino values.
25784 2011-12-30  Pádraig Brady  <P@draigBrady.com>
25786         canonicalize: fix references to stat() and lstat()
25787         * lib/canonicalize.c (canonicalize_filename_mode):
25788         Ensure references always resolve to a replacement
25789         function if required (even via a macro).
25791 2011-12-30  Jim Meyering  <meyering@redhat.com>
25793         gitlog-to-changelog: remove a little duplication
25794         * build-aux/gitlog-to-changelog (main): Grep @lines once,
25795         rather than twice.
25797 2011-12-29  Pádraig Brady  <P@draigBrady.com>
25799         canonicalize: add support for not resolving symlinks
25800         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
25801         indicate we don't want to follow symlinks.  Also
25802         provide CAN_MODE_MASK to aid setting these existing
25803         mutually exclusive values.
25804         * lib/canonicalize.c (canonicalize_filename_mode):
25805         Extract the flags from can_mode parameter, which
25806         are currently just used to select between stat()
25807         and lstat().  Also ensure that mutually exclusive
25808         values are flagged immediately as invalid.
25809         * tests/test-canonicalize.c: Verify symlinks are
25810         not followed, and that invalid flag combinations
25811         are diagnosed.
25813 2011-12-25  Jim Meyering  <meyering@redhat.com>
25815         gitlog-to-changelog: do not clump multi-paragraph entries
25816         Identical header lines (date,name,email+coauthors) are suppressed,
25817         thus putting all entries with those same characteristics under
25818         a single header.  However, when a log entry consists of two or
25819         more paragraphs, it may not be clear where it starts and ends.
25820         This change makes it so that such an entry is always separated
25821         from others by a header line, even when that header would
25822         otherwise be suppressed.
25823         * build-aux/gitlog-to-changelog: Implement the above.
25824         Inspired by a related request from Stefano Lattarini in
25825         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
25827 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25829         announce-gen: fix `cmd' typo in diagnostic
25830         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
25831         diagnostic: a missing '$' meant that the command was not output.
25833 2011-12-23  Jim Meyering  <meyering@redhat.com>
25835         test-framework-sh: distribute init.sh
25836         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
25837         Otherwise, "make -C gnulib-tests check" (at least in grep) would
25838         fail due to the lack of init.sh.
25840         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
25841         * modules/atexit-tests: Rather than listing tests/init.sh,
25842         now that there's a module for it, simply depend on that new module.
25843         * modules/closein-tests: Likewise.
25844         * modules/exclude-tests: Likewise.
25845         * modules/getcwd-tests: Likewise.
25846         * modules/perror-tests: Likewise.
25847         * modules/pread-tests: Likewise.
25848         * modules/pwrite-tests: Likewise.
25849         * modules/vc-list-files-tests: Likewise.
25850         * modules/verify-tests: Likewise.
25851         * modules/xalloc-die-tests: Likewise.
25852         * modules/xstrtoimax-tests: Likewise.
25853         * modules/xstrtol-tests: Likewise.
25854         * modules/xstrtoll-tests: Likewise.
25855         * modules/xstrtoumax-tests: Likewise.
25856         * modules/yesno-tests: Likewise.
25858 2011-12-22  Jim Meyering  <meyering@redhat.com>
25860         test-framework-sh: add minimal tests of init.sh's compare function
25861         * modules/test-framework-sh-tests: New file.
25862         * tests/test-init.sh: New file.
25864         test-framework-sh: new module
25865         * modules/test-framework-sh: New file.
25866         * MODULES.html.sh (Support for maintaining and releasing projects):
25867         List it.
25869         init.sh: do not emit simulated diff output to stderr
25870         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
25872 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
25874         .gitignore: ignore gnulib.dvi and regex.info
25875         * doc/.gitignore:add gnulib.dvi and regex.info
25877 2011-12-22  Jim Meyering  <meyering@redhat.com>
25879         init.sh: correct previous change
25880         * tests/init.sh (compare): My previous change was wrong.
25881         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
25883         init.sh: avoid unwarranted test failure when using "set -e"
25884         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
25885         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
25886         a use like "compare exp out" would get evoke an unconditional failure.
25888 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
25890         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
25891         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
25892         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
25893         autoreconf that did not.
25894         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
25895         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
25897 2011-12-17  Jim Meyering  <meyering@redhat.com>
25899         bootstrap: remove some now-unneeded code
25900         This script arose back when gnulib-tool was young.
25901         Since then, it has seen improvements that render much of this
25902         script unnecessary.  In particular, it can now make symlinks
25903         to the files it uses.  Also, I no longer see as much value in
25904         marking files as read-only via comments.
25905         If you relied on the symlink-creation feature of the preceding
25906         version of this script, you can get most of that functionality
25907         by adding the --symlink option to the definition of
25908         gnulib_tool_option_extras in your bootstrap.conf file.
25909         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
25910         Run autopoint and libtoolize *before* gnulib-tool.
25911         After it, run an abbreviated autoreconf, rather than a loop around
25912         all tools.
25913         (slirp, bt_mark_as_generated): Remove functions.
25915 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25917         ftoastr: fix typo
25918         * lib/ftoastr.h: Fix misspelling in comment.
25920 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
25922         * top/README-release: fix punctuation.
25924 2011-12-17  Jim Meyering  <meyering@redhat.com>
25926         bootstrap: correct the recent buildreq change
25927         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
25928         had no effect.
25929         * build-aux/bootstrap (buildreq): Bracket each search term with
25930         "*...*", so that the shell "case" statement works as intended.
25931         Add comments.
25933 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
25935         build: let bootstrap resort to wget when downloading .po files
25936         * build-aux/bootstrap (download_po_files): Fallback to wget when
25937         downloading the .po files via rsync fails.  This is necessary to
25938         bootstrap from behind a strict firewall.
25940 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25942         stdint: don't assume C++11 when compiling with g++
25943         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
25944         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
25945         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
25946         work also in C++ before C++11, as that improperly inhibits
25947         generating a substitute stdint.h for that case.
25949 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25951         alloca: protect comment from gnulib-tool
25952         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
25953         that gnulib-tool doesn't think it's a license, and munge it to
25954         say "GCC version 3".
25956 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
25958         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
25959         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
25960         $(abs_top_builddir) instead of $(top_builddir).
25962 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
25964         strftime-tests: also test nanoseconds
25965         * tests/test-strftime.c (T): Add a test of %N.
25967 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
25969         inttypes, stdint: add C++11 support
25970         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
25971         when including inttypes.h and stdint.h.  Support this change to
25972         the standard.
25973         * doc/posix-headers/inttypes.texi (inttypes.h):
25974         * doc/posix-headers/stdint.texi (stdint.h): Document this.
25975         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
25976         Define if not defined already, for the benefit of pre-C++11 hosts.
25977         Define the standard format macros (e.g., PRId8) always.
25978         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
25979         Likewise, if __cpluspus.  Define the standard constant and limit
25980         macros (e.g., INT8_C, INT8_MAX) always.
25981         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
25982         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
25983         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
25984         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
25985         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
25986         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
25987         Likewise.
25989 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
25991         nonblocking tests: Fix test failure on Linux/PPC.
25992         Suggested by Prerna Saxena in
25993         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
25994         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
25995         Set to 1100000.
25997 2011-12-12  Jim Meyering  <meyering@redhat.com>
25999         argmatch: don't hard-code `' when listing valid option arguments
26000         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
26001         use the quote function to add quotes.  Use fputs rather than
26002         fprintf for the format string with no format directive.
26004 2011-12-07  Eric Blake  <eblake@redhat.com>
26006         bootstrap: detect tools required by gnulib-tool
26007         * build-aux/bootstrap (buildreq): Provide minimum implicit
26008         dependencies.
26009         * DEPENDENCIES: Mention patch as a prereq.
26011 2011-12-04  Bruno Haible  <bruno@clisp.org>
26013         sethostname: Port to Windows platforms.
26014         * lib/sethostname.c: Provide an alternate implementation for Windows
26015         platforms.
26016         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
26017         (main): Skip the test if sethostname() fails with EPERM. On Windows
26018         platforms, don't check the result of gethostname().
26020 2011-12-04  Bruno Haible  <bruno@clisp.org>
26021             Jim Meyering  <meyering@redhat.com>
26023         tests: Avoid spurious error message on platforms without mktemp program.
26024         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
26026 2011-12-04  Bruno Haible  <bruno@clisp.org>
26028         sethostname: Fix documentation.
26029         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
26030         "not fixed" section.
26032 2011-12-03  Bruno Haible  <bruno@clisp.org>
26034         gnulib-tool: Verify that the License field is present and non-empty.
26035         * gnulib-tool (func_get_license_raw): New function, extracted from
26036         func_get_license.
26037         (func_get_license): Use it. Warn if the module is not a test module and
26038         has no license.
26039         Suggested by Jim Meyering.
26041 2011-12-03  Bruno Haible  <bruno@clisp.org>
26043         sethostname tests: Fix link error on mingw.
26044         * tests/test-sethostname1.c: New file, extracted from
26045         tests/test-sethostname.c.
26046         * tests/test-sethostname2.c: New file, extracted from
26047         tests/test-sethostname.c.
26048         * tests/test-sethostname.c: Remove file.
26049         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
26050         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
26051         (Depends-on): Add gethostname.
26052         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
26053         Link the latter with $(GETHOSTNAME_LIB).
26055         sethostname tests: Fix compilation error on mingw.
26056         * tests/test-sethostname.c: Don't include <sys/types.h>.
26057         (geteuid): Use a dummy value without uid_t.
26058         * modules/sethostname-tests (Depends-on): Remove sys_types.
26060         sethostname tests: Avoid a gcc warning.
26061         * tests/test-sethostname.c (main): Remove an unused variable.
26063         Tweak last commit.
26064         * modules/sethostname-tests (Files): Sort by decreasing importance.
26065         (configure.ac): Check for geteuid.
26066         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
26067         the test when there's nothing to test. Drop an unnecessary cast.
26068         Improve an error message. Verify that the final sethostname() call
26069         succeeds.
26071 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26073         Add a test suite for the sethostname module.
26074         * modules/sethostname-tests: New file.  A test program
26075         for the sethostname module.
26076         * tests/test-sethostname.c: Likewise.
26078 2011-12-03  Bruno Haible  <bruno@clisp.org>
26080         Tweak last commit.
26081         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
26082         Fix preprocessor directives indentation. Fix typos.
26083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
26084         * modules/unistd (Makefile): Likewise.
26086 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26088         Integrate the sethostname module into unistd.
26089         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
26090         into the unistd.h header.
26091         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
26092         preprocessor directives.
26093         * modules/unistd: Setup the Makefile substitutions of the
26094         SETHOSTNAME preprocessor directives.
26096 2011-12-03  Bruno Haible  <bruno@clisp.org>
26098         Tweak last commit.
26099         * lib/sethostname.c: Don't include <string.h>.
26100         (sethostname): No need to copy the argument string to the stack. Don't
26101         call clearerr. Preserve errno when fprintf failed.
26102         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
26103         Don't invoke AC_REPLACE_FUNCS.
26104         * modules/sethostname (Link): Remove empty section.
26105         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
26106         failure problem.
26108 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26110         New module 'sethostname'.
26111         * lib/sethostname.c (sethostname): New file.  Provide sethostname
26112         for systems that lack it.
26113         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
26114         sethostname declaration and function.
26115         * modules/sethostname: New file.  Define the sethostname module.
26117 2011-12-03  Bruno Haible  <bruno@clisp.org>
26119         Tweak last commit.
26120         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
26122 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26124         Split the HOST_NAME_MAX detection into a separate m4 macro.
26125         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
26126         macro so it can be used by the pending sethostname module.
26128 2011-12-03  Bruno Haible  <bruno@clisp.org>
26130         Fix module descriptions syntax.
26131         * modules/argv-iter (License): Fix syntax.
26132         * modules/di-set (License): Likewise.
26133         * modules/ino-map (License): Likewise.
26134         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
26136 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26138         stdalign: port to Clang 3.0
26139         Problem reported by Simon Josefsson in
26140         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
26141         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
26142         which has <stdalign.h> but which does not define alignof.
26143         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
26145 2011-12-01  Eric Blake  <eblake@redhat.com>
26147         mktempd: silence dd usage
26148         * build-aux/mktempd (rand_bytes): Silence dd.
26150 2011-11-30  Simon Josefsson  <simon@josefsson.org>
26152         manywarnings: Don't mention gcc version in docstring.
26153         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
26154         Jim Meyering <meyering@redhat.com>.
26156 2011-11-30  Jim Meyering  <meyering@redhat.com>
26158         hash: mark a few floating point constants with "f" suffix
26159         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
26160         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
26161         floating point constants with "f", since they're destined to be
26162         saved/used as "float"s.
26164 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
26166         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
26167         * tests/test-float.c (test_long_double): Correct and re-enable the
26168         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
26170 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
26172         Avoid subtracting two pointers that don't point into the same block.
26173         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
26174         only pointers into the same memory block are subtracted. We cannot
26175         assume that sizeof (ptrdiff_t) == sizeof (void *).
26177 2011-11-29  Eric Blake  <eblake@redhat.com>
26179         maint.mk: add syntax check for use of compare from init.sh
26180         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
26181         moved here from coreutils.
26183         manywarnings: drop -Wunsuffixed-float-constants
26184         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
26185         '1.0D', which is the only way to silence this warning for 'double'.
26187 2011-11-29  Jim Meyering  <meyering@redhat.com>
26189         hash: mark compute_bucket_size with the pure attribute
26190         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
26192         quotearg, propername: correct pragma guard expression
26193         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
26194         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
26196 2011-11-28  Jim Meyering  <meyering@redhat.com>
26198         propername: do not mark proper_name with the const attribute
26199         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
26200         since it examines data pointed to by its parameter.
26201         * lib/propername.c (proper_name): Instead, add a pragma to suppress
26202         the suggestion from -Wsuggest-attribute=const.
26204         propername: mark one more function as const
26205         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
26207 2011-11-27  Jim Meyering  <meyering@redhat.com>
26209         mark functions with const and pure attributes
26211         Mark functions per suggestions from gcc-4.6 when using these options:
26212         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
26213         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
26214         Follow these guidelines: when possible, apply the attribute to
26215         an extern declaration, not to its definition.  Apply it to the
26216         definition only when the definition is static.
26217         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
26218         * lib/argv-iter.h (argv_iter_n_args): Likewise.
26219         * lib/base64.h (isbase64): Likewise.
26220         * lib/basename-lgpl.c (last_component, base_len): Likewise.
26221         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
26222         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
26223         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
26224         (c_tolower, c_toupper): Likewise.
26225         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
26226         * lib/chdir-long.c (find_non_slash): Likewise.
26227         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
26228         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
26229         * lib/file-type.h (file_type): Likewise.
26230         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
26231         * lib/filevercmp.c (verrevcmp): Likewise.
26232         * lib/freadahead.h (freadahead): Likewise.
26233         * lib/fts.c (fts_maxarglen): Likewise.
26234         * lib/hash-pjw.h (hash_pjw): Likewise.
26235         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
26236         * lib/hash.c (is_prime, next_prime): Likewise.
26237         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
26238         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
26239         (hash_table_ok, hash_get_first, hash_string): Likewise.
26240         (compute_bucket_size): Likewise.
26241         * lib/i-ring.h (i_ring_empty): Likewise.
26242         * lib/isnan.c (isnanl): Likewise.
26243         * lib/math.h (isnanl, rpl_isnanl): Likewise.
26244         * lib/memcasecmp.h (memcasecmp): Likewise.
26245         * lib/memchr2.h (memchr2): Likewise.
26246         * lib/memcmp2.h (memcmp2): Likewise.
26247         * lib/parse-datetime.y (lookup_zone): Likewise.
26248         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
26249         [!WINDOWS_SOCKETS]: Likewise.
26250         * lib/strnlen1.h (strnlen1): Likewise.
26251         * lib/uniwidth.in.h (uc_width): Likewise.
26252         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
26253         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
26254         (quoting_options_from_style): Add a comment.
26255         * lib/propername.h (proper_name): Add a comment.
26257 2011-11-27  Bruno Haible  <bruno@clisp.org>
26259         Remove unused macros from !_LIBC code in glibc-borrowed files.
26260         * lib/fnmatch.c (STRCOLL): Remove macro.
26261         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
26262         * lib/glob.c (__stat, __readdir64): Remove macros.
26263         * lib/tempname.c (__open64, __xstat64): Remove macros.
26264         Suggested by Paul Eggert.
26266 2011-11-27  Bruno Haible  <bruno@clisp.org>
26268         getcwd: Fix link error on MSVC 9.
26269         * modules/getcwd (Depends-on): Add readdir, rewinddir.
26271 2011-11-27  Bruno Haible  <bruno@clisp.org>
26273         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
26274         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
26275         HAVE_OPENDIR is 0.
26276         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
26277         HAVE_CLOSEDIR is 0.
26278         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
26279         is 0.
26280         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
26282 2011-11-27  Bruno Haible  <bruno@clisp.org>
26284         getcwd: Fix bug from 2011-08-17.
26285         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
26286         platforms that need it.
26287         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
26288         code of 4 to be a failure, not a success. This ensures that
26289         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
26291 2011-11-27  Bruno Haible  <bruno@clisp.org>
26293         binary-io tests: Avoid test failure on mingw when libtool is used.
26294         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
26295         Don't verify the size of t-bin-out1.tmp here.
26296         * tests/test-binary-io.sh: Verify it here.
26297         Reported by Simon Josefsson.
26299 2011-11-26  Bruno Haible  <bruno@clisp.org>
26301         Fix conflict between two instantiations of module 'unistd'.
26302         * gnulib-tool (func_emit_autoconf_snippet): Substitute
26303         ${include_guard_prefix} also in the autoconf snippet.
26304         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
26305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
26306         GNULIB_UNISTD_H_GETOPT.
26307         * modules/getopt-posix (configure.ac): Set the
26308         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
26309         * modules/getopt-gnu (configure.ac): Likewise.
26310         * modules/unistd (Makefile.am): Change the substitution value of
26311         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
26312         Reported by Simon Josefsson.
26314 2011-11-25  Bruno Haible  <bruno@clisp.org>
26316         pagealign_alloc: Doc and comments.
26317         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
26318         module.
26319         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
26321 2011-11-25  Jim Meyering  <meyering@redhat.com>
26323         test-update-copyright.sh: avoid false-positive failure
26324         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
26325         around false positive failure on Cygwin/Windows.  The latter was
26326         matching erroneously-created files with names like
26327         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
26329 2011-11-25  Simon Josefsson  <simon@josefsson.org>
26331         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
26332         * m4/valgrind-tests.m4: Check that the parameters that will be
26333         used works, not just a subset of them.  Reported by Bruno Haible
26334         <bruno@clisp.org>.
26336 2011-11-24  Jim Meyering  <meyering@redhat.com>
26338         test-stdalign.c: comment out long double tests
26339         * tests/test-stdalign.c: Don't try to reduce alignment of long double
26340         variables.  That provokes errors like this from gcc-4.7.0 20111124:
26341         error: '_Alignas' specifiers cannot reduce alignment of \
26342         'static_longdouble_alignas'.
26344 2011-11-22  Jim Meyering  <meyering@redhat.com>
26346         init.sh: make "compare /dev/null FILE" output more readable
26347         * tests/init.sh (compare_): Document the preferred order of arguments.
26348         (emit_diff_u_header_): New function.
26349         (compare_dev_null_): Emit a simulated diff, rather than just the
26350         contents of the unexpected file.  Suggestion from Bruno Haible.
26352 2011-11-21  Jim Meyering  <meyering@redhat.com>
26353             Eric Blake  <eblake@redhat.com>
26355         init.sh: work around OSF/1 5.1's mishandling of /dev/null
26356         * tests/init.sh: Make our compare function slightly more portable.
26357         Reported by Bruno Haible in
26358         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
26360 2011-11-21  Simon Josefsson  <simon@josefsson.org>
26362         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
26363         before using it, in code that ends up in config.h.
26365 2011-11-20  Bruno Haible  <bruno@clisp.org>
26367         getcwd: Work around getcwd bug on AIX 5..7.
26368         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
26369         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
26370         Use a different value for gl_cv_func_getcwd_path_max. Move the
26371         definition of HAVE_PARTLY_WORKING_GETCWD from here...
26372         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
26373         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
26374         Define HAVE_MINIMALLY_WORKING_GETCWD.
26375         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
26376         where it is not even minimally working, that is, on AIX.
26377         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
26378         m4/getcwd-path-max.m4.
26379         (main): Update exit code computation.
26380         * doc/posix-functions/getcwd.texi: Mention list of platforms where
26381         getcwd does not handle long file names.
26383 2011-11-20  Bruno Haible  <bruno@clisp.org>
26385         getcwd: Fix bug from 2009-09-10.
26386         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
26387         like "no".
26389 2011-11-20  Simon Josefsson  <simon@josefsson.org>
26391         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
26393 2011-11-20  Bruno Haible  <bruno@clisp.org>
26395         fma tests: Avoid shadowing local variables.
26396         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
26397         expected.
26399 2011-11-20  Bruno Haible  <bruno@clisp.org>
26401         copysignf tests: Fix.
26402         * tests/test-copysignf.c: Fix signature check.
26404 2011-11-20  Bruno Haible  <bruno@clisp.org>
26406         fma: Remove unused code.
26407         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
26408         unused macros.
26410 2011-11-20  Bruno Haible  <bruno@clisp.org>
26412         sethostname: Fix doc about AIX.
26413         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
26414         sethostname; it has it.
26416         sethostname: Mention more portability problems.
26417         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
26418         problem.
26419         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26421 2011-11-19  Bruno Haible  <bruno@clisp.org>
26423         Depend on module fcntl-h when AT_FDCWD is used.
26424         * modules/utimens (Depends-on): Add fcntl-h.
26425         * modules/areadlinkat (Depends-on): Likewise.
26426         * modules/areadlinkat-with-size (Depends-on): Likewise.
26427         * modules/faccessat (Depends-on): Likewise.
26428         * modules/fchmodat (Depends-on): Likewise.
26429         * modules/fchownat (Depends-on): Likewise.
26430         * modules/getcwd (Depends-on): Likewise.
26431         * modules/mkdirat (Depends-on): Likewise.
26432         * modules/mkfifoat (Depends-on): Likewise.
26433         * modules/readlinkat (Depends-on): Likewise.
26434         * modules/symlinkat (Depends-on): Likewise.
26435         * modules/dup2-tests (Depends-on): Likewise.
26436         * modules/fdutimensat-tests (Depends-on): Likewise.
26437         * modules/futimens-tests (Depends-on): Likewise.
26439 2011-11-19  Bruno Haible  <bruno@clisp.org>
26441         euidaccess: Update a comment.
26442         * lib/euidaccess.c: Update comment about platforms with faccessat.
26444 2011-11-19  Bruno Haible  <bruno@clisp.org>
26446         openat: Fix file list.
26447         * modules/openat (Files): Remove lib/at-func.c.
26449 2011-11-19  Bruno Haible  <bruno@clisp.org>
26451         fstatat: Simplify.
26452         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
26453         gnulib should define rpl_fstatat, there is a
26454         "#define fstatat rpl_fstatat" in <sys/stat.h>.
26456 2011-11-19  Bruno Haible  <bruno@clisp.org>
26458         Ensure 'inline' can be used in tests/test-utimens-common.h.
26459         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
26460         * modules/futimens-tests (configure.ac): Likewise.
26461         * modules/utimens-tests (configure.ac): Likewise.
26462         * modules/utimensat-tests (configure.ac): Likewise.
26464 2011-11-19  Simon Josefsson  <simon@josefsson.org>
26466         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
26467         not hash_insert0.
26468         (hash_insert_if_absent): Doc fix.
26470 2011-11-19  Simon Josefsson  <simon@josefsson.org>
26472         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
26474 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26476         test-getcwd: disambiguate exit status
26477         * tests/test-getcwd.c (test_long_name): Return 0..7.
26478         (main): Exit with an unambiguous exit status.  The old
26479         code yielded a mysterious mixture of two failure codes.
26481         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
26482         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
26483         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
26484         rpl_fstatat or fstatat.  This should fix the other problem
26485         reported by Kai Habel in
26486         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
26487         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
26488         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
26489         and I reproduced it on a Solaris 8 host we still have in production.
26491 2011-11-18  Jim Meyering  <meyering@redhat.com>
26493         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
26494         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
26495         Add a sentence to the comment.
26496         (hash_insert0): New function that simply calls hash_insert_if_absent.
26497         * lib/hash.h (hash_insert_if_absent): Declare it.
26498         (hash_insert0): Add deprecation attribute.
26499         (_GL_ATTRIBUTE_DEPRECATED): Define.
26500         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
26501         not hash_insert0.
26502         * NEWS: Mention it, even though it's not really an incompatible change.
26504 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
26506         openat: avoid compilation failure due to lack of <errno.h> inclusion
26507         * lib/openat.c: Include <errno.h>.
26509 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26511         * modules/getcwd (Depends-on): Add fdopendir.
26512         This fixes one of the two problems reported by Kai Habel in
26513         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
26515         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
26516         stdalign problem reported by Ian Beckwith in
26517         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
26518         * modules/crypto/gc-arcfour (Depends-on):
26519         Depend conditionally on crypto/arcfour.
26520         * modules/crypto/gc-arctwo (Depends-on):
26521         Depend conditionally on crypto/arctwo.
26522         * modules/crypto/gc-des (Depends-on):
26523         Depend conditionally on crypto/des.
26524         * modules/crypto/gc-hmac-md5 (Depends-on):
26525         Depend conditionally on crypto/hmac-md5.
26526         * modules/crypto/gc-hmac-sha1 (Depends-on):
26527         Depend conditionally on crypto/hmac-sha1.
26528         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
26529         * modules/crypto/gc-md4 (Depends-on):
26530         Depend conditionally on crypto/md4.
26531         * modules/crypto/gc-md5 (Depends-on):
26532         Depend conditionally on crypto/md5.
26533         * modules/crypto/gc-rijndael (Depends-on):
26534         Depend conditionally on crypto/rijndael.
26535         * modules/crypto/gc-sha1 (Depends-on):
26536         Depend conditionally on crypto/sha1.
26537         * modules/crypto/gc-arcfour:
26538         * modules/crypto/gc-arctwo:
26539         * modules/crypto/gc-des:
26540         * modules/crypto/gc-hmac-md5:
26541         * modules/crypto/gc-hmac-sha1:
26542         * modules/crypto/gc-md2:
26543         * modules/crypto/gc-md4:
26544         * modules/crypto/gc-md5:
26545         * modules/crypto/gc-rijndael:
26546         * modules/crypto/gc-sha1:
26547         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
26548         now that the conditional dependencies do the work for us.
26550 2011-11-17  Jim Meyering  <meyering@redhat.com>
26552         tests: factor st_ctime-comparison out of two headers
26553         * tests/test-utimens-common.h (ctime_compare): Define.
26554         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
26555         * tests/test-lutimens.h (test_lutimens): Likewise.
26556         * tests/test-utimens.h (test_utimens): Likewise.
26558         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
26559         Invoke the test program via an init.sh-using wrapper.
26560         * tests/test-getcwd.sh: New file.
26561         * modules/getcwd-tests (Files): Add it.
26562         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
26564 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
26566         gitlog-to-changelog: support multi-author commits.
26567         The FSF cares about keeping track of all authors of patches to its
26568         projects, but Git doesn't provide obvious support for multi-author
26569         changesets. Consensus seems to be forming around the use of extra
26570         Signed-off-by inspired lines in the log message formatted as
26571         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
26572         multi-author commits between version control systems.
26573         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
26574         log message and output in standard ChangeLog multi-author format.
26575         Reported by Peter Rosin <peda@lysator.liu.se>
26577 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26578             Bruno Haible  <bruno@clisp.org>
26580         Fix some modules' file list.
26581         * modules/fstatat (Files): Add m4/lstat.m4.
26582         * modules/openat (Files): Likewise.
26583         * modules/unlinkat (Files): Likewise.
26585 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
26587         maint.mk: fix tight-scope.mk generation in VPATH builds.
26588         * top/maint.mk (tight-scope.mk): Make sure to prefix file
26589         reference with $(srcdir) so that the file is found correctly even
26590         when running `make syntax-check' in a VPATH build.
26592 2011-11-13  Bruno Haible  <bruno@clisp.org>
26593             Jim Meyering  <meyering@redhat.com>
26595         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
26596         * tests/init.sh (compare): Remove "No differences encountered" or
26597         synonymous output from the 'diff' program.
26599 2011-11-13  Bruno Haible  <bruno@clisp.org>
26601         Makefile: Tweak indentation.
26602         * Makefile: Use tab as first character in every line that contains rule
26603         commands.
26605 2011-11-13  Bruno Haible  <bruno@clisp.org>
26607         Syntax check for copyright statements.
26608         * check-copyright: New file.
26609         * Makefile (sc_check_copyright): New rule.
26611 2011-11-13  Simon Josefsson  <simon@josefsson.org>
26613         * build-aux/git-version-gen: Add --prefix to configure the tag
26614         match string.
26616 2011-11-13  Simon Josefsson  <simon@josefsson.org>
26618         * build-aux/git-version-gen: Add --help and --version.
26620 2011-11-12  Jim Meyering  <meyering@redhat.com>
26622         revamp the other test-exclude?.sh scripts to use init.sh, too
26623         * tests/test-exclude1.sh: Use init.sh.
26624         * tests/test-exclude2.sh: Likewise.
26625         * tests/test-exclude3.sh: Likewise.
26626         * tests/test-exclude4.sh: Likewise.
26627         * tests/test-exclude5.sh: Likewise.
26628         * tests/test-exclude6.sh: Likewise.
26629         * tests/test-exclude7.sh: Likewise.
26630         * tests/test-exclude8.sh: Likewise.
26631         * modules/exclude-tests (Files): List init.sh.
26633         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
26634         These shell scripts ignored failure of the binary test-exclude,
26635         so making the latter return 77 didn't cause them to be skipped.
26636         * tests/test-exclude5.sh: Exit with test-exclude's error status
26637         when that program fails.  Revamp to use init.sh.
26638         * tests/test-exclude2.sh: Likewise.
26640         test-exclude: fix a typo
26641         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
26643 2011-11-11  Bruno Haible  <bruno@clisp.org>
26645         obstack: Fix compilation error on MSVC 9.
26646         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
26648 2011-11-11  Jim Meyering  <meyering@redhat.com>
26650         test-exclude: skip tests rather than failing on deficient systems
26651         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
26652         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
26653         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
26654         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
26656 2011-11-10  Bruno Haible  <bruno@clisp.org>
26658         ptsname_r test: Avoid gcc warning on glibc systems.
26659         * tests/test-ptsname_r.c (null_ptr): New function.
26660         (test_errors): Use it.
26662 2011-11-10  Bruno Haible  <bruno@clisp.org>
26664         ptsname_r: Avoid compilation error on OSF/1 5.1.
26665         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
26666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
26667         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
26668         function is not declared or incompatibly declared.
26669         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
26670         * modules/ptsname_r (Depends-on, configure.ac): Update.
26671         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
26673 2011-11-10  Bruno Haible  <bruno@clisp.org>
26675         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
26676         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
26677         When cross-compiling, guess yes on all platforms except AIX.
26678         Reported by Ludovic Courtès <ludo@gnu.org>.
26680 2011-11-09  Bruno Haible  <bruno@clisp.org>
26682         ptsname_r tests: Fix bugs.
26683         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
26684         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
26686 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26688         fstatat: work with cross-compilation
26689         Problem reported by Ludovic Courtès in
26690         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
26691         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
26692         "cross-compiling" and assume the bug is present.  Replace
26693         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
26694         an inverted sense, to be more conservative about our assumptions.
26695         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
26697 2011-11-09  Bruno Haible  <bruno@clisp.org>
26699         Improve MODULES.html output.
26700         * modules/mkfifoat (Description): Use the word "function".
26701         * modules/readlinkat (Description): Likewise.
26702         * modules/symlinkat (Description): Likewise.
26704 2011-11-09  Eric Blake  <eblake@redhat.com>
26706         ptsname_r-tests: new test module
26707         * modules/ptsname_r-tests: New module.
26708         * tests/test-ptsname_r.c: New file.
26710         ptsname_r: new module
26711         * modules/ptsname_r: New module.
26712         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
26713         * lib/ptsname.c (__ptsname_r): Split...
26714         * lib/ptsname_r.c: ...into new file.
26715         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
26716         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
26717         * modules/stdlib (Makefile.am): Substitute witnesses.
26718         * lib/stdlib.in.h (ptsname_r): Declare it.
26719         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
26720         * MODULES.html.sh (Misc): Likewise.
26721         * modules/ptsname (Depends-on): Alter dependency.
26722         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
26724 2011-11-09  Jim Meyering  <meyering@redhat.com>
26726         announce-gen: be more concise when there's only one URL+tarball
26727         * build-aux/announce-gen (get_tool_versions): When you distribute
26728         only one type of tarball, combine the first two "Here are..."
26729         sections and make the key-checking grammar independent of
26730         how many tarballs there are.
26732 2011-11-09  Eric Blake  <eblake@redhat.com>
26734         openpty: provide a stub on mingw
26735         * lib/pty.in.h (includes): Provide forward declarations.
26736         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
26738         raise: fix mingw handling of SIGPIPE
26739         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
26741 2011-11-08  Bruno Haible  <bruno@clisp.org>
26743         More conditional dependencies.
26744         * modules/faccessat (Depends-on): Add conditions.
26745         * modules/fchmodat (Depends-on): Likewise.
26746         * modules/fchownat (Depends-on): Likewise.
26747         * modules/fstatat (Depends-on): Likewise.
26748         * modules/mkfifoat (Depends-on): Likewise.
26749         * modules/readlinkat (Depends-on): Likewise.
26750         * modules/symlinkat (Depends-on): Likewise.
26751         * modules/unlinkat (Depends-on): Likewise.
26752         * modules/utimensat (Depends-on): Likewise.
26753         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
26754         * modules/linkat (Depends-on): Refine the conditions.
26755         * modules/renameat (Depends-on): Likewise.
26757 2011-11-08  Bruno Haible  <bruno@clisp.org>
26759         faccessat: Move AC_LIBOBJ invocation to module description.
26760         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
26761         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
26762         invocation from here...
26763         * modules/faccessat (configure.ac): ... to here. Invoke
26764         gl_PREREQ_FACCESSAT.
26766 2011-11-08  Bruno Haible  <bruno@clisp.org>
26768         faccessat: Simplify autoconf macro.
26769         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
26770         gl_FUNC_EUIDACCESS.
26772 2011-11-08  Bruno Haible  <bruno@clisp.org>
26774         renameat: Fix dependencies.
26775         * modules/renameat (Depends-on): Add stdbool.
26777 2011-11-08  Bruno Haible  <bruno@clisp.org>
26779         mkfifoat: Fix module description.
26780         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
26781         not gl_UNISTD_MODULE_INDICATOR.
26783 2011-11-08  Bruno Haible  <bruno@clisp.org>
26785         fstatat: Remove unused dependency.
26786         * modules/fstatat (Depends-on): Remove fstat.
26788 2011-11-08  Simon Josefsson  <simon@josefsson.org>
26790         GNUmakefile: behave when Makefile is missing.
26791         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
26793 2011-11-08  Bruno Haible  <bruno@clisp.org>
26795         openat: Conditionalize dependencies.
26796         * lib/openat.c: Reduce the scope of some #includes.
26797         * modules/openat (Depends-on): Add conditions.
26799 2011-11-07  Jim Meyering  <meyering@redhat.com>
26801         maint.mk: extract GPG key ID without using a temporary file
26802         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
26803         without using a temporary file.  Based on a suggestion from Werner Koch
26804         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
26806 2011-11-07  Eric Blake  <eblake@redhat.com>
26808         grantpt: fix typo
26809         * lib/stdlib.in.h (grantpt): Check correct function.
26811         maint.mk: silence new syntax check
26812         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
26814 2011-11-06  Bruno Haible  <bruno@clisp.org>
26816         Doc about floating-point and math API.
26817         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
26818         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
26820 2011-11-06  Bruno Haible  <bruno@clisp.org>
26822         stdalign tests: Skip the test when compiled by Sun C.
26823         * tests/test-stdalign.c (main): Skip the test on Sun C.
26825 2011-11-06  Bruno Haible  <bruno@clisp.org>
26827         ansi-c++-opt: Complete the 2011-06-05 change.
26828         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
26829         does not support namespaces, set the variable to "no", not to ":".
26831 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26833         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
26835 2011-11-06  Bruno Haible  <bruno@clisp.org>
26837         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
26838         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
26839         (minus_zerol) [HP-UX]: New macro.
26840         (unary_minus) [HP-UX]: New function.
26841         (copysignl) [HP-UX]: Use unary_minus function.
26843 2011-11-06  Bruno Haible  <bruno@clisp.org>
26845         ldexp, ldexpf, ldexpl: Enhance tests.
26846         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
26847         and tests/test-ldexpl.c.
26848         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
26849         LDEXP, MIN_EXP, MAX_EXP): New macros.
26850         Include test-ldexp.h.
26851         (main): Just call test_function.
26852         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
26853         infinity.h, nan.h.
26854         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
26855         MAX_EXP): New macros.
26856         Include test-ldexp.h.
26857         (x, y): Remove variables.
26858         (main): Just call test_function.
26859         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
26860         infinity.h, nan.h.
26861         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
26862         MAX_EXP): New macros.
26863         Include test-ldexp.h.
26864         (x, y): Remove variables.
26865         (main): Just call test_function.
26866         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
26867         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
26868         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
26869         (Depends-on): Add isnand-nolibm, signbit, float.
26870         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
26871         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
26872         (Depends-on): Add isnanf-nolibm, signbit, float.
26874 2011-11-06  Bruno Haible  <bruno@clisp.org>
26876         math tests: Cosmetics.
26877         * tests/test-math-c++.cc: Reorder declarations.
26879 2011-11-05  Bruno Haible  <bruno@clisp.org>
26881         fma*: Simplify test.
26882         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
26883         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
26885         Tests for module 'fmal'.
26886         * modules/fmal-tests: New file.
26887         * tests/test-fmal1.c: New file.
26888         * tests/test-fmal2.c: New file.
26890         New module 'fmal'.
26891         * lib/math.in.h (fmal): New declaration.
26892         * lib/fmal.c: New file.
26893         * m4/fmal.m4: New file.
26894         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
26895         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
26896         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
26897         REPLACE_FMAL.
26898         * modules/fmal: New file.
26899         * doc/posix-functions/fmal.texi: Mention the new module and the various
26900         bugs.
26902         Tests for module 'fmaf'.
26903         * modules/fmaf-tests: New file.
26904         * tests/test-fmaf1.c: New file.
26905         * tests/test-fmaf2.c: New file.
26907         New module 'fmaf'.
26908         * lib/math.in.h (fmaf): New declaration.
26909         * lib/fmaf.c: New file.
26910         * m4/fmaf.m4: New file.
26911         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
26912         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
26913         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
26914         REPLACE_FMAF.
26915         * modules/fmaf: New file.
26916         * doc/posix-functions/fmaf.texi: Mention the new module and the various
26917         bugs.
26919         Tests for module 'fma'.
26920         * modules/fma-tests: New file.
26921         * tests/test-fma1.c: New file.
26922         * tests/test-fma1.h: New file.
26923         * tests/test-fma2.c: New file.
26924         * tests/test-fma2.h: New file.
26926         New module 'fma'.
26927         * lib/math.in.h (fma): New declaration.
26928         * lib/fma.c: New file.
26929         * m4/fma.m4: New file.
26930         * m4/fegetround.m4: New file.
26931         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
26932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
26933         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
26934         REPLACE_FMA.
26935         * modules/fma: New file.
26936         * doc/posix-functions/fma.texi: Mention the new module and the various
26937         bugs.
26939         Extend gl_MATHFUNC.
26940         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
26941         Support 'void' as argument type.
26942         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
26944 2011-11-05  Jim Meyering  <meyering@redhat.com>
26946         maint.mk: also prohibit inclusion of dirent.h without use
26947         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
26949 2011-11-05  Bruno Haible  <bruno@clisp.org>
26951         ldexpl tests: Avoid test failure on MSVC 9.
26952         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
26953         value. Needed in order to enforce the conversion from a value greater
26954         than LDBL_MAX to Infinity.
26956 2011-11-05  Bruno Haible  <bruno@clisp.org>
26958         New modules 'at-internal', 'openat-h', split off from module 'openat'.
26959         * modules/at-internal: New file, extracted from modules/openat.
26960         * modules/openat-h: New file.
26961         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
26962         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
26963         * modules/openat (Description): Add reference to POSIX function.
26964         (Files): Remove lib/openat.h, lib/openat-proc.c.
26965         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
26966         intprops, unistd.
26967         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
26968         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
26969         gl_FCNTL_MODULE_INDICATOR.
26970         (Include): Remove unistd.h, openat.h.
26971         * modules/areadlinkat (Files): Add lib/at-func.c.
26972         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
26973         openat-die, openat-h, save-cwd.
26974         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
26975         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
26976         openat-die, openat-h, save-cwd, unistd.
26977         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
26978         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26979         openat-h, save-cwd. Remove fcntl-h, openat.
26980         * modules/fchmodat (Files): Remove lib/openat.h.
26981         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26982         openat, stdbool, unistd.
26983         * modules/fchownat (Files): Remove lib/openat.h.
26984         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26985         openat, stdbool, sys_stat.
26986         * modules/fdopendir (Files): Remove lib/openat-priv.h,
26987         lib/openat-proc.c.
26988         (Depends-on): Add at-internal.
26989         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
26990         * modules/fstatat (Files): Remove lib/openat.h.
26991         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
26992         stdbool, unistd.
26993         * modules/fts (Depends-on): Add openat-h.
26994         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
26995         openat.
26996         * modules/mkdirat (Files): Remove lib/openat.h.
26997         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26998         openat, stdbool, sys_stat.
26999         * modules/mkfifoat (Files): Add lib/at-func.c.
27000         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27001         openat-h, save-cwd. Remove fcntl-h, openat.
27002         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
27003         * modules/readlinkat (Files): Add lib/at-func.c.
27004         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27005         openat-h, save-cwd. Remove fcntl-h, openat.
27006         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
27007         openat.
27008         * modules/selinux-at (Files): Add lib/at-func.c.
27009         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
27010         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
27011         * modules/symlinkat (Files): Add lib/at-func.c.
27012         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27013         openat-h, save-cwd. Remove fcntl-h, openat.
27014         * modules/unlinkat (Files): Remove lib/openat.h.
27015         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
27016         stdbool.
27017         * modules/utimensat (Files): Add lib/at-func.c.
27018         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
27019         openat-die, openat-h, save-cwd.
27020         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
27021         * modules/fdutimensat-tests (Depends-on): Add openat.
27022         * modules/fstatat-tests (Depends-on): Add openat-h.
27023         * modules/readlinkat-tests (Depends-on): Add openat.
27024         * modules/symlinkat-tests (Depends-on): Add openat.
27026 2011-11-05  Bruno Haible  <bruno@clisp.org>
27028         openat: Include <stdbool.h>.
27029         * lib/openat.c: Include <stdbool.h>.
27031 2011-11-04  Bruno Haible  <bruno@clisp.org>
27033         fchownat, renameat, unlinkat: Fix dependencies.
27034         * modules/fchownat (Depends-on): Add fstatat.
27035         * modules/renameat (Depends-on): Likewise.
27036         * modules/unlinkat (Depends-on): Likewise.
27038 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27040         openat: remove direct dependency on dirent
27041         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
27042         and hasn't been needed ever since fdopendir was split into its own
27043         module on 2009-08-31.
27044         * modules/openat (Depends-on): Remove dirent.
27046 2011-11-04  Bruno Haible  <bruno@clisp.org>
27048         renameat: Optimize code size.
27049         * modules/renameat (configure.ac): Don't compile at-func2.c if
27050         REPLACE_RENAMEAT is 1.
27052 2011-11-04  Bruno Haible  <bruno@clisp.org>
27054         openat tests: Fix file list.
27055         * modules/openat-tests (Files): Add tests/test-open.h.
27057 2011-11-04  Bruno Haible  <bruno@clisp.org>
27059         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
27060         * modules/fchmodat (Depends-on): Add openat-die.
27061         * modules/fchownat (Depends-on): Likewise.
27062         * modules/linkat (Depends-on): Likewise.
27063         * modules/renameat (Depends-on): Likewise.
27064         * modules/openat (Depends-on): Add dirent.
27066 2011-11-04  Jim Meyering  <meyering@redhat.com>
27068         at-func*.c: fix comments
27069         * lib/at-func2.c: Correct/improve first-line comment.
27070         * lib/at-func.c: Correct grammar in first-line comment.
27072 2011-11-04  Bruno Haible  <bruno@clisp.org>
27074         New module 'mkdirat', split off from module 'openat'.
27075         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
27076         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
27077         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
27078         * modules/mkdirat: New file, extracted from modules/openat.
27079         * modules/openat (Files): Remove lib/mkdirat.c.
27080         (Depends-on): Remove mkdir.
27081         (configure.ac): Remove AC_LIBOBJ of mkdirat.
27082         (Include): Remove <sys/stat.h>.
27083         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
27084         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
27085         tests/test-mkdir.h.
27086         (Depends-on): Remove ignore-value.
27087         (Makefile.am): Remove rules for test-mkdirat.
27088         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
27089         of module 'openat'.
27090         * NEWS: Mention the change.
27092 2011-11-04  Bruno Haible  <bruno@clisp.org>
27094         closedir: Avoid warning on mingw.
27095         * lib/closedir.c: Include <unistd.h>.
27097 2011-11-04  Bruno Haible  <bruno@clisp.org>
27099         New module 'fstatat', split off from module 'openat'.
27100         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
27101         defined.
27102         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
27103         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
27104         gl_FUNC_FSTATAT.
27105         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
27106         * modules/fstatat: New file, extracted from modules/openat.
27107         * modules/openat (Files): Remove lib/fstatat.c.
27108         (Depends-on): Remove lstat.
27109         (configure.ac): Remove AC_LIBOBJ of fstatat.
27110         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
27111         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
27112         tests/test-lstat.h, tests/test-stat.h.
27113         (Depends-on): Remove getcwd-lgpl.
27114         (Makefile.am): Remove rules for test-fstatat.
27115         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
27116         of module 'openat'.
27117         * NEWS: Mention the change.
27118         * modules/getcwd (Depends-on): Add fstatat.
27119         * modules/linkat (Depends-on): Likewise.
27120         * modules/mkfifoat-tests (Depends-on): Likewise.
27121         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
27123 2011-11-03  Bruno Haible  <bruno@clisp.org>
27125         New module 'unlinkat', split off from module 'openat'.
27126         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
27127         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
27128         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
27129         * modules/unlinkat: New file, extracted from modules/openat. Correct
27130         the dependency conditions.
27131         * modules/openat (Files): Remove lib/unlinkat.c.
27132         (Depends-on): Remove rmdir, unlink.
27133         (configure.ac): Remove AC_LIBOBJ of unlinkat.
27134         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
27135         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
27136         tests/test-rmdir.h, tests/test-unlink.h.
27137         (Depends-on): Remove unlinkdir.
27138         (Makefile.am): Remove rules for test-unlinkat.
27139         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
27140         of module 'openat'.
27141         * NEWS: Mention the change.
27142         * modules/linkat-tests (Depends-on): Add unlinkat.
27143         * modules/mkfifoat-tests (Depends-on): Likewise.
27144         * modules/readlinkat-tests (Depends-on): Likewise.
27146 2011-11-02  Bruno Haible  <bruno@clisp.org>
27148         New module 'fchmodat', split off from module 'openat'.
27149         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
27150         defined.
27151         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
27152         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
27153         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
27154         * modules/fchmodat: New file, extracted from modules/openat.
27155         * modules/openat (Files): Remove lib/fchmodat.c.
27156         (configure.ac): Remove AC_LIBOBJ of fchmodat.
27157         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
27158         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
27159         (Makefile.am): Remove rules for test-fchmodat.
27160         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
27161         of module 'openat'.
27162         * NEWS: Mention the change.
27164 2011-11-02  Jim Meyering  <meyering@redhat.com>
27166         putenv: indent #definition of "environ" to placate cppi
27167         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
27169         gitlog-to-changelog: provide a ChangeLog-repair mechanism
27170         Git logs are often treated as immutable, because editing them
27171         changes the SHA1 checksums of all descendants.  Thus, errors in
27172         git logs tend to stay there forever.  However, when we generate
27173         a ChangeLog file -- typically for distribution -- from that git log,
27174         we can actually make corrections in the generated file.  The key
27175         lies in recording in machine-readable/applicable form the desired
27176         corrections.  See --help for description and an example.
27177         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
27178         (usage): Describe it; alphabetize option descriptions.
27179         (main): Honor the new option, carefully.
27181 2011-11-01  Jim Meyering  <meyering@redhat.com>
27183         gitlog-to-changelog: avoid an infloop
27184         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
27185         that ends up being empty.
27187 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27189         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
27190         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
27191         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
27192         contains (possibly-quoted) backslashes.  This should avoid
27193         all-too-common shell bugs if COMPLICATED contains backslashes in
27194         the "wrong" places.  Reported by David Evans in
27195         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
27196         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
27197         because we want ASCII ranges.  Is there some reason we don't use
27198         the C locale everywhere in this script?
27199         (func_module, top level): Avoid unwanted pathname expansion when
27200         $repo_url_prefix or $repo_url_suffix_repl contain shell
27201         metacharacters like '?' and '*'.
27203 2011-11-01  Bruno Haible  <bruno@clisp.org>
27205         fchownat: Improve description.
27206         * modules/fchownat (Description): Add link to function.
27208 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27210         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
27211         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
27212         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
27213         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
27215 2011-11-01  Bruno Haible  <bruno@clisp.org>
27217         alignof: Avoid collision with stdalign module.
27218         * lib/alignof.h (alignof): Remove macro.
27219         * NEWS: Mention the change.
27220         Reported by Paul Eggert.
27222 2011-11-01  Bruno Haible  <bruno@clisp.org>
27224         New module 'fchownat', split off from module 'openat'.
27225         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
27226         defined.
27227         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
27228         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
27229         invoke gl_FUNC_FCHOWNAT.
27230         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
27231         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
27232         * modules/fchownat: New file, extracted from modules/openat.
27233         * modules/openat (Files): Remove lib/fchownat.c.
27234         (Depends-on): Remove lchown.
27235         (configure.ac): Remove AC_LIBOBJ of fchownat.
27236         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
27237         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
27238         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
27239         (Depends-on): Remove mgetgroups, usleep, stat-time.
27240         (configure.ac): Remove test for getegid.
27241         (Makefile.am): Remove rules for test-fchownat.
27242         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
27243         of module 'openat'.
27244         * NEWS: Mention the change.
27246 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27248         stdalign: port better to MSVC and to Sun C 5.11
27249         This fixes some of the problems reported by Bruno Haible in
27250         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
27251         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
27252         shortcomings of MSVC and of Sun C 5.11.
27253         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
27254         around __declspec arg.
27255         * modules/stdalign-tests (Files): Add tests/macros.h.
27256         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
27257         Include macros.h, for ASSERT.
27258         (DECLARE_ALIGNED): Remove.
27259         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
27260         to catch bug), and to 1 if not (simplifies the rest of the code).
27261         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
27262         (CHECK_AUTO): Remove.
27263         (CHECK_ALIGNED): Check only the alignment of the static vars,
27264         since auto var alignment isn't supported by Sun C 5.11.
27265         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
27266         ASSERT failures are easier to diagnose.
27268 2011-10-31  Bruno Haible  <bruno@clisp.org>
27270         doc about some IRIX 5.3 problems.
27271         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
27272         on IRIX 5.3.
27273         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
27274         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
27275         5.3.
27276         * doc/posix-functions/grantpt.texi: Likewise.
27277         * doc/posix-functions/unlockpt.texi: Likewise.
27278         * doc/posix-functions/lgamma.texi: Likewise.
27279         * doc/posix-functions/nextafter.texi: Likewise.
27280         * doc/posix-functions/remainder.texi: Likewise.
27281         * doc/posix-functions/select.texi: Mention misplaced declaration on
27282         IRIX 5.3.
27283         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27285 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
27287         gitlog-to-changelog: fix git-log invocation.
27288         git-log mishandles date strings before 1970-01-01 UTC, and there is
27289         no use to specify --since=1970-01-01 by default anyway.
27290         * build-aux/gitlog-to-changelog: By default, when no --since option
27291         was given, do not specify explicit --since option to git-log.
27293 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
27295         gitlog-to-changelog: new option --append-dot.
27296         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
27297         first non-blank line of each commit message terminated with a dot.
27299 2011-10-30  Bruno Haible  <bruno@clisp.org>
27301         ffsl, ffsll: Avoid compilation error due to 'restrict'.
27302         * lib/ffsl.h: Include <config.h>.
27303         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
27305 2011-10-30  Jim Meyering  <meyering@redhat.com>
27307         GNUmakefile: reenable "make syntax-check" for most projects
27308         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
27309         build-aux variable", "syntax-check" would do nothing but succeed with
27310         the "No version control files detected..." diagnostic (unless you
27311         happened to override _build-aux via cfg.mk).
27312         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
27313         to precede inclusion of maint.mk.  Otherwise, these variables would
27314         be used undefined in any project that does not override the default.
27316 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
27318         gitlog-to-changelog: treat a message with only blank lines as empty.
27319         * build-aux/gitlog-to-changelog: Move the code that removes leading and
27320         trailing blank lines before the code that issues a warning about an
27321         empty commit message.
27323 2011-10-30  Jim Meyering  <meyering@redhat.com>
27325         test-parse-datetime.c: avoid new DST-related false positive test failure
27326         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
27327         based on the time/date we'll convert, not the current time.
27328         Otherwise, the moment we cross a DST boundary like today's in
27329         Europe, (CEST to CET), that offset ends up being one hour off.
27331 2011-10-27  Bruno Haible  <bruno@clisp.org>
27333         fstat: Tweak documentation.
27334         * modules/fstat (Description): More precise description.
27336 2011-10-27  Bruno Haible  <bruno@clisp.org>
27338         Update documentation regarding 'largefile' module.
27339         * doc/posix-functions/fstat.texi: Tweak wording.
27340         * doc/posix-functions/opendir.texi: Mention that the module fixes the
27341         problems with huge directories and/or small ino_t types.
27342         * doc/posix-functions/readdir.texi: Likewise.
27343         * doc/posix-functions/rewinddir.texi: Likewise.
27345 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
27347         maint.mk: don't maintain a second build-aux variable.
27348         * maint.mk (build_aux): Removed.  The maintainer-makefile module
27349         depends on GNUmakefile, which already maintains a cfg.mk
27350         overridable $(_build-aux) for projects with a non-standard
27351         build-aux directory location, although without the $(srcdir)
27352         prefix.  Use that variable consistently instead of introducing a
27353         second one.  Adjust all call sites.
27355 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27357         Add stdalign module and use it in other modules.
27358         This is based on a previous proposal by Bruno Haible
27359         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
27361         stdalign: new module
27362         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
27363         * modules/stdalign: New files.
27364         * MODULES.html.sh (c1x_core_properties): Add stdalign.
27365         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
27367         stdalign-tests: new module
27368         * modules/stdalign-tests, tests/test-stdalign.c: New files.
27370         argp: use stdalign
27371         * lib/argp-parse.c: Include <stdalign.h>.
27372         (alignof): Remove.
27373         * modules/argp (Depends-on): Add stdalign.
27375         crypto libraries: use stdalign
27376         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
27377         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
27378         Do not include <stdlib.h> twice, in md4.c.
27379         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
27380         because we are accessing a pointer's bit-pattern, not a size.
27381         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
27382         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
27383         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
27384         * modules/crypto/sha512: Likewise.
27386         sys_socket: use stdalign, not alignof
27387         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
27388         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
27390 2011-10-27  Bruno Haible  <bruno@clisp.org>
27392         raise test: Avoid a test failure on Linux/MIPS.
27393         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
27394         because 99 is a valid signal on Linux/MIPS.
27396 2011-10-27  Bruno Haible  <bruno@clisp.org>
27398         nonblocking tests: Fix test failure on Linux/MIPS.
27399         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
27400         Set to 270000.
27402 2011-10-27  Bruno Haible  <bruno@clisp.org>
27404         utimensat: Work around problem on Linux/hppa.
27405         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
27406         values.
27407         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
27409 2011-10-25  Jim Meyering  <meyering@redhat.com>
27411         maint.mk: fix a bug in sc_prohibit_stddef_without_use
27412         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
27413         after symbols like NULL, size_t, etc.
27414         Reported by Alfred M. Szmidt.
27416         maint.mk: exempt ENODATA from a syntax-check rule
27417         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
27418         from the sc_prohibit_always-defined_macros syntax-check rule.
27419         Add a comment.  See this for more details:
27420         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
27422 2011-10-23  Jim Meyering  <meyering@redhat.com>
27424         fts: close parent dir FD before returning from post-traversal fts_read
27425         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
27426         unlink A, even though an FD open on A remained.  This is suboptimal
27427         (holding a file descriptor open longer than needed), but otherwise not
27428         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
27429         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
27430         that represents a real problem: it causes the removal of A to fail
27431         with e.g., "rm: cannot remove `A': Device or resource busy"
27433         fts visits each directory twice and keeps a cache (fts_fd_ring) of
27434         directory file descriptors.  After completing the final, FTS_DP,
27435         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
27436         cache, but then proceeded to add a new FD to it via the subsequent
27437         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
27438         final file descriptor would be closed only via fts_close's call to
27439         fd_ring_clear.  Now, it is usually closed earlier, via the final
27440         FTS_DP-returning fts_read call.
27441         * lib/fts.c (restore_initial_cwd): New function, converted from
27442         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
27443         Update callers.
27444         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
27445         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
27447 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
27448             Bruno Haible  <bruno@clisp.org>
27449             Jim Meyering  <jim@meyering.net>
27451         readme-release: improve safety of release prep instructions.
27452         * README-release: Don't git pull all branches when only master
27453         is needed for the release process.
27454         Run make maintainer-clean before changing trees and merging.
27455         Don't try to run ./configure right after git pull in case files
27456         that influence the bootstrap process have changed, move the
27457         ./configure step to after running ./bootstrap.
27458         Don't bootstrap "one last time"... it's the first time!
27460 2011-10-22  Bruno Haible  <bruno@clisp.org>
27462         errno, strerror-override: Support for MSVC 10.
27463         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
27464         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
27465         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
27466         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
27467         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
27468         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
27469         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
27470         Assign values compatible with MSVC 10.
27471         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
27472         New macros.
27473         (GNULIB_defined_EWINSOCK): New macro.
27474         * lib/strerror-override.c (strerror_override): Update accordingly.
27475         * lib/strerror-override.h: Likewise.
27476         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
27477         longer equal to the corresponding errno value.
27478         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
27480 2011-10-22  Bruno Haible  <bruno@clisp.org>
27482         perror: Recognize when test program crashes.
27483         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
27484         strerror, set gl_cv_func_perror_works to no.
27485         Reported by Daniel Richard G. <skunk@iskunk.org>.
27487         perror: Fix indentation.
27488         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
27490 2011-10-22  Bruno Haible  <bruno@clisp.org>
27492         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
27493         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
27494         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
27495         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
27496         functions, not as a macro.
27497         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
27498         macros.
27499         (isfinite, isinf, isnan, signbit): Check overloaded functions and
27500         absence of macro.
27501         Suggested by Eric Blake.
27502         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
27504 2011-10-21  Bruno Haible  <bruno@clisp.org>
27506         relocatable-prog-wrapper: Don't leave object files behind.
27507         * build-aux/install-reloc: Re-synchronize list of .o files to be
27508         removed with list of compilation units.
27510 2011-10-20  Bruno Haible  <bruno@clisp.org>
27512         openpty, posix_openpt: Remove code duplication.
27513         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
27514         * lib/openpty.c: Include <stdlib.h>.
27515         (openpty): Use posix_openpt on all platforms except IRIX.
27516         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
27518 2011-10-20  Bruno Haible  <bruno@clisp.org>
27520         unlockpt: Detect invalid argument.
27521         * lib/unlockpt.c: Include <fcntl.h>.
27522         (unlockpt): Check whether fd is valid, using fcntl().
27523         * modules/unlockpt (Depends-on): Add fcntl-h.
27525 2011-10-20  Bruno Haible  <bruno@clisp.org>
27527         openpty: Avoid compilation error on AIX 6.1.
27528         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
27530 2011-10-20  Bruno Haible  <bruno@clisp.org>
27532         posix_openpt: Support for OpenBSD.
27533         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
27534         (posix_openpt) [OpenBSD]: New code.
27535         * lib/grantpt.c: Include <fcntl.h>.
27536         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
27537         * modules/grantpt (Depends-on): Add fcntl-h.
27539 2011-10-20  Bruno Haible  <bruno@clisp.org>
27541         posix_openpt test: Coding style.
27542         * tests/test-posix_openpt.c: Use GNU coding style.
27544 2011-10-20  Bruno Haible  <bruno@clisp.org>
27546         grantpt: Support --avoid=pt_chown.
27547         * modules/grantpt (Files): Add lib/pty-private.h.
27549 2011-10-20  Bruno Haible  <bruno@clisp.org>
27551         posix_openpt: Fix autoconf macro.
27552         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
27553         unneeded check for _getpty.
27555 2011-10-20  Bruno Haible  <bruno@clisp.org>
27557         openpty: Update comments.
27558         * lib/openpty.c: Add comments about Minix.
27560 2011-10-19  Eric Blake  <eblake@redhat.com>
27562         openpty: relax license
27563         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
27565         pt_chown: use configmake to simplify build
27566         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
27568         ptsname and others: relax license
27569         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
27570         * modules/unlockpt (License): Likewise.
27571         * modules/pt_chown (License): Likewise.
27572         * modules/ptsname (License): Likewise.
27573         * modules/ttyname_r (License): Likewise.
27575 2011-10-19  Jim Meyering  <meyering@redhat.com>
27577         posix_openpt: remove spurious #endif
27578         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
27580 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
27582         maint.mk: Respect $(build_aux) in web-manual rule.
27583         * top/maint.mk (web-manual): Find gen-announce script in user's
27584         $(build_aux) directory instead of hard-coding 'build-aux'.
27586 2011-10-19  Bruno Haible  <bruno@clisp.org>
27588         posix_openpt: Fix compilation error.
27589         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
27590         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
27591         Mention the openpty module as an alternative.
27593 2011-10-19  Bruno Haible  <bruno@clisp.org>
27595         Support for old NeXTstep 3.3 frexp().
27596         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
27597         execution time of the test to 5 seconds.
27598         Reported by Daniel Richard G. <skunk@iskunk.org>.
27600 2011-10-19  Bruno Haible  <bruno@clisp.org>
27602         Support for old NeXTstep 3.3 sed.
27603         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
27604         part, use /.../, not \|...|. Escape periods in the header file name.
27605         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
27606         Reported by Daniel Richard G. <skunk@iskunk.org>.
27608 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
27610         Support for old NeXTstep 3.3 gcc.
27611         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
27612         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
27613         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
27614         * lib/spawn.in.h (_Restrict_arr_): Likewise.
27615         * lib/regex.h (_Restrict_arr_): Likewise.
27616         * lib/regex_internal.h (re_token_t): Likewise.
27617         * lib/regexec.c (check_node_accept_bytes): Likewise.
27618         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
27620 2011-10-18  Eric Blake  <eblake@redhat.com>
27622         posix_openpt: new module
27623         * modules/posix_openpt: New module.
27624         * m4/posix_openpt.m4: New file.
27625         * lib/posix_openpt.c: Likewise.
27626         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
27627         (gl_STDLIB_H_DEFAULTS): Set defaults.
27628         * modules/stdlib (Makefile.am): Substitute macros.
27629         * lib/stdlib.in.h (posix_openpt): Declare.
27630         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
27631         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
27632         * modules/posix_openpt-tests: New test module.
27633         * tests/test-posix_openpt.c: New test.
27635 2011-10-15  Bruno Haible  <bruno@clisp.org>
27637         xstrtoll: Fix compilation failure.
27638         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
27639         from lib/strtol.c.
27640         * doc/posix-headers/limits.texi: Mention missing numerical limits on
27641         some platforms.
27642         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27644 2011-10-15  Bruno Haible  <bruno@clisp.org>
27646         vasnprintf: Optimize bit search operation.
27647         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
27648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
27649         gl_DOUBLE_EXPONENT_LOCATION.
27650         * modules/vasnprintf (Files): Add m4/exponentd.m4.
27651         * modules/unistdio/u8-vasnprintf (Files): Likewise.
27652         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
27653         * modules/unistdio/u16-vasnprintf (Files): Likewise.
27654         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
27655         * modules/unistdio/u32-vasnprintf (Files): Likewise.
27656         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
27657         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
27658         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
27660 2011-10-15  Bruno Haible  <bruno@clisp.org>
27662         vasnprintf: Fix comments.
27663         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
27665 2011-10-14  Bruno Haible  <bruno@clisp.org>
27667         Tests for module 'integer_length_ll'.
27668         * modules/integer_length_ll-tests: New file.
27669         * tests/test-integer_length_ll.c: New file.
27671         New module 'integer_length_ll'.
27672         * lib/integer_length_ll.c: New file.
27673         * modules/integer_length_ll: New file.
27675 2011-10-14  Bruno Haible  <bruno@clisp.org>
27677         Tests for module 'integer_length_l'.
27678         * modules/integer_length_l-tests: New file.
27679         * tests/test-integer_length_l.c: New file.
27681         New module 'integer_length_l'.
27682         * lib/integer_length_l.c: New file.
27683         * modules/integer_length_l: New file.
27685 2011-10-14  Bruno Haible  <bruno@clisp.org>
27687         Tests for module 'integer_length'.
27688         * modules/integer_length-tests: New file.
27689         * tests/test-integer_length.c: New file.
27691         New module 'integer_length'.
27692         * lib/integer_length.h: New file.
27693         * lib/integer_length.c: New file.
27694         * modules/integer_length: New file.
27696 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
27698         popen: Fix dependency conditions.
27699         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
27701 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
27703         perror: Fix autoconf test.
27704         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
27705         <stdlib.h> and <string.h>.
27707 2011-10-14  Bruno Haible  <bruno@clisp.org>
27709         ffsl: Optimize on 64-bit platforms.
27710         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
27711         unrolling.
27713 2011-10-13  Bruno Haible  <bruno@clisp.org>
27715         ffsl: Optimize on 32-bit platforms.
27716         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
27717         use ffs() without a loop.
27719         ffsl, ffsll: Optimize for GCC.
27720         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
27721         * lib/ffsl.c (GCC_BUILTIN): New macro.
27722         * lib/ffsll.c (GCC_BUILTIN): Likewise.
27724 2011-10-13  Bruno Haible  <bruno@clisp.org>
27726         ffs, bcopy, memset: Support symbol renaming via config.h.
27727         * lib/ffs.c: Include <config.h>.
27728         * lib/bcopy.c: Likewise.
27729         * lib/memset.c: Likewise.
27731 2011-10-10  Bruno Haible  <bruno@clisp.org>
27733         atanl: Simplify for platforms where 'long double' == 'double'.
27734         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27735         alternative implementation.
27736         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27737         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27738         * modules/atanl (Depends-on): Add atan. Update conditions.
27740 2011-10-10  Bruno Haible  <bruno@clisp.org>
27742         acosl: Simplify for platforms where 'long double' == 'double'.
27743         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27744         alternative implementation.
27745         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27746         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27747         * modules/acosl (Depends-on): Add acos. Update conditions.
27749 2011-10-10  Bruno Haible  <bruno@clisp.org>
27751         asinl: Simplify for platforms where 'long double' == 'double'.
27752         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27753         alternative implementation.
27754         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27755         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27756         * modules/asinl (Depends-on): Add asin. Update conditions.
27758 2011-10-10  Bruno Haible  <bruno@clisp.org>
27760         tanl: Simplify for platforms where 'long double' == 'double'.
27761         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27762         implementation.
27763         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27764         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27765         * modules/tanl (Depends-on): Add tan. Update conditions.
27766         (configure.ac): Don't compile trigl.c if
27767         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27769 2011-10-10  Bruno Haible  <bruno@clisp.org>
27771         cosl: Simplify for platforms where 'long double' == 'double'.
27772         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27773         implementation.
27774         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27775         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27776         * modules/cosl (Depends-on): Add cos. Update conditions.
27777         (configure.ac): Don't compile sincosl.c and trigl.c if
27778         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27780 2011-10-10  Bruno Haible  <bruno@clisp.org>
27782         sinl: Simplify for platforms where 'long double' == 'double'.
27783         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27784         implementation.
27785         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27786         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27787         * modules/sinl (Depends-on): Add sin. Update conditions.
27788         (configure.ac): Don't compile sincosl.c and trigl.c if
27789         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27791 2011-10-10  Bruno Haible  <bruno@clisp.org>
27793         logl: Simplify for platforms where 'long double' == 'double'.
27794         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27795         implementation.
27796         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27797         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27798         * modules/logl (Depends-on): Add log. Update conditions.
27800 2011-10-10  Bruno Haible  <bruno@clisp.org>
27802         expl: Simplify for platforms where 'long double' == 'double'.
27803         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27804         implementation.
27805         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27806         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27807         * modules/expl (Depends-on): Add exp. Update conditions.
27809 2011-10-10  Bruno Haible  <bruno@clisp.org>
27811         sqrtl: Simplify for platforms where 'long double' == 'double'.
27812         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27813         alternative implementation.
27814         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27815         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27816         * modules/sqrtl (Depends-on): Update conditions.
27818 2011-10-10  Bruno Haible  <bruno@clisp.org>
27820         ldexpl: Simplify for platforms where 'long double' == 'double'.
27821         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27822         alternative implementation.
27823         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27824         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27825         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
27827 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
27829         ffsll: set correct witness
27830         * modules/ffsll (configure.ac): Fix typo.
27832 2011-10-10  Bruno Haible  <bruno@clisp.org>
27834         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
27835         * lib/printf-frexpl.c: Include <config.h>.
27836         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27837         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
27838         second time.
27839         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
27840         gl_LONG_DOUBLE_VS_DOUBLE.
27841         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
27842         conditions.
27844 2011-10-10  Bruno Haible  <bruno@clisp.org>
27846         frexpl: Simplify for platforms where 'long double' == 'double'.
27847         * lib/frexpl.c: Include <config.h>.
27848         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27849         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27850         time.
27851         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27852         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27853         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
27854         * modules/frexpl (Depends-on): Add frexp. Update conditions.
27855         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
27856         conditions.
27858 2011-10-10  Jim Meyering  <meyering@redhat.com>
27860         test-renameat: don't leave behind a temporary file
27861         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
27862           ERROR: files left in build directory after distclean:
27863           ./gltests/test-renameat.too
27864           make[1]: *** [distcleancheck] Error 1
27865         Reported by Tom G. Christensen.
27867 2011-10-09  Bruno Haible  <bruno@clisp.org>
27869         rint: Determine RINT_LIBM correctly on AIX 7.
27870         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
27871         directly, not only through a function pointer. Also accept an optional
27872         4th argument with extra code.
27873         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
27874         rintf() call by gcc when optimizing.
27876         mathfunc.m4: Refactor.
27877         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
27878         m4 variable.
27880 2011-10-09  Bruno Haible  <bruno@clisp.org>
27882         rintl: Simplify for platforms where 'long double' == 'double'.
27883         * lib/rintl.c: Include <config.h>.
27884         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27885         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27886         time.
27887         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27888         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27889         * modules/rintl (Depends-on): Add rint. Update conditions.
27891 2011-10-09  Bruno Haible  <bruno@clisp.org>
27893         roundl: Simplify for platforms where 'long double' == 'double'.
27894         * lib/roundl.c: Include <config.h>.
27895         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27896         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27897         time.
27898         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27899         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27900         * modules/roundl (Depends-on): Add round. Update conditions.
27902 2011-10-09  Bruno Haible  <bruno@clisp.org>
27904         truncl: Simplify for platforms where 'long double' == 'double'.
27905         * lib/truncl.c: Include <config.h>.
27906         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27907         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27908         time.
27909         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27910         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27911         * modules/truncl (Depends-on): Add trunc. Update conditions.
27913 2011-10-09  Bruno Haible  <bruno@clisp.org>
27915         ceill: Simplify for platforms where 'long double' == 'double'.
27916         * lib/ceill.c: Include <config.h>.
27917         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27918         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27919         time.
27920         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27921         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27922         * modules/ceill (Depends-on): Add ceil. Update conditions.
27924 2011-10-09  Bruno Haible  <bruno@clisp.org>
27926         floorl: Simplify for platforms where 'long double' == 'double'.
27927         * lib/floorl.c: Include <config.h>.
27928         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27929         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27930         time.
27931         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27932         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27933         * modules/floorl (Depends-on): Add floor. Update conditions.
27935 2011-10-09  Bruno Haible  <bruno@clisp.org>
27937         rint: Fix ordering constraints.
27938         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
27939         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
27940         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
27942 2011-10-09  Bruno Haible  <bruno@clisp.org>
27944         copysignl: Simplify for platforms where 'long double' == 'double'.
27945         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27946         alternative.
27947         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27948         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27949         * modules/copysignl (Depends-on): Add copysign. Update conditions.
27951 2011-10-09  Bruno Haible  <bruno@clisp.org>
27953         Tests for module 'rintl'.
27954         * modules/rintl-tests: New file.
27955         * tests/test-rintl.c: New file.
27957         New module 'rintl'.
27958         * lib/math.in.h (rintl): New declaration.
27959         * lib/rintl.c: New file.
27960         * m4/rintl.m4: New file.
27961         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
27962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
27963         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
27964         * modules/rintl: New file.
27965         * tests/test-math-c++.cc: Check the declaration of rintl.
27966         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
27967         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
27968         * doc/posix-functions/rintl.texi: Mention the new module.
27970 2011-10-09  Bruno Haible  <bruno@clisp.org>
27972         Tests for module 'rintf'.
27973         * modules/rintf-tests: New file.
27974         * tests/test-rintf.c: New file.
27976         New module 'rintf'.
27977         * lib/math.in.h (rintf): New declaration.
27978         * lib/rintf.c: New file.
27979         * m4/rintf.m4: New file.
27980         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
27981         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
27982         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
27983         * modules/rintf: New file.
27984         * tests/test-math-c++.cc: Check the declaration of rintf.
27985         * doc/posix-functions/rintf.texi: Mention the new module.
27987 2011-10-09  Bruno Haible  <bruno@clisp.org>
27989         rint: Support for MSVC.
27990         * lib/math.in.h (rint): New declaration.
27991         * lib/rint.c: New file.
27992         * m4/rint.m4: New file.
27993         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
27994         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
27995         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
27996         * modules/rint (Description): Fix.
27997         (Files): Add lib/rint.c, m4/rint.m4.
27998         (Depends-on): Add math.
27999         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
28000         gl_MATH_MODULE_INDICATOR.
28001         * tests/test-math-c++.cc: Check the declaration of rint.
28002         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
28003         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
28004         * doc/posix-functions/rint.texi: Mention the replacement provided by
28005         the module.
28007         rint tests: More tests.
28008         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
28009         minus-zero.h, infinity.h, nan.h.
28010         (main): Skip the test if the current rounding mode is not standard. Add
28011         tests for negative numbers, minus zero, infinity, NaN.
28012         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
28013         tests/nan.h.
28014         (Depends-on): Add isnand-nolibm.
28016 2011-10-09  Bruno Haible  <bruno@clisp.org>
28018         Tests for module 'copysignl'.
28019         * modules/copysignl-tests: New file.
28020         * tests/test-copysignl.c: New file.
28022         New module 'copysignl'.
28023         * lib/math.in.h (copysignl): New declaration.
28024         * lib/copysignl.c: New file.
28025         * m4/copysignl.m4: New file.
28026         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
28027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
28028         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
28029         HAVE_COPYSIGNL.
28030         * modules/copysignl: New file.
28031         * tests/test-math-c++.cc: Check the declaration of copysignl.
28032         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
28033         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
28034         * doc/posix-functions/copysignl.texi: Mention the new module.
28036 2011-10-09  Bruno Haible  <bruno@clisp.org>
28038         Tests for module 'copysignf'.
28039         * modules/copysignf-tests: New file.
28040         * tests/test-copysignf.c: New file.
28042         New module 'copysignf'.
28043         * lib/math.in.h (copysignf): New declaration.
28044         * lib/copysignf.c: New file.
28045         * m4/copysignf.m4: New file.
28046         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
28047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
28048         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
28049         HAVE_COPYSIGNF.
28050         * modules/copysignf: New file.
28051         * tests/test-math-c++.cc: Check the declaration of copysignf.
28052         * doc/posix-functions/copysignf.texi: Mention the new module.
28054 2011-10-09  Bruno Haible  <bruno@clisp.org>
28056         Ensure that HAVE_* variables are set to 1 before they are set to 0.
28057         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
28058         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
28059         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
28060         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
28061         gl_SIGNAL_H_DEFAULTS.
28063 2011-10-09  Bruno Haible  <bruno@clisp.org>
28065         poll: Make macro safer.
28066         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
28067         ac_cv_header_poll_h is not set.
28069 2011-10-09  Bruno Haible  <bruno@clisp.org>
28071         copysign: Provide replacement.
28072         * lib/math.in.h (copysign): New declaration.
28073         * lib/copysign.c: New file.
28074         * m4/copysign.m4: New file.
28075         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
28076         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
28077         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
28078         HAVE_COPYSIGN.
28079         * modules/copysign (Description): Clarify.
28080         (Files): Add lib/copysign.c, m4/copysign.m4.
28081         (Depends-on): Add math, signbit.
28082         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
28083         gl_MATH_MODULE_INDICATOR.
28084         * tests/test-math-c++.cc: Check the declaration of copysign.
28085         * doc/posix-functions/copysign.texi: Mention the effects of the module
28086         on Minix and MSVC.
28088 2011-10-09  Bruno Haible  <bruno@clisp.org>
28090         isinf: Ensure macro on AIX 5.1.
28091         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
28092         macro.
28093         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
28095 2011-10-09  Bruno Haible  <bruno@clisp.org>
28097         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
28098         * modules/snprintf-posix-tests (configure.ac): Require
28099         gl_LONG_DOUBLE_VS_DOUBLE.
28100         * modules/sprintf-posix-tests (configure.ac): Likewise.
28101         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
28102         * modules/vasprintf-posix-tests (configure.ac): Likewise.
28103         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
28104         * modules/vsprintf-posix-tests (configure.ac): Likewise.
28105         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
28106         tests on platforms where 'long double' is the same as 'double'.
28107         * tests/test-sprintf-posix.h (test_function): Likewise.
28108         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28109         * tests/test-vasprintf-posix.c (test_function): Likewise.
28111         *printf: Fix for platforms where 'long double' == 'double'.
28112         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
28113         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
28114         * modules/dprintf-posix (Files): Add m4/math_h.m4.
28115         * modules/fprintf-posix (Files): Likewise.
28116         * modules/obstack-printf-posix (Files): Likewise.
28117         * modules/snprintf-posix (Files): Likewise.
28118         * modules/sprintf-posix (Files): Likewise.
28119         * modules/vasnprintf (Files): Likewise.
28120         * modules/vasnprintf-posix (Files): Likewise.
28121         * modules/vasprintf-posix (Files): Likewise.
28122         * modules/vdprintf-posix (Files): Likewise.
28123         * modules/vfprintf-posix (Files): Likewise.
28124         * modules/vsnprintf-posix (Files): Likewise.
28125         * modules/vsprintf-posix (Files): Likewise.
28126         * modules/unistdio/u8-vasnprintf (Files): Likewise.
28127         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
28128         * modules/unistdio/u16-vasnprintf (Files): Likewise.
28129         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
28130         * modules/unistdio/u32-vasnprintf (Files): Likewise.
28131         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
28132         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
28134         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
28135         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
28136         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28137         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
28138         'long double'.
28139         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
28141         isinf: Fix for platforms where 'long double' == 'double'.
28142         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
28143         Don't blindly assume 80-bit 'long double'.
28145         isfinite: Fix for platforms where 'long double' == 'double'.
28146         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
28147         Don't blindly assume 80-bit 'long double'.
28149         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
28150         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
28151         * modules/isfinite-tests (configure.ac): Require
28152         gl_LONG_DOUBLE_VS_DOUBLE.
28153         * modules/isinf-tests (configure.ac): Likewise.
28154         * modules/isnan-tests (configure.ac): Likewise.
28155         * modules/isnanl-tests (configure.ac): Likewise.
28156         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
28157         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
28158         tests on platforms where 'long double' is the same as 'double'.
28159         * tests/test-isinf.c (test_isinfl): Likewise.
28160         * tests/test-isnan.c (test_long_double): Likewise.
28161         * tests/test-isnanl.h (main): Likewise.
28163 2011-10-08  Bruno Haible  <bruno@clisp.org>
28165         Tests for module 'tanhf'.
28166         * modules/tanhf-tests: New file.
28167         * tests/test-tanhf.c: New file.
28169         New module 'tanhf'.
28170         * lib/math.in.h (tanhf): New declaration.
28171         * lib/tanhf.c: New file.
28172         * m4/tanhf.m4: New file.
28173         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
28174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
28175         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
28176         * modules/tanhf: New file.
28177         * tests/test-math-c++.cc: Check the declaration of tanhf.
28178         * doc/posix-functions/tanhf.texi: Mention the new module.
28180         tanh: Use a .m4 file.
28181         * m4/tanh.m4: New file.
28182         * modules/tanh (Files): Add it.
28183         (configure.ac): Just invoke gl_FUNC_TANH.
28185 2011-10-08  Bruno Haible  <bruno@clisp.org>
28187         Tests for module 'coshf'.
28188         * modules/coshf-tests: New file.
28189         * tests/test-coshf.c: New file.
28191         New module 'coshf'.
28192         * lib/math.in.h (coshf): New declaration.
28193         * lib/coshf.c: New file.
28194         * m4/coshf.m4: New file.
28195         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
28196         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
28197         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
28198         * modules/coshf: New file.
28199         * tests/test-math-c++.cc: Check the declaration of coshf.
28200         * doc/posix-functions/coshf.texi: Mention the new module.
28202         cosh: Use a .m4 file.
28203         * m4/cosh.m4: New file.
28204         * modules/cosh (Files): Add it.
28205         (configure.ac): Just invoke gl_FUNC_COSH.
28207 2011-10-08  Bruno Haible  <bruno@clisp.org>
28209         Tests for module 'sinhf'.
28210         * modules/sinhf-tests: New file.
28211         * tests/test-sinhf.c: New file.
28213         New module 'sinhf'.
28214         * lib/math.in.h (sinhf): New declaration.
28215         * lib/sinhf.c: New file.
28216         * m4/sinhf.m4: New file.
28217         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
28218         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
28219         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
28220         * modules/sinhf: New file.
28221         * tests/test-math-c++.cc: Check the declaration of sinhf.
28222         * doc/posix-functions/sinhf.texi: Mention the new module.
28224         sinh: Use a .m4 file.
28225         * m4/sinh.m4: New file.
28226         * modules/sinh (Files): Add it.
28227         (configure.ac): Just invoke gl_FUNC_SINH.
28229 2011-10-08  Bruno Haible  <bruno@clisp.org>
28231         Tests for module 'atan2f'.
28232         * modules/atan2f-tests: New file.
28233         * tests/test-atan2f.c: New file.
28235         New module 'atan2f'.
28236         * lib/math.in.h (atan2f): New declaration.
28237         * lib/atan2f.c: New file.
28238         * m4/atan2f.m4: New file.
28239         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
28240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
28241         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
28242         * modules/atan2f: New file.
28243         * tests/test-math-c++.cc: Check the declaration of atan2f.
28244         * doc/posix-functions/atan2f.texi: Mention the new module.
28246         atan2: Use a .m4 file.
28247         * m4/atan2.m4: New file.
28248         * modules/atan2 (Files): Add it.
28249         (configure.ac): Just invoke gl_FUNC_ATAN2.
28251 2011-10-08  Bruno Haible  <bruno@clisp.org>
28253         Tests for module 'atanf'.
28254         * modules/atanf-tests: New file.
28255         * tests/test-atanf.c: New file.
28257         New module 'atanf'.
28258         * lib/math.in.h (atanf): New declaration.
28259         * lib/atanf.c: New file.
28260         * m4/atanf.m4: New file.
28261         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
28262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
28263         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
28264         * modules/atanf: New file.
28265         * tests/test-math-c++.cc: Check the declaration of atanf.
28266         * doc/posix-functions/atanf.texi: Mention the new module.
28268         atan: Use a .m4 file.
28269         * m4/atan.m4: New file.
28270         * modules/atan (Files): Add it.
28271         (configure.ac): Just invoke gl_FUNC_ATAN.
28273 2011-10-08  Bruno Haible  <bruno@clisp.org>
28275         Tests for module 'acosf'.
28276         * modules/acosf-tests: New file.
28277         * tests/test-acosf.c: New file.
28279         New module 'acosf'.
28280         * lib/math.in.h (acosf): New declaration.
28281         * lib/acosf.c: New file.
28282         * m4/acosf.m4: New file.
28283         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
28284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
28285         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
28286         * modules/acosf: New file.
28287         * tests/test-math-c++.cc: Check the declaration of acosf.
28288         * doc/posix-functions/acosf.texi: Mention the new module.
28290         acos: Use a .m4 file.
28291         * m4/acos.m4: New file.
28292         * modules/acos (Files): Add it.
28293         (configure.ac): Just invoke gl_FUNC_ACOS.
28295 2011-10-08  Bruno Haible  <bruno@clisp.org>
28297         Tests for module 'asinf'.
28298         * modules/asinf-tests: New file.
28299         * tests/test-asinf.c: New file.
28301         New module 'asinf'.
28302         * lib/math.in.h (asinf): New declaration.
28303         * lib/asinf.c: New file.
28304         * m4/asinf.m4: New file.
28305         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
28306         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
28307         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
28308         * modules/asinf: New file.
28309         * tests/test-math-c++.cc: Check the declaration of asinf.
28310         * doc/posix-functions/asinf.texi: Mention the new module.
28312         asin: Use a .m4 file.
28313         * m4/asin.m4: New file.
28314         * modules/asin (Files): Add it.
28315         (configure.ac): Just invoke gl_FUNC_ASIN.
28317 2011-10-08  Bruno Haible  <bruno@clisp.org>
28319         Tests for module 'tanf'.
28320         * modules/tanf-tests: New file.
28321         * tests/test-tanf.c: New file.
28323         New module 'tanf'.
28324         * lib/math.in.h (tanf): New declaration.
28325         * lib/tanf.c: New file.
28326         * m4/tanf.m4: New file.
28327         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
28328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
28329         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
28330         * modules/tanf: New file.
28331         * tests/test-math-c++.cc: Check the declaration of tanf.
28332         * doc/posix-functions/tanf.texi: Mention the new module.
28334         tan: Use a .m4 file.
28335         * m4/tan.m4: New file.
28336         * modules/tan (Files): Add it.
28337         (configure.ac): Just invoke gl_FUNC_TAN.
28339 2011-10-08  Bruno Haible  <bruno@clisp.org>
28341         Tests for module 'cosf'.
28342         * modules/cosf-tests: New file.
28343         * tests/test-cosf.c: New file.
28345         New module 'cosf'.
28346         * lib/math.in.h (cosf): New declaration.
28347         * lib/cosf.c: New file.
28348         * m4/cosf.m4: New file.
28349         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
28350         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
28351         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
28352         * modules/cosf: New file.
28353         * tests/test-math-c++.cc: Check the declaration of cosf.
28354         * doc/posix-functions/cosf.texi: Mention the new module.
28356         cos: Use a .m4 file.
28357         * m4/cos.m4: New file.
28358         * modules/cos (Files): Add it.
28359         (configure.ac): Just invoke gl_FUNC_COS.
28361 2011-10-08  Bruno Haible  <bruno@clisp.org>
28363         Tests for module 'sinf'.
28364         * modules/sinf-tests: New file.
28365         * tests/test-sinf.c: New file.
28367         New module 'sinf'.
28368         * lib/math.in.h (sinf): New declaration.
28369         * lib/sinf.c: New file.
28370         * m4/sinf.m4: New file.
28371         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
28372         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
28373         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
28374         * modules/sinf: New file.
28375         * tests/test-math-c++.cc: Check the declaration of sinf.
28376         * doc/posix-functions/sinf.texi: Mention the new module.
28378         sin: Use a .m4 file.
28379         * m4/sin.m4: New file.
28380         * modules/sin (Files): Add it.
28381         (configure.ac): Just invoke gl_FUNC_SIN.
28383 2011-10-08  Bruno Haible  <bruno@clisp.org>
28385         Tests for module 'powf'.
28386         * modules/powf-tests: New file.
28387         * tests/test-powf.c: New file.
28389         New module 'powf'.
28390         * lib/math.in.h (powf): New declaration.
28391         * lib/powf.c: New file.
28392         * m4/powf.m4: New file.
28393         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
28394         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
28395         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
28396         * modules/powf: New file.
28397         * tests/test-math-c++.cc: Check the declaration of powf.
28398         * doc/posix-functions/powf.texi: Mention the new module.
28400         pow: Use a .m4 file.
28401         * m4/pow.m4: New file.
28402         * modules/pow (Files): Add it.
28403         (configure.ac): Just invoke gl_FUNC_POW.
28405 2011-10-08  Bruno Haible  <bruno@clisp.org>
28407         Tests for module 'log10f'.
28408         * modules/log10f-tests: New file.
28409         * tests/test-log10f.c: New file.
28411         New module 'log10f'.
28412         * lib/math.in.h (log10f): New declaration.
28413         * lib/log10f.c: New file.
28414         * m4/log10f.m4: New file.
28415         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
28416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
28417         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
28418         * modules/log10f: New file.
28419         * tests/test-math-c++.cc: Check the declaration of log10f.
28420         * doc/posix-functions/log10f.texi: Mention the new module.
28422         log10: Use a .m4 file.
28423         * m4/log10.m4: New file.
28424         * modules/log10 (Files): Add it.
28425         (configure.ac): Just invoke gl_FUNC_LOG10.
28427 2011-10-08  Bruno Haible  <bruno@clisp.org>
28429         Tests for module 'logf'.
28430         * modules/logf-tests: New file.
28431         * tests/test-logf.c: New file.
28433         New module 'logf'.
28434         * lib/math.in.h (logf): New declaration.
28435         * lib/logf.c: New file.
28436         * m4/logf.m4: New file.
28437         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
28438         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
28439         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
28440         * modules/logf: New file.
28441         * tests/test-math-c++.cc: Check the declaration of logf.
28442         * doc/posix-functions/logf.texi: Mention the new module.
28444         log: Use a .m4 file.
28445         * m4/log.m4: New file.
28446         * modules/log (Files): Add it.
28447         (configure.ac): Just invoke gl_FUNC_LOG.
28449 2011-10-08  Bruno Haible  <bruno@clisp.org>
28451         Tests for module 'expf'.
28452         * modules/expf-tests: New file.
28453         * tests/test-expf.c: New file.
28455         New module 'expf'.
28456         * lib/math.in.h (expf): New declaration.
28457         * lib/expf.c: New file.
28458         * m4/expf.m4: New file.
28459         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
28460         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
28461         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
28462         * modules/expf: New file.
28463         * tests/test-math-c++.cc: Check the declaration of expf.
28464         * doc/posix-functions/expf.texi: Mention the new module.
28466         exp: Use a .m4 file.
28467         * m4/exp.m4: New file.
28468         * modules/exp (Files): Add it.
28469         (configure.ac): Just invoke gl_FUNC_EXP.
28471 2011-10-08  Bruno Haible  <bruno@clisp.org>
28473         Tests for module 'sqrtf'.
28474         * modules/sqrtf-tests: New file.
28475         * tests/test-sqrtf.c: New file.
28477         New module 'sqrtf'.
28478         * lib/math.in.h (sqrtf): New declaration.
28479         * lib/sqrtf.c: New file.
28480         * m4/sqrtf.m4: New file.
28481         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
28482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
28483         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
28484         * modules/sqrtf: New file.
28485         * tests/test-math-c++.cc: Check the declaration of sqrtf.
28486         * doc/posix-functions/sqrtf.texi: Mention the new module.
28488 2011-10-08  Bruno Haible  <bruno@clisp.org>
28490         Tests: Avoid link failures w.r.t. libintl.
28491         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
28492         $(LIBINTL).
28493         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
28494         $(LIBINTL).
28495         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
28496         against $(LIBINTL).
28497         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
28498         $(LIBINTL).
28499         * modules/openat-tests (Makefile.am): Link test-fchmodat against
28500         $(LIBINTL).
28501         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
28503 2011-10-08  Bruno Haible  <bruno@clisp.org>
28505         pow tests: Defeat compiler optimizations.
28506         * tests/test-pow.c (main): Assign arguments to x and y before use.
28508 2011-10-08  Bruno Haible  <bruno@clisp.org>
28510         gnulib-tool: Improve last commit.
28511         * gnulib-tool (func_modules_transitive_closure): Simplify code.
28512         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
28513         ignore dependencies that are not among the modules list.
28515 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
28517         gnulib-tool: don't follow dependencies to avoided modules
28518         This fixes a bug that is related to the previous one.
28519         * gnulib-tool (func_modules_transitive_closure)
28520         (func_emit_autoconf_snippets):
28521         Check whether a dependency is acceptable before using it.
28522         (--extract-dependencies): Report an error if --avoid is also used,
28523         since this combination of options is not yet supported.
28525         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
28526         Problem reported by Peter Dyballa in
28527         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
28528         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
28529         when echoing "$condition".
28531 2011-10-07  Bruno Haible  <bruno@clisp.org>
28533         Fix documentation about math functions on MacOS X.
28534         * doc/posix-functions/exp2.texi: Don't say the function is missing on
28535         MacOS X 10.5.
28536         * doc/posix-functions/fdim.texi: Likewise.
28537         * doc/posix-functions/feclearexcept.texi: Likewise.
28538         * doc/posix-functions/fegetenv.texi: Likewise.
28539         * doc/posix-functions/fegetround.texi: Likewise.
28540         * doc/posix-functions/feholdexcept.texi: Likewise.
28541         * doc/posix-functions/feraiseexcept.texi: Likewise.
28542         * doc/posix-functions/fesetenv.texi: Likewise.
28543         * doc/posix-functions/fesetround.texi: Likewise.
28544         * doc/posix-functions/fetestexcept.texi: Likewise.
28545         * doc/posix-functions/feupdateenv.texi: Likewise.
28546         * doc/posix-functions/fmax.texi: Likewise.
28547         * doc/posix-functions/fmin.texi: Likewise.
28548         * doc/posix-functions/log2.texi: Likewise.
28549         * doc/posix-functions/modff.texi: Likewise.
28550         * doc/posix-functions/nan.texi: Likewise.
28551         * doc/posix-functions/nanf.texi: Likewise.
28552         * doc/posix-functions/nextafterf.texi: Likewise.
28553         * doc/posix-functions/remquo.texi: Likewise.
28555 2011-10-07  Bruno Haible  <bruno@clisp.org>
28557         modff: Drop assumption about library that defines modff.
28558         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
28559         AC_CHECK_FUNCS.
28560         * modules/modff (Files): Add m4/mathfunc.m4.
28562 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
28564         raise tests: Avoid a GCC warning.
28565         * tests/test-raise.c (handler): Use _Noreturn.
28567 2011-10-07  Bruno Haible  <bruno@clisp.org>
28569         Tests for module 'ldexpf'.
28570         * modules/ldexpf-tests: New file.
28571         * tests/test-ldexpf.c: New file.
28573         New module 'ldexpf'.
28574         * lib/math.in.h (ldexpf): New declaration.
28575         * lib/ldexpf.c: New file.
28576         * m4/ldexpf.m4: New file.
28577         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
28578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
28579         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
28580         * modules/ldexpf: New file.
28581         * tests/test-math-c++.cc: Check the declaration of ldexpf.
28582         * doc/posix-functions/ldexpf.texi: Mention the new module.
28584 2011-10-06  Bruno Haible  <bruno@clisp.org>
28586         frexpf: Work around problems on IRIX and mingw.
28587         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
28588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
28589         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
28590         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
28591         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
28592         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
28593         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
28595 2011-10-06  Bruno Haible  <bruno@clisp.org>
28597         fabsf: Drop assumption about library that defines fabsf.
28598         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
28599         AC_CHECK_FUNCS.
28600         * modules/fabsf (Files): Add m4/mathfunc.m4.
28602 2011-10-06  Bruno Haible  <bruno@clisp.org>
28604         frexpf: Drop assumption about library that defines frexpf.
28605         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
28606         'int *', 'float *', 'long double *', 'float', 'long double'.
28607         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
28608         AC_CHECK_FUNCS.
28609         * modules/frexpf (Files): Add m4/mathfunc.m4.
28611         Tests for module 'frexpf'.
28612         * modules/frexpf-tests: New file.
28613         * tests/test-frexpf.c: New file.
28615         New module 'frexpf'.
28616         * lib/math.in.h (frexpf): New declaration.
28617         * lib/frexpf.c: New file.
28618         * m4/frexpf.m4: New file.
28619         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
28620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
28621         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
28622         * modules/frexpf: New file.
28623         * tests/test-math-c++.cc: Check the declaration of frexpf.
28624         * doc/posix-functions/frexpf.texi: Mention the new module.
28626 2011-10-06  Bruno Haible  <bruno@clisp.org>
28628         math: Sort function declarations of math.in.h.
28629         * lib/math.in.h (frexp, logb): Move declarations.
28631 2011-10-05  Bruno Haible  <bruno@clisp.org>
28633         Tests for module 'modff'.
28634         * modules/modff-tests: New file.
28635         * tests/test-modff.c: New file.
28637         New module 'modff'.
28638         * lib/math.in.h (modff): New declaration.
28639         * lib/modff.c: New file.
28640         * m4/modff.m4: New file.
28641         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
28642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
28643         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
28644         * modules/modff: New file.
28645         * tests/test-math-c++.cc: Check the declaration of modff.
28646         * doc/posix-functions/modff.texi: Mention the new module.
28648         modf tests: Make test sharper.
28649         * tests/test-modf.c (main): Strengthen upper bound.
28651         modf: Use a .m4 file.
28652         * m4/modf.m4: New file.
28653         * modules/modf (Files): Add it.
28654         (configure.ac): Just invoke gl_FUNC_MODF.
28656 2011-10-05  Bruno Haible  <bruno@clisp.org>
28658         Tests for module 'fmodf'.
28659         * modules/fmodf-tests: New file.
28660         * tests/test-fmodf.c: New file.
28662         New module 'fmodf'.
28663         * lib/math.in.h (fmodf): New declaration.
28664         * lib/fmodf.c: New file.
28665         * m4/fmodf.m4: New file.
28666         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
28667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
28668         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
28669         * modules/fmodf: New file.
28670         * tests/test-math-c++.cc: Check the declaration of fmodf.
28671         * doc/posix-functions/fmodf.texi: Mention the new module.
28673         fmod: Use a .m4 file.
28674         * m4/fmod.m4: New file.
28675         * modules/fmod (Files): Add it.
28676         (configure.ac): Just invoke gl_FUNC_FMOD.
28678 2011-10-05  Bruno Haible  <bruno@clisp.org>
28680         Tests for module 'fabsf'.
28681         * modules/fabsf-tests: New file.
28682         * tests/test-fabsf.c: New file.
28684         New module 'fabsf'.
28685         * lib/math.in.h (fabsf): New declaration.
28686         * lib/fabsf.c: New file.
28687         * m4/fabsf.m4: New file.
28688         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
28689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
28690         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
28691         * modules/fabsf: New file.
28692         * tests/test-math-c++.cc: Check the declaration of fabsf.
28693         * doc/posix-functions/fabsf.texi: Mention the new module.
28695         fabs: Use a .m4 file.
28696         * m4/fabs.m4: New file.
28697         * modules/fabs (Files): Add it.
28698         (configure.ac): Just invoke gl_FUNC_FABS.
28700 2011-10-05  Jim Meyering  <meyering@redhat.com>
28702         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
28703         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
28704         ls -lL regression introduced in coreutils-8.12, it does so at the
28705         cost of an additional stat call in the common case.  Besides, now
28706         that the kernel change that prompted commit 95f7c57f has been reverted
28707         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
28708         we have no use for commit 95f7c57f, "file-has-acl: use
28709         acl_extended_file_nofollow if available".
28711 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
28713         file-has-acl: revert unintended change in behavior of ls -L
28714         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
28715         derived from...
28716         (file_has_acl): ...code here.  Call it.
28717         This problem was introduced with 2011-07-22 commit 95f7c57f,
28718         "file-has-acl: use acl_extended_file_nofollow if available".
28719         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
28721 2011-10-03  Bruno Haible  <bruno@clisp.org>
28723         poll: Avoid link errors on MSVC.
28724         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
28725         * modules/poll (Depends-on): Add sockets.
28726         (Link): New section.
28727         * NEWS: Mention the change.
28728         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
28729         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
28730         $(LIB_POLL) instead of $(LIBSOCKET).
28732 2011-10-03  Bruno Haible  <bruno@clisp.org>
28734         sys_select tests: Fix link error on MSVC 9.
28735         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
28736         with $(LIB_SELECT) instead of $(LIBSOCKET).
28738 2011-10-03  Bruno Haible  <bruno@clisp.org>
28740         sys_select: Fix compilation error on mingw.
28741         * lib/sys_select.in.h: On native Windows, include <io.h>.
28743 2011-10-03  Bruno Haible  <bruno@clisp.org>
28745         wmemset: Support for MSVC.
28746         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
28747         whether wmemset() exists.
28749 2011-10-03  Bruno Haible  <bruno@clisp.org>
28751         wmemmove: Support for MSVC.
28752         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
28753         whether wmemmove() exists.
28755 2011-10-03  Bruno Haible  <bruno@clisp.org>
28757         wmemcpy: Support for MSVC.
28758         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
28759         whether wmemcpy() exists.
28761 2011-10-03  Bruno Haible  <bruno@clisp.org>
28763         wmemcmp: Support for MSVC.
28764         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
28765         whether wmemcmp() exists.
28767 2011-10-03  Bruno Haible  <bruno@clisp.org>
28769         wmemchr: Support for MSVC.
28770         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
28771         whether wmemchr() exists.
28773 2011-10-03  Bruno Haible  <bruno@clisp.org>
28775         glthread/*, strsignal: Support for MSVC.
28776         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
28777         including <winsock.h> on MSVC 9.
28778         * lib/glthread/lock.h: Likewise.
28779         * lib/glthread/thread.h: Likewise.
28780         * lib/glthread/tls.h: Likewise.
28781         * lib/glthread/yield.h: Likewise.
28782         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
28783         if HAVE_UNISTD_H is false.
28784         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
28786 2011-10-03  Bruno Haible  <bruno@clisp.org>
28788         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
28789         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
28790         Set to 100000.
28792 2011-10-03  Bruno Haible  <bruno@clisp.org>
28794         acl: Fix specification.
28795         * lib/file-has-acl.c (file_has_acl): Fix specification.
28797 2011-10-03  Bruno Haible  <bruno@clisp.org>
28799         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
28800         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
28801         (compute_curr_prefix, shared_library_fullname,
28802         find_shared_library_fullname, get_shared_library_fullname, relocate):
28803         Use it together with PIC && INSTALLDIR.
28804         Reported by <jojelino@gmail.com>
28805         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
28807 2011-10-01  Jim Meyering  <meyering@redhat.com>
28809         maint.mk: adjust a release-related rule not to require use of gzip
28810         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
28811         Instead, check each file in $(DIST_ARCHIVES).  This is better for
28812         projects that build only .tar.xz files.  Also fix an erroneous test.
28814         test-linkat: don't leave behind a temporary file
28815         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
28816         Otherwise, coreutils' "make distcheck" would fail with this:
28817           Only in /c/cu/tests/torture/coreutils/test/\
28818             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
28819           make[2]: *** [my-distcheck] Error 1
28821         float, math: add omitted file
28822         * lib/itold.c: Add file, required for yesterday's float change.
28824 2011-10-01  Bruno Haible  <bruno@clisp.org>
28826         isinf: Fix for OpenBSD/x86.
28827         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
28828         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
28829         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
28831 2011-10-01  Bruno Haible  <bruno@clisp.org>
28833         isfinite: Fix syntax error in configure test.
28834         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
28836         isfinite: Fix typo.
28837         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
28838         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
28840 2011-10-01  Bruno Haible  <bruno@clisp.org>
28842         nonblocking tests: Fix test failure on Linux/IA-64.
28843         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
28844         Set to 270000.
28846 2011-10-01  Bruno Haible  <bruno@clisp.org>
28848         mkfifoat tests: Fix a test failure on mingw.
28849         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
28850         with error ENOSYS.
28852 2011-09-30  Bruno Haible  <bruno@clisp.org>
28854         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
28855         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
28856         'long double'. Set REPLACE_ITOLD.
28857         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
28858         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
28859         * lib/itold.c: New file.
28860         * modules/float (Files): Add lib/itold.c.
28861         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
28862         (Makefile.am): Substitute REPLACE_ITOLD.
28863         * modules/math (Depends-on): Add float.
28864         (Makefile.am): Substitute REPLACE_ITOLD.
28865         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
28866         * doc/posix-headers/math.texi: Likewise.
28867         * doc/posix-functions/logl.texi: Likewise.
28869 2011-09-30  Bruno Haible  <bruno@clisp.org>
28871         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
28872         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
28873         Set to 140000.
28875 2011-09-30  Bruno Haible  <bruno@clisp.org>
28877         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
28878         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
28879         invocation, say "right after AC_PROG_CC_STDC", not "right after
28880         AC_PROG_CC".
28881         Reported by Gary V. Vaughan <gary@gnu.org>.
28883 2011-09-30  Bruno Haible  <bruno@clisp.org>
28885         Centralize C99 requirement.
28886         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
28887         * modules/stdarg (configure.ac-early): Invoke it instead of
28888         AC_PROG_CC_STDC.
28889         Reported by Gary V. Vaughan and Paul Eggert.
28891 2011-09-29  Bruno Haible  <bruno@clisp.org>
28893         float: Fix LDBL_MAX value on Linux/PowerPC.
28894         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
28895         on Linux/PowerPC.
28896         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
28897         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
28898         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
28899         platform.
28900         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
28902 2011-09-29  Bruno Haible  <bruno@clisp.org>
28904         doc: Improve doc about gl_EARLY.
28905         * doc/gnulib-tool.texi (Initial import): Mention where to place an
28906         AC_PROG_CC_STDC invocation.
28907         Reported by Gary V. Vaughan <gary@gnu.org>.
28909 2011-09-28  Bruno Haible  <bruno@clisp.org>
28911         fgetc, fputc, fread, fwrite tests: Fix link error.
28912         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
28913         on non-MSVC platforms.
28914         * tests/test-fputc.c (main): Likewise.
28915         * tests/test-fread.c (main): Likewise.
28916         * tests/test-fwrite.c (main): Likewise.
28917         Reported by Jim Meyering.
28919 2011-09-27  Bruno Haible  <bruno@clisp.org>
28921         fputc, fwrite tests: Avoid test failure on MSVC.
28922         * tests/test-fgetc.c: Include msvc-inval.h.
28923         (main): Invoke gl_msvc_inval_ensure_handler.
28924         * tests/test-fputc.c: Include msvc-inval.h.
28925         (main): Invoke gl_msvc_inval_ensure_handler.
28926         * tests/test-fread.c: Include msvc-inval.h.
28927         (main): Invoke gl_msvc_inval_ensure_handler.
28928         * tests/test-fwrite.c: Include msvc-inval.h.
28929         (main): Invoke gl_msvc_inval_ensure_handler.
28930         * modules/fgetc-tests (Depends-on): Add msvc-inval.
28931         * modules/fputc-tests (Depends-on): Likewise.
28932         * modules/fread-tests (Depends-on): Likewise.
28933         * modules/fwrite-tests (Depends-on): Likewise.
28935 2011-09-27  Bruno Haible  <bruno@clisp.org>
28937         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
28938         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
28939         (raise): Remove older, duplicated declaration.
28940         (_gl_raise_SIGPIPE): New declaration.
28941         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
28942         (rpl_raise): Remove function.
28943         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
28944         a gnulib-defined SIGPIPE here.
28945         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
28946         'sigprocmask' has detected missing signal-blocking and the module
28947         'sigpipe' is enabled.
28948         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28950 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
28952         base64-tests: avoid memory leak
28953         * tests/test-base64.c (main): Plug memory leak.
28955         base32: new module
28956         * modules/base32: New module.
28957         * lib/base32.c: New file.
28958         * lib/base32.h: Likewise.
28959         * m4/base32.m4: Likewise.
28960         * modules/base32-tests: New test.
28961         * tests/test-base32.c: Likewise.
28962         * MODULES.html.sh (Misc): Mention it.
28964 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28966         gnulib: use more-standard license notice wording
28967         * gnulib-tool (func_emit_copyright_notice): When emitting a
28968         license notice into a file, use the standard wording as suggested
28969         by the current information for GNU maintainers, except say "file"
28970         rather than "program".  The new wording gives a license version
28971         number, which addresses an issue raised by Glenn Morris in
28972         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
28973         * m4/onceonly.m4: Use that same wording here, too.
28975         dup2: minor simplification
28976         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
28977         as lib/dup2.c no longer uses 'inline'.
28979 2011-09-25  Bruno Haible  <bruno@clisp.org>
28981         strings: Fix compilation error on MSVC.
28982         * lib/strings.in.h: Include <stddef.h> for size_t.
28984 2011-09-25  Bruno Haible  <bruno@clisp.org>
28986         fflush et al.: Document limitation on MSVC.
28987         * doc/posix-functions/fflush.texi: Document possible crash in handling
28988         mode other than DEFAULT_HANDLING.
28989         * doc/posix-functions/fgetc.texi: Likewise.
28990         * doc/posix-functions/fputc.texi: Likewise.
28991         * doc/posix-functions/fread.texi: Likewise.
28992         * doc/posix-functions/fwrite.texi: Likewise.
28994 2011-09-25  Bruno Haible  <bruno@clisp.org>
28996         msvc-inval: Allow three invalid parameter handling modes.
28997         * lib/msvc-inval.h: Don't include <stdlib.h> here.
28998         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
28999         macros.
29000         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
29001         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
29002         SANE_LIBRARY_HANDLING as a no-op.
29003         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
29004         <stdlib.h>.
29005         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
29007 2011-09-25  Bruno Haible  <bruno@clisp.org>
29009         msvc-inval: Make handler multithread-safe.
29010         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
29011         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
29012         declarations.
29013         (gl_msvc_inval_current): New declaration.
29014         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
29015         Operate on the structure returned by gl_msvc_inval_current().
29016         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
29017         Remove varaiables.
29018         (tls_index, tls_initialized): New variables.
29019         (not_per_thread): New variable.
29020         (gl_msvc_inval_current): New function.
29021         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
29022         returned by gl_msvc_inval_current().
29024 2011-09-25  Bruno Haible  <bruno@clisp.org>
29026         msvc-inval: Install handler globally.
29027         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
29028         !_MSC_VER.
29029         (gl_msvc_invalid_parameter_handler): Remove declaration.
29030         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
29031         declarations.
29032         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
29033         Install the handler globally, don't uninstall it.
29034         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
29035         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
29036         currently valid, call RaiseException instead.
29037         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
29038         for !_MSC_VER.
29040 2011-09-25  Bruno Haible  <bruno@clisp.org>
29042         strerror_r-posix: Fix for MSVC 9.
29043         * lib/strerror_r.c (local_snprintf): New function.
29044         (snprintf): Define to local_snprintf, not to _snprintf.
29046 2011-09-25  Bruno Haible  <bruno@clisp.org>
29048         ftruncate: Support for MSVC 9.
29049         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
29050         (chsize_nothrow): New function.
29051         (chsize): Redefine as a macro.
29052         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
29053         * modules/ftruncate (Depends-on): Add msvc-inval.
29055 2011-09-25  Bruno Haible  <bruno@clisp.org>
29057         New module 'fstat'.
29058         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
29059         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
29060         * lib/fchdir.c (rpl_fstat): Remove function.
29061         * m4/fstat.m4: New file.
29062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
29063         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
29064         declared.
29065         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
29066         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
29067         * modules/fstat: New file.
29068         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
29069         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
29070         is set.
29071         * doc/posix-functions/fstat.texi: Mention the new module and the
29072         problem on MSVC.
29073         * NEWS: Mention the change.
29074         * modules/acl (Depends-on): Add fstat.
29075         * modules/chdir-safer (Depends-on): Likewise.
29076         * modules/chown (Depends-on): Likewise.
29077         * modules/copy-file (Depends-on): Likewise.
29078         * modules/fchdir (Depends-on): Likewise.
29079         * modules/fdopendir (Depends-on): Likewise.
29080         * modules/fopen (Depends-on): Likewise.
29081         * modules/fts (Depends-on): Likewise.
29082         * modules/getcwd (Depends-on): Likewise.
29083         * modules/isapipe (Depends-on): Likewise.
29084         * modules/linkat (Depends-on): Likewise.
29085         * modules/lseek (Depends-on): Likewise.
29086         * modules/mkdir-p (Depends-on): Likewise.
29087         * modules/open (Depends-on): Likewise.
29088         * modules/openat (Depends-on): Likewise.
29089         * modules/read-file (Depends-on): Likewise.
29090         * modules/renameat (Depends-on): Likewise.
29091         * modules/utimens (Depends-on): Likewise.
29093 2011-09-25  Bruno Haible  <bruno@clisp.org>
29095         linkat: Fix compilation on MSVC 9.
29096         * lib/linkat.c: Don't include <stdint.h>.
29098 2011-09-25  Bruno Haible  <bruno@clisp.org>
29100         fclose: Support for MSVC 9.
29101         * lib/fclose.c: Include msvc-inval.h.
29102         (fclose_nothrow): New function.
29103         (rpl_fclose): Use it.
29104         * modules/fclose (Depends-on): Add msvc-inval.
29105         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
29107 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
29109         dup2: minor simplifications
29110         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
29111         that it's a performance win.
29112         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
29113         ! defined __CYGWIN__)" to "ifdef F_GETFL".
29115 2011-09-24  Jim Meyering  <meyering@redhat.com>
29117         test-futimens: avoid a warning from gcc -Wshadow
29118         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
29119         to avoid a shadowing warning.
29121 2011-09-24  Bruno Haible  <bruno@clisp.org>
29123         fdopen: Support for MSVC 9.
29124         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
29125         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
29126         * lib/fdopen.c: Include msvc-inval.h.
29127         (fdopen_nothrow): New function.
29128         (rpl_fdopen): Use it.
29129         * modules/fdopen (Depends-on): Add msvc-inval.
29130         * modules/fclose-tests (Depends-on): Add fdopen.
29131         * modules/fflush-tests (Depends-on): Likewise.
29132         * modules/fgetc-tests (Depends-on): Likewise.
29133         * modules/fputc-tests (Depends-on): Likewise.
29134         * modules/fread-tests (Depends-on): Likewise.
29135         * modules/freopen-tests (Depends-on): Likewise.
29136         * modules/fseeko-tests (Depends-on): Likewise.
29137         * modules/ftello-tests (Depends-on): Likewise.
29138         * modules/fwrite-tests  (Depends-on): Likewise.
29139         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
29141 2011-09-24  Bruno Haible  <bruno@clisp.org>
29143         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
29144         * modules/fgetc-tests (Depends-on): Add unistd.
29145         * modules/fputc-tests (Depends-on): Likewise.
29146         * modules/fread-tests (Depends-on): Likewise.
29147         * modules/fwrite-tests (Depends-on): Likewise.
29149 2011-09-24  Bruno Haible  <bruno@clisp.org>
29151         dup: Simplify autoconf test.
29152         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
29153         on gl_MSVC_INVAL's result.
29155 2011-09-24  Bruno Haible  <bruno@clisp.org>
29157         Tests for function fwrite().
29158         * modules/fwrite-tests: New file.
29159         * tests/test-fwrite.c: New file.
29160         * modules/stdio-tests (Depends-on): Add fwrite-tests.
29162         Tests for function fread().
29163         * modules/fread-tests: New file.
29164         * tests/test-fread.c: New file.
29165         * modules/stdio-tests (Depends-on): Add fread-tests.
29167         Activate fputc tests.
29168         * modules/stdio-tests (Depends-on): Add fputc-tests.
29170         Enhance fgetc, fputc tests.
29171         * tests/test-fgetc.c (main): Also test the stream's error indicator.
29172         * tests/test-fputc.c (main): Likewise.
29174 2011-09-24  Bruno Haible  <bruno@clisp.org>
29176         write: Support for MSVC 9.
29177         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
29178         is not 1.
29179         * lib/write.c (write_nothrow): New function.
29180         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
29181         not 1. Use write_nothrow.
29182         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
29183         invalid parameter handler.
29184         (gl_PREREQ_WRITE): New macro.
29185         * modules/write (Depends-on): Add msvc-inval.
29186         (configure.ac): Invoke gl_PREREQ_WRITE.
29187         * doc/posix-functions/write.texi: Mention the problem on MSVC.
29189 2011-09-24  Bruno Haible  <bruno@clisp.org>
29191         read: Fix last commit.
29192         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
29194 2011-09-24  Bruno Haible  <bruno@clisp.org>
29196         dup2: Fix last commit.
29197         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
29198         (rpl_dup2): Disable fcntl workaround on native Windows.
29200         sigprocmask: Make code safer.
29201         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
29202         section that changes macro definitions for this compilation unit.
29204 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29206         dup2: clarify by coalescing Windows-specific material
29207         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
29208         "msvc-nothrow.h"' to the Windows-specific section, so that the
29209         Emacs source need not contain these include files.
29210         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
29211         Windows-specific fixes into this function rather than just the
29212         nothrow fix, as this shortens and clarifies the code.  Always
29213         define as a function, as that's a bit cleaner than having it be
29214         sometimes a function and sometimes a macro.
29215         (rpl_dup2): Move the Windows-specific stuff out of here and into
29216         ms_windows_dup2.  Don't protect the Haiku-related fix with
29217         "#if !defined __linux__", as the same code also works around
29218         a Linux kernel bug, and it doesn't add any system calls on any
29219         platform.  Add comment about FreeBSD 6.1.
29221         sigprocmask: move #include directive
29222         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
29223         Windows-specific section, so that the Emacs source need not
29224         contain msvc-inval.h.
29226 2011-09-23  Bruno Haible  <bruno@clisp.org>
29228         read: Support for MSVC 9.
29229         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
29230         is not 1.
29231         * lib/read.c (read_nothrow): New function.
29232         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
29233         read_nothrow.
29234         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
29235         invalid parameter handler.
29236         (gl_PREREQ_READ): New macro.
29237         * modules/read (Depends-on): Add msvc-inval.
29238         (configure.ac): Invoke gl_PREREQ_READ.
29239         * doc/posix-functions/read.texi: Mention the problem on MSVC.
29241 2011-09-23  Bruno Haible  <bruno@clisp.org>
29243         close: Support for MSVC 9.
29244         * lib/close.c: Include <errno.h>, msvc-inval.h.
29245         (close_nothrow): New function.
29246         (rpl_close): Use it.
29247         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
29248         invalid parameter handler.
29249         * modules/close (Depends-on): Add msvc-inval.
29250         * modules/dup2-tests (Depends-on): Add close.
29251         * modules/dup3-tests (Depends-on): Likewise.
29252         * modules/fcntl-tests (Depends-on): Likewise.
29253         * modules/spawn-pipe-tests (Depends-on): Likewise.
29254         * modules/unistd-safer-tests (Depends-on): Likewise.
29255         * doc/posix-functions/close.texi: Mention the problem on MSVC.
29257 2011-09-23  Bruno Haible  <bruno@clisp.org>
29259         New module 'dup'.
29260         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
29261         Allow replacement.
29262         * lib/dup.c: New file.
29263         * lib/fchdir.c (rpl_dup): Remove function.
29264         * m4/dup.m4: New file.
29265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
29266         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
29267         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
29268         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
29269         * modules/dup: New file.
29270         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
29271         'dup' module is in use.
29272         * modules/fdopendir (Depends-on): Add dup.
29273         * modules/fdutimensat-tests (Depends-on): Likewise.
29274         * modules/fts (Depends-on): Likewise.
29275         * modules/futimens-tests (Depends-on): Likewise.
29276         * modules/posix_spawnp-tests (Depends-on): Likewise.
29277         * modules/unistd-safer-tests (Depends-on): Likewise.
29278         * modules/utimens-tests (Depends-on): Likewise.
29279         * doc/posix-functions/dup.texi: Mention the new module and the problem
29280         on MSVC.
29282 2011-09-23  Bruno Haible  <bruno@clisp.org>
29284         getdtablesize: Support for MSVC 9.
29285         * lib/getdtablesize.c: Include msvc-inval.h.
29286         (_setmaxstdio_nothrow): New function.
29287         (_setmaxstdio): Redefine it.
29288         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
29289         * modules/getdtablesize (Depends-on): Add msvc-inval.
29290         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
29292 2011-09-23  Bruno Haible  <bruno@clisp.org>
29294         signal-h: Rename from signal.
29295         * modules/signal-h: Renamed from modules/signal.
29296         * modules/pthread_sigmask (Depends-on): Update.
29297         * modules/raise (Depends-on): Likewise.
29298         * modules/sigaction (Depends-on): Likewise.
29299         * modules/sigpipe (Depends-on): Likewise.
29300         * modules/sigprocmask (Depends-on): Likewise.
29301         * modules/sys_select (Depends-on): Likewise.
29302         * modules/signal-h-tests: Renamed from modules/signal-tests.
29303         (Files, Depends-on, Makefile.am): Update.
29304         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
29305         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
29306         (Files, Makefile.am): Update.
29307         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
29308         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
29309         * modules/signal: New placeholder file.
29310         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
29311         * doc/posix-headers/signal.texi: Update.
29312         * NEWS: Mention the change.
29314 2011-09-23  Bruno Haible  <bruno@clisp.org>
29316         sigprocmask: Avoid crashes through signal() on MSVC 9.
29317         * lib/sigprocmask.c: Include msvc-inval.h.
29318         (signal_nothrow): New function.
29319         (signal): Redefine it.
29320         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
29321         * modules/sigprocmask (Depends-on): Add msvc-inval.
29322         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
29324 2011-09-23  Bruno Haible  <bruno@clisp.org>
29326         Tests for module 'raise'.
29327         * modules/raise-tests: New file.
29328         * tests/test-raise.c: New file.
29330         raise: Support for MSVC.
29331         * lib/signal.in.h (raise): New declaration.
29332         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
29333         for native Windows platforms.
29334         * m4/raise.m4: New file.
29335         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
29336         HAVE_RAISE, REPLACE_RAISE.
29337         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
29338         REPLACE_RAISE.
29339         * modules/raise (Status, Notice): Remove fields.
29340         (Files): Add m4/raise.m4.
29341         (Depends-on): Add signal, msvc-inval.
29342         (configure.ac): Use the common idioms.
29343         (Maintainer): Add me.
29344         * tests/test-signal-c++.cc: Check the signature of raise.
29345         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
29347 2011-09-23  Bruno Haible  <bruno@clisp.org>
29349         pipe2: Fix compilation on pre-C99 compilers.
29350         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
29352 2011-09-23  Bruno Haible  <bruno@clisp.org>
29354         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
29355         * lib/msvc-nothrow.h: New file.
29356         * lib/msvc-nothrow.c: New file.
29357         * m4/msvc-nothrow.m4: New file.
29358         * modules/msvc-nothrow: New file.
29359         * lib/dup2.c: Include msvc-nothrow.h.
29360         (rpl_dup2): No need to protect _get_osfhandle call here.
29361         * lib/accept4.c: Include msvc-nothrow.h.
29362         * lib/error.c: Likewise.
29363         * lib/fcntl.c: Likewise.
29364         * lib/lseek.c: Likewise.
29365         * lib/nonblocking.c: Likewise.
29366         * lib/poll.c: Likewise.
29367         * lib/read.c: Likewise.
29368         * lib/select.c: Likewise.
29369         * lib/sockets.h: Likewise.
29370         * lib/sockets.c: Likewise.
29371         * lib/stdio-read.c: Likewise.
29372         * lib/stdio-write.c: Likewise.
29373         * lib/write.c: Likewise.
29374         * lib/w32sock.h: Likewise.
29375         * lib/w32spawn.h: Likewise.
29376         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
29377         * lib/fsync.c: Likewise.
29378         * lib/isapipe.c: Likewise.
29379         * modules/dup2 (Depends-on): Add msvc-nothrow.
29380         * modules/accept4 (Depends-on): Likewise.
29381         * modules/error (Depends-on): Likewise.
29382         * modules/fcntl (Depends-on): Likewise.
29383         * modules/lseek (Depends-on): Likewise.
29384         * modules/nonblocking (Depends-on): Likewise.
29385         * modules/poll (Depends-on): Likewise.
29386         * modules/read (Depends-on): Likewise.
29387         * modules/select (Depends-on): Likewise.
29388         * modules/sockets (Depends-on): Likewise.
29389         * modules/sigpipe (Depends-on): Likewise.
29390         * modules/write (Depends-on): Likewise.
29391         * modules/accept (Depends-on): Likewise.
29392         * modules/bind (Depends-on): Likewise.
29393         * modules/connect (Depends-on): Likewise.
29394         * modules/gethostname (Depends-on): Likewise.
29395         * modules/getpeername (Depends-on): Likewise.
29396         * modules/getsockname (Depends-on): Likewise.
29397         * modules/getsockopt (Depends-on): Likewise.
29398         * modules/ioctl (Depends-on): Likewise.
29399         * modules/listen (Depends-on): Likewise.
29400         * modules/recv (Depends-on): Likewise.
29401         * modules/recvfrom (Depends-on): Likewise.
29402         * modules/send (Depends-on): Likewise.
29403         * modules/sendto (Depends-on): Likewise.
29404         * modules/setsockopt (Depends-on): Likewise.
29405         * modules/shutdown (Depends-on): Likewise.
29406         * modules/socket (Depends-on): Likewise.
29407         * modules/execute (Depends-on): Likewise.
29408         * modules/spawn-pipe (Depends-on): Likewise.
29409         * modules/flock (Depends-on): Likewise.
29410         * modules/fsync (Depends-on): Likewise.
29411         * modules/isapipe (Depends-on): Likewise.
29412         * tests/test-cloexec.c: Include msvc-nothrow.h.
29413         * tests/test-dup-safer.c: Likewise.
29414         * tests/test-dup2.c: Likewise.
29415         * tests/test-dup3.c: Likewise.
29416         * tests/test-fcntl.c: Likewise.
29417         * tests/test-pipe.c: Likewise.
29418         * tests/test-pipe2.c: Likewise.
29419         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
29420         * modules/unistd-safer-tests (Depends-on): Likewise.
29421         * modules/dup2-tests (Depends-on): Likewise.
29422         * modules/dup3-tests (Depends-on): Likewise.
29423         * modules/fcntl-tests (Depends-on): Likewise.
29424         * modules/pipe-posix-tests (Depends-on): Likewise.
29425         * modules/pipe2-tests (Depends-on): Likewise.
29427 2011-09-23  Bruno Haible  <bruno@clisp.org>
29429         dup2: Make code more maintainable.
29430         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
29431         (rpl_dup2): Use it.
29432         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
29433         * modules/dup2 (configure.ac): Invoke it.
29434         Reported by Paul Eggert.
29436 2011-09-23  Bruno Haible  <bruno@clisp.org>
29438         msvc-inval: Fix compilation error.
29439         * lib/msvc-inval.h: Include <excpt.h>.
29441 2011-09-23  Bruno Haible  <bruno@clisp.org>
29443         mkdir: Tweak for MSVC 9.
29444         * lib/sys_stat.in.h: Update comments.
29445         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
29447         Tests for module 'chdir'.
29448         * modules/chdir-tests: New file.
29449         * tests/test-chdir.c: New file.
29451         New module 'chdir'.
29452         * modules/chdir: New file.
29453         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
29454         (chdir): New declaration.
29455         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
29456         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
29457         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
29458         * tests/test-unistd-c++.cc: Check signature of chdir.
29459         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
29460         * modules/chdir-long (Depends-on): Add chdir.
29461         * modules/fchdir (Depends-on): Likewise.
29462         * modules/rename (Depends-on): Likewise.
29463         * modules/savewd (Depends-on): Likewise.
29465         rmdir: Support for mingw, MSVC 9.
29466         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
29467         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
29469         getcwd: Tweak for MSVC 9.
29470         * lib/unistd.in.h: Update comments.
29471         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
29473 2011-09-22  Bruno Haible  <bruno@clisp.org>
29475         strerror_r-posix: Avoid a link error on MSVC.
29476         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
29477         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
29479 2011-09-22  Bruno Haible  <bruno@clisp.org>
29481         select: Avoid link errors on MSVC.
29482         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
29483         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
29484         * modules/pselect (Link): Likewise.
29485         * NEWS: Mention the change.
29486         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
29487         test-select-stdin against $(LIB_SELECT).
29488         * modules/pselect-tests (Makefile.am): Link test-pselect against
29489         $(LIB_SELECT).
29491 2011-09-22  Bruno Haible  <bruno@clisp.org>
29493         select: Avoid compilation error on MSVC.
29494         * lib/select.c: Don't include <stdbool.h>.
29496 2011-09-21  Bruno Haible  <bruno@clisp.org>
29498         Consolidate all uses of PATH_MAX in *.m4 files.
29499         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
29500         macros.
29501         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
29502         and gl_PATHMAX_SNIPPET.
29503         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
29504         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29505         * modules/chdir-long (Files): Add m4/pathmax.m4.
29506         * modules/getcwd (Files): Likewise.
29508 2011-09-21  Bruno Haible  <bruno@clisp.org>
29510         ftruncate: Un-deprecate, concentrate on Win32 support.
29511         * modules/ftruncate (Status, Notice): Remove sections.
29512         (Depends-on): Add largefile.
29513         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
29514         non-mingw platforms.
29515         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
29516         include <io.h>.
29517         * modules/perror-tests (Depends-on): Add ftruncate.
29518         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
29519         'ftruncate' module.
29521 2011-09-21  Bruno Haible  <bruno@clisp.org>
29523         Add dependencies to new dirent related modules.
29524         * modules/opendir (Depends-on): Add closedir.
29525         * modules/getcwd (Depends-on): Add opendir, closedir.
29526         * modules/dirent-safer-tests (Depends-on): Likewise.
29527         * modules/fdopendir-tests (Depends-on): Likewise.
29528         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
29529         * modules/renameat-tests (Depends-on): Likewise.
29531 2011-09-21  Bruno Haible  <bruno@clisp.org>
29533         opendir: Avoid compilation error on mingw.
29534         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
29535         * modules/opendir (Depends-on): Add unistd.
29537 2011-09-21  Bruno Haible  <bruno@clisp.org>
29539         ftruncate tests: Avoid a test failure on mingw.
29540         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
29542 2011-09-21  Bruno Haible  <bruno@clisp.org>
29544         select tests: Avoid test failures on OSF/1 5.1 and mingw.
29545         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
29546         native Windows.
29548 2011-09-21  Bruno Haible  <bruno@clisp.org>
29550         New module 'fdopen'.
29551         * lib/stdio.in.h (fdopen): New declaration.
29552         * lib/fdopen.c: New file.
29553         * m4/fdopen.m4: New file.
29554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
29555         REPLACE_FDOPEN.
29556         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
29557         REPLACE_FDOPEN.
29558         * modules/fdopen: New file.
29559         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
29560         * tests/test-stdio-c++.cc: Check signature of fdopen.
29561         * doc/posix-functions/fdopen.texi: Mention the new module.
29563 2011-09-21  Bruno Haible  <bruno@clisp.org>
29565         unlockpt tests: Avoid test failure on NetBSD 5.1.
29566         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
29567         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
29569 2011-09-21  Bruno Haible  <bruno@clisp.org>
29571         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
29572         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
29573         * tests/test-getlogin_r.c (main): Likewise.
29575 2011-09-20  Bruno Haible  <bruno@clisp.org>
29577         time tests: Don't require pid_t.
29578         * doc/posix-headers/time.texi: Revert last change.
29579         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
29580         * tests/test-time.c: Comment out the check for pid_t.
29582 2011-09-20  Bruno Haible  <bruno@clisp.org>
29584         fsync tests: Avoid a test failure on mingw.
29585         * tests/test-fsync.c (main): Allow a failure with EIO.
29587 2011-09-20  Bruno Haible  <bruno@clisp.org>
29589         euidaccess: Update comments.
29590         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
29592 2011-09-20  Bruno Haible  <bruno@clisp.org>
29594         Ensure EBADF returns for socket functions on mingw.
29595         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
29596         descriptor is invalid.
29597         * lib/bind.c (rpl_bind): Likewise.
29598         * lib/connect.c (rpl_connect): Likewise.
29599         * lib/getpeername.c (rpl_getpeername): Likewise.
29600         * lib/getsockname.c (rpl_getsockname): Likewise.
29601         * lib/getsockopt.c (rpl_getsockopt): Likewise.
29602         * lib/listen.c (rpl_listen): Likewise.
29603         * lib/recv.c (rpl_recv): Likewise.
29604         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29605         * lib/send.c (rpl_send): Likewise.
29606         * lib/sendto.c (rpl_sendto): Likewise.
29607         * lib/setsockopt.c (rpl_setsockopt): Likewise.
29608         * lib/shutdown.c (rpl_shutdown): Likewise.
29610 2011-09-20  Bruno Haible  <bruno@clisp.org>
29612         select tests: EBADF tests.
29613         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
29614         test_bad_fd): New functions.
29615         (test_function): Invoke also test_bad_fd.
29617 2011-09-20  Bruno Haible  <bruno@clisp.org>
29619         Tests for module 'posix_spawn_file_actions_addopen.
29620         * modules/posix_spawn_file_actions_addopen-tests: New file.
29621         * tests/test-posix_spawn_file_actions_addopen.c: New file.
29623         Tests for module 'posix_spawn_file_actions_adddup2'.
29624         * modules/posix_spawn_file_actions_adddup2-tests: New file.
29625         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
29627         Tests for module 'posix_spawn_file_actions_addclose'.
29628         * modules/posix_spawn_file_actions_addclose-tests: New file.
29629         * tests/test-posix_spawn_file_actions_addclose.c: New file.
29631 2011-09-20  Bruno Haible  <bruno@clisp.org>
29633         Tests for module 'unlockpt'.
29634         * modules/unlockpt-tests: New file.
29635         * tests/test-unlockpt.c: New file.
29636         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
29638         Tests for module 'grantpt'.
29639         * modules/grantpt-tests: New file.
29640         * tests/test-grantpt.c: New file.
29641         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
29643 2011-09-20  Bruno Haible  <bruno@clisp.org>
29645         freopen tests: EBADF tests.
29646         * tests/test-freopen.c: Include errno.h, unistd.h.
29647         (main): Add tests for EBADF, commented out for the moment.
29649         fclose tests: EBADF tests.
29650         * tests/test-fclose.c (main): Add tests for EBADF.
29652         fflush tests: EBADF tests.
29653         * tests/test-fflush.c: Include errno.h, macros.h.
29654         (main): Add tests for EBADF.
29656         ftello tests: EBADF tests.
29657         * tests/test-ftello4.sh: New file.
29658         * tests/test-ftello4.c: New file.
29659         * modules/ftello-tests (Files): Add them.
29660         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
29662         fseeko tests: EBADF tests.
29663         * tests/test-fseeko4.sh: New file.
29664         * tests/test-fseeko4.c: New file.
29665         * modules/fseeko-tests (Files): Add them.
29666         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
29668         Tests for function fputc().
29669         * modules/fputc-tests: New file.
29670         * tests/test-fputc.c: New file.
29671         * modules/stdio-tests (Depends-on): Add fputc-tests.
29673         Tests for function fgetc().
29674         * modules/fgetc-tests: New file.
29675         * tests/test-fgetc.c: New file.
29676         * modules/stdio-tests (Depends-on): Add fgetc-tests.
29678         Tests for function fdopen().
29679         * modules/fdopen-tests: New file.
29680         * tests/test-fdopen.c: New file.
29681         * modules/stdio-tests (Depends-on): Add fdopen-tests.
29683         Tests for module 'vdprintf'.
29684         * modules/vdprintf-tests: New file.
29685         * tests/test-vdprintf.c: New file.
29687         Tests for module 'dprintf'.
29688         * modules/dprintf-tests: New file.
29689         * tests/test-dprintf.c: New file.
29691 2011-09-20  Bruno Haible  <bruno@clisp.org>
29693         Tests for module 'ioctl'.
29694         * modules/ioctl-tests: New file.
29695         * tests/test-ioctl.c: New file.
29697 2011-09-20  Bruno Haible  <bruno@clisp.org>
29699         fcntl tests: EBADF tests.
29700         * tests/test-fcntl.c (main): Add more tests for EBADF.
29702 2011-09-20  Bruno Haible  <bruno@clisp.org>
29704         utimensat tests: EBADF tests.
29705         * tests/test-utimensat.c (main): Add tests for EBADF.
29707         renameat tests: EBADF tests.
29708         * tests/test-renameat.c (main): Add tests for EBADF.
29710         mkfifoat tests: EBADF tests.
29711         * tests/test-mkfifoat.c (main): Add tests for EBADF.
29713         readlinkat tests: EBADF tests.
29714         * tests/test-readlinkat.c (main): Add tests for EBADF.
29716         symlinkat tests: EBADF tests.
29717         * tests/test-symlinkat.c (main): Add tests for EBADF.
29719         linkat tests: EBADF tests.
29720         * tests/test-linkat.c (main): Add tests for EBADF.
29722         Tests for module 'faccessat'.
29723         * modules/faccessat-tests: New file.
29724         * tests/test-faccessat.c: New file.
29726         fdopendir tests: EBADF tests.
29727         * tests/test-fdopendir.c (main): Add more tests for EBADF.
29729         openat tests: EBADF tests.
29730         * tests/test-fchownat.c (main): Add tests for EBADF.
29731         * tests/test-fstatat.c (main): Likewise.
29732         * tests/test-mkdirat.c (main): Likewise.
29733         * tests/test-openat.c (main): Likewise.
29734         * tests/test-unlinkat.c (main): Likewise.
29735         * tests/test-fchmodat.c: New file.
29736         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
29737         (Makefile.am): Also run 'test-fchmodat'.
29739 2011-09-20  Bruno Haible  <bruno@clisp.org>
29741         utimens, futimens, fdutimensat tests: EBADF tests.
29742         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
29744         Tests for function fstat().
29745         * modules/fstat-tests: New file.
29746         * tests/test-fstat.c: New file.
29747         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
29749 2011-09-20  Bruno Haible  <bruno@clisp.org>
29751         test-ttyname_r tests: EBADF tests.
29752         * tests/test-ttyname_r.c (main): Add tests for EBADF.
29754         Tests for module 'isatty'.
29755         * modules/isatty-tests: New file.
29756         * tests/test-isatty.c: New file.
29758         Tests for module 'write'.
29759         * modules/write-tests: New file.
29760         * tests/test-write.c: New file.
29762         Tests for module 'read'.
29763         * modules/read-tests: New file.
29764         * tests/test-read.c: New file.
29766         pwrite tests: EBADF tests.
29767         * tests/test-pwrite.c (main): Add tests for EBADF.
29769         pread tests: EBADF tests.
29770         * tests/test-pread.c (main): Add tests for EBADF.
29772         lseek tests: EBADF tests.
29773         * tests/test-lseek.c (main): Add more tests for EBADF.
29775         Tests for module 'ftruncate'.
29776         * modules/ftruncate-tests: New file.
29777         * tests/test-ftruncate.sh: New file.
29778         * tests/test-ftruncate.c: New file.
29780         fsync tests: EBADF tests.
29781         * tests/test-fsync.c (main): Add more tests for EBADF.
29783         fdatasync tests: EBADF tests.
29784         * tests/test-fdatasync.c (main): Add more tests for EBADF.
29786         Tests for module 'fchown'.
29787         * modules/fchown-tests: New file.
29788         * tests/test-fchown.c: New file.
29790         Tests for module 'fchmod'.
29791         * modules/fchmod-tests: New file.
29792         * tests/test-fchmod.c: New file.
29794         fchdir tests: EBADF tests.
29795         * tests/test-fchdir.c (main): Add more tests for EBADF.
29797         dup2 tests: EBADF tests.
29798         * tests/test-dup2.c (main): Add more tests for EBADF.
29800         Tests for module 'dup'.
29801         * modules/dup-tests: New file.
29802         * tests/test-dup.c: New file.
29804         Tests for module 'close'.
29805         * modules/close-tests: New file.
29806         * tests/test-close.c: New file.
29808 2011-09-20  Bruno Haible  <bruno@clisp.org>
29810         Tests for module 'shutdown'.
29811         * modules/shutdown-tests: New file.
29812         * tests/test-shutdown.c: New file.
29814         Tests for module 'setsockopt'.
29815         * modules/setsockopt-tests: New file.
29816         * tests/test-setsockopt.c: New file.
29818         Tests for module 'sendto'.
29819         * modules/sendto-tests: New file.
29820         * tests/test-sendto.c: New file.
29822         Tests for module 'send'.
29823         * modules/send-tests: New file.
29824         * tests/test-send.c: New file.
29826         Tests for module 'recvfrom'.
29827         * modules/recvfrom-tests: New file.
29828         * tests/test-recvfrom.c: New file.
29830         Tests for module 'recv'.
29831         * modules/recv-tests: New file.
29832         * tests/test-recv.c: New file.
29834         Tests for module 'listen'.
29835         * modules/listen-tests: New file.
29836         * tests/test-listen.c: New file.
29838         Tests for module 'getsockopt'.
29839         * modules/getsockopt-tests: New file.
29840         * tests/test-getsockopt.c: New file.
29842         Tests for module 'getsockname'.
29843         * modules/getsockname-tests: New file.
29844         * tests/test-getsockname.c: New file.
29846         Tests for module 'getpeername'.
29847         * modules/getpeername-tests: New file.
29848         * tests/test-getpeername.c: New file.
29850         Tests for module 'connect'.
29851         * modules/connect-tests: New file.
29852         * tests/test-connect.c: New file.
29854         Tests for module 'bind'.
29855         * modules/bind-tests: New file.
29856         * tests/test-bind.c: New file.
29858         accept4 tests: Fix for native Windows.
29859         * tests/test-accept4.c: Include sockets.h.
29860         (main): Invoke gl_sockets_startup.
29861         * modules/accept4-tests (Depends-on): Add sockets.
29863         accept tests: Fix for native Windows.
29864         * tests/test-accept.c: Include sockets.h.
29865         (main): Invoke gl_sockets_startup.
29866         * modules/accept-tests (Depends-on): Add sockets.
29868 2011-09-19  Bruno Haible  <bruno@clisp.org>
29870         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
29871         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
29872         do...while(0).
29873         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
29874         Suggested by Paul Eggert.
29876 2011-09-19  Bruno Haible  <bruno@clisp.org>
29878         sched: Ensure pid_t is defined.
29879         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
29880         not define pid_t.
29881         * lib/sched.in.h: Include <sys/types.h>.
29882         * doc/posix-headers/sched.texi: Mention the pid_t problem.
29883         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29885 2011-09-19  Bruno Haible  <bruno@clisp.org>
29887         msvc-inval: Ensure the entire expansion is a single statement.
29888         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
29889         of braces.
29891 2011-09-19  Jim Meyering  <meyering@redhat.com>
29893         tests: use printf, not echo in init.sh's warn_ function
29894         * tests/init.sh (warn_): Use printf, not echo.  The latter would
29895         misbehave when given strings containing a backslash or starting
29896         with e.g., -n.  James Youngman suggested setting IFS.
29898 2011-09-19  Eric Blake  <eblake@redhat.com>
29900         futimens: enhance test
29901         * tests/test-futimens.h (test_futimens): Also check for EBADF on
29902         closed non-negative fd.
29904         date: accept 'hence' as opposite of 'ago'
29905         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
29906         * tests/test-parse-datetime.c (main): Enhance test.
29907         Suggested by Jesse Wilson.
29909 2011-09-19  Jim Meyering  <meyering@redhat.com>
29911         getcwd: don't fail in a deep directory on a system without openat
29912         Before this change, getcwd would fail when called from a directory
29913         of depth PATH_MAX / 3 or greater.  That was due to the fact that
29914         the non-openat implementation used "..", "../..", "../../..", etc.
29915         to access ancestor directories.  With too many, that string would
29916         be longer than PATH_MAX.
29917         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
29918         using gnulib's openat replacement.
29919         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
29920         we're using the replacement function.
29922 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
29924         maint.mk: avoid warnings from perl about missing files
29925         * top/maint.mk (def_sym_regex): Ignore files listed in
29926         $(gl_other_headers_) that do not exist, say because a project
29927         does not use a corresponding module.
29929 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
29931         stat: use pathmax.h only if needed
29932         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
29933         This is better for Emacs, which does not have a mingw port and
29934         therefore can avoid the pathmax module.
29936         utimens: remove dependency on dup2
29937         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
29938         to work around the Linux kernel bug.
29939         * modules/utimens (Depends-on): Remove dup2.
29941 2011-09-18  Bruno Haible  <bruno@clisp.org>
29943         inet_ntop, inet_pton: Look for it also in libresolv.
29944         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
29945         libnsl, search for it in libresolv.
29946         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
29947         Needed on Solaris 7.
29949 2011-09-18  Bruno Haible  <bruno@clisp.org>
29951         accept, accept4 tests: Avoid link error on Solaris.
29952         * modules/accept-tests (Makefile.am): Link test-accept against
29953         $(LIBSOCKET).
29954         * modules/accept4-tests (Makefile.am): Link test-accept4 against
29955         $(LIBSOCKET).
29957         accept4: Avoid link error on Solaris.
29958         * modules/accept4 (Link): New section.
29960         socket functions: Avoid link errors on Solaris.
29961         * modules/accept (Depends-on): Add socketlib.
29962         (Link): New section.
29963         * modules/bind (Depends-on): Add socketlib.
29964         (Link): New section.
29965         * modules/connect (Depends-on): Add socketlib.
29966         (Link): New section.
29967         * modules/getpeername (Depends-on): Add socketlib.
29968         (Link): New section.
29969         * modules/getsockname (Depends-on): Add socketlib.
29970         (Link): New section.
29971         * modules/getsockopt (Depends-on): Add socketlib.
29972         (Link): New section.
29973         * modules/listen (Depends-on): Add socketlib.
29974         (Link): New section.
29975         * modules/recv (Depends-on): Add socketlib.
29976         (Link): New section.
29977         * modules/recvfrom (Depends-on): Add socketlib.
29978         (Link): New section.
29979         * modules/send (Depends-on): Add socketlib.
29980         (Link): New section.
29981         * modules/sendto (Depends-on): Add socketlib.
29982         (Link): New section.
29983         * modules/setsockopt (Depends-on): Add socketlib.
29984         (Link): New section.
29985         * modules/shutdown (Depends-on): Add socketlib.
29986         (Link): New section.
29987         * modules/socket (Depends-on): Add socketlib.
29988         (Link): New section.
29990 2011-09-18  Bruno Haible  <bruno@clisp.org>
29992         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
29993         * tests/test-ptsname.c (main): Terminate the test if it takes longer
29994         than 5 seconds.
29995         * modules/ptsname-tests (configure.ac): Test for alarm.
29997 2011-09-18  Bruno Haible  <bruno@clisp.org>
29999         posix_spawn_file_actions_add*: Fix module dependencies.
30000         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
30001         posix_spawn_file_actions_init.
30002         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
30003         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
30005 2011-09-18  Bruno Haible  <bruno@clisp.org>
30007         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
30008         * tests/test-rename.h (test_rename): Allow error code EEXIST.
30009         * tests/test-renameat.c (main): Likewise.
30011 2011-09-18  Bruno Haible  <bruno@clisp.org>
30013         Tests for module 'accept4'.
30014         * modules/accept4-tests: New file.
30015         * tests/test-accept4.c: New file.
30017 2011-09-18  Bruno Haible  <bruno@clisp.org>
30019         Tests for module 'accept'.
30020         * modules/accept-tests: New file.
30021         * tests/test-accept.c: New file.
30023 2011-09-18  Bruno Haible  <bruno@clisp.org>
30025         dup2: Support for MSVC.
30026         * lib/dup2.c: Include msvc-inval.h.
30027         (rpl_dup2): Handle invalid parameter notifications during dup2 and
30028         _get_osfhandle calls.
30029         * modules/dup2 (Depends-on): Add msvc-inval.
30030         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
30032         New module 'msvc-inval'.
30033         * lib/msvc-inval.h: New file.
30034         * lib/msvc-inval.c: New file.
30035         * m4/msvc-inval.m4: New file.
30036         * modules/msvc-inval: New file.
30038 2011-09-17  Bruno Haible  <bruno@clisp.org>
30040         Tests for module 'pclose'.
30041         * modules/pclose-tests: New file.
30043         New module 'pclose'.
30044         * lib/stdio.in.h (pclose): New declaration.
30045         * lib/pclose.c: New file.
30046         * m4/pclose.m4: New file.
30047         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
30048         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
30049         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
30050         * modules/pclose: New file.
30051         * modules/popen-tests (Depends-on): Add pclose.
30052         * modules/popen-safer-tests (Depends-on): Likewise.
30053         * doc/posix-functions/pclose.texi: Mention the new module.
30055 2011-09-17  Bruno Haible  <bruno@clisp.org>
30057         popen: Support for MSVC.
30058         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
30059         * lib/popen.c (popen): Provide alternate definition for native Windows.
30060         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
30061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
30062         * modules/popen (Depends-on, configure.ac): Update condition.
30063         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
30064         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
30065         fixed.
30067 2011-09-17  Bruno Haible  <bruno@clisp.org>
30069         isnanl, isnand, isnanf: Work around MSVC bug.
30070         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
30072 2011-09-17  Bruno Haible  <bruno@clisp.org>
30074         sys_socket tests: Fix recent mistake.
30075         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
30077 2011-09-17  Bruno Haible  <bruno@clisp.org>
30079         putenv: Support for MSVC.
30080         * modules/putenv (Depends-on): Add environ.
30081         * lib/putenv.c (environ): Disable declaration.
30082         * lib/unistd.in.h: Update comment.
30084 2011-09-17  Bruno Haible  <bruno@clisp.org>
30086         math: Avoid macro redefinition warnings on MSVC.
30087         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
30088         Undefine before redefining.
30090 2011-09-17  Bruno Haible  <bruno@clisp.org>
30092         doc: Mention functions which are declared as macros.
30093         * doc/posix-functions/*[fl].texi: Mention that some functions are
30094         defined as macros with arguments only.
30096 2011-09-17  Bruno Haible  <bruno@clisp.org>
30098         Add dependencies to new dirent related modules.
30099         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
30100         * modules/fts (Depends-on): Likewise.
30101         * modules/glob (Depends-on): Likewise.
30102         * modules/savedir (Depends-on): Likewise.
30103         * modules/scandir (Depends-on): Likewise.
30104         * modules/dirent-safer (Depends-on): Add opendir, closedir.
30105         * modules/fdopendir (Depends-on): Add opendir.
30107 2011-09-17  Bruno Haible  <bruno@clisp.org>
30109         inet_pton: Support for MSVC on Windows Vista or newer.
30110         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
30111         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
30112         HAVE_DECL_INET_PTON is defined.
30113         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
30114         On platforms with <winsock2.h>, test whether inet_pton is declared in
30115         <ws2tcpip.h>. If so, arrange to replace it.
30116         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
30117         REPLACE_INET_PTON.
30118         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
30119         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
30120         (Depends-on, configure.ac): Update condition.
30121         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
30123 2011-09-17  Bruno Haible  <bruno@clisp.org>
30125         inet_ntop: Support for MSVC on Windows Vista or newer.
30126         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
30127         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
30128         HAVE_DECL_INET_NTOP is defined.
30129         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
30130         On platforms with <winsock2.h>, test whether inet_ntop is declared in
30131         <ws2tcpip.h>. If so, arrange to replace it.
30132         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
30133         REPLACE_INET_NTOP.
30134         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
30135         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
30136         (Depends-on, configure.ac): Update condition.
30137         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
30139 2011-09-16  Eric Blake  <eblake@redhat.com>
30141         test-fsync: yet another enhancement
30142         * tests/test-fsync.c (main): Also test behavior on read-only text
30143         file.
30145 2011-09-16  Bruno Haible  <bruno@clisp.org>
30147         Enhance fsync, fdatasync tests.
30148         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
30149         * tests/test-fdatasync.c (main): Likewise.
30151 2011-09-16  Bruno Haible  <bruno@clisp.org>
30153         Support for MSVC compiler: Ensure mode_t gets defined.
30154         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
30155         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30156         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30157         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
30158         * tests/test-fcntl-h.c: Check that mode_t is defined.
30159         * tests/test-sys_stat.c: Likewise.
30160         * tests/test-sys_types.c: Likewise.
30161         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
30162         * doc/posix-headers/sys_stat.texi: Likewise.
30163         * doc/posix-headers/sys_types.texi: Likewise.
30165 2011-09-16  Bruno Haible  <bruno@clisp.org>
30167         sys_stat: Support for MSVC.
30168         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
30169         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
30170         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
30171         MSVC.
30173 2011-09-16  Bruno Haible  <bruno@clisp.org>
30175         Support for MSVC compiler: Ensure off_t gets defined.
30176         * lib/unistd.in.h: Include <sys/types.h>.
30177         * tests/test-fcntl-h.c: Check that off_t is defined.
30178         * tests/test-sys_stat.c: Likewise.
30179         * tests/test-sys_types.c: Likewise.
30181 2011-09-16  Eric Blake  <eblake@redhat.com>
30183         fdatasync: port to Solaris
30184         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
30185         * modules/fdatasync (Link): Document it.
30186         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
30188         fdatasync: port to MacOS X 10.7
30189         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
30190         declared.
30191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
30192         * modules/unistd (Makefile.am): Substitute it.
30193         * lib/unistd.in.h (fdatasync): Declare on MacOS.
30194         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
30196         fdatasync: minor improvements
30197         * modules/fdatasync (Depends-on): Add condition for fsync.
30198         * lib/fdatasync.c (fdatasync): Add comment.
30199         * tests/test-unistd-c++.cc: Test fdatasync.
30201         unistd: update refs to newer POSIX
30202         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
30203         Suggested by Bruno Haible.
30205         fdatasync: new module
30206         * modules/fsync (Description): Document difference to fdatasync.
30207         * modules/fdatasync: New module.
30208         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
30209         * lib/fdatasync.c (fdatasync): Likewise.
30210         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
30211         defaults.
30212         * modules/unistd (Makefile.am): Set witnesses.
30213         * lib/unistd.in.h (fdatasync): Declare.
30214         * MODULES.html.sh: Document it.
30215         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
30216         * modules/fdatasync-tests: New test.
30217         * tests/test-fdatasync.c: Likewise.
30219 2011-09-16  Eric Blake  <eblake@redhat.com>
30221         test-fsync: enhance tests
30222         * modules/fsync-tests (Depends-on): Add errno, for mingw.
30223         * tests/test-fsync.c (main): Enhance test.
30225 2011-09-15  Bruno Haible  <bruno@clisp.org>
30227         Support for MSVC compiler: Ensure ssize_t gets defined.
30228         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
30229         * doc/posix-headers/stdio.texi: Likewise.
30230         * modules/stdio (Depends-on): Add ssize_t.
30231         * modules/sys_socket (Depends-on): Likewise.
30232         * modules/sys_types (Depends-on): Likewise.
30233         * modules/sys_uio (Depends-on): Likewise.
30234         * modules/unistd (Depends-on): Likewise.
30235         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
30236         * tests/test-sys_types.c: Check that ssize_t is defined.
30238 2011-09-14  Bruno Haible  <bruno@clisp.org>
30240         Avoid using #, the m4 comment starter character, near brackets.
30241         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
30242         delimiter character in sed expressions.
30243         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
30244         Suggested by Eric Blake.
30246         Properly quote AC_CHECK_DECLS' 4th argument.
30247         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
30248         argument.
30249         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30250         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30251         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30252         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30253         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30254         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
30255         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
30256         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
30257         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
30258         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
30259         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
30260         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30261         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30262         * m4/isinf.m4 (gl_ISINF): Likewise.
30263         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30264         * m4/readutmp.m4 (gl_READUTMP): Likewise.
30265         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30266         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30267         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30268         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
30269         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30270         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
30271         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
30272         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30273         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30274         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
30276         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30277         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30278         Reported by Eric Blake.
30280         Properly quote AC_CHECK_DECL's 4th argument.
30281         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
30282         argument.
30283         * m4/argp.m4 (gl_ARGP): Likewise.
30284         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30285         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30286         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30287         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30288         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
30289         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
30290         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
30291         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30292         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30293         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30294         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30295         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30296         Reported by Eric Blake.
30298 2011-09-14  Eric Blake  <eblake@redhat.com>
30300         opendir: avoid compile warning
30301         * lib/opendir.c (includes): Always include errno.h.
30302         Reported by Tatsuro MATSUOKA.
30304 2011-09-14  Jim Meyering  <meyering@redhat.com>
30306         maint.mk: sc_tight_scope: propagate failure from sub-make
30307         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
30308         Reported by Martin von Gagern.
30310 2011-09-13  Bruno Haible  <bruno@clisp.org>
30312         tempname: Support for MSVC.
30313         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
30314         MSVC.
30315         * modules/tempname (Depends-on): Add fcntl-h.
30317 2011-09-13  Bruno Haible  <bruno@clisp.org>
30319         sys_time: Support for MSVC.
30320         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
30321         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
30322         include <winsock2.h>.
30323         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
30324         function declarations that collide with POSIX.
30325         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
30326         (Makefile.am): Substitute HAVE_WINSOCK2_H.
30328 2011-09-13  Bruno Haible  <bruno@clisp.org>
30330         stat: Support for MSVC.
30331         * lib/stat.c: Include pathmax.h.
30332         * modules/stat (Depends-on): Add pathmax.
30334         pathmax: Support for native Windows.
30335         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
30337 2011-09-12  Bruno Haible  <bruno@clisp.org>
30339         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
30340         * lib/dirent.in.h (struct dirent): New type.
30341         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
30342         DT_WHT): New macros.
30343         (DIR): New type.
30344         (opendir, closedir): Declare only if the module 'opendir' is enabled.
30345         (readdir, rewinddir): New declarations.
30346         * lib/dirent-private.h: New file.
30347         * lib/opendir.c: New file.
30348         * lib/readdir.c: New file.
30349         * lib/rewinddir.c: New file.
30350         * lib/closedir.c: New file.
30351         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
30352         * m4/opendir.m4: New file.
30353         * m4/readdir.m4: New file.
30354         * m4/rewinddir.m4: New file.
30355         * m4/closedir.m4: New file.
30356         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
30357         REPLACE_CLOSEDIR here.
30358         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
30359         readdir, rewinddir are declared.
30360         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
30361         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
30362         HAVE_REWINDDIR, HAVE_CLOSEDIR.
30363         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
30364         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
30365         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
30366         * modules/opendir: New file.
30367         * modules/readdir: New file.
30368         * modules/rewinddir: New file.
30369         * modules/closedir: New file.
30370         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
30371         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
30372         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
30373         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
30374         * NEWS: Mention the 'fchdir' change.
30376 2011-09-11  Bruno Haible  <bruno@clisp.org>
30378         asm-underscore.m4: Support for MSVC.
30379         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
30380         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
30382 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
30384         Doc about crypt functions.
30385         * doc/posix-functions/crypt.texi: Expand range of glibc versions
30386         needing for _GNU_SOURCE to get crypt.
30387         * doc/posix-functions/encrypt.texi: Likewise.
30388         * doc/posix-functions/setkey.texi: Likewise.
30390 2011-09-11  Bruno Haible  <bruno@clisp.org>
30392         doc: Update regarding MSVC 9.
30393         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
30394         tested".
30395         * doc/posix-functions/*.texi: Update with info about MSVC 9.
30396         * doc/posix-headers/*.texi: Likewise.
30397         * doc/pastposix-functions/*.texi: Likewise.
30398         * doc/glibc-functions/*.texi: Likewise.
30399         * doc/glibc-headers/*.texi: Likewise.
30401 2011-09-11  Bruno Haible  <bruno@clisp.org>
30403         unistd et al.: Don't assume <unistd.h> exists.
30404         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
30405         does not exist.
30406         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
30407         exist. But include <stdlib.h>.
30408         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
30409         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
30410         symlink() does not exist.
30411         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
30412         include <io.h> instead.
30413         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
30414         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
30415         include <direct.h> instead.
30416         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
30417         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
30418         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
30419         <io.h> instead.
30420         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
30421         correctly if the system does not have hard links.
30422         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
30423         <direct.h> instead.
30424         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
30425         it when looking for function declarations.
30426         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
30427         <direct.h> and <io.h> instead.
30428         * doc/posix-headers/unistd.texi: More details about MSVC problem.
30430 2011-09-11  Bruno Haible  <bruno@clisp.org>
30432         strcase: Support for MSVC.
30433         * modules/strcase (Status, Notice): Remove obsoletion mark.
30434         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
30435         * doc/posix-functions/strncasecmp.texi: Likewise.
30437         strings: Don't assume <strings.h> exists.
30438         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
30439         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
30440         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
30441         * doc/posix-headers/strings.texi: Mention the MSVC problem.
30443 2011-09-11  Bruno Haible  <bruno@clisp.org>
30445         dirent: Don't assume <dirent.h> exists.
30446         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
30447         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
30448         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
30449         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
30451 2011-09-11  Bruno Haible  <bruno@clisp.org>
30453         Fix wint_t on MSVC.
30454         * lib/wchar.in.h (wint_t): On MSVC, override it.
30455         * lib/wctype.in.h (wint_t): Likewise.
30456         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
30457         MSVC.
30458         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
30459         * doc/posix-headers/wctype.texi: Likewise.
30461 2011-09-11  Bruno Haible  <bruno@clisp.org>
30463         sys_types: Fix typo.
30464         * lib/sys_types.in.h: Fix typo in comment.
30465         Reported by Paul Eggert.
30467         Support for MSVC compiler: Ensure size_t gets defined.
30468         * modules/strings (Depends-on): Add 'sys_types'.
30469         * modules/sys_uio (Depends-on): Likewise.
30470         * lib/sys_uio.in.h: Update comment.
30472         C++ tests for module 'sys_types'.
30473         * modules/sys_types-c++-tests: New file.
30474         * tests/test-sys_types-c++.cc: New file.
30476         Tests for module 'sys_types'.
30477         * modules/sys_types-tests: New file.
30478         * tests/test-sys_types.c: New file.
30480         New module 'sys_types'.
30481         * lib/sys_types.in.h: New file.
30482         * m4/sys_types_h.m4: New file.
30483         * modules/sys_types: New file.
30484         * doc/posix-headers/sys_types.texi: Mention the new module and the
30485         size_t problem on MSVC 9.
30487 2011-09-11  Bruno Haible  <bruno@clisp.org>
30489         Support for MSVC compiler: Avoid division by a literal 0.
30490         * lib/math.in.h (NAN): Define through a function call also on MSVC.
30491         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
30492         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
30493         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
30494         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
30495         * tests/infinity.h: New file.
30496         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
30497         on MSVC.
30498         * tests/test-ceilf1.c: Include infinity.h.
30499         (main): Use Infinityf.
30500         * tests/test-ceil1.c: Include infinity.h.
30501         (main): Use Infinityd.
30502         * tests/test-ceill.c: Include infinity.h.
30503         (main): Use Infinityl.
30504         * tests/test-dprintf-posix.c: Include infinity.h.
30505         (test_function): Use Infinityd.
30506         * tests/test-floorf1.c: Include infinity.h.
30507         (main): Use Infinityf.
30508         * tests/test-floor1.c: Include infinity.h.
30509         (main): Use Infinityd.
30510         * tests/test-floorl.c: Include infinity.h.
30511         (main): Use Infinityl.
30512         * tests/test-fprintf-posix.c: Include infinity.h.
30513         (test_function): Use Infinityd.
30514         * tests/test-frexp.c: Include infinity.h.
30515         (main): Use Infinityd.
30516         * tests/test-frexpl.c: Include infinity.h.
30517         (main): Use Infinityl.
30518         * tests/test-isfinite.c: Include infinity.h.
30519         (test_isfinitef): Use Infinityf.
30520         (test_isfinited): Use Infinityd.
30521         (test_isfinitel): Use Infinityl.
30522         * tests/test-isinf.c: Include infinity.h.
30523         (test_isinff): Use Infinityf.
30524         (test_isinfd): Use Infinityd.
30525         (test_isinfl): Use Infinityl.
30526         * tests/test-isnan.c: Include infinity.h.
30527         (test_float): Use Infinityf.
30528         (test_double): Use Infinityd.
30529         (test_long_double): Use Infinityl.
30530         * tests/test-isnanf.h: Include infinity.h.
30531         (main): Use Infinityf.
30532         * tests/test-isnand.h: Include infinity.h.
30533         (main): Use Infinityd.
30534         * tests/test-isnanl.h: Include infinity.h.
30535         (main): Use Infinityl.
30536         * tests/test-ldexpl.c: Include infinity.h.
30537         (main): Use Infinityl.
30538         * tests/test-printf-posix.h: Include infinity.h.
30539         (test_function): Use Infinityd.
30540         * tests/test-roundf1.c: Include infinity.h.
30541         (main): Use Infinityf.
30542         * tests/test-round1.c: Include infinity.h.
30543         (main): Use Infinityd.
30544         * tests/test-roundl.c: Include infinity.h.
30545         (main): Use Infinityl.
30546         * tests/test-signbit.c: Include infinity.h.
30547         (test_signbitf): Use Infinityf.
30548         (test_signbitd): Use Infinityd.
30549         (test_signbitl): Use Infinityl.
30550         * tests/test-snprintf-posix.h: Include infinity.h.
30551         (test_function): Use Infinityd, Infinityl.
30552         * tests/test-sprintf-posix.h: Include infinity.h.
30553         (test_function): Use Infinityd, Infinityl.
30554         * tests/test-truncf1.c: Include infinity.h.
30555         (main): Use Infinityf.
30556         * tests/test-trunc1.c: Include infinity.h.
30557         (main): Use Infinityd.
30558         * tests/test-truncl.c: Include infinity.h.
30559         (main): Use Infinityl.
30560         * tests/test-vasnprintf-posix.c: Include infinity.h.
30561         (test_function): Use Infinityd, Infinityl.
30562         * tests/test-vasprintf-posix.c: Include infinity.h.
30563         (test_function): Use Infinityd, Infinityl.
30564         * modules/ceilf-tests (Files): Add tests/infinity.h.
30565         * modules/ceil-tests (Files): Likewise.
30566         * modules/ceill-tests (Files): Likewise.
30567         * modules/dprintf-posix-tests (Files): Likewise.
30568         * modules/floorf-tests (Files): Likewise.
30569         * modules/floor-tests (Files): Likewise.
30570         * modules/floorl-tests (Files): Likewise.
30571         * modules/fprintf-posix-tests (Files): Likewise.
30572         * modules/frexp-tests (Files): Likewise.
30573         * modules/frexp-nolibm-tests (Files): Likewise.
30574         * modules/frexpl-tests (Files): Likewise.
30575         * modules/frexpl-nolibm-tests (Files): Likewise.
30576         * modules/isfinite-tests (Files): Likewise.
30577         * modules/isinf-tests (Files): Likewise.
30578         * modules/isnan-tests (Files): Likewise.
30579         * modules/isnanf-tests (Files): Likewise.
30580         * modules/isnanf-nolibm-tests (Files): Likewise.
30581         * modules/isnand-tests (Files): Likewise.
30582         * modules/isnand-nolibm-tests (Files): Likewise.
30583         * modules/isnanl-tests (Files): Likewise.
30584         * modules/isnanl-nolibm-tests (Files): Likewise.
30585         * modules/ldexpl-tests (Files): Likewise.
30586         * modules/printf-posix-tests (Files): Likewise.
30587         * modules/roundf-tests (Files): Likewise.
30588         * modules/round-tests (Files): Likewise.
30589         * modules/roundl-tests (Files): Likewise.
30590         * modules/signbit-tests (Files): Likewise.
30591         * modules/snprintf-posix-tests (Files): Likewise.
30592         * modules/sprintf-posix-tests (Files): Likewise.
30593         * modules/truncf-tests (Files): Likewise.
30594         * modules/trunc-tests (Files): Likewise.
30595         * modules/truncl-tests (Files): Likewise.
30596         * modules/vasnprintf-posix-tests (Files): Likewise.
30597         * modules/vasprintf-posix-tests (Files): Likewise.
30598         * modules/vdprintf-posix-tests (Files): Likewise.
30599         * modules/vfprintf-posix-tests (Files): Likewise.
30600         * modules/vprintf-posix-tests (Files): Likewise.
30601         * modules/vsnprintf-posix-tests (Files): Likewise.
30602         * modules/vsprintf-posix-tests (Files): Likewise.
30603         * modules/xprintf-posix-tests (Files): Likewise.
30605 2011-09-11  Bruno Haible  <bruno@clisp.org>
30607         Ensure pid_t gets defined.
30608         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
30609         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
30610         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30611         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30612         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
30613         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
30614         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
30615         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30616         * tests/test-fcntl-h.c: Check that pid_t is defined.
30617         * tests/test-sched.c: Likewise.
30618         * tests/test-termios.c: Likewise.
30619         * tests/test-time.c: Likewise.
30620         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
30621         * doc/posix-headers/signal.texi: Likewise.
30622         * doc/posix-headers/sys_types.texi: Likewise.
30623         * doc/posix-headers/time.texi: Likewise.
30625 2011-09-11  Bruno Haible  <bruno@clisp.org>
30627         acl: Fix compilation on Solaris 10 (older version).
30628         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
30629         of ACE_EVERYONE.
30630         * lib/set-mode-acl.c (qset_acl): Likewise.
30631         Reported by Christian Jullien <eligis@orange.fr>.
30633 2011-09-10  Bruno Haible  <bruno@clisp.org>
30635         iconv, unsetenv: Add support for MSVC compiler.
30636         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
30637         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
30639 2011-09-10  Bruno Haible  <bruno@clisp.org>
30641         *printf: Add support for MSVC compiler.
30642         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
30643         handles the exception caused by the %n directive. When cross-compiling,
30644         guess no on native Windows.
30645         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30646         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
30647         emulate it through vsnprintf.
30648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
30649         * doc/posix-functions/dprintf.texi: Update documentation regarding
30650         MSVC 9.
30651         * doc/posix-functions/fprintf.texi: Likewise.
30652         * doc/posix-functions/printf.texi: Likewise.
30653         * doc/posix-functions/snprintf.texi: Likewise.
30654         * doc/posix-functions/sprintf.texi: Likewise.
30655         * doc/posix-functions/swprintf.texi: Likewise.
30656         * doc/posix-functions/vdprintf.texi: Likewise.
30657         * doc/posix-functions/vfprintf.texi: Likewise.
30658         * doc/posix-functions/vprintf.texi: Likewise.
30659         * doc/posix-functions/vsnprintf.texi: Likewise.
30660         * doc/posix-functions/vsprintf.texi: Likewise.
30661         * doc/glibc-functions/asprintf.texi: Likewise.
30662         * doc/glibc-functions/obstack_printf.texi: Likewise.
30663         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30664         * doc/glibc-functions/vasprintf.texi: Likewise.
30666 2011-09-10  Bruno Haible  <bruno@clisp.org>
30668         nocrash: Add support for native Windows.
30669         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
30671 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
30672             Bruno Haible  <bruno@clisp.org>
30674         absolute-header, include-next: Add support for MSVC compiler.
30675         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
30676         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
30677         directory separator in #line directives.
30678         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
30679         recognize also backslash as directory separator in #line directives.
30681 2011-09-08  Jim Meyering  <meyering@redhat.com>
30683         maint.mk: mark the post-release commit log with "maint: " prefix
30684         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
30685         one-line commit-log summary.
30687 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
30688             Bruno Haible  <bruno@clisp.org>
30690         Doc about crypt functions.
30691         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
30692         systems.
30693         * doc/posix-functions/encrypt.texi: Likewise.
30694         * doc/posix-functions/setkey.texi: Likewise.
30696 2011-09-08  Simon Josefsson  <simon@josefsson.org>
30698         * lib/gc.h: Fix copyright header.
30700 2011-09-07  Bruno Haible  <bruno@clisp.org>
30702         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
30703         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
30704         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
30706 2011-09-07  Bruno Haible  <bruno@clisp.org>
30708         openat: Work around compilation error with OSF/1 5.1 DTK cc.
30709         * lib/fopen.c: Use different syntax for include of <stdio.h>.
30710         * lib/freopen.c: Likewise.
30711         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
30712         * lib/lstat.c: Likewise.
30713         * lib/stat.c: Likewise.
30714         * lib/open.c: Use different syntax for include of <fcntl.h>.
30715         * lib/openat.c: Include fcntl.h again, explicitly.
30717 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
30719         parse-datetime: document the newly accepted format
30720         * doc/parse-datetime.texi (Combined date and time of day items):
30721         New section.
30723 2011-09-06  Bruno Haible  <bruno@clisp.org>
30725         acl: Fix a test failure on newer Solaris 10 with ZFS.
30726         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
30727         ENOSYS as no ACL.
30728         Reported by Jim Meyering.
30730 2011-09-06  Bruno Haible  <bruno@clisp.org>
30732         acl: Update for AIX >= 5.3 with NFS.
30733         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
30734         ENOSYS as no ACL.
30736         acl: Fix a test failure on AIX >= 5.3 with NFS.
30737         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
30738         as no ACL.
30740 2011-09-06  Bruno Haible  <bruno@clisp.org>
30742         acl: Fix a test failure on IRIX 6.5 with NFS.
30743         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
30744         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
30745         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
30746         * lib/copy-acl.c (qcopy_acl): Likewise.
30748 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
30750         openat: port to AIX 7.1 with large files
30751         AIX 7.1 does a "#define openat open64at" if large files are in use,
30752         so we can't simply #undef openat.  Use the orig_openat trick (similar
30753         to orig_open in lib/open.c) to work around the problem.  Problem
30754         reported by Kevin Brott for GNU tar, in the thread containing
30755         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
30756         * lib/openat.c (__need_system_fcntl_h): Define first.
30757         Include <fcntl.h> and <sys/types.h> before undefining.
30758         (orig_openat) [HAVE_OPENAT]: New inline function.
30759         (openat) [HAVE_OPENAT]: Do not undef.
30760         (rpl_openat): Use orig_openat, not openat.
30762 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30763             Bruno Haible  <bruno@clisp.org>
30765         acl: Avoid errors on NonStop Kernel.
30766         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
30767         ENOTSUP errors.
30769 2011-09-05  Bruno Haible  <bruno@clisp.org>
30771         acl: Clean up Solaris code.
30772         * lib/acl-internal.h: Remove no-op #if.
30773         * lib/file-has-acl.c: Likewise.
30774         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
30775         * lib/copy-acl.c (qcopy_acl): Likewise.
30777 2011-09-05  Bruno Haible  <bruno@clisp.org>
30779         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
30780         binaries built on the original Solaris 10.
30781         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
30782         trivial.
30784 2011-09-05  Bruno Haible  <bruno@clisp.org>
30786         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
30787         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
30788         10.
30789         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
30790         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
30791         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
30792         instead of acl_get, facl_get, acl_set, facl_set.
30794 2011-09-05  Bruno Haible  <bruno@clisp.org>
30796         copy-file: Try unit tests on more file systems.
30797         * tests/test-copy-file-1.sh: New file.
30798         * tests/test-copy-file-2.sh: New file.
30799         * modules/copy-file-tests (Files): Add them.
30800         (Makefile.am): Add them to TESTS.
30802         acl: Try unit tests on more file systems.
30803         * tests/test-file-has-acl-1.sh: New file.
30804         * tests/test-file-has-acl-2.sh: New file.
30805         * tests/test-set-mode-acl-1.sh: New file.
30806         * tests/test-set-mode-acl-2.sh: New file.
30807         * tests/test-copy-acl-1.sh: New file.
30808         * tests/test-copy-acl-2.sh: New file.
30809         * modules/acl-tests (Files): Add them.
30810         (Makefile.am): Add them to TESTS.
30812 2011-09-04  Bruno Haible  <bruno@clisp.org>
30814         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
30815         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
30816         10.
30817         (OLD_ALLOW, OLD_DENY): New macros.
30818         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
30819         ACE_ACCESS_ALLOWED_ACE_TYPE.
30820         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
30821         ACE_ACCESS_DENIED_ACE_TYPE.
30822         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
30823         (NEW_ACE_EXECUTE): Fix value.
30824         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
30825         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
30826         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
30827         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
30828         NEW_ACE_SYNCHRONIZE): New macros.
30829         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
30830         instead of acl_fromtext, acl_set, facl_set.
30831         Fixes a coreutils/tests/cp/perm failure.
30833 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
30835         openat: test for fstatat (..., 0) bug
30836         Further testing with tar suggests that fstatat (..., 0)
30837         does not work in general, on AIX 7.1; see
30838         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
30839         So, give up entirely on AIX 7.1's fstatat, and fall back on our
30840         replacement fstatat (which is what older AIX releases were using
30841         anyway).
30842         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
30843         use is now changed to orig_fstatat.  This was probably the right
30844         thing to do anyway.
30845         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
30846         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
30847         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
30848         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
30849         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
30850         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
30851         if the bug is found.
30853         openat: test for fstatat (AT_FDCWD, ..., 0) bug
30854         This tests for another fstatat bug on AIX 7.1:
30855         fstatat (AT_FDCWD, ..., 0) does not work.  See
30856         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
30857         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
30858         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
30859         (rpl_fstatat): Adjust so that it works around either (or both)
30860         bugs if present.
30861         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
30863 2011-09-03  Karl Berry  <karl@gnu.org>
30865         * doc/regex.texi (Character Class Operators): Avoid literal ":"
30866         in index entries.
30868 2011-09-02  Bruno Haible  <bruno@clisp.org>
30870         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
30871         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
30872         values of AR, ARFLAGS, RANLIB.
30873         Reported by John W. Eaton <jwe@gnu.org> for Octave.
30875 2011-09-02  Bruno Haible  <bruno@clisp.org>
30877         Find 'ar' program that fits with --host argument.
30878         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
30880 2011-09-02  Bruno Haible  <bruno@clisp.org>
30882         tests: init.sh: Support any non-GNU diff.
30883         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
30884         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
30885         Solaris 8.
30887 2011-09-02  Bruno Haible  <bruno@clisp.org>
30889         tests: init.sh: work also with any non-GNU diff that supports -u
30890         * tests/init.sh: Relax check for diff -u support.
30891         Rather than checking for GNU diff via --version, simply check
30892         for support for -u itself.  Useful at least on OpenBSD 4.9,
30893         AIX 7.1, IRIX 6.5, and Solaris 10.
30895 2011-09-01  Bruno Haible  <bruno@clisp.org>
30897         strtoimax, strtoumax: Document problem on HP-UX 11.
30898         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
30899         * doc/posix-functions/strtoumax.texi: Likewise.
30901 2011-09-01  Bruno Haible  <bruno@clisp.org>
30903         strtoumax: Avoid link error on OSF/1 with DTK cc.
30904         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
30905         defined as a function.
30906         * modules/strtoumax (Depends-on, configure.ac): Test only whether
30907         strtoumax is defined, not whether it is declared.
30909 2011-09-01  Bruno Haible  <bruno@clisp.org>
30911         strtoimax: Avoid link error on OSF/1 with DTK cc.
30912         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
30913         defined as a function.
30914         * modules/strtoimax (Depends-on, configure.ac): Test only whether
30915         strtoimax is defined, not whether it is declared.
30917 2011-09-01  Bruno Haible  <bruno@clisp.org>
30919         imaxdiv: Avoid link error on OSF/1 with DTK cc.
30920         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
30921         as a function.
30922         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
30923         whether it is declared.
30925 2011-09-01  Bruno Haible  <bruno@clisp.org>
30927         imaxabs: Avoid link error on OSF/1 with DTK cc.
30928         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
30929         as a function.
30930         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
30931         whether it is declared.
30933 2011-09-01  Bruno Haible  <bruno@clisp.org>
30935         Tests for module 'strtoumax'.
30936         * modules/strtoumax-tests: New file.
30937         * tests/test-strtoumax.c: New file.
30939         Tests for module 'strtoimax'.
30940         * modules/strtoimax-tests: New file.
30941         * tests/test-strtoimax.c: New file.
30943         Tests for module 'imaxdiv'.
30944         * modules/imaxdiv-tests: New file.
30945         * tests/test-imaxdiv.c: New file.
30947         Tests for module 'imaxabs'.
30948         * modules/imaxabs-tests: New file.
30949         * tests/test-imaxabs.c: New file.
30951 2011-09-01  Bruno Haible  <bruno@clisp.org>
30953         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
30954         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
30955         pthread_create.
30957 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30959         openat: work around AIX 7.1 fstatat issue
30960         This should fix the problem that was not properly fixed
30961         in the previous change, dated 2011-08-30.
30962         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
30963         __need_system_stat_h defined.
30964         (orig_fstatat) [HAVE_FSTATAT]: New function.
30965         (rpl_fstatat): Go back to the old way of doing things,
30966         except call orig_fstatat instead of fstatat.
30967         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
30968         Remove unnecessary check whether fstatat fills in st_size etc.
30970 2011-09-01  Bruno Haible  <bruno@clisp.org>
30972         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
30973         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
30974         just include the system's header.
30976 2011-08-31  Jim Meyering  <meyering@redhat.com>
30978         tests: avoid spurious assertion failure in test-float.c on ppc64
30979         * tests/test-float.c (test_long_double): Comment out an assertion,
30980         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
30981         with gcc-4.4.4.
30983         maint: indent with spaces, not TABs
30984         I need to get in the habit of running gnulib's "make check".
30985         Both of these would have been caught.
30986         * m4/largefile.m4: Indent with spaces, not TABs.
30987         * lib/parse-datetime.y (iso_8601_time): Likewise.
30988         Spotted by Pádraig Brady.
30990         test-parse-datetime.c: accommodate a relatively strict gcc warning
30991         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
30992         to avoid a warning from gcc's -Werror=missing-declarations.
30993         Insert a few spaces-before-funcall-parenthesis.
30995 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
30997         parse-datetime: accept ISO 8601 date and time rep with "T" separator
30998         The parser now accepts ISO 8601 date-time strings with "T" as the
30999         separator.  It has long parsed dates like "2004-02-29 16:21:42"
31000         with a space between the date and time strings.  Now it also parses
31001         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
31002         variants like "2004-02-29T16:21:42.333-07:00"
31003         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
31004         of day representation using the 'T' separator character.
31005         * doc/parse-datetime.texi (General date syntax): replace use of
31006         deprecated --iso-8601 option with --rfc-3339 in example of date
31007         command output formats that can be parsed.
31008         * tests/test-parse-datetime.c (tm_diff): New function, taken from
31009         lib/parse-datetime.y.
31010         (gmt_offset): New function.
31011         (main): Add additional test cases to validate ISO8601 extended
31012         date and time of day parsing.
31014 2011-08-31  Bruno Haible  <bruno@clisp.org>
31016         freopen: Documentation.
31017         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
31018         name.
31019         Reported by Claudio Bley <claudio.bley@gmail.com>.
31021 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
31023         freopen: Don't crash if the filename argument is NULL.
31024         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
31025         NULL.
31027 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31029         openat: work around AIX 7.1 fstatat bug
31030         Problem reported by Kevin Brott for GNU tar, in the thread containing
31031         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
31032         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
31033         FSTATAT_ST_SIZE_ETC_BROKEN.
31034         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
31035         rpl_fstatat.
31036         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
31037         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
31038         AC_CHECK_FUNCS_ONCE for fstatat.
31039         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
31040         fchmodat, mkdirat, openat and unlinkat.
31042 2011-08-30  Bruno Haible  <bruno@clisp.org>
31044         Avoid endless recursions if config.h includes some header files.
31045         * lib/fopen.c (__need_FILE): Define already before including config.h.
31046         * lib/freopen.c (__need_FILE): Likewise.
31047         * lib/open.c (__need_system_fcntl_h): Likewise.
31048         * lib/stat.c (__need_system_sys_stat_h): Likewise.
31049         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
31050         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
31052 2011-08-25  Karl Berry  <karl@gnu.org>
31054         * config/srclist.txt (ylwrap): new try.
31055         * build-aux/ylwrap: new file.
31057 2011-08-23  Bruno Haible  <bruno@clisp.org>
31059         tmpdir: Use a good default directory on native Windows.
31060         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
31061         (P_tmpdir): Default to _P_tmpdir on native Windows.
31062         (path_search): On native Windows, try the value returned by GetTempPath
31063         before trying P_tmpdir.
31064         * modules/tmpdir (Depends-on): Add pathmax.
31065         Suggested by John Darrington <john@darrington.wattle.id.au>.
31067 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
31069         doc: fix typo in README-release
31070         * top/README-release: Capitalize first word of a sentence.
31072 2011-08-19  Jim Meyering  <meyering@redhat.com>
31074         fts: do not exhaust memory when processing million-entry directories
31075         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
31076         directory would require about 256*N bytes of memory.  Thus, it was
31077         easy to construct a directory too large to be processed by any of
31078         those tools.  With this change, fts' maximum memory utilization is
31079         now limited to around 30MB.
31080         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
31081         (fts_read): When we've processed the final entry (i.e., when
31082         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
31083         using the parent entry to read any remaining entries.  Dispatch
31084         depending on what fts_build returns:
31085         - NULL+stop, aka failure: stop
31086         - NULL otherwise: move up in the dir hierarchy
31087         - non-NULL: handle this new entry
31088         (fts_build): Declare and use new local, continue_readdir.
31089         Prepare to be called from fts_read, when the entries
31090         from a partially-read directory have just been exhausted.
31091         In that case, we'll skip the opendir and instead use the parent's
31092         fts_dirp and derive dir_fd from that.
31093         Finally, in the readdir loop, if we read max_entries entries,
31094         exit the loop ensuring *not* to call closedir.  This is required
31095         so that fts_dirp can be reused on a subsequent call.
31096         Prompted by Ben England's report of memory exhaustion in find
31097         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
31099         maint: fts: move decl of `dp' down into while loop; split a long line
31100         * lib/fts.c (fts_build): No semantic change.
31102         fts: add/use new struct member, fts_dirp
31103         We are about to use this to manage any directory with
31104         too many entries to read all of them into memory at once.
31105         To do that, we'll need to save the DIR* pointer in each
31106         affected FTSENT struct.
31107         * lib/fts_.h: Include <dirent.h>.
31108         (struct FTSENT) [fts_dirp]: New member.
31109         * lib/fts.c (closedir_and_clear): Define.
31110         Use it in place of closedir so that we are sure to
31111         clear the new fts_dirp member when done with it.
31112         (fts_alloc): Initialize the new member.
31113         (fts_lfree): Free, if needed.
31115         maint: fts: give __opendir2 a new parameter and rename
31116         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
31117         than surreptitiously using sole caller's "dir_fd".
31118         (fts_opendir): Rename from __opendir2.
31120         maint: fts.c: remove __opendir2's now-unused parameter, oflag
31121         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
31123         maint: fts.c: correct off-by-one indentation
31124         * lib/fts.c (fts_build): Correct indentation, change style
31125         of a couple of block comments, and bracing style.
31127         maint: fts.c: move __opendir2 #define "up" out of function body
31128         * lib/fts.c (__opendir2): Move "up".  No semantic change.
31130         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
31131         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
31132         out for a long time and besides was useful only on BSD systems.
31134 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
31136         regex: port to Stratus OpenVOS
31137         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
31138         define to empty, rather than attempting nonportable optimizations.
31139         Problem reported by Paul Green in:
31140         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
31141         and fix suggested by Eric Blake in:
31142         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
31144 2011-08-17  Eric Blake  <eblake@redhat.com>
31146         getcwd: fix test failures on mingw
31147         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
31148         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
31149         test if long directory cannot be created, and allow mingw errno.
31151         getcwd-lgpl: fix m4 to match relaxed test for BSD
31152         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
31153         (gl_FUNC_GETCWD_SIGNATURE): New macro.
31154         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
31155         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
31156         signature problem.
31158         getcwd: fix compilation on mingw64
31159         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
31160         getcwd.
31161         Reported by Marc-André Lureau.
31163         pipe2: silence compiler warning
31164         * lib/pipe2.c (pipe2): Hide label if it is not used.
31166 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
31168         relocatable-prog: fix link error
31169         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
31170         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
31171         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
31172         into modules/relocatable-lib without noticing that
31173         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
31174         also needs to build relocatable.c.
31176 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31178         getaddrinfo: fix sh typo in gai_strerrorA decl checking
31179         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
31180         shell code: it contained a 'break' that was not in a loop.
31181         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
31182         via a shell-language loop; this may have been true in old Autoconf
31183         versions, but it's not true in Autoconf 2.68.  I found this bug
31184         when testing coreutils git on Solaris 8, whose shell complains
31185         about the syntax error.
31187 2011-08-12  Simon Josefsson  <simon@josefsson.org>
31189         * lib/base64.c: Fix comment to reference RFC 4648.
31190         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
31191         <gvtulder@gmail.com>.
31193 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31195         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
31197         po/Makefile.in.in: fix make -q problem
31198         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
31199         rule, since there's no file named 'check-macro-version' and its
31200         use as a file breaks make -q.
31201         (all): Don't depend on check-macro-version.
31202         (CHECK_MACRO_VERSION): New macro.
31203         (stamp-po): Use it.
31205         configmake: fix make -q problem
31206         * modules/configmake (configmake.h): Update configmake.h's time stamp
31207         even if the file does not change.  Otherwise, 'make -q' fails.
31208         Problem reported by Simon Josefsson in
31209         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
31211 2011-08-11  Jim Meyering  <meyering@redhat.com>
31213         git-version-gen: correct the advice in a comment
31214         * build-aux/git-version-gen: Correct comment.
31215         Don't recommend to list .tarball-version in .gitignore.
31217 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31219         base64: fix off-by-one buffer size bug
31220         Problem and (trivial) fix reported by Gijs van Tulder in
31221         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
31222         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
31223         * tests/test-base64.c (main): Catch the bug.
31225 2011-08-10  Eric Blake  <eblake@redhat.com>
31227         closein: correct comments
31228         * lib/closein.c (close_stdin): Improve comments.
31230 2011-08-09  Bruno Haible  <bruno@clisp.org>
31232         More tests for 'fseeko'.
31233         * tests/test-fseeko3.c: New file, from Eric Blake.
31234         * tests/test-fseeko3.sh: New file.
31235         * modules/fseeko-tests (Files): Add them.
31236         (TESTS): Add test-fseeko3.sh.
31237         (check_PROGRAMS): Add test-fseeko3.
31239 2011-08-09  Eric Blake  <eblake@redhat.com>
31241         fseeko: remove unneeded hack
31242         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
31244         fseeko: fix bug on glibc
31245         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
31246         Reported by John W. Eaton.
31248 2011-08-08  Bruno Haible  <bruno@clisp.org>
31250         unictype/base: Fix interoperability with preinstalled libunistring.
31251         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
31252         Reported by Simon Josefsson.
31254 2011-08-08  Bruno Haible  <bruno@clisp.org>
31256         iswblank: Detect declaration correctly.
31257         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
31258         AC_CHECK_DECLS invocation.
31260 2011-08-08  Bruno Haible  <bruno@clisp.org>
31262         tcgetsid: Detect declaration correctly.
31263         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
31264         AC_CHECK_DECLS invocation.
31265         Reported by Simon Josefsson.
31267 2011-08-08  Eric Blake  <eblake@redhat.com>
31269         largefile: fix typo that regressed large file support
31270         * modules/largefile (configure.ac-early): Fix section name.
31272 2011-08-06  Karl Berry  <karl@gnu.org>
31274         * MODULES.html.sh (func_all_files): _Noreturn is no longer
31275         a separate module.
31277 2011-08-05  Simon Josefsson  <simon@josefsson.org>
31279         openat: Fix warnings and commens when building unlinkat.c on Hurd.
31280         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
31281         get prototype for free.
31283 2011-08-04  Bruno Haible  <bruno@clisp.org>
31285         Tests for module 'pathmax'.
31286         * modules/pathmax-tests: New file.
31287         * tests/test-pathmax.c: New file.
31289         canonicalize-lgpl: Support larger filenames on the Hurd.
31290         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
31291         Reported by Paul Eggert.
31293         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
31294         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
31295         * lib/chdir-long.h: Include pathmax.h.
31296         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
31297         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
31298         (PATH_MAX): Remove code that is done by pathmax.h.
31299         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
31300         * lib/tmpfile.c: Add a comment.
31301         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
31302         * modules/chdir-long (Depends-on): Add pathmax.
31303         * modules/getcwd (Depends-on): Add pathmax.
31304         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
31305         is not defined.
31306         * doc/posix-headers/limits.texi: Mention the pathmax module.
31307         * NEWS: Mention the change.
31309 2011-08-02  Bruno Haible  <bruno@clisp.org>
31311         pthread_sigmask: Actually use results of gl_THREADLIB.
31312         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
31313         gl_THREADLIB, not gl_[]THREADLIB.
31314         Reported by Eric Blake.
31316 2011-08-02  Jim Meyering  <meyering@redhat.com>
31318         maint.mk: relax the default _gl_TS_function_match regexp
31319         * top/maint.mk (_gl_TS_function_match): Don't require at least one
31320         space between function name and "(" in an "extern" declaration.
31321         That would fail to match a decl with no space there: extern void foo();
31323 2011-07-31  Iain Nicol  <iain@thenicols.net>
31325         git-version-gen: document that EXTRA_DIST must include .version
31326         * build-aux/git-version-gen: In the how-to-use comment, document
31327         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
31328         will fail when run from an unpacked distribution tarball.
31330 2011-08-01  Bruno Haible  <bruno@clisp.org>
31332         wctype-h: Fix last change.
31333         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
31334         REPLACE_TOWLOWER to 0.
31335         Reported by Sam Steingold <sds@gnu.org>.
31337 2011-07-31  Bruno Haible  <bruno@clisp.org>
31339         frexpl: Update autoconf test.
31340         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
31341         according to changes of 2011-06-20.
31343 2011-07-31  Bruno Haible  <bruno@clisp.org>
31345         sys_utsname: Add support for Minix.
31346         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
31347         <sys/utsname.h>.
31348         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31349         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
31351 2011-07-31  Bruno Haible  <bruno@clisp.org>
31353         strings: Add support for Minix.
31354         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
31355         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
31356         * doc/posix-headers/strings.texi: Document the Minix problem.
31358 2011-07-31  Bruno Haible  <bruno@clisp.org>
31360         wctype-h: Add support for Minix.
31361         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
31362         REPLACE_TOWLOWER.
31363         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
31364         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
31365         REPLACE_ISWCNTRL.
31367 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
31369         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
31370         This is a performance improvement for 64-bit hosts: it causes the
31371         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
31373 2011-07-31  Bruno Haible  <bruno@clisp.org>
31375         stdioext: Add support for Minix.
31376         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
31377         * lib/fpurge.c (fpurge): Likewise.
31378         * lib/freadahead.c (freadahead): Likewise.
31379         * lib/freadable.c (freadable): Likewise.
31380         * lib/freading.c (freading): Likewise.
31381         * lib/freadptr.c (freadptr): Likewise.
31382         * lib/freadseek.c (freadptrinc): Likewise.
31383         * lib/fseeko.c (rpl_fseeko): Likewise.
31384         * lib/fseterr.c (fseterr): Likewise.
31385         * lib/fwritable.c (fwritable): Likewise.
31386         * lib/fwriting.c (fwriting): Likewise.
31387         * lib/fflush.c (clear_ungetc_buffer): Update comment.
31388         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
31390 2011-07-31  Bruno Haible  <bruno@clisp.org>
31392         errno: Port to Minix.
31393         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
31394         ECONNABORTED are defined.
31395         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
31396         GNULIB_defined_ECONNABORTED): New macros.
31397         * lib/strerror-override.h (strerror_override): Test also
31398         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
31399         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
31400         ECONNABORTED.
31401         * doc/posix-headers/errno.texi: Mention the Minix problem.
31403 2011-07-31  Bruno Haible  <bruno@clisp.org>
31405         Work around declaration collisions on Minix.
31406         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
31407         defined, set REPLACE_MBSINIT.
31408         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
31409         defined, set REPLACE_MBRTOWC.
31410         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
31411         set REPLACE_MBRLEN.
31412         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
31413         defined, set REPLACE_MBSRTOWCS.
31414         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
31415         defined, set REPLACE_WCRTOMB.
31416         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
31417         defined, set REPLACE_WCSRTOMBS.
31419 2011-07-31  Bruno Haible  <bruno@clisp.org>
31421         Add support for Minix with ACK compiler.
31422         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
31423         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
31424         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
31426 2011-07-31  Bruno Haible  <bruno@clisp.org>
31428         Documentation about Minix.
31429         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
31430         * doc/glibc-headers/*.texi: Likewise.
31431         * doc/posix-functions/*.texi: Likewise.
31432         * doc/glibc-functions/*.texi: Likewise.
31434 2011-07-31  Bruno Haible  <bruno@clisp.org>
31436         snippet/warn-on-use: Fix indentation.
31437         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
31439 2011-07-25  Jim Meyering  <meyering@redhat.com>
31441         tests: test-update-copyright.sh: remove unnecessary "rm" commands
31442         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
31443         commands.
31445 2011-07-27  Jim Meyering  <meyering@redhat.com>
31447         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
31448         * top/maint.mk (gl_extract_significant_defines_): Now that
31449         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
31450         gnulib/lib/signal.in.h, and now that we recommend to
31451         define-if-undefined those two symbols in application code,
31452         we must filter them out of the "significant" list.
31453         This avoids a "make syntax-check" failure in coreutils.
31455 2011-07-26  Eric Blake  <eblake@redhat.com>
31457         warnings: add comments about previous patch
31458         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
31459         * m4/include_next.m4: Likewise.
31460         * m4/warn-on-use.m4: Likewise.
31461         * m4/warnings.m4: Likewise, and simplify use.
31462         Suggested by Stefano Lattarini.
31464         include-next, warnings: support older autoconf
31465         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
31466         AS_VAR_PUSHDEF in a way that works with older autoconf.
31467         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
31468         Reported by Daniel P. Berrange.
31470 2011-07-25  Bruno Haible  <bruno@clisp.org>
31472         fseek, ftell: Fix doc.
31473         * doc/posix-functions/fseek.texi: Reword statement about
31474         AC_SYS_LARGEFILE.
31475         * doc/posix-functions/ftell.texi: Likewise.
31477 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
31478             Bruno Haible  <bruno@clisp.org>
31480         Add dependencies to the 'largefile' module.
31481         * modules/fopen (Depends-on): Add 'largefile'.
31482         * modules/freopen (Depends-on): Likewise.
31483         * modules/fseeko (Depends-on): Likewise.
31484         * modules/ftello (Depends-on): Likewise.
31485         * modules/glob (Depends-on): Likewise.
31486         * modules/lseek (Depends-on): Likewise.
31487         * modules/lstat (Depends-on): Likewise.
31488         * modules/mkostemp (Depends-on): Likewise.
31489         * modules/mkostemps (Depends-on): Likewise.
31490         * modules/mkstemp (Depends-on): Likewise.
31491         * modules/mkstemps (Depends-on): Likewise.
31492         * modules/open (Depends-on): Likewise.
31493         * modules/openat (Depends-on): Likewise.
31494         * modules/pread (Depends-on): Likewise.
31495         * modules/pwrite (Depends-on): Likewise.
31496         * modules/scandir (Depends-on): Likewise.
31497         * modules/stat (Depends-on): Likewise.
31498         * modules/tmpfile (Depends-on): Likewise.
31499         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
31500         since the containing module now depends on the largefile module.
31501         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
31502         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
31503         off_t is fixed by gnulib.
31504         * doc/posix-functions/freopen.texi: Likewise.
31505         * doc/posix-functions/fseeko.texi: Likewise.
31506         * doc/posix-functions/fstatat.texi: Likewise.
31507         * doc/posix-functions/ftello.texi: Likewise.
31508         * doc/posix-functions/glob.texi: Likewise.
31509         * doc/posix-functions/lseek.texi: Likewise.
31510         * doc/posix-functions/lstat.texi: Likewise.
31511         * doc/posix-functions/mkstemp.texi: Likewise.
31512         * doc/posix-functions/open.texi: Likewise.
31513         * doc/posix-functions/openat.texi: Likewise.
31514         * doc/posix-functions/pread.texi: Likewise.
31515         * doc/posix-functions/pwrite.texi: Likewise.
31516         * doc/posix-functions/scandir.texi: Likewise.
31517         * doc/posix-functions/stat.texi: Likewise.
31518         * doc/posix-functions/tmpfile.texi: Likewise.
31519         * doc/glibc-functions/mkostemp.texi: Likewise.
31520         * doc/glibc-functions/mkostemps.texi: Likewise.
31521         * doc/glibc-functions/mkstemps.texi: Likewise.
31523 2011-07-25  Bruno Haible  <bruno@clisp.org>
31525         fcntl: Move AC_LIBOBJ invocation to module description.
31526         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
31527         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
31529         fcntl: Remove call-in from fchdir.m4.
31530         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
31531         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
31533         dup3: Remove potential call-in from fchdir.m4.
31534         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
31535         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
31537         dup2: Move AC_LIBOBJ invocation to module description.
31538         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
31539         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
31540         Don't invoke AC_LIBOBJ.
31541         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
31543         dup2: Remove call-in from fchdir.m4.
31544         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
31545         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
31547         fclose: Move AC_LIBOBJ invocation to module description.
31548         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
31549         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
31550         to 1.
31551         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
31553         fclose: Remove call-in from close.m4.
31554         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
31555         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
31557         close: Move AC_LIBOBJ invocation to module description.
31558         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
31559         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
31560         1.
31561         * modules/close (configure.ac): Invoke AC_LIBOBJ.
31563         close: Remove call-in from fchdir.m4.
31564         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
31565         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
31567         open: Move AC_LIBOBJ invocation to module description.
31568         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
31569         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
31570         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
31572         open: Remove call-in from fchdir.m4.
31573         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
31574         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
31576         fchdir: Start to remove gl_REPLACE_* idiom.
31577         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
31578         (gl_FUNC_FCHDIR): Invoke it.
31580 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
31582         * lib/ftell.c (ftell): Comment out cast.
31584         close: use gl_REPLACE_FCLOSE only if defined
31585         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
31586         is defined.  The close module doesn't depend on the fclose module
31587         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
31588         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
31589         I reproduced the problem with "./gnulib-tool --test close sys_socket".
31591 2011-07-24  Jim Meyering  <meyering@redhat.com>
31593         test-select.h: avoid warning when using gcc's -Wmissing-declarations
31594         * tests/test-select.h (test_function): Declare as "static".
31596 2011-07-24  Bruno Haible  <bruno@clisp.org>
31598         doc: Mention the effects of AC_SYS_LARGEFILE.
31599         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
31600         on this function.
31601         * doc/posix-functions/aio_error.texi: Likewise.
31602         * doc/posix-functions/aio_fsync.texi: Likewise.
31603         * doc/posix-functions/aio_read.texi: Likewise.
31604         * doc/posix-functions/aio_return.texi: Likewise.
31605         * doc/posix-functions/aio_suspend.texi: Likewise.
31606         * doc/posix-functions/aio_write.texi: Likewise.
31607         * doc/posix-functions/fgetpos.texi: Likewise.
31608         * doc/posix-functions/fopen.texi: Likewise.
31609         * doc/posix-functions/freopen.texi: Likewise.
31610         * doc/posix-functions/fsetpos.texi: Likewise.
31611         * doc/posix-functions/fstatvfs.texi: Likewise.
31612         * doc/posix-functions/ftruncate.texi: Likewise.
31613         * doc/posix-functions/ftw.texi: Likewise.
31614         * doc/posix-functions/getrlimit.texi: Likewise.
31615         * doc/posix-functions/glob.texi: Likewise.
31616         * doc/posix-functions/lio_listio.texi: Likewise.
31617         * doc/posix-functions/lockf.texi: Likewise.
31618         * doc/posix-functions/mkstemp.texi: Likewise.
31619         * doc/posix-functions/mmap.texi: Likewise.
31620         * doc/posix-functions/nftw.texi: Likewise.
31621         * doc/posix-functions/openat.texi: Likewise.
31622         * doc/posix-functions/opendir.texi: Likewise.
31623         * doc/posix-functions/posix_fadvise.texi: Likewise.
31624         * doc/posix-functions/posix_fallocate.texi: Likewise.
31625         * doc/posix-functions/pread.texi: Likewise.
31626         * doc/posix-functions/pwrite.texi: Likewise.
31627         * doc/posix-functions/readdir.texi: Likewise.
31628         * doc/posix-functions/readdir_r.texi: Likewise.
31629         * doc/posix-functions/rewinddir.texi: Likewise.
31630         * doc/posix-functions/scandir.texi: Likewise.
31631         * doc/posix-functions/seekdir.texi: Likewise.
31632         * doc/posix-functions/setrlimit.texi: Likewise.
31633         * doc/posix-functions/statvfs.texi: Likewise.
31634         * doc/posix-functions/telldir.texi: Likewise.
31635         * doc/posix-functions/tmpfile.texi: Likewise.
31636         * doc/posix-functions/truncate.texi: Likewise.
31637         * doc/glibc-functions/fallocate.texi: Likewise.
31638         * doc/glibc-functions/fstatfs.texi: Likewise.
31639         * doc/glibc-functions/fts_children.texi: Likewise.
31640         * doc/glibc-functions/fts_read.texi: Likewise.
31641         * doc/glibc-functions/getdirentries.texi: Likewise.
31642         * doc/glibc-functions/mkostemp.texi: Likewise.
31643         * doc/glibc-functions/mkostemps.texi: Likewise.
31644         * doc/glibc-functions/mkstemps.texi: Likewise.
31645         * doc/glibc-functions/preadv.texi: Likewise.
31646         * doc/glibc-functions/pwritev.texi: Likewise.
31647         * doc/glibc-functions/sendfile.texi: Likewise.
31648         * doc/glibc-functions/statfs.texi: Likewise.
31650 2011-07-24  Bruno Haible  <bruno@clisp.org>
31652         doc: Fix typo.
31653         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
31655 2011-07-24  Bruno Haible  <bruno@clisp.org>
31657         doc: Mention fsusage.
31658         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
31660 2011-07-24  Bruno Haible  <bruno@clisp.org>
31662         doc: Mention new glibc headers and functions.
31663         * doc/glibc-headers/gshadow.texi: New file.
31664         * doc/glibc-functions/endsgent.texi: New file.
31665         * doc/glibc-functions/fgetsgent.texi: New file.
31666         * doc/glibc-functions/fgetsgent_r.texi: New file.
31667         * doc/glibc-functions/getsgent.texi: New file.
31668         * doc/glibc-functions/getsgent_r.texi: New file.
31669         * doc/glibc-functions/getsgnam.texi: New file.
31670         * doc/glibc-functions/getsgnam_r.texi: New file.
31671         * doc/glibc-functions/putsgent.texi: New file.
31672         * doc/glibc-functions/setsgent.texi: New file.
31673         * doc/glibc-functions/sgetsgent.texi: New file.
31674         * doc/glibc-functions/sgetsgent_r.texi: New file.
31675         * doc/glibc-functions/malloc_info.texi: New file.
31676         * doc/glibc-functions/preadv.texi: New file.
31677         * doc/glibc-functions/pwritev.texi: New file.
31678         * doc/glibc-functions/register_printf_modifier.texi: New file.
31679         * doc/glibc-functions/register_printf_specifier.texi: New file.
31680         * doc/glibc-functions/register_printf_type.texi: New file.
31681         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
31682         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
31683         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
31684         * doc/glibc-functions/pthread_getname_np.texi: New file.
31685         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
31686         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
31687         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
31688         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
31689         * doc/glibc-functions/pthread_setname_np.texi: New file.
31690         * doc/glibc-functions/pthread_sigqueue.texi: New file.
31691         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
31692         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
31693         * doc/glibc-functions/qsort_r.texi: New file.
31694         * doc/glibc-functions/quick_exit.texi: New file.
31695         * doc/glibc-functions/syncfs.texi: New file.
31696         * doc/gnulib.texi: Include them.
31697         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
31698         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
31699         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
31700         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
31701         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
31702         * doc/glibc-functions/execvpe.texi: Likewise.
31704 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
31706         ftell: don't include <unistd.h>
31707         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
31708         guaranteed to define off_t, and the ftell module depends on the
31709         stdio module.
31711         ftell: do not assume wraparound signed arithmetic
31712         * lib/ftell.c: Include <limits.h>.
31713         (ftell): Don't assume wraparound signed arithmetic.
31715 2011-07-24  Bruno Haible  <bruno@clisp.org>
31717         close: No longer depend on module 'fclose'.
31718         * modules/close (Depends-on): Remove fclose.
31719         * NEWS: Mention the change.
31720         Suggested by Sam Steingold <sds@gnu.org>.
31722 2011-07-24  Bruno Haible  <bruno@clisp.org>
31724         fsusage: Enable large volume support on AIX >= 5.2.
31725         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
31726         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
31727         instead of STAT_STATVFS.
31728         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
31730         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
31731         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
31732         f_blocks field only on MacOS X.
31734         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
31735         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
31736         * modules/fsusage (Depends-on): Add largefile.
31738 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
31740         * README: Modernize discussion of signed integers.
31741         Assuming overflow wraparound is no longer safe.
31742         Mention ones' complement and signed magnitude.
31744 2011-07-22  Bruno Haible  <bruno@clisp.org>
31746         select tests, pselect tests: Refactor.
31747         * tests/test-select.h: New file, extracted from tests/test-select.c.
31748         (select_fn): New type.
31749         (test, do_select, do_select_nowait, do_select_wait, test_tty,
31750         test_connect_first, test_accept_first, test_pair, test_socket_pair,
31751         test_pipe): Add my_select argument.
31752         (test_function): Renamed from main. Add my_select argument.
31753         * tests/test-select.c: Move most code to tests/test-select.h. Include
31754         test-select.h.
31755         * modules/select-tests (Files): Add tests/test-select.h.
31756         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
31757         (my_select, main): New functions.
31758         * modules/pselect-tests (Files): Add tests/test-select.h,
31759         tests/macros.h, tests/signature.h.
31760         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
31761         (configure.ac): Check for <sys/wait.h>.
31763 2011-07-22  Bruno Haible  <bruno@clisp.org>
31765         sys_select tests: Check the signature of FD_*.
31766         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
31767         signature tests from here...
31768         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
31769         here.
31770         * modules/sys_select-tests (Files): Add tests/signature.h.
31772 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31774         largefile: new module, replacing large-inode
31775         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
31776         * MODULES.html.sh: Add largefile, remove large-inode.
31777         * modules/largefile, m4/largefile.m4: New files.
31778         * modules/large-inode, m4/large-inode.m4: Remove.
31780         fsusage: port to MacOS X 10.7 with 4 TiB file systems
31781         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
31782         implementations that use only 32 bits to count blocks.
31783         On typical hosts with 1024-byte blocks, this fails with file
31784         systems as small as 4 TiB.  Problem reported by Herb Wartens
31785         <http://debbugs.gnu.org/9140> and this should also fix a similar
31786         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
31788         large-inode: New module
31789         * MODULES.html.sh: Add it.
31790         * modules/large-inode, m4/large-inode.m4: New files.
31792         extensions: Enable extensions on MacOS X 10.5 and later.
31793         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
31795 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
31797         file-has-acl: use acl_extended_file_nofollow if available
31798         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
31799         (acl_extended_file): New macro.
31800         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
31801         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
31803 2011-07-21  Bruno Haible  <bruno@clisp.org>
31805         Declare system functions in a way that works with C++.
31806         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
31807         declare fdopendir as extern "C".
31808         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
31809         declare frexpl as extern "C".
31810         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
31811         declare gai_strerror as extern "C".
31812         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
31813         programs, declare gai_strerror as extern "C".
31814         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
31815         declare getlogin_r as extern "C".
31816         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
31817         as extern "C".
31818         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
31819         declare ldexpl as extern "C".
31820         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
31821         as extern "C".
31822         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
31823         program, declare getmntinfo as extern "C".
31824         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
31825         stpncpy as extern "C".
31826         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
31827         program, declare __xpg_strerror_r as extern "C".
31828         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
31829         strndup as extern "C".
31830         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
31831         declare memset and bzero as extern "C".
31832         Reported by Sam Steingold <sds@gnu.org>.
31834 2011-07-12  Jim Meyering  <meyering@redhat.com>
31836         maint.mk: prohibit inclusion of "verify.h" without use
31837         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
31839 2011-07-19  Pádraig Brady  <P@draigBrady.com>
31841         timer-time: A new module to check for timer_settime()
31842         * m4/timer_time.m4: Check for the posix function.
31843         * modules/timer-time: Add the new module.
31844         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
31845         Mention it.
31847 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
31848             Bruno Haible  <bruno@clisp.org>
31850         pthread_sigmask: assume POSIX threads if --avoid=threadlib
31851         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
31852         not defined, assume POSIX threads and look for pthread_sigmask in
31853         $LIBS, without changing $CPPFLAGS.
31855 2011-07-19  Bruno Haible  <bruno@clisp.org>
31857         strstr: Update cross-compilation guess.
31858         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
31859         CPUs, guess no, in view of glibc
31860         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
31861         Suggested by Eric Blake. Reported by Reuben Thomas.
31863 2011-07-19  Pádraig Brady  <P@draigBrady.com>
31865         getopt-gnu: suppress core dumps from detection code
31866         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
31867         to suppress core dumps that may well occur on glibc systems.
31868         * modules/getopt-gnu: Depend on nocrash.
31870 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31872         pthread_sigmask: ensure usleep is declared
31873         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
31874         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
31876 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31878         doc: Document NonStop portability issues.
31879         * doc/posix-functions/sigaction.texi (sigaction):
31880         * doc/posix-headers/signal.texi (signal.h):
31881         Document NonStop.  See Joachim Schmitz in
31882         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
31884 2011-07-15  Bruno Haible  <bruno@clisp.org>
31886         ffsl, ffsll: Avoid unportable behaviour.
31887         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
31889 2011-07-15  Bruno Haible  <bruno@clisp.org>
31891         ffs: More tests.
31892         * tests/test-ffs.c (NBITS): New macro.
31893         (main): Add more tests.
31894         * tests/test-ffsl.c (NBITS): New macro.
31895         (main): Add more tests.
31896         * tests/test-ffsll.c (NBITS): New macro.
31897         (main): Add more tests.
31899 2011-07-15  Eric Blake  <eblake@redhat.com>
31901         ffsl, ffsll: new modules
31902         * modules/ffsl: New file.
31903         * modules/ffsll: Likewise.
31904         * m4/ffsl.m4: Likewise.
31905         * m4/ffsll.m4: Likewise.
31906         * lib/ffsl.c: Likewise.
31907         * lib/ffsl.h: Likewise.
31908         * lib/ffsll.c: Likewise.
31909         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
31910         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
31911         * modules/string (Makefile.am): Substitute witnesses.
31912         * lib/strings.in.h (ffsl, ffsll): Declare.
31913         * modules/ffsl-tests: New test file.
31914         * modules/ffsll-tests: Likewise.
31915         * tests/test-ffsl.c: Likewise.
31916         * tests/test-ffsll.c: Likewise.
31917         * MODULES.html.sh (Integer arithmetic functions): Mention it.
31918         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
31919         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
31921         ffs: fix m4 prerequisite
31922         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
31924         ffs: avoid undefined behavior
31925         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
31926         * tests/test-ffs.c (naive, main): Avoid signed shifts.
31927         Reported by Bruno Haible.
31929 2011-07-12  Bruno Haible  <bruno@clisp.org>
31931         pthread_sigmask: Rely on module 'threadlib'.
31932         * modules/pthread_sigmask (Depends-on): Add threadlib.
31933         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
31934         is defined.
31936 2011-07-12  Bruno Haible  <bruno@clisp.org>
31938         regex: Depend on module 'strcase'.
31939         * modules/regex (Depends-on): Add strcase, for strcasecmp().
31941 2011-07-12  Jim Meyering  <meyering@redhat.com>
31943         warn-on-use: fix typo in file name
31944         * modules/snippet/warn-on-use (Files): Correct file name:
31945         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
31947 2011-07-12  Bruno Haible  <bruno@clisp.org>
31949         strings: Document module.
31950         * doc/posix-headers/strings.texi: Mention module 'strings'.
31952 2011-07-12  Bruno Haible  <bruno@clisp.org>
31954         Rename module '_Noreturn' to 'snippet/_Noreturn'.
31955         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
31956         (Files, Makefile.am): Update.
31957         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
31958         * modules/stdlib (Depends-on): Update.
31960 2011-07-12  Bruno Haible  <bruno@clisp.org>
31962         * NEWS: Mention the changes.
31964         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
31965         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
31966         (Files, Makefile.am): Update.
31967         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
31968         * modules/arpa_inet (Depends-on): Update.
31969         * modules/ctype (Depends-on): Update.
31970         * modules/dirent (Depends-on): Update.
31971         * modules/fcntl-h (Depends-on): Update.
31972         * modules/glob (Depends-on): Update.
31973         * modules/iconv-h (Depends-on): Update.
31974         * modules/inttypes-incomplete (Depends-on): Update.
31975         * modules/langinfo (Depends-on): Update.
31976         * modules/locale (Depends-on): Update.
31977         * modules/math (Depends-on): Update.
31978         * modules/netdb (Depends-on): Update.
31979         * modules/poll-h (Depends-on): Update.
31980         * modules/pty (Depends-on): Update.
31981         * modules/search (Depends-on): Update.
31982         * modules/signal (Depends-on): Update.
31983         * modules/spawn (Depends-on): Update.
31984         * modules/stdio (Depends-on): Update.
31985         * modules/stdlib (Depends-on): Update.
31986         * modules/string (Depends-on): Update.
31987         * modules/strings (Depends-on): Update.
31988         * modules/sys_file (Depends-on): Update.
31989         * modules/sys_ioctl (Depends-on): Update.
31990         * modules/sys_select (Depends-on): Update.
31991         * modules/sys_socket (Depends-on): Update.
31992         * modules/sys_stat (Depends-on): Update.
31993         * modules/sys_time (Depends-on): Update.
31994         * modules/sys_times (Depends-on): Update.
31995         * modules/sys_utsname (Depends-on): Update.
31996         * modules/sys_wait (Depends-on): Update.
31997         * modules/termios (Depends-on): Update.
31998         * modules/time (Depends-on): Update.
31999         * modules/unistd (Depends-on): Update.
32000         * modules/wchar (Depends-on): Update.
32001         * modules/wctype-h (Depends-on): Update.
32002         * MODULES.html.sh (Support for building libraries and executables):
32003         Update.
32005         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
32006         * modules/snippet/unused-parameter: Renamed from
32007         modules/unused-parameter.
32008         (Files, Makefile.am): Update.
32009         * build-aux/snippet/unused-parameter.h: Renamed from
32010         build-aux/unused-parameter.h.
32011         * modules/selinux-h (Depends-on): Update.
32012         * modules/unistr/base (Depends-on): Update.
32013         * MODULES.html.sh (Core language properties): Update.
32015         Rename module 'link-warning' to 'snippet/link-warning'.
32016         * modules/snippet/link-warning: Renamed from modules/link-warning.
32017         (Files, Makefile.am): Update.
32018         * build-aux/snippet/link-warning.h: Renamed from
32019         build-aux/link-warning.h.
32020         * MODULES.html.sh (Support for building libraries and executables):
32021         Update.
32023         Rename module 'c++defs' to 'snippet/c++defs'.
32024         * modules/snippet/c++defs: Renamed from modules/c++defs.
32025         (Files, Makefile.am): Update.
32026         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
32027         * modules/arpa_inet (Depends-on): Update.
32028         * modules/ctype (Depends-on): Update.
32029         * modules/dirent (Depends-on): Update.
32030         * modules/fcntl-h (Depends-on): Update.
32031         * modules/glob (Depends-on): Update.
32032         * modules/iconv-h (Depends-on): Update.
32033         * modules/langinfo (Depends-on): Update.
32034         * modules/locale (Depends-on): Update.
32035         * modules/math (Depends-on): Update.
32036         * modules/netdb (Depends-on): Update.
32037         * modules/poll-h (Depends-on): Update.
32038         * modules/pty (Depends-on): Update.
32039         * modules/search (Depends-on): Update.
32040         * modules/signal (Depends-on): Update.
32041         * modules/spawn (Depends-on): Update.
32042         * modules/stdio (Depends-on): Update.
32043         * modules/stdlib (Depends-on): Update.
32044         * modules/string (Depends-on): Update.
32045         * modules/strings (Depends-on): Update.
32046         * modules/sys_ioctl (Depends-on): Update.
32047         * modules/sys_select (Depends-on): Update.
32048         * modules/sys_socket (Depends-on): Update.
32049         * modules/sys_stat (Depends-on): Update.
32050         * modules/sys_time (Depends-on): Update.
32051         * modules/sys_wait (Depends-on): Update.
32052         * modules/termios (Depends-on): Update.
32053         * modules/time (Depends-on): Update.
32054         * modules/unistd (Depends-on): Update.
32055         * modules/wchar (Depends-on): Update.
32056         * modules/wctype-h (Depends-on): Update.
32058         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
32059         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
32060         (Files, Makefile.am): Update.
32061         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
32062         * modules/argv-iter (Depends-on): Update.
32063         * modules/arpa_inet (Depends-on): Update.
32064         * modules/dirent (Depends-on): Update.
32065         * modules/fcntl-h (Depends-on): Update.
32066         * modules/fnmatch (Depends-on): Update.
32067         * modules/getopt-posix (Depends-on): Update.
32068         * modules/glob (Depends-on): Update.
32069         * modules/iconv-h (Depends-on): Update.
32070         * modules/inttypes-incomplete (Depends-on): Update.
32071         * modules/locale (Depends-on): Update.
32072         * modules/math (Depends-on): Update.
32073         * modules/netdb (Depends-on): Update.
32074         * modules/search (Depends-on): Update.
32075         * modules/signal (Depends-on): Update.
32076         * modules/spawn (Depends-on): Update.
32077         * modules/stdio (Depends-on): Update.
32078         * modules/stdlib (Depends-on): Update.
32079         * modules/string (Depends-on): Update.
32080         * modules/strings (Depends-on): Update.
32081         * modules/sys_socket (Depends-on): Update.
32082         * modules/sys_stat (Depends-on): Update.
32083         * modules/sys_time (Depends-on): Update.
32084         * modules/sys_times (Depends-on): Update.
32085         * modules/sys_utsname (Depends-on): Update.
32086         * modules/time (Depends-on): Update.
32087         * modules/unistd (Depends-on): Update.
32088         * modules/wchar (Depends-on): Update.
32089         * MODULES.html.sh (Support for building libraries and executables):
32090         Update.
32092 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
32094         Improvements on _Noreturn and related modules.
32096         modules/_Exit-tests: test _Noreturn too
32097         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
32098         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
32099         (main): Use them.
32101         stdnoreturn, stdnoreturn-tests: remove modules
32102         They're not needed here and a bit premature for use elsewhere.  See
32103         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
32104         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
32105         * tests/test-stdnoreturn.c: Remove files.
32106         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
32107         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
32108         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
32109         and using noreturn.
32110         * modules/openat, modules/sigpipe-die, modules/xalloc:
32111         * modules/xmemdup0, modules/xstrtol:
32112         Remove dependency on stdnoreturn.
32114         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
32115         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
32116         Reparenthesize to avoid GCC warning.
32117         Support Microsoft's syntax.
32118         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
32120         _Noreturn-tests: remove module
32121         * modules/_Noreturn-tests: Remove.
32122         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
32123         * tests/test-_Noreturn.c: Remove.
32124         * tests/test-stdnoreturn.c: Merge from the old
32125         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
32127 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
32129         _Noreturn, stdnoreturn, and related modules.
32131         * top/maint.mk: Adjust to new noreturn support.
32132         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
32133         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
32135         xalloc: use stdnoreturn.h
32136         * lib/xalloc.h: Include <stdnoreturn.h>.
32137         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32138         * modules/xalloc (Depends-on): Add stdnoreturn.
32140         xstrtol: use stdnoreturn.h
32141         * lib/xstrtol.h: Include <stdnoreturn.h>.
32142         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32143         * modules/xstrtol (Depends-on): Add stdnoreturn.
32145         xmemdup0: use stdnoreturn.h
32146         * lib/xmemdup0.h: Include <stdnoreturn.h>.
32147         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32148         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
32150         sigpipe-die: use stdnoreturn.h
32151         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
32152         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32153         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
32155         openat: use stdnoreturn.h
32156         * lib/openat.h: Include <stdnoreturn.h>.
32157         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32158         * modules/openat (Depends-on): Add stdnoreturn.
32160         * lib/openat-die.c (openat_save_fail): Modernize comment.
32162         * lib/xalloc-die.c (xalloc_die): Modernize comment.
32164         * lib/glthread/thread.h: Modernize comment.
32166         obstack: use _Noreturn
32167         * lib/obstack.c (__attribute__): Remove macro.
32168         (print_and_abort): Use _Noreturn.
32170         c-stack: use _Noreturn
32171         * lib/c-stack.c (die, overflow_handler, segv_handler):
32172         Use _Noreturn rather than __attribute__((noreturn)).
32174         argmatch-tests, exclude_tests: use _Noreturn
32175         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
32176         Remove.
32177         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
32179         stdlib: use _Noreturn
32180         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
32181         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
32182         * modules/stdlib (Depends-on): Add _Noreturn.
32183         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
32185         stdnoreturn-tests: new module
32186         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
32188         stdnoreturn: new module
32189         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
32190         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
32192         _Noreturn-tests: new module
32193         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
32195         _Noreturn: new module
32196         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
32197         New section, mentioning it.
32198         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
32200         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
32202 2011-07-11  Eric Blake  <eblake@redhat.com>
32204         ffs: new module
32205         * modules/ffs: New file.
32206         * m4/ffs.m4: Likewise.
32207         * lib/ffs.c: Likewise.
32208         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
32209         * modules/strings (Makefile.am): Substitute witness.
32210         (Depends-on): Add c++defs.
32211         * lib/strings.in.h (ffs): Declare.
32212         * modules/ffs-tests: New test file.
32213         * tests/test-ffs.c: Test new module.
32214         * MODULES.html.sh (Integer arithmetic functions): Mention it.
32215         * doc/posix-functions/ffs.texi (ffs): Likewise.
32217         regex: avoid compiler warning
32218         * lib/regex.c (includes): Include <strings.h>, for use of
32219         strcasecmp in regcomp.c.
32220         Reported by Joachim Schmitz.
32222 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32224         stdint: respect system's intmax_t if INTMAX_MAX
32225         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
32226         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
32227         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
32228         long but int64_t is long long, and where we will clash with the
32229         system intmax_t if we override it.  See
32230         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
32231         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
32232         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
32233         similarly for UINTMAX_C.
32235 2011-07-08  Bruno Haible  <bruno@clisp.org>
32237         pthread_sigmask tests: Avoid a compiler warning.
32238         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
32239         non-zero.
32241         sigprocmask tests: A better way to avoid a compiler warning.
32242         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
32243         (main): Complain if system() returns non-zero.
32244         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
32246 2011-07-08  Bruno Haible  <bruno@clisp.org>
32248         pthread_sigmask: Work around IRIX bug.
32249         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
32250         bug.
32251         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
32252         there may be unblocked pending signals.
32253         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
32255 2011-07-08  Bruno Haible  <bruno@clisp.org>
32257         pthread_sigmask: Work around Cygwin bug.
32258         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
32259         bug.
32260         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
32261         the system's pthread_sigmask function.
32262         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
32264 2011-07-08  Bruno Haible  <bruno@clisp.org>
32266         pthread_sigmask: Work around bug in single-threaded implementation.
32267         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
32268         FreeBSD, HP-UX, Solaris bug.
32269         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
32270         * lib/pthread_sigmask.c: Include <stddef.h>.
32271         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
32272         the system's pthread_sigmask function.
32273         * modules/pthread_sigmask (configure.ac): Invoke
32274         gl_PREREQ_PTHREAD_SIGMASK.
32275         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
32276         HP-UX, Solaris.
32278 2011-07-08  Eric Blake  <eblake@redhat.com>
32280         test-sigprocmask: avoid compiler warning
32281         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
32282         * tests/test-sigprocmask.c (main): Use it to silence warning.
32283         Reported by Jim Meyering.
32285         test-snprintf: avoid compiler warning
32286         * tests/test-snprintf.c (main): Avoid shadowed declaration.
32287         * tests/test-vsnprintf.c (main): Likewise.
32288         Reported by Jim Meyering.
32290 2011-07-08  Bruno Haible  <bruno@clisp.org>
32292         Tests for module 'pthread_sigmask'.
32293         * modules/pthread_sigmask-tests: New file.
32294         * tests/test-pthread_sigmask1.c: New file, based on
32295         tests/test-sigprocmask.c.
32296         * tests/test-pthread_sigmask2.c: New file.
32298 2011-07-08  Jim Meyering  <meyering@redhat.com>
32300         test-getopt.h: avoid warning about an unused variable
32301         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
32303 2011-07-07  Jim Meyering  <meyering@redhat.com>
32305         maint: reduce list of files exempt from sc_prohibit_leading_TABs
32306         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
32307         now that it no longer contains leading TABs.
32308         Remove unused "url=FIXME" statement.
32310 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32312         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
32313         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32314         When gl_THREADLIB is not in use, assume that the POSIX sematics
32315         are desired.  This is better for Emacs, which uses POSIX semantics
32316         on GNUish and/or POSIXish platforms, and does not use threads at
32317         all otherwise.
32319         pthread_sigmask: fix typo when testing for libraries
32320         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32321         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
32323 2011-07-08  Eric Blake  <eblake@redhat.com>
32325         fts: introduce FTS_NOATIME
32326         * lib/fts_.h (FTS_NOATIME): New bit flag.
32327         (FTS_OPTIONMASK): Adjust.
32328         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
32329         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
32331 2011-07-08  Bruno Haible  <bruno@clisp.org>
32333         Tests for module 'thread'.
32334         * modules/thread-tests: New file.
32335         * tests/test-thread_self.c: New file.
32336         * tests/test-thread_create.cc: New file.
32338 2011-07-08  Bruno Haible  <bruno@clisp.org>
32340         thread: Avoid gcc warnings when using gl_thread_self().
32341         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
32342         'void *'.
32343         (gl_thread_self_pointer): Update.
32345 2011-07-07  Bruno Haible  <bruno@clisp.org>
32347         signal-c++-tests: Check declaration of pthread_sigmask.
32348         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
32349         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
32350         $(LIB_PTHREAD_SIGMASK).
32352 2011-07-07  Bruno Haible  <bruno@clisp.org>
32354         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
32355         * lib/signal.in.h (pthread_sigmask): Override if
32356         REPLACE_PTHREAD_SIGMASK is 1.
32357         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32358         REPLACE_PTHREAD_SIGMASK.
32359         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
32360         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
32361         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
32362         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
32363         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
32365 2011-07-07  Bruno Haible  <bruno@clisp.org>
32367         pthread_sigmask: Ensure declaration in <signal.h>.
32368         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
32369         include <pthread.h>.
32370         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
32371         problem.
32373 2011-07-07  Bruno Haible  <bruno@clisp.org>
32375         pthread_sigmask: Document the module.
32376         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
32378 2011-07-07  Bruno Haible  <bruno@clisp.org>
32380         pthread_sigmask: Follow gnulib conventions.
32381         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
32382         gl_PTHREAD_SIGMASK.
32383         * modules/pthread_sigmask (configure.ac): Update.
32385 2011-07-07  Bruno Haible  <bruno@clisp.org>
32387         pthread_sigmask: Make declaration C++ safe.
32388         * lib/signal.in.h: In two special conditions, just do an #include_next.
32389         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
32390         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
32391         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32392         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
32393         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
32394         not REPLACE_PTHREAD_MASK.
32395         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
32396         not REPLACE_PTHREAD_MASK.
32397         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
32399 2011-07-07  Bruno Haible  <bruno@clisp.org>
32401         pthread_sigmask: Fix return value.
32402         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
32403         * lib/pthread_sigmask.c: New file.
32404         * modules/pthread_sigmask (Files): Add it.
32405         (configure.ac): Invoke AC_LIBOBJ.
32407 2011-07-07  Eric Blake  <eblake@redhat.com>
32409         getopt: more portable argv creation
32410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
32411         const, use char arrays rather than strings.
32412         Suggested by Paul Eggert.
32414 2011-07-07  Bruno Haible  <bruno@clisp.org>
32416         Tests for module 'sigprocmask'.
32417         * modules/sigprocmask-tests: New file.
32418         * tests/test-sigprocmask.c: New file.
32420 2011-07-07  Bruno Haible  <bruno@clisp.org>
32422         float tests: Tweak.
32423         * tests/test-float.c (main): Tweak skip message.
32425 2011-07-07  Eric Blake  <eblake@redhat.com>
32427         getopt: avoid compiler warning during configure
32428         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
32429         assigning string literals to non-const pointer.
32431         getopt-gnu: avoid crash in glibc getopt
32432         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
32433         * tests/test-getopt.h (test_getopt): Enhance test.
32434         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32435         * doc/posix-functions/getopt.texi (getopt): Document it.
32436         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32437         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32438         Likewise.
32440 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
32442         getopt: handle W; without long options in getopt [BZ #12922]
32443         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
32444         but no long options are defined, just return 'W'.
32446 2011-07-07  Bruno Haible  <bruno@clisp.org>
32448         Avoid literal tabs.
32449         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
32450         variable containing a tab instead of a literal tab.
32451         Reported by Jim Meyering.
32453 2011-07-07  Bruno Haible  <bruno@clisp.org>
32455         Comments.
32456         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
32458 2011-07-06  Bruno Haible  <bruno@clisp.org>
32460         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
32461         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
32462         <winsock2.h>.
32463         (rpl_fd_isset, FD_ISSET): New definitions, copied from
32464         lib/sys_socket.in.h.
32465         (close, gethostname): Hide declarations from <winsock2.h>.
32466         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32467         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
32468         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
32469         (select): Don't override if gnulib's <sys/select.h> was already
32470         included.
32471         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32472         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32473         setsockopt, shutdown, select): Tweak indentation.
32475 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32477         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
32478         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
32479         in an application that does not use the sys_select module.
32481 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
32483         poll: do not return 0 on timeout=-1
32484         * lib/poll.c: Loop with yield if no events occurred.
32486 2011-07-06  Eric Blake  <eblake@redhat.com>
32488         pthread_sigmask: always replace when not using pthread
32489         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
32490         replacement when using some threading other than pthread.  Fix
32491         logic bug.
32493 2011-07-06  Bruno Haible  <bruno@clisp.org>
32495         Comments.
32496         * m4/printf.m4: Update comments about mingw.
32498 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32500         sys_select: define sigset_t more portably
32501         * lib/sys_select.in.h: Always include <sys/types.h>, since
32502         we now need sigset_t and mingw defines it there.
32503         Include <signal.h> before split inclusion guard, to avoid
32504         mishaps on Solaris, whose <signal.h> eventually includes us.
32505         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
32506         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
32507         which come from ...
32508         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
32509         gl_CHECK_TYPE_SIGSET_T.
32510         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
32511         does the real work.
32512         * modules/sys_select (Depends-on): Add 'signal'.
32514         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
32515         Suggested by Bruno Haible.
32517         pselect: Use pthread_sigmask, not sigprocmask.
32518         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
32519         multithreaded apps better than sigprocmask does.
32520         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
32521         sigprocmask directly.
32523 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32525         * lib/pselect.c (pselect): Use plain name, without "rpl_".
32526         Don't #undef,  since we don't need any underlying pselect.
32527         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
32528         (Depends-on): Add select.
32529         (Link): Add $(LIBSOCKET).
32530         These changes suggested by Bruno Haible.
32532         pselect: document better
32533         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
32534         * doc/posix-functions/pselect.texi (pselect): Document new module.
32536         pthread_sigmask: new module
32537         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
32538         * doc/posix-functions/pthread_sigmask.texi: Document new module.
32539         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
32540         This is done only as a macro; I don't know how well that'll
32541         work for C++.  Move <sys/types.h> include before the include_next,
32542         to avoid mishap on Solaris.
32543         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
32544         * modules/signal (Makefile.am): Substitute the check's results.
32545         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
32547         test-pselect: new module
32548         * modules/pselect-tests, tests/test-pselect.c: New files.
32549         * tests/test-select.c, tests/test-sys_select-c++.cc:
32550         If TEST_PSELECT is defined, test pselect instead of testing select.
32552         * tests/test-sys_select.c (sigset_t): Test for it, too.
32553         Suggested by Bruno Haible.
32555 2011-07-05  Eric Blake  <eblake@redhat.com>
32557         snprintf: guarantee %1$d, for libintl
32558         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
32559         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
32560         * doc/posix-functions/snprintf.texi (snprintf): Update.
32561         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32562         * tests/test-snprintf.c (main): Enhance test.
32563         * tests/test-vsnprintf.c (main): Likewise.
32565 2011-07-05  Jim Meyering  <meyering@redhat.com>
32567         maint: exempt stdio-read.c and stdio-write.c from the cppi check
32568         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
32569         per Bruno's request, to accommodate this idiom (no space after "#")
32570         even when the function is inside an #if block:
32571         char *
32572         gets (char *s)
32573         #undef gets
32574         {
32575           ...
32576         }
32578 2011-07-04  Jim Meyering  <meyering@redhat.com>
32580         maint: indent with spaces, not TABs, and add a rule to check this
32581         * tests/test-userspec.c: Indent with spaces, not TABs.
32582         * tests/test-argp.c: Likewise.
32583         * tests/test-c-stack2.sh: Likewise.
32584         * tests/test-parse-duration.sh: Likewise
32585         * m4/strtod.m4: Likewise.
32586         * m4/alloca.m4: Likewise.
32587         * m4/pselect.m4: Likewise.
32588         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
32590 2011-07-03  Jim Meyering  <meyering@redhat.com>
32592         maint.mk: correct omissions in prohibit_argmatch_without_use check
32593         This rule would mistakenly report that argmatch.h is included without
32594         use even when both the argmatch and invalid_arg macro were used.
32595         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
32596         of argmatch and invalid_arg.
32598 2011-07-03  Bruno Haible  <bruno@clisp.org>
32600         Comments about EINTR.
32601         * lib/safe-read.h: Explain the purpose of this module.
32602         * lib/safe-write.h: Likewise.
32603         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
32604         module.
32605         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
32606         module.
32607         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32609 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
32611         xnanosleep: Rewrite to use new dtotimespec module.
32612         It has the conversion code that used to be in xnanosleep.
32613         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
32614         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
32615         (TIME_T_MAX): Remove.
32616         (xnanosleep): Rewrite in terms of dtotimespec.
32617         * modules/xnanosleep (Depends-on): Add dtotimespec.
32618         Remove intprops, stdbool.
32620         timespec-add, timespec-sub: new modules
32621         * lib/timespec.h (timespec_add, timespec_sub): New decls.
32622         * lib/timespec-add.c, lib/timespec-sub.c:
32623         * modules/timespec-add, modules/timespec-sub: New files.
32625         dtotimespec: new module
32626         * lib/timespec.h (dtotimespec): New decl.
32627         * lib/dtotimespec.c, modules/dtotimespec: New files.
32629         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
32631         pselect: new module
32632         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
32633         (pselect): New decls.
32634         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
32635         since the standard pselect decl uses 'restrict'.
32636         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
32637         HAVE_PSELECT, REPLACE_PSELECT.
32638         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
32639         HAVE_PSELECT, REPLACE_PSELECT.
32640         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
32642         sys_select: don't depend on sys_socket
32643         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
32644         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
32645         This fix works on GNU and GNU-like platforms, but has not been tested
32646         on native Windows.
32647         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
32648         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
32649         gl_HEADER_SYS_SOCKET.
32650         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
32651         gl_PREREQ_SYS_H_WINSOCK2.
32653 2011-06-29  Eric Blake  <eblake@redhat.com>
32655         pipe2: fix C89 compile problem
32656         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
32657         Reported by Bruno Haible.
32659         pipe, pipe2: don't corrupt fd on error
32660         * lib/pipe.c (pipe): Leave fd unchanged on error.
32661         * lib/pipe2.c (pipe2): Likewise.
32662         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
32663         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32665 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
32667         mmap-anon: do not use regular expressions inadvertently
32668         * m4/mmap-anon.m4: Remove trailing period from strings sought
32669         in the output.
32671 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
32673         nanosleep: fix integer overflow problem
32674         * lib/nanosleep.c (my_usleep): Don't assume signed integer
32675         arithmetic wraps around on overflow.
32677         nanosleep: simplify carrying
32678         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
32679         first call to the underyling nanosleep, not for the last one.
32680         This doesn't fix any bugs, but it simplifies the computation of
32681         the remaining delay.  Found while auditing integer overflow issues.
32683         dup2: remove test for existence of fcntl
32684         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
32685         "#if HAVE_FCNTL", in the configure-time test program.
32686         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
32687         and therefore speeds up "configure" a bit.  Found while
32688         adding the dup2 module to Emacs.
32690 2011-06-24  Eric Blake  <eblake@redhat.com>
32692         maint.mk: enhance useless header checks
32693         * top/maint.mk (_sc_header_without_use): Check both include
32694         styles.
32695         (sc_prohibit_assert_without_use)
32696         (sc_prohibit_close_stream_without_use)
32697         (sc_prohibit_getopt_without_use)
32698         (sc_prohibit_quotearg_without_use)
32699         (sc_prohibit_quote_without_use)
32700         (sc_prohibit_long_options_without_use)
32701         (sc_prohibit_inttostr_without_use)
32702         (sc_prohibit_ignore_value_without_use)
32703         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
32704         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
32705         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
32706         (sc_prohibit_hash_pjw_without_use)
32707         (sc_prohibit_safe_read_without_use)
32708         (sc_prohibit_argmatch_without_use)
32709         (sc_prohibit_canonicalize_without_use)
32710         (sc_prohibit_root_dev_ino_without_use)
32711         (sc_prohibit_openat_without_use)
32712         (sc_prohibit_c_ctype_without_use)
32713         (sc_prohibit_signal_without_use)
32714         (sc_prohibit_stdio--_without_use)
32715         (sc_prohibit_stdio-safer_without_use)
32716         (sc_prohibit_strings_without_use)
32717         (sc_prohibit_intprops_without_use)
32718         (sc_prohibit_stddef_without_use)
32719         (sc_prohibit_xfreopen_without_use): Update clients.
32721 2011-06-24  Jim Meyering  <meyering@redhat.com>
32723         syntax-check: keep one maint.mk rule in sync with its header
32724         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
32725         of the bug Eric has just fixed, with today's commit 25e4c2ec.
32726         I prefer to avoid temporary files here, so use <(...), but that
32727         is not supported by /bin/sh, so...
32728         (SHELL): Define to /bin/bash.
32730 2011-06-24  Eric Blake  <eblake@redhat.com>
32732         maint.mk: update sc_prohibit_intprops_without_use
32733         * top/maint.mk (_intprops_names): Match recent changes.
32735 2011-06-24  Bruno Haible  <bruno@clisp.org>
32737         strerror-override: No-op tweak.
32738         * lib/strerror-override.h (strerror_override): Reorder conditions,
32739         for consistency with lib/strerror-override.c.
32741 2011-06-23  Eric Blake  <eblake@redhat.com>
32743         maint.mk: test further PATH_MAX issues
32744         * top/maint.mk (sc_prohibit_path_max_array): Rename...
32745         (sc_prohibit_path_max_allocation): ...and also test alloca.
32746         Suggested by Jim Meyering.
32748 2011-06-22  Eric Blake  <eblake@redhat.com>
32750         maint.mk: add syntax-check to avoid char[PATH_MAX]
32751         * top/maint.mk (sc_prohibit_path_max_array): New rule.
32753         stat: be robust to PATH_MAX definition
32754         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
32755         * modules/stat (Depends-on): Add verify.
32757         link: work around IRIX bug
32758         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
32759         * lib/link.c (rpl_link): Work around it.
32760         * tests/test-link.h (test_link): Enhance test.
32761         * doc/posix-functions/link.texi (link): Document the bug.
32763         getopt: silence clang warning
32764         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
32765         dereference.
32766         Reported by Gustavo Martin Domato.
32768 2011-06-22  Jim Meyering  <meyering@redhat.com>
32770         bootstrap: do not insert a blank line into each .gitignore file
32771         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
32773 2011-06-21  Eric Blake  <eblake@redhat.com>
32775         perror: test for output mismatch
32776         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
32777         perror on IRIX.
32779         strerror_r: fix OpenBSD behavior on out-of-range
32780         * lib/strerror_r.c (strerror_r): Always use maximal string.
32781         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
32783         strerror_r: fix OpenBSD behavior on 0
32784         * lib/strerror-override.c (strerror_override): Also override 0
32785         when needed.
32786         * lib/strerror-override.h (strerror_override): Likewise.
32787         * lib/strerror.c (strerror): Simplify, now that 0 override is done
32788         earlier.
32789         * lib/strerror_r.c (strerror_r): Likewise.
32790         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
32791         behavior...
32792         (gl_FUNC_STRERROR_0): ...into new macro.
32793         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
32794         is overridden.
32795         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
32796         * modules/strerror-override (Files): Add strerror.m4.
32797         (configure.ac): Also provide override for 0 when needed.
32798         * doc/posix-functions/strerror.texi (strerror): Document this.
32799         * doc/posix-functions/perror.texi (perror): Likewise.
32801         perror: adjust array size
32802         * modules/perror (Depends-on): Add strerror-override.
32803         * lib/perror.c (perror): Use it to avoid magic number.
32805         strerror-override: reduce size
32806         * lib/strerror-override.c (strerror_override): Use fewer lines.
32808 2011-06-20  Bruno Haible  <bruno@clisp.org>
32810         pathmax: Ensure correct value for PATH_MAX on HP-UX.
32811         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
32813 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32815         alloca: port to compilers that can optimize like GCC 4.6.0
32816         * lib/alloca.c (find_stack_direction): New signature, taken from
32817         Autoconf git.  This works with GCC 4.6.0.  This code should never
32818         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
32819         be used with other compilers that optimize as well as GCC 4.6.0 does.
32820         (alloca): Adjust to new signature.
32821         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
32822         New macro, which patches Autoconf in a similar way.
32824         c-stack: stop worrying about stack direction
32825         * lib/c-stack.c (find_stack_direction): Remove.
32826         (segv_handler): Don't worry about stack direction growth, as it's
32827         too much of a pain to configure this correctly, given how compilers
32828         are optimizing-away our stack-growth detection code.  Instead, assume
32829         that any access to just before or just after the stack is OK.
32830         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
32831         Don't require AC_FUNC_ALLOCA; no longer needed.
32833 2011-06-20  Eric Blake  <eblake@redhat.com>
32835         test-stat: don't allocate PATH_MAX bytes
32836         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
32837         PATH_MAX-sized buffer.
32838         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
32839         * modules/stat-tests (Depends-on): Likewise.
32840         * tests/test-fstatat.c (includes): Drop pathmax.h.
32841         * tests/test-stat.c (includes): Likewise.
32842         Reported by Bruno Haible.
32844 2011-06-20  Bruno Haible  <bruno@clisp.org>
32846         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
32847         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
32848         * lib/float.c: New file.
32849         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
32850         REPLACE_FLOAT_LDBL.
32851         * modules/float (Files): Add lib/float.c.
32852         (configure.ac): Invoke AC_LIBOBJ.
32853         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
32855 2011-06-20  Bruno Haible  <bruno@clisp.org>
32857         Tests for module 'float'.
32858         * modules/float-tests: New file.
32859         * tests/test-float.c: New file.
32861 2011-06-19  Bruno Haible  <bruno@clisp.org>
32863         isinf: Coding style.
32864         * lib/isinf.c: Use GNU coding style.
32866 2011-06-19  Bruno Haible  <bruno@clisp.org>
32868         linkat test: Avoid test failure on AIX 7.1.
32869         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
32870         * tests/test-link.h (test_link): Likewise.
32872 2011-06-19  Bruno Haible  <bruno@clisp.org>
32874         pread test: Avoid test failure on OpenBSD 4.9.
32875         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
32877 2011-06-19  Bruno Haible  <bruno@clisp.org>
32879         sprintf-posix: Fix test failure on AIX 7.1.
32880         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
32881         * doc/posix-functions/dprintf.texi: Mention limited precision problem
32882         on AIX.
32883         * doc/posix-functions/fprintf.texi: Likewise.
32884         * doc/posix-functions/printf.texi: Likewise.
32885         * doc/posix-functions/snprintf.texi: Likewise.
32886         * doc/posix-functions/sprintf.texi: Likewise.
32887         * doc/posix-functions/vdprintf.texi: Likewise.
32888         * doc/posix-functions/vfprintf.texi: Likewise.
32889         * doc/posix-functions/vprintf.texi: Likewise.
32890         * doc/posix-functions/vsnprintf.texi: Likewise.
32891         * doc/posix-functions/vsprintf.texi: Likewise.
32893 2011-06-19  Bruno Haible  <bruno@clisp.org>
32895         roundl-ieee: Fix test failure on AIX 7.1.
32896         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
32897         * doc/posix-functions/roundl.texi: Mention problem with negative
32898         arguments.
32900 2011-06-19  Bruno Haible  <bruno@clisp.org>
32902         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
32903         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
32904         * doc/posix-functions/round.texi: Mention problem with negative
32905         arguments.
32906         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
32908 2011-06-19  Bruno Haible  <bruno@clisp.org>
32910         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
32911         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
32912         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
32913         * doc/posix-functions/roundf.texi: Mention problem with negative
32914         arguments.
32915         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
32917 2011-06-19  Bruno Haible  <bruno@clisp.org>
32919         ceilf-ieee: Work around bug on MacOS X 10.5.
32920         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
32922         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
32923         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
32924         IEEE compliant, avoid compiler optimizations.
32925         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
32926         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32927         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
32928         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32929         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32930         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32931         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32932         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32933         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32934         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
32936 2011-06-19  Bruno Haible  <bruno@clisp.org>
32938         ceilf-ieee: Work around bug on AIX 7.1.
32939         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
32940         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
32942 2011-06-19  Bruno Haible  <bruno@clisp.org>
32944         ceil-ieee: Work around bug on AIX 7.1.
32945         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
32946         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
32948 2011-06-18  Bruno Haible  <bruno@clisp.org>
32950         fsync test: Avoid test failure on MacOS X and AIX.
32951         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
32952         EINVAL.
32954 2011-06-18  Bruno Haible  <bruno@clisp.org>
32956         openat, fdopendir tests: Fix link errors.
32957         * modules/openat-tests (Depends-on): Add progname.
32958         * modules/fdopendir-tests (Depends-on): Likewise.
32959         * tests/test-fchownat.c: Include progname.h.
32960         (main): Call set_program_name.
32961         * tests/test-fstatat.c: Include progname.h.
32962         (main): Call set_program_name.
32963         * tests/test-mkdirat.c: Include progname.h.
32964         (main): Call set_program_name.
32965         * tests/test-openat.c: Include progname.h.
32966         (main): Call set_program_name.
32967         * tests/test-unlinkat.c: Include progname.h.
32968         (main): Call set_program_name.
32969         * tests/test-fdopendir.c: Include progname.h.
32970         (main): Call set_program_name.
32972 2011-06-18  Bruno Haible  <bruno@clisp.org>
32974         Doc update.
32975         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
32976         HP-UX.
32977         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
32979 2011-06-18  Bruno Haible  <bruno@clisp.org>
32981         getcwd tests: Avoid compilation error on HP-UX 11.31.
32982         * modules/getcwd-tests (Depends-on): Add pathmax.
32983         * tests/test-getcwd.c: Include pathmax.h.
32985 2011-06-18  Bruno Haible  <bruno@clisp.org>
32987         isfinite, isinf: Fix link error on AIX 6 and 7.
32988         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
32989         needed, also test the macro with a 'float' argument.
32990         * m4/isinf.m4 (gl_ISINF): Likewise.
32992 2011-06-18  Bruno Haible  <bruno@clisp.org>
32994         getloadavg: Don't clobber LIBS. Regression from previous commit.
32995         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
32996         AC_CHECK_LIB from here...
32997         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
32998         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
32999         gl_func_getloadavg_done.
33000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33002 2011-06-18  Bruno Haible  <bruno@clisp.org>
33004         clean-temp: Improve documentation.
33005         * lib/clean-temp.h: Explain better how to use this module.
33006         Reported by John Darrington <john@darrington.wattle.id.au>.
33008 2011-06-17  Bruno Haible  <bruno@clisp.org>
33010         pread, pwrite: Avoid cc warning on AIX.
33011         * lib/unistd.in.h (pread): Undefine before defining as a macro.
33012         (pwrite): Likewise.
33014 2011-06-17  Bruno Haible  <bruno@clisp.org>
33016         spawn-pipe tests: Fix link error.
33017         * tests/test-spawn-pipe-child.c: Undefine fprintf.
33018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33020 2011-06-17  Bruno Haible  <bruno@clisp.org>
33022         Tests: Remove unnecessary dependency.
33023         * modules/canonicalize-tests (Depends-on): Remove progname.
33024         * modules/chown-tests (Depends-on): Likewise.
33025         * modules/dirname-tests (Depends-on): Likewise.
33026         * modules/fdopendir-tests (Depends-on): Likewise.
33027         * modules/fdutimensat-tests (Depends-on): Likewise.
33028         * modules/hash-tests (Depends-on): Likewise.
33029         * modules/lchown-tests (Depends-on): Likewise.
33030         * modules/linkat-tests (Depends-on): Likewise.
33031         * modules/renameat-tests (Depends-on): Likewise.
33032         * modules/spawn-pipe-tests (Depends-on): Likewise.
33033         * modules/utimensat-tests (Depends-on): Likewise.
33035 2011-06-17  Bruno Haible  <bruno@clisp.org>
33037         spawn-pipe tests: Fix link error.
33038         * tests/test-spawn-pipe-child.c: Undefine fflush.
33040 2011-06-17  Bruno Haible  <bruno@clisp.org>
33042         Fix tests link errors.
33043         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
33044         * modules/chown-tests (Makefile.am): Don't link test-chown with
33045         LIBINTL.
33046         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
33047         LIBINTL.
33048         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
33049         LIBINTL.
33050         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
33051         LIBINTL.
33053 2011-06-16  Bruno Haible  <bruno@clisp.org>
33055         crypto/gc-sha1: Fix recent regression.
33056         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
33057         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
33059         crypto/gc-md5: Fix recent regression.
33060         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
33062         crypto/gc-md4: Fix recent regression.
33063         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
33064         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
33066         crypto/gc-arctwo: Fix recent regression.
33067         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
33068         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
33070         crypto/gc-rijndael: Fix recent regression.
33071         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
33072         (configure.ac): Invoke AC_LIBOBJ here.
33073         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
33074         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33076         crypto/gc-hmac-sha1: Fix recent regression.
33077         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
33078         (configure.ac): Invoke AC_LIBOBJ here.
33079         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
33080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33082         crypto/gc-hmac-md5: Fix recent regression.
33083         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
33084         (configure.ac): Invoke AC_LIBOBJ here.
33085         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
33086         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33088         crypto/gc-des: Fix recent regression.
33089         * modules/crypto/gc-des (Files): Remove m4/des.m4.
33090         (configure.ac): Invoke AC_LIBOBJ here.
33091         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
33092         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33094         crypto/gc-arcfour: Fix recent regression.
33095         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
33096         (configure.ac): Invoke AC_LIBOBJ here.
33097         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
33098         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33100 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
33102         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
33103         After the 2011-05-21 change, this macro requires
33104         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
33105         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33107 2011-06-16  Bruno Haible  <bruno@clisp.org>
33109         fprintftime: Move AC_LIBOBJ invocations to module description.
33110         * m4/fprintftime.m4: Remove file.
33111         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
33112         (configure.ac): Remove gl_FPRINTFTIME call.
33113         (Makefile.am): Augment lib_SOURCES.
33114         Reported by Jim Meyering.
33116 2011-06-16  Bruno Haible  <bruno@clisp.org>
33118         tmpfile-safer: Finish 2011-05-23 commit.
33119         * m4/stdio-safer.m4: Really remove file.
33120         Reported by Jim Meyering.
33122 2011-06-16  Bruno Haible  <bruno@clisp.org>
33124         syntax-check: Fix typo.
33125         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
33126         printf-posix.m4.
33127         Reported by Jim Meyering.
33129 2011-06-13  Jim Meyering  <meyering@redhat.com>
33131         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
33132         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
33134 2011-05-23  Bruno Haible  <bruno@clisp.org>
33136         yesno: Move AC_LIBOBJ invocations to module description.
33137         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
33138         * modules/yesno (Makefile.am): Augment lib_SOURCES.
33140 2011-05-23  Bruno Haible  <bruno@clisp.org>
33142         xstrtol: Move AC_LIBOBJ invocations to module description.
33143         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
33144         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
33146 2011-05-23  Bruno Haible  <bruno@clisp.org>
33148         xstrtold: Move AC_LIBOBJ invocations to module description.
33149         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
33150         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
33152 2011-05-23  Bruno Haible  <bruno@clisp.org>
33154         xstrtod: Move AC_LIBOBJ invocations to module description.
33155         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
33156         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
33158 2011-05-23  Bruno Haible  <bruno@clisp.org>
33160         xnanosleep: Move AC_LIBOBJ invocations to module description.
33161         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
33162         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
33164 2011-05-23  Bruno Haible  <bruno@clisp.org>
33166         xgetcwd: Move AC_LIBOBJ invocations to module description.
33167         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
33168         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
33170 2011-05-23  Bruno Haible  <bruno@clisp.org>
33172         xalloc: Move AC_LIBOBJ invocations to module description.
33173         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
33174         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
33176 2011-05-23  Bruno Haible  <bruno@clisp.org>
33178         write-any-file: Move AC_LIBOBJ invocations to module description.
33179         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
33180         invocation.
33181         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
33183 2011-05-23  Bruno Haible  <bruno@clisp.org>
33185         utimens: Move AC_LIBOBJ invocations to module description.
33186         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
33187         * modules/utimens (Makefile.am): Augment lib_SOURCES.
33189 2011-05-23  Bruno Haible  <bruno@clisp.org>
33191         utimecmp: Move AC_LIBOBJ invocations to module description.
33192         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
33193         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
33195 2011-05-23  Bruno Haible  <bruno@clisp.org>
33197         userspec: Move AC_LIBOBJ invocations to module description.
33198         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
33199         * modules/userspec (Makefile.am): Augment lib_SOURCES.
33201 2011-05-23  Bruno Haible  <bruno@clisp.org>
33203         unlinkdir: Move AC_LIBOBJ invocations to module description.
33204         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
33205         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
33207 2011-05-23  Bruno Haible  <bruno@clisp.org>
33209         unistd-safer: Move AC_LIBOBJ invocations to module description.
33210         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
33211         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
33213 2011-05-23  Bruno Haible  <bruno@clisp.org>
33215         tempname: Move AC_LIBOBJ invocations to module description.
33216         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
33217         * modules/tempname (Makefile.am): Augment lib_SOURCES.
33219 2011-05-23  Bruno Haible  <bruno@clisp.org>
33221         strftime: Move AC_LIBOBJ invocations to module description.
33222         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
33223         * modules/strftime (Makefile.am): Augment lib_SOURCES.
33225 2011-05-23  Bruno Haible  <bruno@clisp.org>
33227         stdlib-safer: Move AC_LIBOBJ invocations to module description.
33228         * m4/stdlib-safer.m4: Remove file.
33229         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
33230         (configure.ac): Remove gl_STDLIB_SAFER call.
33231         (Makefile.am): Augment lib_SOURCES.
33233 2011-05-23  Bruno Haible  <bruno@clisp.org>
33235         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
33236         * m4/stdio-safer.m4: Remove file.
33237         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
33238         (configure.ac): Remove gl_TMPFILE_SAFER call.
33239         (Makefile.am): Augment lib_SOURCES.
33241 2011-05-23  Bruno Haible  <bruno@clisp.org>
33243         popen-safer: Move AC_LIBOBJ invocations to module description.
33244         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
33245         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
33246         (configure.ac): Remove gl_POPEN_SAFER call.
33247         (Makefile.am): Augment lib_SOURCES.
33249 2011-05-23  Bruno Haible  <bruno@clisp.org>
33251         freopen-safer: Move AC_LIBOBJ invocations to module description.
33252         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
33253         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
33254         (configure.ac): Remove gl_FREOPEN_SAFER call.
33255         (Makefile.am): Augment lib_SOURCES.
33257 2011-05-23  Bruno Haible  <bruno@clisp.org>
33259         fopen-safer: Move AC_LIBOBJ invocations to module description.
33260         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
33261         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
33262         (configure.ac): Remove gl_FOPEN_SAFER call.
33263         (Makefile.am): Augment lib_SOURCES.
33265 2011-05-23  Bruno Haible  <bruno@clisp.org>
33267         crypto/sha512: Move AC_LIBOBJ invocations to module description.
33268         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
33269         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
33271 2011-05-23  Bruno Haible  <bruno@clisp.org>
33273         crypto/sha256: Move AC_LIBOBJ invocations to module description.
33274         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
33275         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
33277 2011-05-23  Bruno Haible  <bruno@clisp.org>
33279         crypto/sha1: Move AC_LIBOBJ invocations to module description.
33280         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
33281         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
33283 2011-05-23  Bruno Haible  <bruno@clisp.org>
33285         settime: Move AC_LIBOBJ invocations to module description.
33286         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
33287         * modules/settime (Makefile.am): Augment lib_SOURCES.
33289 2011-05-23  Bruno Haible  <bruno@clisp.org>
33291         savedir: Move AC_LIBOBJ invocations to module description.
33292         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
33293         * modules/savedir (Makefile.am): Augment lib_SOURCES.
33295 2011-05-23  Bruno Haible  <bruno@clisp.org>
33297         save-cwd: Move AC_LIBOBJ invocations to module description.
33298         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
33299         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
33301 2011-05-23  Bruno Haible  <bruno@clisp.org>
33303         same: Move AC_LIBOBJ invocations to module description.
33304         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
33305         * modules/same (Makefile.am): Augment lib_SOURCES.
33307 2011-05-23  Bruno Haible  <bruno@clisp.org>
33309         safe-write: Move AC_LIBOBJ invocations to module description.
33310         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
33311         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
33312         instead of gl_SAFE_WRITE.
33313         (Makefile.am): Augment lib_SOURCES.
33315 2011-05-23  Bruno Haible  <bruno@clisp.org>
33317         safe-read: Move AC_LIBOBJ invocations to module description.
33318         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
33319         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
33320         of gl_SAFE_READ.
33321         (Makefile.am): Augment lib_SOURCES.
33323 2011-05-23  Bruno Haible  <bruno@clisp.org>
33325         safe-alloc: Move AC_LIBOBJ invocations to module description.
33326         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
33327         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
33329 2011-05-23  Bruno Haible  <bruno@clisp.org>
33331         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
33332         * m4/rijndael.m4: Remove file.
33333         * modules/crypto/rijndael (Files): Remove it.
33334         (configure.ac): Remove gl_RIJNDAEL call.
33335         (Makefile.am): Augment lib_SOURCES.
33337 2011-05-23  Bruno Haible  <bruno@clisp.org>
33339         readtokens: Move AC_LIBOBJ invocations to module description.
33340         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
33341         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
33343 2011-05-23  Bruno Haible  <bruno@clisp.org>
33345         read-file: Move AC_LIBOBJ invocations to module description.
33346         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
33347         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
33348         of gl_FUNC_READ_FILE.
33349         (Makefile.am): Augment lib_SOURCES.
33351 2011-05-23  Bruno Haible  <bruno@clisp.org>
33353         quotearg: Move AC_LIBOBJ invocations to module description.
33354         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
33355         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
33357 2011-05-23  Bruno Haible  <bruno@clisp.org>
33359         quote: Move AC_LIBOBJ invocations to module description.
33360         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
33361         * modules/quote (Makefile.am): Augment lib_SOURCES.
33363 2011-05-23  Bruno Haible  <bruno@clisp.org>
33365         posixver: Move AC_LIBOBJ invocations to module description.
33366         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
33367         * modules/posixver (Makefile.am): Augment lib_SOURCES.
33369 2011-05-23  Bruno Haible  <bruno@clisp.org>
33371         posixtm: Move AC_LIBOBJ invocations to module description.
33372         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
33373         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
33375 2011-05-23  Bruno Haible  <bruno@clisp.org>
33377         physmem: Move AC_LIBOBJ invocations to module description.
33378         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
33379         * modules/physmem (Makefile.am): Augment lib_SOURCES.
33381 2011-05-23  Bruno Haible  <bruno@clisp.org>
33383         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
33384         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
33385         invocation.
33386         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
33388 2011-05-23  Bruno Haible  <bruno@clisp.org>
33390         mpsort: Move AC_LIBOBJ invocations to module description.
33391         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
33392         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
33394 2011-05-23  Bruno Haible  <bruno@clisp.org>
33396         modechange: Move AC_LIBOBJ invocations to module description.
33397         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
33398         * modules/modechange (Makefile.am): Augment lib_SOURCES.
33400 2011-05-23  Bruno Haible  <bruno@clisp.org>
33402         mkdir-p: Move AC_LIBOBJ invocations to module description.
33403         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
33404         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
33406 2011-05-23  Bruno Haible  <bruno@clisp.org>
33408         mkancesdirs: Move AC_LIBOBJ invocations to module description.
33409         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
33410         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
33412 2011-05-23  Bruno Haible  <bruno@clisp.org>
33414         mgetgroups: Move AC_LIBOBJ invocations to module description.
33415         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
33416         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
33418 2011-05-23  Bruno Haible  <bruno@clisp.org>
33420         memxor: Move AC_LIBOBJ invocations to module description.
33421         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
33422         * modules/memxor (Makefile.am): Augment lib_SOURCES.
33424 2011-05-23  Bruno Haible  <bruno@clisp.org>
33426         memcoll: Move AC_LIBOBJ invocations to module description.
33427         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
33428         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
33430 2011-05-23  Bruno Haible  <bruno@clisp.org>
33432         memcasecmp: Move AC_LIBOBJ invocations to module description.
33433         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
33434         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
33436 2011-05-23  Bruno Haible  <bruno@clisp.org>
33438         crypto/md5: Move AC_LIBOBJ invocations to module description.
33439         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
33440         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
33442 2011-05-23  Bruno Haible  <bruno@clisp.org>
33444         crypto/md4: Move AC_LIBOBJ invocations to module description.
33445         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
33446         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
33448 2011-05-23  Bruno Haible  <bruno@clisp.org>
33450         crypto/md2: Move AC_LIBOBJ invocations to module description.
33451         * m4/md2.m4: Remove file.
33452         * modules/crypto/md2 (Files): Remove it.
33453         (configure.ac): Remove gl_MD2 call.
33454         (Makefile.am): Augment lib_SOURCES.
33456 2011-05-23  Bruno Haible  <bruno@clisp.org>
33458         long-options: Move AC_LIBOBJ invocations to module description.
33459         * m4/long-options.m4: Remove file.
33460         * modules/long-options (Files): Remove it.
33461         (configure.ac): Remove gl_LONG_OPTIONS call.
33462         (Makefile.am): Augment lib_SOURCES.
33464 2011-05-23  Bruno Haible  <bruno@clisp.org>
33466         i-ring: Move AC_LIBOBJ invocations to module description.
33467         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
33468         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
33470 2011-05-23  Bruno Haible  <bruno@clisp.org>
33472         idcache: Move AC_LIBOBJ invocations to module description.
33473         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
33474         * modules/idcache (Makefile.am): Augment lib_SOURCES.
33476 2011-05-23  Bruno Haible  <bruno@clisp.org>
33478         human: Move AC_LIBOBJ invocations to module description.
33479         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
33480         * modules/human (Makefile.am): Augment lib_SOURCES.
33482 2011-05-23  Bruno Haible  <bruno@clisp.org>
33484         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
33485         * m4/hmac-sha1.m4: Remove file.
33486         * modules/crypto/hmac-sha1 (Files): Remove it.
33487         (configure.ac): Remove gl_HMAC_SHA1 call.
33488         (Makefile.am): Augment lib_SOURCES.
33490 2011-05-23  Bruno Haible  <bruno@clisp.org>
33492         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
33493         * m4/hmac-md5.m4: Remove file.
33494         * modules/crypto/hmac-md5 (Files): Remove it.
33495         (configure.ac): Remove gl_HMAC_MD5 call.
33496         (Makefile.am): Augment lib_SOURCES.
33498 2011-05-23  Bruno Haible  <bruno@clisp.org>
33500         hash: Move AC_LIBOBJ invocations to module description.
33501         * m4/hash.m4: Remove file.
33502         * modules/hash (Files): Remove it.
33503         (configure.ac): Remove gl_HASH call.
33504         (Makefile.am): Augment lib_SOURCES.
33506 2011-05-23  Bruno Haible  <bruno@clisp.org>
33508         hard-locale: Move AC_LIBOBJ invocations to module description.
33509         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
33510         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
33512 2011-05-23  Bruno Haible  <bruno@clisp.org>
33514         getugroups: Move AC_LIBOBJ invocations to module description.
33515         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
33516         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
33518 2011-05-23  Bruno Haible  <bruno@clisp.org>
33520         gettime: Move AC_LIBOBJ invocations to module description.
33521         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
33522         * modules/gettime (Makefile.am): Augment lib_SOURCES.
33524 2011-05-23  Bruno Haible  <bruno@clisp.org>
33526         getndelim2: Move AC_LIBOBJ invocations to module description.
33527         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
33528         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
33530 2011-05-23  Bruno Haible  <bruno@clisp.org>
33532         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
33533         * m4/gc-pbkdf2-sha1.m4: Remove file.
33534         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
33535         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
33536         (Makefile.am): Augment lib_SOURCES.
33538 2011-05-23  Bruno Haible  <bruno@clisp.org>
33540         fts: Move AC_LIBOBJ invocations to module description.
33541         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
33542         * modules/fts (configure.ac): ... to here.
33544 2011-05-23  Bruno Haible  <bruno@clisp.org>
33546         file-type: Move AC_LIBOBJ invocations to module description.
33547         * m4/file-type.m4: Remove file.
33548         * modules/file-type (Files): Remove it.
33549         (configure.ac): Remove gl_FILE_TYPE call.
33550         (Makefile.am): Augment lib_SOURCES.
33552 2011-05-23  Bruno Haible  <bruno@clisp.org>
33554         filenamecat*: Respect rules for use of AC_LIBOBJ.
33555         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
33556         Remove AC_LIBOBJ invocation.
33557         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
33558         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
33560 2011-05-23  Bruno Haible  <bruno@clisp.org>
33562         filemode: Move AC_LIBOBJ invocations to module description.
33563         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
33564         * modules/filemode (Makefile.am): Augment lib_SOURCES.
33566 2011-05-23  Bruno Haible  <bruno@clisp.org>
33568         openat-safer: Move AC_LIBOBJ invocations to module description.
33569         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
33570         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
33572 2011-05-23  Bruno Haible  <bruno@clisp.org>
33574         fcntl-safer: Move AC_LIBOBJ invocations to module description.
33575         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
33576         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
33578 2011-05-23  Bruno Haible  <bruno@clisp.org>
33580         exclude: Move AC_LIBOBJ invocations to module description.
33581         * m4/exclude.m4: Remove file.
33582         * modules/exclude (Files): Remove it.
33583         (configure.ac): Remove gl_EXCLUDE call.
33584         (Makefile.am): Augment lib_SOURCES.
33586 2011-05-23  Bruno Haible  <bruno@clisp.org>
33588         dirname*: Respect rules for use of AC_LIBOBJ.
33589         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
33590         invocations.
33591         * modules/dirname (Makefile.am): Augment lib_SOURCES.
33592         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
33594 2011-05-23  Bruno Haible  <bruno@clisp.org>
33596         dirent-safer: Move AC_LIBOBJ invocations to module description.
33597         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
33598         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
33600 2011-05-23  Bruno Haible  <bruno@clisp.org>
33602         crypto/des: Move AC_LIBOBJ invocations to module description.
33603         * m4/des.m4: Remove file.
33604         * modules/crypto/des (Files): Remove it.
33605         (configure.ac): Remove gl_DES call.
33606         (Makefile.am): Augment lib_SOURCES.
33608 2011-05-23  Bruno Haible  <bruno@clisp.org>
33610         cycle-check: Move AC_LIBOBJ invocations to module description.
33611         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
33612         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
33614 2011-05-23  Bruno Haible  <bruno@clisp.org>
33616         c-strtold: Move AC_LIBOBJ invocations to module description.
33617         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
33618         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
33620 2011-05-23  Bruno Haible  <bruno@clisp.org>
33622         c-strtod: Move AC_LIBOBJ invocations to module description.
33623         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
33624         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
33626 2011-05-23  Bruno Haible  <bruno@clisp.org>
33628         crc: Move AC_LIBOBJ invocations to module description.
33629         * m4/crc.m4: Remove file.
33630         * modules/crc (Files): Remove it.
33631         (configure.ac): Remove gl_CRC call.
33632         (Makefile.am): Augment lib_SOURCES.
33634 2011-05-23  Bruno Haible  <bruno@clisp.org>
33636         close-stream: Move AC_LIBOBJ invocations to module description.
33637         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
33638         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
33640 2011-05-23  Bruno Haible  <bruno@clisp.org>
33642         closeout: Move AC_LIBOBJ invocations to module description.
33643         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
33644         * modules/closeout (Makefile.am): Augment lib_SOURCES.
33646 2011-05-23  Bruno Haible  <bruno@clisp.org>
33648         closein: Move AC_LIBOBJ invocations to module description.
33649         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
33650         * modules/closein (Makefile.am): Augment lib_SOURCES.
33652 2011-05-23  Bruno Haible  <bruno@clisp.org>
33654         cloexec: Move AC_LIBOBJ invocations to module description.
33655         * m4/cloexec.m4: Remove file.
33656         * modules/cloexec (Files): Remove it.
33657         (configure.ac): Remove gl_CLOEXEC call.
33658         (Makefile.am): Augment lib_SOURCES.
33660 2011-05-23  Bruno Haible  <bruno@clisp.org>
33662         check-version: Move AC_LIBOBJ invocations to module description.
33663         * m4/check-version.m4: Remove file.
33664         * modules/check-version (Files): Remove it.
33665         (configure.ac): Remove gl_CHECK_VERSION call.
33666         (Makefile.am): Augment lib_SOURCES.
33668 2011-05-23  Bruno Haible  <bruno@clisp.org>
33670         chdir-safer: Move AC_LIBOBJ invocations to module description.
33671         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
33672         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
33674 2011-05-23  Bruno Haible  <bruno@clisp.org>
33676         canonicalize: Move AC_LIBOBJ invocations to module description.
33677         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
33678         AC_LIBOBJ invocation.
33679         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
33681 2011-05-23  Bruno Haible  <bruno@clisp.org>
33683         canon-host: Move AC_LIBOBJ invocations to module description.
33684         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
33685         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
33686         instead of gl_CANON_HOST.
33687         (Makefile.am): Augment lib_SOURCES.
33689 2011-05-23  Bruno Haible  <bruno@clisp.org>
33691         backupfile: Move AC_LIBOBJ invocations to module description.
33692         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
33693         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
33695 2011-05-23  Bruno Haible  <bruno@clisp.org>
33697         argmatch: Move AC_LIBOBJ invocations to module description.
33698         * m4/argmatch.m4: Remove file.
33699         * modules/argmatch (Files): Remove it.
33700         (configure.ac): Remove gl_ARGMATCH call.
33701         (Makefile.am): Augment lib_SOURCES.
33703 2011-05-23  Bruno Haible  <bruno@clisp.org>
33705         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
33706         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
33707         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
33709 2011-05-23  Bruno Haible  <bruno@clisp.org>
33711         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
33712         * m4/arcfour.m4: Remove file.
33713         * modules/crypto/arcfour (Files): Remove it.
33714         (configure.ac): Remove gl_ARCFOUR call.
33715         (Makefile.am): Augment lib_SOURCES.
33717 2011-05-22  Bruno Haible  <bruno@clisp.org>
33719         write: Move AC_LIBOBJ invocations to module description.
33720         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
33721         * modules/write (configure.ac): ... to here.
33723 2011-05-22  Bruno Haible  <bruno@clisp.org>
33725         wmemset: Move AC_LIBOBJ invocations to module description.
33726         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
33727         here...
33728         * modules/wmemset (configure.ac): ... to here.
33730 2011-05-22  Bruno Haible  <bruno@clisp.org>
33732         wmemmove: Move AC_LIBOBJ invocations to module description.
33733         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
33734         here...
33735         * modules/wmemmove (configure.ac): ... to here.
33737 2011-05-22  Bruno Haible  <bruno@clisp.org>
33739         wmemcpy: Move AC_LIBOBJ invocations to module description.
33740         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
33741         here...
33742         * modules/wmemcpy (configure.ac): ... to here.
33744 2011-05-22  Bruno Haible  <bruno@clisp.org>
33746         wmemcmp: Move AC_LIBOBJ invocations to module description.
33747         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
33748         here...
33749         * modules/wmemcmp (configure.ac): ... to here.
33751 2011-05-22  Bruno Haible  <bruno@clisp.org>
33753         wmemchr: Move AC_LIBOBJ invocations to module description.
33754         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
33755         here...
33756         * modules/wmemchr (configure.ac): ... to here.
33758 2011-05-22  Bruno Haible  <bruno@clisp.org>
33760         wcswidth: Move AC_LIBOBJ invocations to module description.
33761         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
33762         here...
33763         * modules/wcswidth (configure.ac): ... to here.
33765 2011-05-22  Bruno Haible  <bruno@clisp.org>
33767         wcwidth: Respect rules for use of AC_LIBOBJ.
33768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
33769         invocation from here...
33770         * modules/wcwidth (configure.ac): ... to here.
33771         (Depends-on): Update conditions.
33773 2011-05-22  Bruno Haible  <bruno@clisp.org>
33775         wctype: Move AC_LIBOBJ invocations to module description.
33776         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
33777         invocation from here...
33778         * modules/wctype (configure.ac): ... to here.
33779         (Depends-on): Update conditions.
33781 2011-05-22  Bruno Haible  <bruno@clisp.org>
33783         wctrans: Move AC_LIBOBJ invocations to module description.
33784         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
33785         invocation from here...
33786         * modules/wctrans (configure.ac): ... to here.
33788 2011-05-22  Bruno Haible  <bruno@clisp.org>
33790         wctomb: Move AC_LIBOBJ invocations to module description.
33791         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
33792         invocations from here...
33793         * modules/wctomb (configure.ac): ... to here.
33795 2011-05-22  Bruno Haible  <bruno@clisp.org>
33797         wctob: Move AC_LIBOBJ invocations to module description.
33798         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
33799         gl_PREREQ_WCTOB invocations from here...
33800         * modules/wctob (configure.ac): ... to here.
33801         (Depends-on): Update conditions.
33803 2011-05-22  Bruno Haible  <bruno@clisp.org>
33805         wcsxfrm: Move AC_LIBOBJ invocations to module description.
33806         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
33807         here...
33808         * modules/wcsxfrm (configure.ac): ... to here.
33810 2011-05-22  Bruno Haible  <bruno@clisp.org>
33812         wcstok: Move AC_LIBOBJ invocations to module description.
33813         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
33814         * modules/wcstok (configure.ac): ... to here.
33816 2011-05-22  Bruno Haible  <bruno@clisp.org>
33818         wcsstr: Move AC_LIBOBJ invocations to module description.
33819         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
33820         * modules/wcsstr (configure.ac): ... to here.
33822 2011-05-22  Bruno Haible  <bruno@clisp.org>
33824         wcsspn: Move AC_LIBOBJ invocations to module description.
33825         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
33826         * modules/wcsspn (configure.ac): ... to here.
33828 2011-05-22  Bruno Haible  <bruno@clisp.org>
33830         wcsrtombs: Move AC_LIBOBJ invocations to module description.
33831         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
33832         gl_PREREQ_WCSRTOMBS invocations from here...
33833         * modules/wcsrtombs (configure.ac): ... to here.
33835 2011-05-22  Bruno Haible  <bruno@clisp.org>
33837         wcsrchr: Move AC_LIBOBJ invocations to module description.
33838         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
33839         here...
33840         * modules/wcsrchr (configure.ac): ... to here.
33842 2011-05-22  Bruno Haible  <bruno@clisp.org>
33844         wcspbrk: Move AC_LIBOBJ invocations to module description.
33845         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
33846         here...
33847         * modules/wcspbrk (configure.ac): ... to here.
33849 2011-05-22  Bruno Haible  <bruno@clisp.org>
33851         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
33852         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
33853         gl_PREREQ_WCSNRTOMBS invocations from here...
33854         * modules/wcsnrtombs (configure.ac): ... to here.
33856 2011-05-22  Bruno Haible  <bruno@clisp.org>
33858         wcsnlen: Move AC_LIBOBJ invocations to module description.
33859         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
33860         here...
33861         * modules/wcsnlen (configure.ac): ... to here.
33863 2011-05-22  Bruno Haible  <bruno@clisp.org>
33865         wcsncpy: Move AC_LIBOBJ invocations to module description.
33866         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
33867         here...
33868         * modules/wcsncpy (configure.ac): ... to here.
33870 2011-05-22  Bruno Haible  <bruno@clisp.org>
33872         wcsncmp: Move AC_LIBOBJ invocations to module description.
33873         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
33874         here...
33875         * modules/wcsncmp (configure.ac): ... to here.
33877 2011-05-22  Bruno Haible  <bruno@clisp.org>
33879         wcsncat: Move AC_LIBOBJ invocations to module description.
33880         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
33881         here...
33882         * modules/wcsncat (configure.ac): ... to here.
33884 2011-05-22  Bruno Haible  <bruno@clisp.org>
33886         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
33887         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
33888         from here...
33889         * modules/wcsncasecmp (configure.ac): ... to here.
33891 2011-05-22  Bruno Haible  <bruno@clisp.org>
33893         wcslen: Move AC_LIBOBJ invocations to module description.
33894         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
33895         * modules/wcslen (configure.ac): ... to here.
33897 2011-05-22  Bruno Haible  <bruno@clisp.org>
33899         wcsdup: Move AC_LIBOBJ invocations to module description.
33900         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
33901         * modules/wcsdup (configure.ac): ... to here.
33903 2011-05-22  Bruno Haible  <bruno@clisp.org>
33905         wcscspn: Move AC_LIBOBJ invocations to module description.
33906         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
33907         here...
33908         * modules/wcscspn (configure.ac): ... to here.
33910 2011-05-22  Bruno Haible  <bruno@clisp.org>
33912         wcscpy: Move AC_LIBOBJ invocations to module description.
33913         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
33914         * modules/wcscpy (configure.ac): ... to here.
33916 2011-05-22  Bruno Haible  <bruno@clisp.org>
33918         wcscoll: Move AC_LIBOBJ invocations to module description.
33919         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
33920         here...
33921         * modules/wcscoll (configure.ac): ... to here.
33923 2011-05-22  Bruno Haible  <bruno@clisp.org>
33925         wcscmp: Move AC_LIBOBJ invocations to module description.
33926         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
33927         * modules/wcscmp (configure.ac): ... to here.
33929 2011-05-22  Bruno Haible  <bruno@clisp.org>
33931         wcschr: Move AC_LIBOBJ invocations to module description.
33932         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
33933         * modules/wcschr (configure.ac): ... to here.
33935 2011-05-22  Bruno Haible  <bruno@clisp.org>
33937         wcscat: Move AC_LIBOBJ invocations to module description.
33938         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
33939         * modules/wcscat (configure.ac): ... to here.
33941 2011-05-22  Bruno Haible  <bruno@clisp.org>
33943         wcscasecmp: Move AC_LIBOBJ invocations to module description.
33944         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
33945         here...
33946         * modules/wcscasecmp (configure.ac): ... to here.
33948 2011-05-22  Bruno Haible  <bruno@clisp.org>
33950         wcrtomb: Move AC_LIBOBJ invocations to module description.
33951         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
33952         invocations from here...
33953         * modules/wcrtomb (configure.ac): ... to here.
33955 2011-05-22  Bruno Haible  <bruno@clisp.org>
33957         wcpncpy: Move AC_LIBOBJ invocations to module description.
33958         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
33959         here...
33960         * modules/wcpncpy (configure.ac): ... to here.
33962 2011-05-22  Bruno Haible  <bruno@clisp.org>
33964         wcpcpy: Move AC_LIBOBJ invocations to module description.
33965         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
33966         * modules/wcpcpy (configure.ac): ... to here.
33968 2011-05-22  Bruno Haible  <bruno@clisp.org>
33970         waitpid: Move AC_LIBOBJ invocations to module description.
33971         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
33972         invocation from here...
33973         * modules/waitpid (configure.ac): ... to here.
33975 2011-05-22  Bruno Haible  <bruno@clisp.org>
33977         utimensat: Move AC_LIBOBJ invocations to module description.
33978         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
33979         here...
33980         * modules/utimensat (configure.ac): ... to here.
33982 2011-05-22  Bruno Haible  <bruno@clisp.org>
33984         usleep: Move AC_LIBOBJ invocations to module description.
33985         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
33986         here...
33987         * modules/usleep (configure.ac): ... to here.
33989 2011-05-22  Bruno Haible  <bruno@clisp.org>
33991         unlockpt: Move AC_LIBOBJ invocations to module description.
33992         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
33993         gl_PREREQ_UNLOCKPT invocations from here...
33994         * modules/unlockpt (configure.ac): ... to here.
33996 2011-05-22  Bruno Haible  <bruno@clisp.org>
33998         unlink: Respect rules for use of AC_LIBOBJ.
33999         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
34000         * modules/unlink (configure.ac): ... to here.
34002 2011-05-22  Bruno Haible  <bruno@clisp.org>
34004         uname: Move AC_LIBOBJ invocations to module description.
34005         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
34006         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
34007         here...
34008         * modules/uname (configure.ac): ... to here.
34010 2011-05-22  Bruno Haible  <bruno@clisp.org>
34012         ttyname_r: Move AC_LIBOBJ invocations to module description.
34013         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
34014         gl_PREREQ_TTYNAME_R invocations from here...
34015         * modules/ttyname_r (configure.ac): ... to here.
34017 2011-05-22  Bruno Haible  <bruno@clisp.org>
34019         tsearch: Move AC_LIBOBJ invocations to module description.
34020         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
34021         invocations from here...
34022         * modules/tsearch (configure.ac): ... to here.
34024 2011-05-22  Bruno Haible  <bruno@clisp.org>
34026         towctrans: Move AC_LIBOBJ invocations to module description.
34027         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
34028         AC_LIBOBJ invocation from here...
34029         * modules/towctrans (configure.ac): ... to here.
34031 2011-05-22  Bruno Haible  <bruno@clisp.org>
34033         tmpfile: Move AC_LIBOBJ invocations to module description.
34034         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
34035         invocations from here...
34036         * modules/tmpfile (configure.ac): ... to here.
34038 2011-05-22  Bruno Haible  <bruno@clisp.org>
34040         times: Move AC_LIBOBJ invocations to module description.
34041         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
34042         * modules/times (configure.ac): ... to here.
34044 2011-05-22  Bruno Haible  <bruno@clisp.org>
34046         time_r: Move AC_LIBOBJ invocations to module description.
34047         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
34048         invocations from here...
34049         * modules/time_r (configure.ac): ... to here.
34051 2011-05-22  Bruno Haible  <bruno@clisp.org>
34053         timegm: Move AC_LIBOBJ invocations to module description.
34054         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
34055         invocations from here...
34056         * modules/timegm (configure.ac): ... to here.
34058 2011-05-22  Bruno Haible  <bruno@clisp.org>
34060         tcgetsid: Move AC_LIBOBJ invocations to module description.
34061         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
34062         and gl_PREREQ_TCGETSID invocations from here...
34063         * modules/tcgetsid (configure.ac): ... to here.
34064         (Depends-on): Update conditions.
34066 2011-05-22  Bruno Haible  <bruno@clisp.org>
34068         symlinkat: Move AC_LIBOBJ invocations to module description.
34069         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
34070         here...
34071         * modules/symlinkat (configure.ac): ... to here.
34073 2011-05-22  Bruno Haible  <bruno@clisp.org>
34075         symlink: Move AC_LIBOBJ invocations to module description.
34076         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
34077         here...
34078         * modules/symlink (configure.ac): ... to here.
34080 2011-05-22  Bruno Haible  <bruno@clisp.org>
34082         strverscmp: Move AC_LIBOBJ invocations to module description.
34083         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
34084         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
34085         from here...
34086         * modules/strverscmp (configure.ac): ... to here.
34088 2011-05-22  Bruno Haible  <bruno@clisp.org>
34090         strtok_r: Move AC_LIBOBJ invocations to module description.
34091         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
34092         and gl_PREREQ_STRTOK_R invocations from here...
34093         * modules/strtok_r (configure.ac): ... to here.
34094         (Depends-on): Update conditions.
34096 2011-05-22  Bruno Haible  <bruno@clisp.org>
34098         strtoumax: Move AC_LIBOBJ invocations to module description.
34099         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
34100         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
34101         from here...
34102         * modules/strtoumax (configure.ac): ... to here.
34104 2011-05-22  Bruno Haible  <bruno@clisp.org>
34106         strtoimax: Move AC_LIBOBJ invocations to module description.
34107         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
34108         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
34109         from here...
34110         * modules/strtoimax (configure.ac): ... to here.
34112 2011-05-22  Bruno Haible  <bruno@clisp.org>
34114         strtoull: Move AC_LIBOBJ invocations to module description.
34115         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
34116         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
34117         from here...
34118         * modules/strtoull (configure.ac): ... to here.
34120 2011-05-22  Bruno Haible  <bruno@clisp.org>
34122         strtoll: Move AC_LIBOBJ invocations to module description.
34123         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
34124         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
34125         here...
34126         * modules/strtoll (configure.ac): ... to here.
34128 2011-05-22  Bruno Haible  <bruno@clisp.org>
34130         strtoul: Move AC_LIBOBJ invocations to module description.
34131         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
34132         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
34133         * modules/strtoul (configure.ac): ... to here.
34135 2011-05-22  Bruno Haible  <bruno@clisp.org>
34137         strtol: Move AC_LIBOBJ invocations to module description.
34138         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
34139         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
34140         * modules/strtol (configure.ac): ... to here.
34142 2011-05-22  Bruno Haible  <bruno@clisp.org>
34144         strtod: Move AC_LIBOBJ invocations to module description.
34145         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
34146         invocations from here...
34147         * modules/strtod (configure.ac): ... to here.
34149 2011-05-22  Bruno Haible  <bruno@clisp.org>
34151         strstr*: Move AC_LIBOBJ invocations to module description.
34152         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
34153         invocations from here...
34154         * modules/strstr-simple (configure.ac): ... to here.
34155         * modules/strstr (configure.ac): ... and here.
34157 2011-05-22  Bruno Haible  <bruno@clisp.org>
34159         strsignal: Move AC_LIBOBJ invocations to module description.
34160         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
34161         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
34162         * modules/strsignal (configure.ac): ... to here.
34163         (Depends-on): Update conditions.
34165 2011-05-22  Bruno Haible  <bruno@clisp.org>
34167         strsep: Move AC_LIBOBJ invocations to module description.
34168         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
34169         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
34170         here...
34171         * modules/strsep (configure.ac): ... to here.
34173 2011-05-22  Bruno Haible  <bruno@clisp.org>
34175         strptime: Move AC_LIBOBJ invocations to module description.
34176         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
34177         gl_PREREQ_STRPTIME invocations from here...
34178         * modules/strptime (configure.ac): ... to here.
34180 2011-05-22  Bruno Haible  <bruno@clisp.org>
34182         strpbrk: Move AC_LIBOBJ invocations to module description.
34183         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
34184         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
34185         here...
34186         * modules/strpbrk (configure.ac): ... to here.
34188 2011-05-22  Bruno Haible  <bruno@clisp.org>
34190         strnlen: Move AC_LIBOBJ invocations to module description.
34191         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
34192         invocations from here...
34193         * modules/strnlen (configure.ac): ... to here.
34195 2011-05-22  Bruno Haible  <bruno@clisp.org>
34197         strndup: Move AC_LIBOBJ invocations to module description.
34198         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
34199         invocations from here...
34200         * modules/strndup (configure.ac): ... to here.
34201         (Depends-on): Update conditions.
34203 2011-05-22  Bruno Haible  <bruno@clisp.org>
34205         strncat: Move AC_LIBOBJ invocations to module description.
34206         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
34207         invocations from here...
34208         * modules/strncat (configure.ac): ... to here.
34210 2011-05-22  Bruno Haible  <bruno@clisp.org>
34212         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
34213         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
34214         invocations from here...
34215         * modules/strdup (configure.ac): ... to here.
34216         * modules/strdup-posix (configure.ac): ... and here.
34218 2011-05-22  Bruno Haible  <bruno@clisp.org>
34220         strcspn: Move AC_LIBOBJ invocations to module description.
34221         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
34222         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
34223         here...
34224         * modules/strcspn (configure.ac): ... to here.
34226 2011-05-22  Bruno Haible  <bruno@clisp.org>
34228         strchrnul: Move AC_LIBOBJ invocations to module description.
34229         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
34230         gl_PREREQ_STRCHRNUL invocations from here...
34231         * modules/strchrnul (configure.ac): ... to here.
34233 2011-05-22  Bruno Haible  <bruno@clisp.org>
34235         strcasestr*: Move AC_LIBOBJ invocations to module description.
34236         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
34237         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
34238         * modules/strcasestr-simple (configure.ac): ... to here.
34239         * modules/strcasestr (configure.ac): ... and here.
34241 2011-05-22  Bruno Haible  <bruno@clisp.org>
34243         strcase: Move AC_LIBOBJ invocations to module description.
34244         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
34245         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
34246         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
34247         gl_PREREQ_STRNCASECMP invocations from here...
34248         * modules/strcase (configure.ac): ... to here.
34250 2011-05-22  Bruno Haible  <bruno@clisp.org>
34252         stpncpy: Move AC_LIBOBJ invocations to module description.
34253         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
34254         here...
34255         * modules/stpncpy (configure.ac): ... to here.
34257 2011-05-22  Bruno Haible  <bruno@clisp.org>
34259         stpcpy: Move AC_LIBOBJ invocations to module description.
34260         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
34261         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
34262         here...
34263         * modules/stpcpy (configure.ac): ... to here.
34265 2011-05-21  Bruno Haible  <bruno@clisp.org>
34267         stat: Move AC_LIBOBJ invocations to module description.
34268         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
34269         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
34270         here...
34271         * modules/stat (configure.ac): ... to here.
34273 2011-05-21  Bruno Haible  <bruno@clisp.org>
34275         sleep: Move AC_LIBOBJ invocations to module description.
34276         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
34277         * modules/sleep (configure.ac): ... to here.
34279 2011-05-21  Bruno Haible  <bruno@clisp.org>
34281         signbit: Move AC_LIBOBJ invocations to module description.
34282         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
34283         * modules/signbit (configure.ac): ... to here.
34285 2011-05-21  Bruno Haible  <bruno@clisp.org>
34287         sigprocmask: Move AC_LIBOBJ invocations to module description.
34288         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
34289         gl_PREREQ_SIGPROMASK invocations from here...
34290         * modules/sigprocmask (configure.ac): ... to here.
34292 2011-05-21  Bruno Haible  <bruno@clisp.org>
34294         sigaction: Move AC_LIBOBJ invocations to module description.
34295         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
34296         gl_PREREQ_SIGACTION invocations from here...
34297         * modules/sigaction (configure.ac): ... to here.
34299 2011-05-21  Bruno Haible  <bruno@clisp.org>
34301         sig2str: Move AC_LIBOBJ invocations to module description.
34302         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
34303         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
34304         here...
34305         * modules/sig2str (configure.ac): ... to here.
34307 2011-05-21  Bruno Haible  <bruno@clisp.org>
34309         setlocale: Move AC_LIBOBJ invocations to module description.
34310         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
34311         gl_PREREQ_SETLOCALE invocations from here...
34312         * modules/setlocale (configure.ac): ... to here.
34314 2011-05-21  Bruno Haible  <bruno@clisp.org>
34316         unsetenv: Move AC_LIBOBJ invocations to module description.
34317         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
34318         and gl_PREREQ_UNSETENV invocations from here...
34319         * modules/unsetenv (configure.ac): ... to here.
34320         (Depends-on): Update.
34322 2011-05-21  Bruno Haible  <bruno@clisp.org>
34324         setenv: Move AC_LIBOBJ invocations to module description.
34325         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
34326         here...
34327         * modules/setenv (configure.ac): ... to here.
34329 2011-05-21  Bruno Haible  <bruno@clisp.org>
34331         selinux-h: Move AC_LIBOBJ invocations to module description.
34332         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
34333         AC_LIBOBJ invocation from here...
34334         * modules/selinux-h (configure.ac): ... to here.
34336 2011-05-21  Bruno Haible  <bruno@clisp.org>
34338         select: Respect rules for use of AC_LIBOBJ.
34339         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
34340         here...
34341         * modules/select (configure.ac): ... to here.
34343 2011-05-21  Bruno Haible  <bruno@clisp.org>
34345         scandir: Move AC_LIBOBJ invocations to module description.
34346         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
34347         invocations from here...
34348         * modules/scandir (configure.ac): ... to here.
34350 2011-05-21  Bruno Haible  <bruno@clisp.org>
34352         rpmatch: Move AC_LIBOBJ invocations to module description.
34353         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
34354         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
34355         here...
34356         * modules/rpmatch (configure.ac): ... to here.
34358 2011-05-21  Bruno Haible  <bruno@clisp.org>
34360         rmdir: Respect rules for use of AC_LIBOBJ.
34361         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
34362         * modules/rmdir (configure.ac): ... to here.
34364 2011-05-21  Bruno Haible  <bruno@clisp.org>
34366         renameat: Move AC_LIBOBJ invocations to module description.
34367         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
34368         here...
34369         * modules/renameat (configure.ac): ... to here.
34371 2011-05-21  Bruno Haible  <bruno@clisp.org>
34373         rename: Respect rules for use of AC_LIBOBJ.
34374         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
34375         here...
34376         * modules/rename (configure.ac): ... to here.
34378 2011-05-21  Bruno Haible  <bruno@clisp.org>
34380         remove: Move AC_LIBOBJ invocations to module description.
34381         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
34382         here...
34383         * modules/remove (configure.ac): ... to here.
34385 2011-05-21  Bruno Haible  <bruno@clisp.org>
34387         relocatable-lib: Move AC_LIBOBJ invocations to module description.
34388         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
34389         macro.
34390         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
34391         * modules/relocatable-lib (configure.ac): ... to here.
34392         * modules/relocatable-prog-wrapper (configure.ac): Invoke
34393         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
34395 2011-05-21  Bruno Haible  <bruno@clisp.org>
34397         relocatable-prog: Move AC_LIBOBJ invocations to module description.
34398         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
34399         here...
34400         * modules/relocatable-prog (configure.ac): ... to here.
34402 2011-05-21  Bruno Haible  <bruno@clisp.org>
34404         regex: Move AC_LIBOBJ invocations to module description.
34405         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
34406         invocations from here...
34407         * modules/regex (configure.ac): ... to here.
34409 2011-05-21  Bruno Haible  <bruno@clisp.org>
34411         realloc-*: Move AC_LIBOBJ invocations to module description.
34412         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
34413         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
34414         AC_LIBOBJ invocations from here...
34415         * modules/realloc-gnu (configure.ac): ... to here.
34416         * modules/realloc-posix (configure.ac): ... and here.
34418 2011-05-21  Bruno Haible  <bruno@clisp.org>
34420         readutmp: Move AC_LIBOBJ invocations to module description.
34421         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
34422         * modules/readutmp (configure.ac): ... to here.
34424 2011-05-21  Bruno Haible  <bruno@clisp.org>
34426         readlinkat: Move AC_LIBOBJ invocations to module description.
34427         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
34428         here...
34429         * modules/readlinkat (configure.ac): ... to here.
34431 2011-05-21  Bruno Haible  <bruno@clisp.org>
34433         readlink: Move AC_LIBOBJ invocations to module description.
34434         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
34435         gl_PREREQ_READLINK invocations from here...
34436         * modules/readlink (configure.ac): ... to here.
34438 2011-05-21  Bruno Haible  <bruno@clisp.org>
34440         readline: Move AC_LIBOBJ invocations to module description.
34441         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
34442         gl_PREREQ_READLINE invocations from here...
34443         * modules/readline (configure.ac): ... to here.
34445 2011-05-21  Bruno Haible  <bruno@clisp.org>
34447         read: Move AC_LIBOBJ invocations to module description.
34448         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
34449         * modules/read (configure.ac): ... to here.
34451 2011-05-21  Bruno Haible  <bruno@clisp.org>
34453         rawmemchr: Move AC_LIBOBJ invocations to module description.
34454         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
34455         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
34456         from here...
34457         * modules/rawmemchr (configure.ac): ... to here.
34459 2011-05-21  Bruno Haible  <bruno@clisp.org>
34461         random_r: Move AC_LIBOBJ invocations to module description.
34462         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
34463         gl_PREREQ_RANDOM_R invocations from here...
34464         * modules/random_r (configure.ac): ... to here.
34466 2011-05-21  Bruno Haible  <bruno@clisp.org>
34468         pwrite: Move AC_LIBOBJ invocations to module description.
34469         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
34470         * modules/pwrite (configure.ac): ... to here.
34472 2011-05-21  Bruno Haible  <bruno@clisp.org>
34474         putenv: Move AC_LIBOBJ invocations to module description.
34475         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
34476         * modules/putenv (configure.ac): ... to here.
34478 2011-05-21  Bruno Haible  <bruno@clisp.org>
34480         login_tty: Move AC_LIBOBJ invocations to module description.
34481         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
34482         * modules/login_tty (configure.ac): ... to here.
34484 2011-05-21  Bruno Haible  <bruno@clisp.org>
34486         openpty: Move AC_LIBOBJ invocations to module description.
34487         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
34488         * modules/openpty (configure.ac): ... to here.
34490 2011-05-21  Bruno Haible  <bruno@clisp.org>
34492         forkpty: Move AC_LIBOBJ invocations to module description.
34493         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
34494         * modules/forkpty (configure.ac): ... to here.
34496 2011-05-21  Bruno Haible  <bruno@clisp.org>
34498         ptsname: Move AC_LIBOBJ invocations to module description.
34499         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
34500         invocations from here...
34501         * modules/ptsname (configure.ac): ... to here.
34503 2011-05-21  Bruno Haible  <bruno@clisp.org>
34505         pread: Move AC_LIBOBJ invocations to module description.
34506         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
34507         * modules/pread (configure.ac): ... to here.
34509 2011-05-21  Bruno Haible  <bruno@clisp.org>
34511         posix_spawn*: Move AC_LIBOBJ invocations to module description.
34512         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
34513         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
34514         * modules/posix_spawn (configure.ac): ... to here.
34515         * modules/posix_spawnp (configure.ac): ... and here.
34517 2011-05-21  Bruno Haible  <bruno@clisp.org>
34519         popen: Move AC_LIBOBJ invocations to module description.
34520         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
34521         invocations from here...
34522         * modules/popen (configure.ac): ... to here.
34524 2011-05-21  Bruno Haible  <bruno@clisp.org>
34526         poll: Move AC_LIBOBJ invocations to module description.
34527         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
34528         invocations from here...
34529         * modules/poll (configure.ac): ... to here.
34531 2011-05-21  Bruno Haible  <bruno@clisp.org>
34533         pipe-posix: Move AC_LIBOBJ invocations to module description.
34534         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
34535         * modules/pipe-posix (configure.ac): ... to here.
34537 2011-05-21  Bruno Haible  <bruno@clisp.org>
34539         openat: Respect rules for use of AC_LIBOBJ.
34540         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
34541         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
34542         * modules/openat (configure.ac): ... to here.
34544 2011-05-21  Bruno Haible  <bruno@clisp.org>
34546         obstack-printf*: Move AC_LIBOBJ invocations to module description.
34547         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
34548         invocation from here...
34549         * modules/obstack-printf (configure.ac): ... to here.
34550         * modules/obstack-printf-posix (configure.ac): ... and here.
34552 2011-05-21  Bruno Haible  <bruno@clisp.org>
34554         nl_langinfo: Move AC_LIBOBJ invocations to module description.
34555         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
34556         from here...
34557         * modules/nl_langinfo (configure.ac): ... to here.
34559 2011-05-21  Bruno Haible  <bruno@clisp.org>
34561         nanosleep: Move AC_LIBOBJ invocations to module description.
34562         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
34563         gl_PREREQ_NANOSLEEP invocations from here...
34564         * modules/nanosleep (configure.ac): ... to here.
34566 2011-05-21  Bruno Haible  <bruno@clisp.org>
34568         mountlist: Move AC_LIBOBJ invocations to module description.
34569         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
34570         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
34571         * modules/mountlist (configure.ac): ... to here.
34573 2011-05-21  Bruno Haible  <bruno@clisp.org>
34575         mktime: Respect rules for use of AC_LIBOBJ.
34576         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
34577         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
34578         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
34579         (gl_FUNC_MKTIME_INTERNAL): ... and here...
34580         * modules/mktime (configure.ac): ... to here.
34581         * modules/mktime-internal (configure.ac): ... and here.
34582         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
34584 2011-05-21  Bruno Haible  <bruno@clisp.org>
34586         mkstemps: Move AC_LIBOBJ invocations to module description.
34587         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
34588         here...
34589         * modules/mkstemps (configure.ac): ... to here.
34591 2011-05-21  Bruno Haible  <bruno@clisp.org>
34593         mkstemp: Move AC_LIBOBJ invocations to module description.
34594         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
34595         gl_PREREQ_MKSTEMP invocations from here...
34596         * modules/mkstemp (configure.ac): ... to here.
34598 2011-05-21  Bruno Haible  <bruno@clisp.org>
34600         mkostemps: Move AC_LIBOBJ invocations to module description.
34601         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
34602         here...
34603         * modules/mkostemps (configure.ac): ... to here.
34605 2011-05-21  Bruno Haible  <bruno@clisp.org>
34607         mkostemp: Move AC_LIBOBJ invocations to module description.
34608         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
34609         gl_PREREQ_MKOSTEMP invocations from here...
34610         * modules/mkostemp (configure.ac): ... to here.
34612 2011-05-21  Bruno Haible  <bruno@clisp.org>
34614         mknod: Move AC_LIBOBJ invocations to module description.
34615         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
34616         * modules/mknod (configure.ac): ... to here.
34618 2011-05-21  Bruno Haible  <bruno@clisp.org>
34620         mkfifoat: Move AC_LIBOBJ invocations to module description.
34621         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
34622         here...
34623         * modules/mkfifoat (configure.ac): ... to here.
34625 2011-05-21  Bruno Haible  <bruno@clisp.org>
34627         mkfifo: Respect rules for use of AC_LIBOBJ.
34628         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
34629         here...
34630         * modules/mkfifo (configure.ac): ... to here.
34632 2011-05-21  Bruno Haible  <bruno@clisp.org>
34634         mkdtemp: Move AC_LIBOBJ invocations to module description.
34635         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
34636         invocations from here...
34637         * modules/mkdtemp (configure.ac): ... to here.
34639 2011-05-21  Bruno Haible  <bruno@clisp.org>
34641         mkdir: Move AC_LIBOBJ invocations to module description.
34642         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
34643         * modules/mkdir (configure.ac): ... to here.
34645 2011-05-21  Bruno Haible  <bruno@clisp.org>
34647         memset: Move AC_LIBOBJ invocations to module description.
34648         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
34649         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
34650         here...
34651         * modules/memset (configure.ac): ... to here.
34653 2011-05-21  Bruno Haible  <bruno@clisp.org>
34655         memrchr: Move AC_LIBOBJ invocations to module description.
34656         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
34657         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
34658         here...
34659         * modules/memrchr (configure.ac): ... to here.
34661 2011-05-21  Bruno Haible  <bruno@clisp.org>
34663         mempcpy: Move AC_LIBOBJ invocations to module description.
34664         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
34665         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
34666         here...
34667         * modules/mempcpy (configure.ac): ... to here.
34669 2011-05-21  Bruno Haible  <bruno@clisp.org>
34671         memmove: Move AC_LIBOBJ invocations to module description.
34672         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
34673         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
34674         here...
34675         * modules/memmove (configure.ac): ... to here.
34677 2011-05-21  Bruno Haible  <bruno@clisp.org>
34679         memmem*: Move AC_LIBOBJ invocations to module description.
34680         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
34681         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
34682         here...
34683         (gl_FUNC_MEMMEM): ... and here...
34684         * modules/memmem-simple (configure.ac): ... to here.
34685         * modules/memmem (configure.ac): ... and here.
34687 2011-05-21  Bruno Haible  <bruno@clisp.org>
34689         memcpy: Move AC_LIBOBJ invocations to module description.
34690         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
34691         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
34692         here...
34693         * modules/memcpy (configure.ac): ... to here.
34695 2011-05-21  Bruno Haible  <bruno@clisp.org>
34697         memcmp: Simplify autoconf macro.
34698         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
34699         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
34700         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
34702 2011-05-21  Bruno Haible  <bruno@clisp.org>
34704         memcmp: Move AC_LIBOBJ invocations to module description.
34705         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
34706         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
34707         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
34708         * modules/memcmp (configure.ac): ... to here.
34709         (Depends-on): Update conditions.
34711 2011-05-21  Bruno Haible  <bruno@clisp.org>
34713         memchr: Respect rules for use of AC_LIBOBJ.
34714         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
34715         invocations from here...
34716         * modules/memchr (configure.ac): ... to here.
34718 2011-05-21  Bruno Haible  <bruno@clisp.org>
34720         mbtowc: Move AC_LIBOBJ invocations to module description.
34721         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
34722         invocations from here...
34723         * modules/mbtowc (configure.ac): ... to here.
34725 2011-05-21  Bruno Haible  <bruno@clisp.org>
34727         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
34728         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
34729         gl_PREREQ_MBSRTOWCS invocations from here...
34730         * modules/mbsrtowcs (configure.ac): ... to here.
34732 2011-05-21  Bruno Haible  <bruno@clisp.org>
34734         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
34735         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
34736         gl_PREREQ_MBSNRTOWCS invocations from here...
34737         * modules/mbsnrtowcs (configure.ac): ... to here.
34739 2011-05-21  Bruno Haible  <bruno@clisp.org>
34741         mbsinit: Move AC_LIBOBJ invocations to module description.
34742         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
34743         invocations from here...
34744         * modules/mbsinit (configure.ac): ... to here.
34746 2011-05-21  Bruno Haible  <bruno@clisp.org>
34748         mbrlen: Move AC_LIBOBJ invocations to module description.
34749         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
34750         invocations from here...
34751         * modules/mbrlen (configure.ac): ... to here.
34753 2011-05-21  Bruno Haible  <bruno@clisp.org>
34755         mbrtowc: Respect rules for use of AC_LIBOBJ.
34756         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
34757         invocations from here...
34758         * modules/mbrtowc (configure.ac): ... to here.
34760 2011-05-21  Bruno Haible  <bruno@clisp.org>
34762         malloc-*: Move AC_LIBOBJ invocations to module description.
34763         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
34764         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
34765         AC_LIBOBJ invocations from here...
34766         * modules/malloc-gnu (configure.ac): ... to here.
34767         * modules/malloc-posix (configure.ac): ... and here.
34769 2011-05-21  Bruno Haible  <bruno@clisp.org>
34771         lstat, openat: Respect rules for use of AC_LIBOBJ.
34772         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
34773         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
34774         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
34775         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
34776         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
34777         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
34778         here.
34779         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
34781 2011-05-21  Bruno Haible  <bruno@clisp.org>
34783         lseek: Move AC_LIBOBJ invocations to module description.
34784         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
34785         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
34786         * modules/lseek (configure.ac): ... to here.
34788 2011-05-21  Bruno Haible  <bruno@clisp.org>
34790         linkat: Move AC_LIBOBJ invocations to module description.
34791         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
34792         here...
34793         * modules/linkat (configure.ac): ... to here.
34795 2011-05-21  Bruno Haible  <bruno@clisp.org>
34797         link: Respect rules for use of AC_LIBOBJ.
34798         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
34799         * modules/link (configure.ac): ... to here.
34801 2011-05-21  Bruno Haible  <bruno@clisp.org>
34803         lchown: Move AC_LIBOBJ invocations to module description.
34804         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
34805         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
34806         * modules/lchown (configure.ac): ... to here.
34808 2011-05-21  Bruno Haible  <bruno@clisp.org>
34810         iswctype: Move AC_LIBOBJ invocations to module description.
34811         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
34812         here...
34813         * modules/iswctype (configure.ac): ... to here.
34815 2011-05-21  Bruno Haible  <bruno@clisp.org>
34817         iswblank: Move AC_LIBOBJ invocations to module description.
34818         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
34819         here...
34820         * modules/iswblank (configure.ac): ... to here.
34822 2011-05-21  Bruno Haible  <bruno@clisp.org>
34824         atanl: Move AC_LIBOBJ invocations to module description.
34825         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
34826         * modules/atanl (configure.ac): ... to here.
34828 2011-05-21  Bruno Haible  <bruno@clisp.org>
34830         acosl: Move AC_LIBOBJ invocations to module description.
34831         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
34832         * modules/acosl (configure.ac): ... to here.
34834 2011-05-21  Bruno Haible  <bruno@clisp.org>
34836         asinl: Respect rules for use of AC_LIBOBJ.
34837         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
34838         * modules/asinl (configure.ac): ... to here.
34840 2011-05-21  Bruno Haible  <bruno@clisp.org>
34842         tanl: Move AC_LIBOBJ invocations to module description.
34843         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
34844         * modules/tanl (configure.ac): ... to here.
34846 2011-05-21  Bruno Haible  <bruno@clisp.org>
34848         cosl: Move AC_LIBOBJ invocations to module description.
34849         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
34850         * modules/cosl (configure.ac): ... to here.
34852 2011-05-21  Bruno Haible  <bruno@clisp.org>
34854         sinl: Move AC_LIBOBJ invocations to module description.
34855         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
34856         * modules/sinl (configure.ac): ... to here.
34858 2011-05-21  Bruno Haible  <bruno@clisp.org>
34860         logl: Move AC_LIBOBJ invocations to module description.
34861         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
34862         * modules/logl (configure.ac): ... to here.
34864 2011-05-21  Bruno Haible  <bruno@clisp.org>
34866         expl: Move AC_LIBOBJ invocations to module description.
34867         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
34868         * modules/expl (configure.ac): ... to here.
34870 2011-05-21  Bruno Haible  <bruno@clisp.org>
34872         roundl: Move AC_LIBOBJ invocations to module description.
34873         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
34874         * modules/roundl (configure.ac): ... to here.
34876 2011-05-21  Bruno Haible  <bruno@clisp.org>
34878         round: Move AC_LIBOBJ invocations to module description.
34879         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
34880         * modules/round (configure.ac): ... to here.
34882 2011-05-21  Bruno Haible  <bruno@clisp.org>
34884         roundf: Move AC_LIBOBJ invocations to module description.
34885         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
34886         * modules/roundf (configure.ac): ... to here.
34888 2011-05-21  Bruno Haible  <bruno@clisp.org>
34890         truncl: Move AC_LIBOBJ invocations to module description.
34891         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
34892         * modules/truncl (configure.ac): ... to here.
34894 2011-05-21  Bruno Haible  <bruno@clisp.org>
34896         trunc: Move AC_LIBOBJ invocations to module description.
34897         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
34898         * modules/trunc (configure.ac): ... to here.
34900 2011-05-21  Bruno Haible  <bruno@clisp.org>
34902         truncf: Move AC_LIBOBJ invocations to module description.
34903         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
34904         * modules/truncf (configure.ac): ... to here.
34906 2011-05-21  Bruno Haible  <bruno@clisp.org>
34908         ceill: Move AC_LIBOBJ invocations to module description.
34909         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
34910         * modules/ceill (configure.ac): ... to here.
34912 2011-05-21  Bruno Haible  <bruno@clisp.org>
34914         ceil: Move AC_LIBOBJ invocations to module description.
34915         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
34916         * modules/ceil (configure.ac): ... to here.
34918 2011-05-21  Bruno Haible  <bruno@clisp.org>
34920         ceilf: Move AC_LIBOBJ invocations to module description.
34921         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
34922         * modules/ceilf (configure.ac): ... to here.
34924 2011-05-21  Bruno Haible  <bruno@clisp.org>
34926         floorl: Respect rules for use of AC_LIBOBJ.
34927         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
34928         * modules/floorl (configure.ac): ... to here.
34930 2011-05-21  Bruno Haible  <bruno@clisp.org>
34932         floor: Respect rules for use of AC_LIBOBJ.
34933         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
34934         * modules/floor (configure.ac): ... to here.
34936 2011-05-21  Bruno Haible  <bruno@clisp.org>
34938         floorf: Move AC_LIBOBJ invocations to module description.
34939         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
34940         * modules/floorf (configure.ac): ... to here.
34942 2011-05-20  Bruno Haible  <bruno@clisp.org>
34944         sqrtl: Respect rules for use of AC_LIBOBJ.
34945         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
34946         * modules/sqrtl (configure.ac): ... to here.
34948 2011-05-20  Bruno Haible  <bruno@clisp.org>
34950         ldexpl: Respect rules for use of AC_LIBOBJ.
34951         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
34952         * modules/ldexpl (configure.ac): ... to here.
34954 2011-05-20  Bruno Haible  <bruno@clisp.org>
34956         frexpl*: Respect rules for use of AC_LIBOBJ.
34957         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
34958         invocation from here...
34959         * modules/frexpl (configure.ac): ... to here.
34960         * modules/frexpl-nolibm (configure.ac): ... and here.
34962 2011-05-20  Bruno Haible  <bruno@clisp.org>
34964         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
34965         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
34966         invocation from here...
34967         * modules/frexp (configure.ac): ... to here.
34968         * modules/frexp-nolibm (configure.ac): ... and here.
34970 2011-05-20  Bruno Haible  <bruno@clisp.org>
34972         isnan: Respect rules for use of AC_LIBOBJ.
34973         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
34974         invocations here.
34975         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
34976         REPLACE_ISNAN.
34977         * modules/isnand (configure.ac): Likewise.
34978         * modules/isnanl (configure.ac): Likewise.
34980 2011-05-20  Bruno Haible  <bruno@clisp.org>
34982         isnanl*: Respect rules for use of AC_LIBOBJ.
34983         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
34984         invocation from here...
34985         * modules/isnanl (configure.ac): ... to here.
34986         * modules/isnanl-nolibm (configure.ac): ... and here.
34988 2011-05-20  Bruno Haible  <bruno@clisp.org>
34990         isnand*: Move AC_LIBOBJ invocations to module description.
34991         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
34992         invocation from here...
34993         * modules/isnand (configure.ac): ... to here.
34994         * modules/isnand-nolibm (configure.ac): ... and here.
34996 2011-05-20  Bruno Haible  <bruno@clisp.org>
34998         isnanf*: Move AC_LIBOBJ invocations to module description.
34999         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
35000         invocation from here...
35001         * modules/isnanf (configure.ac): ... to here.
35002         * modules/isnanf-nolibm (configure.ac): ... and here.
35004 2011-05-20  Bruno Haible  <bruno@clisp.org>
35006         isnan*: Separate the AC_LIBOBJ invocations.
35007         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
35008         AC_LIBOBJ invocation.
35009         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
35010         here.
35011         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
35012         AC_LIBOBJ invocation.
35013         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
35014         here.
35015         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
35016         AC_LIBOBJ invocation.
35017         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
35018         here.
35019         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
35021 2011-05-08  Bruno Haible  <bruno@clisp.org>
35023         isinf: Move AC_LIBOBJ invocations to module description.
35024         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
35025         * modules/isinf (configure.ac): ... to here.
35027 2011-05-08  Bruno Haible  <bruno@clisp.org>
35029         isfinite: Move AC_LIBOBJ invocations to module description.
35030         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
35031         * modules/isfinite (configure.ac): ... to here.
35033 2011-05-08  Bruno Haible  <bruno@clisp.org>
35035         isblank: Move AC_LIBOBJ invocations to module description.
35036         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
35037         here...
35038         * modules/isblank (configure.ac): ... to here.
35040 2011-05-08  Bruno Haible  <bruno@clisp.org>
35042         isapipe: Move AC_LIBOBJ invocations to module description.
35043         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
35044         gl_PREREQ_ISAPIPE invocations from here...
35045         * modules/isapipe (configure.ac): ... to here.
35046         (Depends-on): Update condition.
35048 2011-05-08  Bruno Haible  <bruno@clisp.org>
35050         ioctl: Move AC_LIBOBJ invocations to module description.
35051         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
35052         invocations from here...
35053         * modules/ioctl (configure.ac): ... to here.
35054         (Depends-on): Update condition.
35056 2011-05-08  Bruno Haible  <bruno@clisp.org>
35058         imaxdiv: Move AC_LIBOBJ invocations to module description.
35059         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
35060         invocations from here...
35061         * modules/imaxdiv (configure.ac): ... to here.
35063 2011-05-08  Bruno Haible  <bruno@clisp.org>
35065         imaxabs: Move AC_LIBOBJ invocations to module description.
35066         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
35067         invocations from here...
35068         * modules/imaxabs (configure.ac): ... to here.
35070 2011-05-08  Bruno Haible  <bruno@clisp.org>
35072         getaddrinfo: Move AC_LIBOBJ invocations to module description.
35073         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
35074         AC_LIBOBJ invocations from here...
35075         * modules/getaddrinfo (configure.ac): ... to here.
35076         (Depends-on): Add conditions.
35078 2011-05-08  Bruno Haible  <bruno@clisp.org>
35080         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
35081         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
35082         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
35083         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
35084         (gl_PREREQ_INET_PTON): ... from here.
35085         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
35086         gl_PREREQ_INET_PTON here.
35087         (Depends-on): Update condition.
35089 2011-05-08  Bruno Haible  <bruno@clisp.org>
35091         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
35092         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
35093         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
35094         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
35095         (gl_PREREQ_INET_NTOP): ... from here.
35096         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
35097         gl_PREREQ_INET_NTOP here.
35098         (Depends-on): Update condition.
35100 2011-05-08  Bruno Haible  <bruno@clisp.org>
35102         iconv_open: Move AC_LIBOBJ invocations to module description.
35103         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
35104         AC_LIBOBJ invocations from here...
35105         * modules/iconv_open (configure.ac): ... to here.
35107 2011-05-08  Bruno Haible  <bruno@clisp.org>
35109         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
35110         If module 'iconv_open' is among the main modules and module
35111         'iconv_open-utf' is among the tests dependencies, then
35112         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
35113         return the special iconv_t values. Therefore iconv() and iconv_close()
35114         must support these special iconv_t values, already in lib, not only in
35115         tests.
35116         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
35117         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
35118         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
35119         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
35120         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
35121         (Depends-on): Add the dependencies of iconv_open-utf.
35122         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
35123         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
35124         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
35126 2011-05-08  Bruno Haible  <bruno@clisp.org>
35128         group-member: Move AC_LIBOBJ invocations to module description.
35129         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
35130         gl_PREREQ_GROUP_MEMBER invocations from here...
35131         * modules/group-member (configure.ac): ... to here.
35133 2011-05-08  Bruno Haible  <bruno@clisp.org>
35135         grantpt: Move AC_LIBOBJ invocations to module description.
35136         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
35137         invocations from here...
35138         * modules/grantpt (configure.ac): ... to here.
35140 2011-05-08  Bruno Haible  <bruno@clisp.org>
35142         glob: Move AC_LIBOBJ invocations to module description.
35143         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
35144         from here...
35145         * modules/glob (configure.ac): ... to here.
35147 2011-05-08  Bruno Haible  <bruno@clisp.org>
35149         getusershell: Move AC_LIBOBJ invocations to module description.
35150         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
35151         Move AC_LIBOBJ invocation from here...
35152         * modules/getusershell (configure.ac): ... to here.
35153         (Depends-on): Update condition.
35155 2011-05-08  Bruno Haible  <bruno@clisp.org>
35157         gettimeofday: Move AC_LIBOBJ invocations to module description.
35158         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
35159         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
35160         gl_PREREQ_GETTIMEOFDAY invocations from here...
35161         * modules/gettimeofday (configure.ac): ... to here.
35163 2011-05-08  Bruno Haible  <bruno@clisp.org>
35165         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
35166         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
35167         just gl_FUNC_TZSET.
35168         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
35169         (gl_FUNC_TZSET_CLOBBER): Remove actions.
35170         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
35171         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
35173 2011-05-08  Bruno Haible  <bruno@clisp.org>
35175         getsubopt: Move AC_LIBOBJ invocations to module description.
35176         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
35177         gl_PREREQ_GETSUBOPT invocations from here...
35178         * modules/getsubopt (configure.ac): ... to here.
35180 2011-05-08  Bruno Haible  <bruno@clisp.org>
35182         getpass-gnu: Move AC_LIBOBJ invocations to module description.
35183         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
35184         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
35185         * modules/getpass-gnu (configure.ac): ... to here.
35187 2011-05-08  Bruno Haible  <bruno@clisp.org>
35189         getpass: Move AC_LIBOBJ invocations to module description.
35190         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
35191         gl_PREREQ_GETPASS invocations from here...
35192         * modules/getpass (configure.ac): ... to here.
35194 2011-05-08  Bruno Haible  <bruno@clisp.org>
35196         getpagesize: Move AC_LIBOBJ invocations to module description.
35197         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
35198         from here...
35199         * modules/getpagesize (configure.ac): ... to here.
35201 2011-05-08  Bruno Haible  <bruno@clisp.org>
35203         getopt: Move AC_LIBOBJ invocations to module description.
35204         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
35205         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
35206         invocations from here...
35207         * modules/getopt-gnu (configure.ac): ... to here.
35208         * modules/getopt-posix (configure.ac): ... and here.
35209         (Depends-on): Update condition.
35211 2011-05-08  Bruno Haible  <bruno@clisp.org>
35213         getopt, argp: Respect rules for use of AC_LIBOBJ.
35214         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
35215         (gl_REPLACE_GETOPT_ALWAYS): New macro.
35216         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
35217         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
35219 2011-05-08  Bruno Haible  <bruno@clisp.org>
35221         getlogin_r: Move AC_LIBOBJ invocations to module description.
35222         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
35223         gl_PREREQ_GETLOGIN_R invocations from here...
35224         * modules/getlogin_r (configure.ac): ... to here.
35226 2011-05-08  Bruno Haible  <bruno@clisp.org>
35228         getlogin: Move AC_LIBOBJ invocations to module description.
35229         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
35230         here...
35231         * modules/getlogin (configure.ac): ... to here.
35233 2011-05-08  Bruno Haible  <bruno@clisp.org>
35235         getloadavg: Move AC_LIBOBJ invocations to module description.
35236         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
35237         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
35238         * modules/getloadavg (configure.ac): ... to here.
35240 2011-05-08  Bruno Haible  <bruno@clisp.org>
35242         gethrxtime: Move AC_LIBOBJ invocations to module description.
35243         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
35244         LIB_GETHRXTIME from here...
35245         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
35246         invocations from here...
35247         * modules/gethrxtime (configure.ac): ... to here.
35249 2011-05-08  Bruno Haible  <bruno@clisp.org>
35251         gethostname: Move AC_LIBOBJ invocations to module description.
35252         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
35253         gl_PREREQ_GETHOSTNAME invocations from here...
35254         * modules/gethostname (configure.ac): ... to here.
35256 2011-05-08  Bruno Haible  <bruno@clisp.org>
35258         getgroups: Move AC_LIBOBJ invocations to module description.
35259         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
35260         here...
35261         * modules/getgroups (configure.ac): ... to here.
35263 2011-05-08  Bruno Haible  <bruno@clisp.org>
35265         getdtablesize: Move AC_LIBOBJ invocations to module description.
35266         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
35267         invocation from here...
35268         * modules/getdtablesize (configure.ac): ... to here.
35270 2011-05-08  Bruno Haible  <bruno@clisp.org>
35272         getdomainname: Move AC_LIBOBJ invocations to module description.
35273         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
35274         gl_PREREQ_GETDOMAINNAME invocations from here...
35275         * modules/getdomainname (configure.ac): ... to here.
35277 2011-05-08  Bruno Haible  <bruno@clisp.org>
35279         getline: Move AC_LIBOBJ invocations to module description.
35280         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
35281         invocations from here...
35282         * modules/getline (configure.ac): ... to here.
35284 2011-05-08  Bruno Haible  <bruno@clisp.org>
35286         getline: Simplify.
35287         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
35288         It's already handled through the module dependency.
35290 2011-05-08  Bruno Haible  <bruno@clisp.org>
35292         getdelim: Move AC_LIBOBJ invocations to module description.
35293         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
35294         and gl_PREREQ_GETDELIM invocations from here...
35295         * modules/getdelim (configure.ac): ... to here.
35296         (Depends-on): Fix condition.
35298 2011-05-08  Bruno Haible  <bruno@clisp.org>
35300         getcwd: Move AC_LIBOBJ invocations to module description.
35301         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
35302         invocations from here...
35303         * modules/getcwd (configure.ac): ... to here.
35305 2011-05-08  Bruno Haible  <bruno@clisp.org>
35307         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
35308         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
35309         here...
35310         * modules/getcwd-lgpl (configure.ac): ... to here.
35312 2011-05-07  Bruno Haible  <bruno@clisp.org>
35314         crypto/gc: Move AC_LIBOBJ invocations to module description.
35315         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
35316         * modules/crypto/gc (configure.ac): ... to here.
35318 2011-05-07  Bruno Haible  <bruno@clisp.org>
35320         fwriting: Move AC_LIBOBJ invocations to module description.
35321         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
35322         here...
35323         * modules/fwriting (configure.ac): ... to here.
35325 2011-05-07  Bruno Haible  <bruno@clisp.org>
35327         fwritable: Move AC_LIBOBJ invocations to module description.
35328         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
35329         here...
35330         * modules/fwritable (configure.ac): ... to here.
35332 2011-05-07  Bruno Haible  <bruno@clisp.org>
35334         futimens: Move AC_LIBOBJ invocations to module description.
35335         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
35336         here...
35337         * modules/futimens (configure.ac): ... to here.
35339 2011-05-07  Bruno Haible  <bruno@clisp.org>
35341         ftruncate: Move AC_LIBOBJ invocations to module description.
35342         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
35343         gl_PREREQ_FTRUNCATE invocations from here...
35344         * modules/ftruncate (configure.ac): ... to here.
35346 2011-05-07  Bruno Haible  <bruno@clisp.org>
35348         fsync: Move AC_LIBOBJ invocations to module description.
35349         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
35350         invocations from here...
35351         * modules/fsync (configure.ac): ... to here.
35353 2011-05-07  Bruno Haible  <bruno@clisp.org>
35355         fsusage: Move AC_LIBOBJ invocations to module description.
35356         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
35357         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
35358         * modules/fsusage (configure.ac): ... to here.
35360 2011-05-07  Bruno Haible  <bruno@clisp.org>
35362         freopen: Move AC_LIBOBJ invocations to module description.
35363         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
35364         invocations from here...
35365         * modules/freopen (configure.ac): ... to here.
35367 2011-05-07  Bruno Haible  <bruno@clisp.org>
35369         free: Move AC_LIBOBJ invocations to module description.
35370         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
35371         invocations from here...
35372         * modules/free (configure.ac): ... to here.
35374 2011-05-07  Bruno Haible  <bruno@clisp.org>
35376         freadable: Move AC_LIBOBJ invocations to module description.
35377         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
35378         here...
35379         * modules/freadable (configure.ac): ... to here.
35381 2011-05-07  Bruno Haible  <bruno@clisp.org>
35383         fpurge: Move AC_LIBOBJ invocations to module description.
35384         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
35385         invocations from here...
35386         * modules/fpurge (configure.ac): ... to here.
35388 2011-05-07  Bruno Haible  <bruno@clisp.org>
35390         fpending: Move AC_LIBOBJ invocations to module description.
35391         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
35392         gl_FUNC_FPENDING.
35393         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
35394         invocations from here...
35395         * modules/fpending (configure.ac): ... to here.
35397 2011-05-07  Bruno Haible  <bruno@clisp.org>
35399         fopen: Move AC_LIBOBJ invocations to module description.
35400         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
35401         invocations from here...
35402         * modules/fopen (configure.ac): ... to here.
35404 2011-05-07  Bruno Haible  <bruno@clisp.org>
35406         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
35407         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
35408         gl_FUNC_FNMATCH_POSIX.
35409         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
35410         invocations from here...
35411         * modules/fnmatch (configure.ac): ... to here.
35412         * modules/fnmatch-gnu (configure.ac): ... and here.
35414 2011-05-07  Bruno Haible  <bruno@clisp.org>
35416         flock: Move AC_LIBOBJ invocations to module description.
35417         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
35418         invocations from here...
35419         * modules/flock (configure.ac): ... to here.
35421 2011-05-07  Bruno Haible  <bruno@clisp.org>
35423         fileblocks: Move AC_LIBOBJ invocations to module description.
35424         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
35425         gl_PREREQ_FILEBLOCKS invocations from here...
35426         * modules/fileblocks (configure.ac): ... to here.
35428 2011-05-06  Bruno Haible  <bruno@clisp.org>
35430         fflush: Move AC_LIBOBJ invocations to module description.
35431         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
35432         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
35433         invocations from here...
35434         * modules/fflush (configure.ac): ... to here.
35436 2011-05-06  Bruno Haible  <bruno@clisp.org>
35438         fdopendir: Move AC_LIBOBJ invocations to module description.
35439         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
35440         here...
35441         * modules/fdopendir (configure.ac): ... to here.
35442         (Depends-on): Improve conditions.
35444 2011-05-06  Bruno Haible  <bruno@clisp.org>
35446         _Exit: Move AC_LIBOBJ invocations to module description.
35447         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
35448         invocations from here...
35449         * modules/_Exit (configure.ac): ... to here.
35451 2011-05-21  Bruno Haible  <bruno@clisp.org>
35453         euidaccess: Respect rules for use of AC_LIBOBJ.
35454         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
35455         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
35456         from here...
35457         * modules/euidaccess (configure.ac): ... to here.
35459 2011-05-06  Bruno Haible  <bruno@clisp.org>
35461         error: Move AC_LIBOBJ invocations to module description.
35462         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
35463         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
35464         invocations from here...
35465         * modules/error (configure.ac): ... to here.
35467 2011-05-06  Bruno Haible  <bruno@clisp.org>
35469         duplocale: Move AC_LIBOBJ invocations to module description.
35470         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
35471         gl_PREREQ_DUPLOCALE invocations from here...
35472         * modules/duplocale (configure.ac): ... to here.
35474 2011-05-05  Bruno Haible  <bruno@clisp.org>
35476         dirfd: Move AC_LIBOBJ invocations to module description.
35477         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
35478         gl_FUNC_DIRFD.
35479         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
35480         here...
35481         * modules/dirfd (configure.ac): ... to here.
35482         (Depends-on): Fix condition.
35484 2011-05-05  Bruno Haible  <bruno@clisp.org>
35486         chown: Respect rules for use of AC_LIBOBJ.
35487         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
35488         * modules/chown (configure.ac): ... to here.
35490 2011-05-05  Bruno Haible  <bruno@clisp.org>
35492         chdir-long: Move AC_LIBOBJ invocations to module description.
35493         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
35494         gl_PREREQ_CHDIR_LONG invocations from here...
35495         * modules/chdir-long (configure.ac): ... to here.
35497 2011-05-05  Bruno Haible  <bruno@clisp.org>
35499         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
35500         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
35501         from here...
35502         * modules/canonicalize-lgpl (configure.ac): ... to here.
35504 2011-05-05  Bruno Haible  <bruno@clisp.org>
35506         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
35507         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
35508         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
35509         REPLACE_CALLOC.
35510         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
35511         * modules/calloc-gnu (configure.ac): Likewise.
35513 2011-05-05  Bruno Haible  <bruno@clisp.org>
35515         btowc: Move AC_LIBOBJ invocations to module description.
35516         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
35517         invocations from here...
35518         * modules/btowc (configure.ac): ... to here.
35520 2011-05-21  Bruno Haible  <bruno@clisp.org>
35522         atexit: Move AC_LIBOBJ invocations to module description.
35523         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
35524         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
35525         here...
35526         * modules/atexit (configure.ac): ... to here.
35528 2011-05-05  Bruno Haible  <bruno@clisp.org>
35530         atoll: Move AC_LIBOBJ invocations to module description.
35531         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
35532         invocations from here...
35533         * modules/atoll (configure.ac): ... to here.
35535 2011-05-05  Bruno Haible  <bruno@clisp.org>
35537         argz: Move AC_LIBOBJ invocations to module description.
35538         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
35539         * modules/argz (configure.ac): ... to here.
35541 2011-05-05  Bruno Haible  <bruno@clisp.org>
35543         alphasort: Move AC_LIBOBJ invocations to module description.
35544         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
35545         gl_PREREQ_ALPHASORT invocations from here...
35546         * modules/alphasort (configure.ac): ... to here.
35548 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
35550         verify: new macro verify_expr; verify_true deprecated
35551         * NEWS: Mention this.
35552         * doc/verify.texi (Compile-time Assertions): Document this.
35553         * lib/verify.h (verify_true): Deprecate.
35554         (verify_expr): New macro.
35555         * tests/test-verify.c (function): Test verify_expr.
35557 2011-06-14  Jim Meyering  <meyering@redhat.com>
35559         init.sh: give more portable redirection-related advice in a comment
35560         * tests/init.sh (stderr_fileno_): Update the advice in comments.
35561         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
35562         for lots of discussion.  Stefano Lattarini suggested the solution
35563         of putting "9>&2" after the command.  Reported by Bruno Haible.
35565 2011-06-13  Bruno Haible  <bruno@clisp.org>
35567         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
35568         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
35569         'none'.
35571 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
35573         ftoastr: use strtof only if HAVE_STRTOF
35574         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
35575         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
35576         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
35577         * modules/ftoastr (configure.ac): Check for strtof.
35579 2011-06-13  Bruno Haible  <bruno@clisp.org>
35581         gnulib-tool: Addendum to 2011-06-08 commit.
35582         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
35583         and --witness-c-macro have been given, augment AM_CPPFLAGS.
35585 2011-06-13  Bruno Haible  <bruno@clisp.org>
35587         fseeko: Provide a non-inline replacement of fseek().
35588         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
35589         * modules/fseeko (Depends-on): Add fseek.
35590         * modules/fseek (License): Change to LGPLv2+.
35592 2011-06-13  Bruno Haible  <bruno@clisp.org>
35594         ftello: Provide a non-inline replacement of ftell().
35595         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
35596         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
35597         not have ftello() (such as on mingw).
35598         * modules/ftello (Depends-on): Add ftell.
35599         * modules/ftell (License): Change to LGPLv2+.
35601 2011-05-07  Bruno Haible  <bruno@clisp.org>
35603         ftell: Move AC_LIBOBJ invocations to module description.
35604         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
35605         * modules/ftell (configure.ac): ... to here.
35607 2011-05-07  Bruno Haible  <bruno@clisp.org>
35609         ftello: Respect rules for use of AC_LIBOBJ.
35610         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
35611         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
35612         here...
35613         * modules/ftello (configure.ac): ... to here.
35615 2011-05-07  Bruno Haible  <bruno@clisp.org>
35617         fseeko: Simplify.
35618         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
35619         (gl_FUNC_FSEEKO): Inline it here.
35621 2011-05-07  Bruno Haible  <bruno@clisp.org>
35623         fseek: Move AC_LIBOBJ invocations to module description.
35624         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
35625         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
35626         * modules/fseek (configure.ac): ... to here.
35628 2011-05-07  Bruno Haible  <bruno@clisp.org>
35630         fseek: Respect rules for use of AC_LIBOBJ.
35631         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
35632         here...
35633         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
35635 2011-05-07  Bruno Haible  <bruno@clisp.org>
35637         fseeko: Respect rules for use of AC_LIBOBJ.
35638         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
35639         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
35640         here...
35641         * modules/fseeko (configure.ac): ... to here.
35643 2011-06-13  Bruno Haible  <bruno@clisp.org>
35645         gnulib-tool: Allow comments in the 'Depends-on' section.
35646         * doc/gnulib.texi (Module description): Mention comment syntax in the
35647         Depends-on section.
35648         * gnulib-tool (func_get_dependencies): Filter out comment lines.
35650 2011-06-13  Bruno Haible  <bruno@clisp.org>
35652         file-set.h: guard __attibute__ use, now that it's not always defined
35653         * lib/file-set.h (record_file): Use __attribute__ only with compiler
35654         versions that support it.  This fixes a coreutils build failure with
35655         the vendor cc on HP-UX 11.31.
35657 2011-06-12  Bruno Haible  <bruno@clisp.org>
35659         acl: Add support for HP-UX >= 11.11 JFS ACLs.
35660         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
35661         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
35662         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
35663         (acl, aclsort): New declarations.
35664         (aclv_nontrivial): New declaration.
35665         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
35666         (file_has_acl): Read also the second kind of HP-UX ACLs.
35667         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
35668         kind of HP-UX ACLs if the first kind fails.
35669         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
35670         second kind of HP-UX ACLs.
35671         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
35672         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
35673         agree.
35674         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
35675         hpuxjfs.
35676         Handle hpuxjfs.
35677         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
35678         hpuxjfs.
35679         Handle hpuxjfs.
35680         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
35681         (func_test_same_acls): Use both lsacl and getacl.
35682         Handle hpuxjfs.
35683         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
35684         (func_test_same_acls): Use both lsacl and getacl.
35685         Handle hpuxjfs.
35687 2011-06-12  Bruno Haible  <bruno@clisp.org>
35689         acl: Complete the 2010-08-10 fix.
35690         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
35691         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
35692         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
35693         explicitly.
35694         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
35695         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
35697 2011-06-12  Bruno Haible  <bruno@clisp.org>
35699         spawn-pipe tests: Comments.
35700         * tests/test-spawn-pipe-child.c (main): Update comment.
35701         Reported by James Youngman <jay@gnu.org>.
35703 2011-06-11  James Youngman  <jay@gnu.org>
35705         New module 'stat-size'.
35706         * modules/stat-size: New module.  Provides macros for accessing
35707         file size information in instances of struct stat.  Depends on the
35708         fileblocks module because it calls st_blocks.
35709         * lib/stat-size.h: New file, adapted from coreutils' system.h.
35710         * doc/gnulib.texi: Include stat-size.texi.
35711         * doc/stat-size.texi: Documentation for this module.
35712         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
35713         * m4/fileblocks.m4: Mention that stat-size depends on the call to
35714         AC_STRUCT_ST_BLOCKS.
35716 2011-06-09  Bruno Haible  <bruno@clisp.org>
35718         thread: Support pthreads-win32.
35719         * lib/glthread/thread.h (gl_thread_self): Define differently on
35720         pthreads-win32.
35721         (gl_null_thread): New declaration.
35722         (gl_thread_self_pointer): New macro.
35723         * lib/glthread/thread.c (gl_null_thread): New constant.
35724         * tests/test-lock.c: Use gl_thread_self_pointer instead of
35725         gl_thread_self.
35726         * tests/test-tls.c: Likewise.
35727         Suggested by Paul Eggert. Reported by Eric Blake.
35729 2011-06-09  Bruno Haible  <bruno@clisp.org>
35731         thread: Fix confusion between NULL and 0.
35732         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
35733         Reported by Paul Eggert.
35735 2011-06-09  Bruno Haible  <bruno@clisp.org>
35737         spawn-pipe tests: Avoid test failure on HP-UX 11.
35738         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
35739         is closed.
35741 2011-06-09  Bruno Haible  <bruno@clisp.org>
35743         acl tests: Fix compilation error on HP-UX 11.
35744         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
35746 2011-06-09  Bruno Haible  <bruno@clisp.org>
35748         rmdir: Avoid test failure on HP-UX 10.20.
35749         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
35750         EEXIST.
35752 2011-06-08  Eric Blake  <eblake@redhat.com>
35754         perror: fix test on mingw
35755         * modules/perror-tests (Depends-on): Add dup2.
35757         strerror_r-posix: fix on MacOS
35758         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
35759         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
35760         logic bug.
35761         * lib/strerror_r.c (strerror_r): Fix the bug.
35762         * lib/strerror.c (strerror): Likewise.
35763         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
35764         problem.
35765         * doc/posix-functions/strerror.texi (strerror): Likewise.
35766         * doc/posix-functions/perror.texi (perror): Likewise.
35767         * tests/test-strerror.c (main): Enhance test.
35768         * tests/test-strerror_r.c (main): Likewise.
35770 2011-06-08  Bruno Haible  <bruno@clisp.org>
35772         gnulib-tool: Better isolation between different gnulib-tool invocations.
35773         * gnulib-tool: New option --witness-c-macro.
35774         (witness_c_macro): New variable.
35775         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
35776         AM_CPPFLAGS define it as a C macro.
35777         (func_emit_tests_Makefile_am): Likewise.
35778         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
35779         read it from there.
35780         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
35781         m4_define, not AC_DEFUN.
35782         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
35783         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
35784         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
35785         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
35786         s|...|...|, to substitute the values of the GNULIB_* module indicator
35787         variables.
35788         * modules/dirent (Makefile.am): Likewise.
35789         * modules/fcntl-h (Makefile.am): Likewise.
35790         * modules/iconv-h (Makefile.am): Likewise.
35791         * modules/langinfo (Makefile.am): Likewise.
35792         * modules/locale (Makefile.am): Likewise.
35793         * modules/math (Makefile.am): Likewise.
35794         * modules/netdb (Makefile.am): Likewise.
35795         * modules/poll-h (Makefile.am): Likewise.
35796         * modules/pty (Makefile.am): Likewise.
35797         * modules/search (Makefile.am): Likewise.
35798         * modules/signal (Makefile.am): Likewise.
35799         * modules/spawn (Makefile.am): Likewise.
35800         * modules/stdio (Makefile.am): Likewise.
35801         * modules/stdlib (Makefile.am): Likewise.
35802         * modules/string (Makefile.am): Likewise.
35803         * modules/sys_ioctl (Makefile.am): Likewise.
35804         * modules/sys_select (Makefile.am): Likewise.
35805         * modules/sys_socket (Makefile.am): Likewise.
35806         * modules/sys_stat (Makefile.am): Likewise.
35807         * modules/sys_times (Makefile.am): Likewise.
35808         * modules/sys_utsname (Makefile.am): Likewise.
35809         * modules/sys_wait (Makefile.am): Likewise.
35810         * modules/termios (Makefile.am): Likewise.
35811         * modules/time (Makefile.am): Likewise.
35812         * modules/unistd (Makefile.am): Likewise.
35813         * modules/wchar (Makefile.am): Likewise.
35815 2011-06-08  Eric Blake  <eblake@redhat.com>
35817         strerror: simplify replacement
35818         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
35819         * modules/strerror (configure.ac): No prereqs needed here...
35820         * modules/strerror-override (configure.ac): ...but this needs it.
35821         (Files): Add file for needed prereq macro.
35823 2011-06-08  Bruno Haible  <bruno@clisp.org>
35825         strerror_r-posix: Tweaks.
35826         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
35827         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
35828         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
35829         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
35830         (gl_FUNC_STRERROR_R): ... to here.
35831         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
35833 2011-06-07  Eric Blake  <eblake@redhat.com>
35835         perror: document fixed bugs
35836         * doc/posix-functions/perror.texi (perror): Document recent
35837         patches.
35839 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
35841         stat-time: get_stat_birthtime failure is better-defined
35842         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
35843         return a timestamp whose tv_sec and tv_nsec values are both -1.
35844         Previously, the spec said only that the tv_nsec value was negative.
35845         This upward-compatible change simplifies GNU tar a bit.
35847 2011-06-07  Eric Blake  <eblake@redhat.com>
35849         strerror_r-posix: work around cygwin 1.7.9
35850         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
35851         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
35852         bug without replacing strerror_r.
35853         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
35854         strerror_r is buggy, but without requiring strerror_r compilation.
35855         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
35857         test-perror: relax test to ignore cygwin bug
35858         * tests/test-perror2.c (main): Relax test on requiring detection
35859         of stream errors, and use unbuffered stream.
35860         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
35861         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
35862         * doc/posix-functions/fputc.texi (fputc): Likewise.
35863         * doc/posix-functions/fputs.texi (fputs): Likewise.
35864         * doc/posix-functions/fputws.texi (fputws): Likewise.
35865         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
35866         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
35867         * doc/posix-functions/getopt.texi (getopt): Likewise.
35868         * doc/posix-functions/perror.texi (perror): Likewise.
35869         * doc/posix-functions/printf.texi (printf): Likewise.
35870         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
35871         * doc/posix-functions/psignal.texi (psignal): Likewise.
35872         * doc/posix-functions/putc.texi (putc): Likewise.
35873         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
35874         Likewise.
35875         * doc/posix-functions/putchar.texi (putchar): Likewise.
35876         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
35877         Likewise.
35878         * doc/posix-functions/puts.texi (puts): Likewise.
35879         * doc/posix-functions/putwc.texi (putwc): Likewise.
35880         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
35881         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
35882         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35883         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
35884         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35885         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
35886         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35887         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
35889 2011-05-22  Bruno Haible  <bruno@clisp.org>
35891         strerror: Move AC_LIBOBJ invocations to module description.
35892         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
35893         gl_PREREQ_STRERROR invocations from here...
35894         * modules/strerror (configure.ac): ... to here.
35896 2011-05-21  Bruno Haible  <bruno@clisp.org>
35898         perror: Use common idiom.
35899         * modules/perror (configure.ac): Reorder statements.
35901 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
35903         tests: fix usage message in 'mktempd_'
35904         * tests/init.sh (mktempd_): In the usage message, use literal
35905         'mktempd_', not '$ME' (which is even undefined), as the name of
35906         the subroutine.
35908 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
35910         tests init: new function 'fatal_', for hard errors
35911         Before this patch, the only way offered by tests/init.sh to
35912         properly signal a hard error was the `framework_failure_'
35913         function.  But the error message issued by that function,
35914         as its name would suggest, refers to a set-up failure in the
35915         testsuite, while hard errors can obviously also be due to
35916         other reasons.  The best way to fix this inconsistency is to
35917         introduce a new function with a more general error message.
35918         * tests/init.sh (fatal_): New function.
35920 2011-06-06  Eric Blake  <eblake@redhat.com>
35922         canonicalize-lgpl: use common idiom
35923         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
35924         over newer POSIX -Rf.
35925         Reported by Bruno Haible.
35927         canonicalize-lgpl: work around AIX realpath bug
35928         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
35929         * doc/posix-functions/realpath.texi (realpath): Document it.
35930         Reported by Bruno Haible.
35932         strerror: work around FreeBSD bug
35933         * lib/strerror.c (strerror): Special case 0.
35934         Reported by Bruno Haible.
35936         strerror-override: avoid bloating errno module
35937         * modules/errno (Files, configure.ac): Move replacement strings...
35938         * modules/strerror-override: ...to new module.
35939         * modules/strerror (Depends-on): Add strerror-override.
35940         * modules/strerror_r-posix (Depends-on): Likewise.
35941         * MODULES.html.sh: Document new module.
35942         Reported by Bruno Haible.
35944 2011-06-06  Bruno Haible  <bruno@clisp.org>
35946         spawn-pipe tests: Rename program.
35947         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
35948         * tests/test-spawn-pipe-child.c: Update comment.
35949         * tests/test-spawn-pipe.sh: Update.
35950         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
35952         spawn-pipe tests: Link the child program only against libc.
35953         * tests/test-spawn-pipe-child.c: New file, extracted from
35954         tests/test-spawn-pipe.c.
35955         (main): Expect only one argument.
35956         (is_open): New function, copied from tests/test-pipe.c.
35957         * tests/test-spawn-pipe.c: Don't include <errno.h>.
35958         (child_main): Remove function.
35959         (test_pipe): Pass only one argument to the child program.
35960         (main): Remove child process code. Expect the child program's name as
35961         first argument.
35962         * tests/test-spawn-pipe.sh: Pass the child program's name as first
35963         argument.
35964         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
35965         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
35966         test-spawn-pipe-child against no libraries.
35968 2011-06-06  Bruno Haible  <bruno@clisp.org>
35970         careadlinkat: Avoid mismatch between ssize_t and int.
35971         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
35972         * lib/careadlinkat.c (careadlinkatcwd): Define always.
35974 2011-06-06  Jim Meyering  <meyering@redhat.com>
35976         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
35977         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
35978         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
35980 2011-06-05  Bruno Haible  <bruno@clisp.org>
35982         ansi-c++-opt: Interoperability with libtool.
35983         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
35984         set the variable to "no", not to ":".
35985         * NEWS: Mention the change.
35987 2011-06-05  Bruno Haible  <bruno@clisp.org>
35989         acl: Fix test failure on AIX 7.
35990         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
35991         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
35993 2011-06-05  Bruno Haible  <bruno@clisp.org>
35995         pipe-filter-ii: Fix test failure on AIX and IRIX.
35996         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
35997         with EAGAIN, retry with a smaller buffer size.
35999 2011-06-05  Bruno Haible  <bruno@clisp.org>
36001         localename: Fix link dependencies.
36002         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
36003         * modules/localename-tests (Makefile.am): Link test-localename with
36004         $(LIBTHREAD).
36006 2011-06-05  Bruno Haible  <bruno@clisp.org>
36008         error: Avoid gcc warning.
36009         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
36011 2011-06-05  Bruno Haible  <bruno@clisp.org>
36013         unsetenv: Avoid gcc warning.
36014         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
36016 2011-06-05  Bruno Haible  <bruno@clisp.org>
36018         setenv: Avoid gcc warning.
36019         * lib/setenv.c (setenv): Provide declaration if system lacks it.
36021 2011-06-05  Bruno Haible  <bruno@clisp.org>
36023         sys_select: Ensure memset is declared also on AIX 7.
36024         * lib/sys_select.in.h: Include <string.h> also on AIX.
36025         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
36026         self-contained also on AIX 7.1.
36028 2011-06-04  Jim Meyering  <meyering@redhat.com>
36030         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
36031         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
36032         function name, "error".
36033         (_gl_translatable_diag_func_re): New configurable variable.
36035 2011-06-04  Bruno Haible  <bruno@clisp.org>
36037         getopt: Avoid gcc warning.
36038         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
36040 2011-06-04  Bruno Haible  <bruno@clisp.org>
36042         strerror_r: Fix comments.
36043         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
36044         commit.
36046 2011-06-04  Bruno Haible  <bruno@clisp.org>
36048         perror: Fix compilation error.
36049         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
36050         Undefine fprintf, not sprintf.
36051         * modules/perror (Depends-on): Remove intprops, verify.
36053 2011-06-04  Bruno Haible  <bruno@clisp.org>
36055         setlocale: Enable replacement on Cygwin 1.5.
36056         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
36057         Cygwin 1.5.x.
36058         * doc/posix-functions/setlocale.texi: Mention that the problem with the
36059         LC_CTYPE category also exists on Cygwin 1.5.x.
36061 2011-06-04  Bruno Haible  <bruno@clisp.org>
36063         strerror-override: Don't disable symbol renamings.
36064         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
36065         * lib/strerror-override.c: Include config.h.
36066         (strerror_override): Don't undefine.
36068 2011-06-03  Bruno Haible  <bruno@clisp.org>
36070         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
36071         * lib/localename.h: Update copyright header.
36072         * lib/localename.c: Likewise.
36073         * lib/relocatable.h: Likewise.
36074         * lib/relocatable.c: Likewise.
36076 2011-06-02  Bruno Haible  <bruno@clisp.org>
36078         doc: Fix a module name.
36079         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
36081 2011-06-02  Bruno Haible  <bruno@clisp.org>
36083         pipe2: Remove dependency on 'nonblocking' module.
36084         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
36085         O_NONBLOCK is defined by gnulib.
36086         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
36087         is zero.
36088         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
36089         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
36090         defined by gnulib.
36091         (get_nonblocking_flag): New function.
36092         (main): Test O_NONBLOCK flag only if it is nonzero.
36093         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
36095 2011-06-03  Jim Meyering  <meyering@redhat.com>
36097         maint: three new prohibit-header-without-use rules
36098         Prohibit use of cloexec.h, posixver.h, same.h without use.
36099         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
36100         (sc_prohibit_posixver_without_use): Likewise.
36101         (sc_prohibit_same_without_use): Likewise.
36103 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
36105         allocator: 'die' routine is now given requested size
36106         * lib/allocator.h (struct allocator.die): New size arg.
36107         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
36108         If the actual problem is an ssize_t limitation, not a size_t or
36109         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
36111 2011-06-01  Eric Blake  <eblake@redhat.com>
36113         strerror: drop strerror_r dependency
36114         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
36115         * lib/strerror-override.c (strerror_override): ...to new file.
36116         * lib/strerror-override.h: Add prototype.
36117         * lib/strerror-impl.h: Delete.
36118         * lib/strerror.c (strerror): New implementation.
36119         * modules/errno (Files): Add new files.
36120         (configure.ac): Compile new file as appropriate.
36121         * modules/strerror (Files): Drop unused file.
36122         (Depends-on): Drop strerror_r-posix.
36123         * MODULES.html.sh: Document strerror_r-posix.
36124         Requested by Sam Steingold.
36126         perror: call strerror_r directly
36127         * modules/perror (Files): Drop strerror-impl.h.
36128         * lib/perror.c (perror): Use our own stack buffer, rather than
36129         calling a wrapper that uses static storage.
36130         * doc/posix-functions/perror.texi (perror): Document a limitation
36131         of our replacement.
36133         strerror_r: fix includes for FreeBSD
36134         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
36135         since we use abort on some platforms.
36136         Reported by Matthias Bolte.
36138 2011-05-31  Bruno Haible  <bruno@clisp.org>
36140         Fix link errors in tests: openat-die uses gettext-h.
36141         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
36142         against $(LIBINTL).
36143         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
36144         against $(LIBINTL).
36145         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
36146         $(LIBINTL).
36147         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
36148         against $(LIBINTL).
36149         * modules/linkat-tests (Makefile.am): Link test-linkat against
36150         $(LIBINTL).
36151         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
36152         $(LIBINTL).
36153         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
36154         against $(LIBINTL).
36155         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
36156         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
36157         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
36158         $(LIBINTL).
36159         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
36160         $(LIBINTL).
36161         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
36162         $(LIBINTL).
36163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36165 2011-05-31  Bruno Haible  <bruno@clisp.org>
36167         Fix link errors in tests: wait-process uses gettext-h.
36168         * modules/nonblocking-pipe-tests (Makefile.am): Set
36169         test_nonblocking_pipe_main_LDADD.
36170         * modules/nonblocking-socket-tests (Makefile.am): Link
36171         test-nonblocking-socket-main against $(LIBINTL).
36172         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36174 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
36176         assert-h: work around 'verify' incompatibility
36177         * lib/verify.h: Use @...@ directives, not ifdef.
36178         * modules/assert-h (assert.h): Implement the directives.
36179         (assert.h): Substitute the symbol-prefix more consistently.
36181 2011-05-29  Jim Meyering  <meyering@redhat.com>
36183         trim: remove three superfluous assignments
36184         * lib/trim.c (trim2): Remove three superfluous assignments
36185         and correct brace positioning.
36187 2011-05-29  Bruno Haible  <bruno@clisp.org>
36189         wctype-h: Avoid namespace pollution on Solaris 2.6.
36190         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
36191         identifiers.
36192         * doc/posix-headers/wctype.texi: Mention the problem.
36193         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36195 2011-05-28  Jim Meyering  <meyering@redhat.com>
36197         parse-datetime.y: accommodate -Wstrict-overflow
36198         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
36199         placate -Wstrict-overflow.
36201         trim: avoid a warning from -O2 -Wstrict-overflow
36202         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
36204 2011-05-29  Bruno Haible  <bruno@clisp.org>
36206         gnulib-tool: Fix bug in yesterday's commit.
36207         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
36208         twice.
36210 2011-05-29  Bruno Haible  <bruno@clisp.org>
36212         Allow multiple gnulib generated include files to be combined.
36213         * gnulib-tool (func_compute_include_guard_prefix): New function.
36214         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
36215         ${gl_include_guard_prefix} references.
36216         (func_import, func_create_testdir): Invoke
36217         func_compute_include_guard_prefix.
36218         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
36219         * lib/ctype.in.h: Likewise.
36220         * lib/dirent.in.h: Likewise.
36221         * lib/errno.in.h: Likewise.
36222         * lib/fcntl.in.h: Likewise.
36223         * lib/float.in.h: Likewise.
36224         * lib/getopt.in.h: Likewise.
36225         * lib/iconv.in.h: Likewise.
36226         * lib/langinfo.in.h: Likewise.
36227         * lib/locale.in.h: Likewise.
36228         * lib/math.in.h: Likewise.
36229         * lib/netdb.in.h: Likewise.
36230         * lib/netinet_in.in.h: Likewise.
36231         * lib/poll.in.h: Likewise.
36232         * lib/pthread.in.h: Likewise.
36233         * lib/pty.in.h: Likewise.
36234         * lib/sched.in.h: Likewise.
36235         * lib/se-selinux.in.h: Likewise.
36236         * lib/search.in.h: Likewise.
36237         * lib/signal.in.h: Likewise.
36238         * lib/spawn.in.h: Likewise.
36239         * lib/stdarg.in.h: Likewise.
36240         * lib/stddef.in.h: Likewise.
36241         * lib/stdint.in.h: Likewise.
36242         * lib/stdio.in.h: Likewise.
36243         * lib/stdlib.in.h: Likewise.
36244         * lib/string.in.h: Likewise.
36245         * lib/strings.in.h: Likewise.
36246         * lib/sys_file.in.h: Likewise.
36247         * lib/sys_ioctl.in.h: Likewise.
36248         * lib/sys_select.in.h: Likewise.
36249         * lib/sys_socket.in.h: Likewise.
36250         * lib/sys_stat.in.h: Likewise.
36251         * lib/sys_time.in.h: Likewise.
36252         * lib/sys_times.in.h: Likewise.
36253         * lib/sys_uio.in.h: Likewise.
36254         * lib/sys_utsname.in.h: Likewise.
36255         * lib/sys_wait.in.h: Likewise.
36256         * lib/sysexits.in.h: Likewise.
36257         * lib/termios.in.h: Likewise.
36258         * lib/time.in.h: Likewise.
36259         * lib/unistd.in.h: Likewise.
36260         * lib/wchar.in.h: Likewise.
36261         * lib/wctype.in.h: Likewise.
36262         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
36263         * modules/ctype (Makefile.am): Likewise.
36264         * modules/dirent (Makefile.am): Likewise.
36265         * modules/errno (Makefile.am): Likewise.
36266         * modules/fcntl-h (Makefile.am): Likewise.
36267         * modules/float (Makefile.am): Likewise.
36268         * modules/getopt-posix (Makefile.am): Likewise.
36269         * modules/iconv-h (Makefile.am): Likewise.
36270         * modules/langinfo (Makefile.am): Likewise.
36271         * modules/locale (Makefile.am): Likewise.
36272         * modules/math (Makefile.am): Likewise.
36273         * modules/netdb (Makefile.am): Likewise.
36274         * modules/netinet_in (Makefile.am): Likewise.
36275         * modules/poll-h (Makefile.am): Likewise.
36276         * modules/pthread (Makefile.am): Likewise.
36277         * modules/pty (Makefile.am): Likewise.
36278         * modules/sched (Makefile.am): Likewise.
36279         * modules/search (Makefile.am): Likewise.
36280         * modules/selinux-h (Makefile.am): Likewise.
36281         * modules/signal (Makefile.am): Likewise.
36282         * modules/spawn (Makefile.am): Likewise.
36283         * modules/stdarg (Makefile.am): Likewise.
36284         * modules/stddef (Makefile.am): Likewise.
36285         * modules/stdint (Makefile.am): Likewise.
36286         * modules/stdio (Makefile.am): Likewise.
36287         * modules/stdlib (Makefile.am): Likewise.
36288         * modules/string (Makefile.am): Likewise.
36289         * modules/strings (Makefile.am): Likewise.
36290         * modules/sys_file (Makefile.am): Likewise.
36291         * modules/sys_ioctl (Makefile.am): Likewise.
36292         * modules/sys_select (Makefile.am): Likewise.
36293         * modules/sys_socket (Makefile.am): Likewise.
36294         * modules/sys_stat (Makefile.am): Likewise.
36295         * modules/sys_time (Makefile.am): Likewise.
36296         * modules/sys_times (Makefile.am): Likewise.
36297         * modules/sys_uio (Makefile.am): Likewise.
36298         * modules/sys_utsname (Makefile.am): Likewise.
36299         * modules/sys_wait (Makefile.am): Likewise.
36300         * modules/sysexits (Makefile.am): Likewise.
36301         * modules/termios (Makefile.am): Likewise.
36302         * modules/time (Makefile.am): Likewise.
36303         * modules/unistd (Makefile.am): Likewise.
36304         * modules/wchar (Makefile.am): Likewise.
36305         * modules/wctype-h (Makefile.am): Likewise.
36306         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
36308 2011-05-29  Bruno Haible  <bruno@clisp.org>
36310         assert-h: Allow multiple gnulib generated replacements to coexist.
36311         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
36313 2011-05-29  Bruno Haible  <bruno@clisp.org>
36315         argp: Allow coexistence with strerror_r-posix module.
36316         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
36317         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
36318         by gnulib's <string.h> replacement), assume it has the POSIX signature,
36319         not the glibc signature.
36321 2011-05-28  Bruno Haible  <bruno@clisp.org>
36323         gnulib-tool: Alternative structure of testdirs, similar to --import.
36324         * gnulib-tool: New option --single-configure.
36325         (func_usage): Document it.
36326         (single_configure): New variable.
36327         (func_modules_transitive_closure_separately,
36328         func_modules_transitive_closure_separately,
36329         func_determine_use_libtests, func_modules_add_dummy_separately,
36330         func_modules_to_filelist_separately): New functions, extracted from
36331         func_import.
36332         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
36333         (func_import): Use the new functions.
36334         (func_create_testdir): Set final_modules. Handle $single_configure =
36335         true case.
36337 2011-05-28  Bruno Haible  <bruno@clisp.org>
36339         getloadavg: Remove an unreliable safety check.
36340         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
36341         getloadavg.c is in place.
36342         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
36343         Reported by Sam Steingold <sds@gnu.org>.
36345 2011-05-28  Bruno Haible  <bruno@clisp.org>
36347         doc: Cleanup yet another file produced by texinfo.tex.
36348         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
36350 2011-05-28  Bruno Haible  <bruno@clisp.org>
36352         Finish the conditional dependencies mechanism.
36353         * gnulib-tool: New option --no-conditional-dependencies.
36354         (func_usage): Document it. Don't mark --conditional-dependencies as
36355         experimental.
36356         (cond_dependencies): The possible values can now be true, false, empty.
36357         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
36358         (func_import): Store setting in gnulib-cache.m4 and read it from there.
36359         * doc/gnulib-tool.texi (Conditional dependencies): New section.
36361 2011-05-28  Bruno Haible  <bruno@clisp.org>
36363         doc: Use a recent texinfo.tex.
36364         * doc/Makefile (tex_opts): New variable.
36365         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
36367 2011-05-28  Jim Meyering  <meyering@redhat.com>
36369         intprops.h: adjust comment to match code change
36370         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
36371         only once, it *may* have side effects.  Also fix an unrelated typo.
36372         (_GL_INT_SIGNED): Likewise.
36374 2011-05-26  Simon Josefsson  <simon@josefsson.org>
36376         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
36378 2011-05-26  Bruno Haible  <bruno@clisp.org>
36380         mbsrchr: Avoid collision with system function on Interix.
36381         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
36382         Reported by Markus Duft <mduft@gentoo.org>.
36384 2011-05-15  James Youngman  <jay@gnu.org>
36386         getopt: for ambiguous options, enumerate the possibilities.
36387         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
36388         the ambiguous options when an ambiguous prefix is given. This was
36389         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
36390         glibc change was
36391         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
36393 2011-05-25  Eric Blake  <eblake@redhat.com>
36395         getcwd: work around mingw bug
36396         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
36397         * doc/posix-functions/getcwd.texi (getcwd): Document it.
36398         Reported by Matthias Bolte.
36400 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
36402         test-intprops: disable -Wtype-limits diagnostics
36403         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
36404         diagnostics.  Otherwise, the integer overflow macros generate many
36405         diagnostics.  Reported by Jim Meyering in
36406         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
36408         intprops: shorten, to pacify gcc -Woverlength-strings
36409         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
36410         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
36411         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
36412         likely to run afoul of C compiler limits for string constant lengths.
36413         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
36415 2011-05-24  Eric Blake  <eblake@redhat.com>
36417         docs: document recently fixed glibc printf bug
36418         * doc/posix-functions/fprintf.texi (fprintf): Document it.
36419         * doc/posix-functions/printf.texi (printf): Likewise.
36420         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36421         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36423         closein-tests: convert to init.sh
36424         * modules/closein-tests (Files): Add init.sh
36425         * tests/test-closein.sh Use it.
36427         yesno-tests: convert to init.sh
36428         * modules/yesno-tests (Files): Add init.sh.
36429         * tests/test-yesno.sh: Use it.
36431         atexit-tests: ensure reliable exit status
36432         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
36433         Reported by Bruno Haible.
36435 2011-05-24  Bruno Haible  <bruno@clisp.org>
36437         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
36438         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
36439         gl_PREREQ_STRERROR_R invocations from here...
36440         * modules/strerror_r-posix (configure.ac): ... to here.
36442 2011-05-24  Eric Blake  <eblake@redhat.com>
36444         strerror_r: fix missing header
36445         * lib/strerror_r.c: Avoid compiler warning about snprintf.
36447         strerror_r: fix AIX test failures
36448         * lib/strerror_r.c (strerror_r): Convert silent truncation to
36449         ERANGE failure.
36451         strerror_r: fix Solaris test failures
36452         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
36453         failures.
36454         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
36456         strerror_r: enforce POSIX recommendations
36457         * lib/strerror_r.c (safe_copy): New helper method.
36458         (strerror_r): Guarantee a non-empty string.
36459         * tests/test-strerror_r.c (main): Enhance tests to incorporate
36460         recent POSIX rulings and to match our strerror guarantees.
36461         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
36463 2011-05-24  Jim Meyering  <meyering@redhat.com>
36465         test-perror2.c: avoid warning about unused variable
36466         * tests/test-perror2.c (main): Remove declaration of unused "fp".
36468 2011-05-24  Eric Blake  <eblake@redhat.com>
36470         perror: avoid spurious test failure on HP-UX
36471         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
36473         tests: fix logic bug in init.sh
36474         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
36475         shell.
36477 2011-05-24  Jim Meyering  <meyering@redhat.com>
36479         utimensat: do not reference an out-of-scope buffer
36480         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
36481         declared in an inner scope, yet "times" would be dereferenced outside
36482         the scope in which "ts" was valid.
36483         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
36484         of ts[2] "out/up", so that the use of aliased "times" (via
36485         "times = ts;") does not end up referencing an out-of-scope "ts"
36487         opendir-safer.c: don't clobber errno; don't close negative FD
36488         * lib/opendir-safer.c (opendir_safer):
36489         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
36490         file descriptor, and more importantly, don't clobber the
36491         offending errno value with EINVAL.  Before, upon failure
36492         of dup_safer, we would pass the negative file descriptor to
36493         fdopendir, which would clobber errno.
36495 2011-05-23  Bruno Haible  <bruno@clisp.org>
36497         idcache: Fix module description.
36498         * modules/idcache (Include): Set to "idcache.h".
36500 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
36502         gnulib-tool: fix portability problem with MacOS sed
36503         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
36504         before the "}".  Problem reported by Leo in
36505         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
36506         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
36507         sed_extract_condition1, sed_extract_condition2.
36509 2011-05-23  Bruno Haible  <bruno@clisp.org>
36511         hash: Simplify autoconf macro.
36512         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
36514 2011-05-23  Bruno Haible  <bruno@clisp.org>
36516         getugroups: Fix module description.
36517         * modules/getugroups (Include): Set to "getugroups.h".
36519 2011-05-23  Bruno Haible  <bruno@clisp.org>
36521         linkat: Simplify autoconf macro.
36522         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
36524 2011-05-23  Bruno Haible  <bruno@clisp.org>
36525             Eric Blake  <eblake@redhat.com>
36527         linkat, renameat: Update dependencies.
36528         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
36529         * modules/linkat (Depends-on): Likewise. Remove also readlink,
36530         symlinkat.
36532 2011-05-23  Jim Meyering  <meyering@redhat.com>
36534         maint.mk: more tight_scope improvements
36535         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
36536         (_gl_TS_headers): Define only in if-0'd block.
36537         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
36538         sometimes we must *not* use it.  Adjust uses accordingly.
36539         (sc_tight_scope): Use much simpler grep-based test to determine
36540         whether we skip this rule.
36542         maint.mk: generalize/improve the tight-scope rule
36543         * top/maint.mk: Emit a warning when the test is skipped.
36544         (_gl_TS_dir): Add $(srcdir)/ prefix.
36545         (_gl_TS_function_match): Simplify, rather than trying
36546         to enumerate common types.  Otherwise, it would fail to match an
36547         "extern unsigned char const *" declaration in idutils.
36548         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
36549         a way to support use of that type of macro.
36550         (_gl_TS_var_match): Simplify regexp.
36551         (_gl_TS_obj_files): New configurable variable.
36552         (_gl_TS_headers): Likewise.
36554 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
36556         verify: fix bug when gnulib <assert.h> is also included
36557         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
36558         is defined, not if _GL_STATIC_ASSERT_H is not defined.
36559         Perhaps there's a better way, but this fixes the immediate problem.
36560         Problem reported by Bruno Haible in
36561         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
36563 2011-05-22  Bruno Haible  <bruno@clisp.org>
36565         xgetcwd: Simplify autoconf macro.
36566         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
36568 2011-05-22  Bruno Haible  <bruno@clisp.org>
36570         New module 'mktime-internal'.
36571         * modules/mktime-internal: New file.
36572         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
36573         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
36574         mktime_internal as a C macro if libc has __mktime_internal.
36575         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
36576         conditions.
36577         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
36579 2011-05-22  Bruno Haible  <bruno@clisp.org>
36581         timegm: Correct mktime replacement statements.
36582         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
36583         defining mktime as a C macro. This completes a 2009-07-28 commit.
36585 2011-05-22  Bruno Haible  <bruno@clisp.org>
36587         timegm: Simplify autoconf macro.
36588         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
36590 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
36592         clock-time: change to LGPLv2+.
36593         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
36594         BSD-like but we have no mark for that; this is good enough for now.
36596 2011-05-21  Bruno Haible  <bruno@clisp.org>
36598         strerror_r: Fix comments.
36599         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
36601 2011-05-21  Bruno Haible  <bruno@clisp.org>
36603         relocatable-prog-wrapper: Fix possible link error.
36604         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
36605         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
36606         (gl_FUNC_SETENV): ... to here.
36607         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
36608         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
36610 2011-05-21  Bruno Haible  <bruno@clisp.org>
36612         relocatable-prog-wrapper: Assume strerror() exists.
36613         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
36614         m4/strerror.m4.
36615         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
36616         * lib/relocwrapper.c: Remove mention of strerror module.
36617         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
36618         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
36619         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
36620         C macro.
36622 2011-05-21  Bruno Haible  <bruno@clisp.org>
36624         select: Simplify replacement idiom.
36625         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
36626         Win32 platforms.
36627         * lib/sys_select.in.h (select): Simplify accordingly.
36628         * modules/select (Depends-on): Likewise.
36630 2011-05-21  Bruno Haible  <bruno@clisp.org>
36632         mkdir-p: Simplify autoconf macro.
36633         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
36634         gl_FUNC_LCHOWN.
36636 2011-05-21  Eric Blake  <eblake@redhat.com>
36638         strerror_r: avoid clobbering strerror on cygwin
36639         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
36640         fall back instead to sys_errlist.
36641         * modules/strerror (configure.ac): Add witness.
36642         * tests/test-strerror_r.c (main): Enhance test.
36643         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
36644         * tests/test-perror2.c (main): Free memory before exit.
36646 2011-05-21  Bruno Haible  <bruno@clisp.org>
36648         mkdtemp: Use gnulib naming conventions.
36649         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
36650         * modules/mkdtemp (configure.ac): Update.
36652 2011-05-20  Eric Blake  <eblake@redhat.com>
36654         strerror_r: avoid corrupting errno on Solaris
36655         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
36656         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
36658         strerror_r: avoid compiler warning
36659         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
36661         strerror_r: simplify AIX code
36662         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
36664         test-perror: avoid spurious failure on FreeBSD
36665         * modules/perror-tests (Depends-on): Add strerror, now that
36666         strerror_r no longer pulls it in.
36668 2011-05-20  Bruno Haible  <bruno@clisp.org>
36670         strerror_r-posix: Remove unused dependencies.
36671         * modules/strerror_r-posix (Depends-on): Remove strerror.
36672         Reported by Eric Blake.
36674 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
36676         intprops: remove assumption about A|B representation
36677         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
36678         is a valid integer if both A and B are.  Although this is true for
36679         all known practical hosts, the C standard doesn't guarantee it,
36680         and the code need not assume it.  Also, this change may work around
36681         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
36682         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
36684 2011-05-20  Eric Blake  <eblake@redhat.com>
36686         perror: work around FreeBSD bug
36687         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
36688         is broken.  Move AC_LIBOBJ...
36689         * modules/perror (configure.ac): Here.
36690         * doc/posix-functions/perror.texi (perror): Document this.
36691         * tests/test-perror2.c (main): Enhance test.
36693         test-perror: check for strerror interactions
36694         * tests/macros.h (STREQ): Add macro.
36695         * modules/perror-tests (Files): Add second test.
36696         * tests/test-perror2.c (main): New file.
36697         * doc/posix-functions/perror.texi (perror): Document glibc bug.
36699         test-perror: rewrite to use init script
36700         * modules/perror-tests (Files): Add init.sh.
36701         * tests/test-perror.sh: Use temporary directory.
36703 2011-05-20  Jim Meyering  <meyering@redhat.com>
36705         maint: replace misused "a" with "an"
36706         * doc/intprops.texi: "a integer"
36707         * doc/regex.texi: "a explanation"
36708         * lib/alignof.h: "a object"
36709         * lib/argmatch.h: "a explanation"
36710         * lib/argp-help.c: "a option" and "a OPTION_DOC"
36711         * lib/stdint.in.h: "a integer"
36712         * lib/userspec.c: "a owner"
36713         * doc/gnulib.texi: Fix "a idea", and reword.
36715 2011-05-19  Jim Meyering  <meyering@redhat.com>
36717         maint: correct misuse of "a" and "an"
36718         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
36719         * lib/argp-help.c: "an docum...": s/an/a/
36720         * lib/argp-parse.c: "An vector": s/An/A/
36721         * lib/execute.c: "an native": s/an/a/
36722         * lib/spawn-pipe.c: Likewise.
36723         * lib/gc.h: "an Gc_rc": s/an/a/
36724         * lib/unigbrk.in.h: "an grapheme": s/an/a/
36725         * lib/fts.c: "an stat.st_dev": s/an/a/
36727 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36729         intprops-tests: work around HP-UX 11.23 cc bug with constants
36730         * tests/test-intprops.c (VERIFY): New macro.
36731         (main): Use it, instead of verify, to work around the compiler bug; see
36732         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
36734         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
36735         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
36736         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
36737         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
36738         (_GL_REMAINDER_OVERFLOW): Use it.
36740         intprops-tests: revert unsigned part of previous change
36741         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
36742         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
36743         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
36744         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
36746 2011-05-19  Bruno Haible  <bruno@clisp.org>
36748         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
36749         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
36750         strerror_r() returned without filling the buffer.
36751         Reported by Eric Blake.
36753 2011-05-19  Eric Blake  <eblake@redhat.com>
36755         strerror_r: guarantee unchanged errno
36756         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
36757         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
36758         failure.
36759         * tests/test-strerror_r.c (main): Enhance test.
36761 2011-05-19  Bruno Haible  <bruno@clisp.org>
36763         strerror_r: Reorder #if blocks.
36764         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
36765         for consistency with the previous commit.
36767 2011-05-19  Bruno Haible  <bruno@clisp.org>
36769         perror: Avoid clobbering the strerror buffer when possible.
36770         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
36771         * lib/strerror.c: Include it.
36772         * modules/strerror (Files): Add lib/strerror-impl.h.
36773         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
36774         (my_strerror): New function, defined through lib/strerror-impl.h.
36775         (perror): Use it instead of strerror.
36776         * modules/perror (Files): Add lib/strerror-impl.h.
36777         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
36779 2011-05-19  Eric Blake  <eblake@redhat.com>
36781         strerror_r: fix on newer cygwin
36782         * lib/strerror_r.c (strerror_r): Cygwin now has
36783         __xpg_strerror_r, use it.
36785 2011-05-19  Bruno Haible  <bruno@clisp.org>
36787         strerror_r: Avoid clobbering the strerror buffer when possible.
36788         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
36789         (sys_nerr, sys_errlist): New declarations.
36790         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
36791         HP-UX, native Win32, IRIX, and 32-bit Solaris.
36792         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
36794 2011-05-19  Bruno Haible  <bruno@clisp.org>
36796         strerror_r: Fix test failure on mingw.
36797         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
36798         EXTEND_STRERROR_R.
36799         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
36800         macros from errno.in.h instead.
36802 2011-05-19  Eric Blake  <eblake@redhat.com>
36804         strerror: relax test for Solaris
36805         * tests/test-strerror.c (main): Permit Solaris behavior.
36806         * tests/test-strerror_r.c (main): Likewise.
36808         strerror: enforce POSIX ruling on strerror(0)
36809         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
36810         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
36811         * lib/strerror_r.c (rpl_strerror_r): Work around it.
36812         * doc/posix-functions/strerror.texi (strerror): Document it.
36813         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
36814         * tests/test-strerror.c (main): Strengthen test.
36815         * tests/test-strerror_r.c (main): Likewise.
36817 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36819         intprop-tests: port to older and more-pedantic compilers
36820         * modules/intprops-tests (Files): Add tests/macros.h.
36821         * tests/test-intprops.c: Include macros.h.
36822         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
36823         it's no longer documented to expand to an integer constant expression.
36824         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
36825         argument is floating point, as it's no longer documented to expand
36826         to an integer constant expression in that case.
36827         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
36828         compiler bugs reported by Bruno Haible.  See
36829         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
36830         (U0, U1): New constants, to work around the same bugs.  Also,
36831         in tests, use e.g., "(unsigned int) 39" rather than "39u".
36833         intprops: work around C compiler bugs
36834         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
36835         bug in Sun C 5.11 2010/08/13 and other compilers; see
36836         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
36838         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
36839         * doc/intprops.texi (Integer Type Determination): Fix
36840         documentation for TYPE_IS_INTEGER: it returns an constant
36841         expression, not an integer constant expression.  Fix doc for
36842         TYPE_SIGNED: it returns an integer constant expression only if its
36843         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
36844         hardly worth documented that way....)
36846 2011-05-18  Bruno Haible  <bruno@clisp.org>
36848         strerror_r: Avoid clobbering the strerror buffer when possible.
36849         * lib/strerror_r.c (strerror_r): Merge the three implementations.
36850         Handle gnulib defined errno values here. When strerror() returns NULL
36851         or an empty string, return EINVAL.
36852         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
36853         gnulib defined errno values here.
36854         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
36856 2011-05-18  Eric Blake  <eblake@redhat.com>
36858         fnmatch: avoid compiler warning
36859         * lib/fnmatch_loop.c (FCT): Use correct type.
36860         Reported by Matthias Bolte.
36862 2011-05-13  Jim Meyering  <meyering@redhat.com>
36864         maint.mk: three new prohibit_<HDR>_without_use rules
36865         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
36866         (sc_prohibit_stdio-safer_without_use): Likewise.
36867         (sc_prohibit_xfreopen_without_use): Likewise.
36869 2011-05-17  Jim Meyering  <meyering@redhat.com>
36871         announce-gen: fail if the NEWS delta is empty
36872         If there's nothing noteworthy in NEWS, then either you forgot
36873         or you shouldn't be releasing.
36874         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
36876 2011-05-17  Pádraig Brady  <P@draigBrady.com>
36878         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
36879         reserved symbols starting with double underscore from the check.
36881 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
36883         intprops: add doc
36884         * doc/intprops.texi: New file, documenting intprops.
36885         * doc/gnulib.texi (Particular Modules): Include it.
36887         verify: add doc to gnulib manual and fix example
36888         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
36889         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
36890         (Compile-time Assertions): Fix example so it can't overflow.
36892 2011-05-17  Jim Meyering  <meyering@redhat.com>
36894         warnings.m4: don't usurp save_CPPFLAGS variable name
36895         * m4/warnings.m4: Prefix local temporary variable name with gl_.
36897         doc: fix typo
36898         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
36900 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36901             Bruno Haible  <bruno@clisp.org>
36903         doc: Tweak recent change.
36904         * README (Portability guidelines): Tweak new text.
36905         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
36906         Interix 6.1.
36908 2011-05-16  Eric Blake  <eblake@redhat.com>
36910         inttypes: avoid autoconf warning
36911         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
36912         * m4/stdint.m4 (gl_STDINT_H): Likewise.
36914 2011-05-16  Sam Steingold  <sds@gnu.org>
36915         and Eric Blake  <eblake@redhat.com>
36917         vc-list-files: accept multiple directory operands
36918         * build-aux/vc-list-files: Iterate over all remaining operands.
36920 2011-05-16  Bruno Haible  <bruno@clisp.org>
36922         Fix confusion regarding deprecated modules.
36923         * modules/calloc (Status, Notice): Mark module as deprecated, not
36924         obsolete.
36925         * modules/fnmatch-posix (Status, Notice): Likewise.
36926         * modules/getdate (Status, Notice): Likewise.
36927         * modules/getopt (Status, Notice): Likewise.
36928         * modules/malloc (Status, Notice): Likewise.
36929         * modules/pipe (Status, Notice): Likewise.
36930         * modules/realloc (Status, Notice): Likewise.
36931         * modules/rename-dest-slash (Status, Notice): Likewise.
36932         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
36933         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
36934         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
36935         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
36936         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
36938 2011-05-16  Bruno Haible  <bruno@clisp.org>
36940         doc: List the target platforms.
36941         * doc/gnulib-intro.texi (Target Platforms): New section.
36942         * doc/gnulib.texi (Introduction): Update menu.
36943         * README (Portability guidelines): Refer to the new section. Update
36944         statement about oldest supported environment. Remove rationale why
36945         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
36946         unportable C89 function.
36947         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
36948         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
36950 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36952         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
36954 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36956         intprops-tests: new module
36957         * modules/intprops-tests, tests/test-intprops.c: New files.
36959         intprops: add safe, portable integer overflow checking
36960         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
36961         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
36962         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
36963         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
36964         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
36965         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
36966         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
36967         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
36968         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
36969         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
36970         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
36972 2011-05-12  James Youngman  <jay@gnu.org>
36974         Add a test for glibc's Bugzilla bug #12378.
36975         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
36976         doesn't allow the literal matching of a lone "[" (which is
36977         required by POSIX).
36978         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
36980 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
36982         Sync glibc change fixing Bugzilla bug #12378.
36983         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
36984         beginning and fall back to matching as normal character if the
36985         string ends before the matching ']' is found.  This is what POSIX
36986         requires.
36988 2011-05-13  Eric Blake  <eblake@redhat.com>
36990         getcwd-lgpl: relax test for FreeBSD
36991         * doc/posix-functions/getcwd.texi (getcwd): Document portability
36992         issue.
36993         * tests/test-getcwd-lgpl.c (main): Relax test.
36994         Reported by Matthias Bolte.
36996 2011-05-11  Eric Blake  <eblake@redhat.com>
36998         test-fflush: silence compiler warning
36999         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
37001 2011-05-11  Bruno Haible  <bruno@clisp.org>
37003         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
37004         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
37005         * modules/canonicalize (Depends-on): Add 'nocrash'.
37006         * modules/canonicalize-lgpl (Depends-on): Likewise.
37007         * doc/posix-functions/realpath.texi: Update platforms list.
37008         Reported by Ryan Schmidt <ryandesign@macports.org>.
37010 2011-05-11  Bruno Haible  <bruno@clisp.org>
37012         group-member: Declare function in <unistd.h>.
37013         * lib/unistd.in.h (group_member): New declaration.
37014         * lib/group-member.h: Remove file.
37015         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
37016         * tests/test-unistd-c++.cc: Check signature of group_member.
37017         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
37018         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
37019         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
37020         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
37021         HAVE_GROUP_MEMBER.
37022         * modules/group-member (Files): Remove lib/group-member.h.
37023         (Depends-on): Add unistd. Specify conditions.
37024         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37025         (Include): Change to <unistd.h>.
37026         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
37027         HAVE_GROUP_MEMBER.
37028         * NEWS: Mention the change.
37029         * lib/euidaccess.c: Don't include group-member.h.
37031 2011-05-11  Bruno Haible  <bruno@clisp.org>
37033         group-member: Document module.
37034         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
37035         module.
37037 2011-05-11  Bruno Haible  <bruno@clisp.org>
37039         fclose: Fix mistake earlier today.
37040         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
37042 2011-05-11  Eric Blake  <eblake@redhat.com>
37044         fclose: preserve fflush errors
37045         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
37046         Reported by Jim Meyering.
37048         bootstrap: support a prereq of 'rpcgen -' on RHEL5
37049         * build-aux/bootstrap (check_versions): When no specific version
37050         is required, merely check that the app produces an exit status
37051         that indicates its existence.
37053         maint.mk: drop redundant check
37054         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
37055         the same but better.
37057 2011-05-11  Bruno Haible  <bruno@clisp.org>
37059         fclose: Fix possible link error.
37060         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
37061         unregister_shadow_fd. Improve comments.
37062         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
37063         Eric Blake.
37065 2011-05-11  Jim Meyering  <meyering@redhat.com>
37067         maint.mk: improve "can not" detection and generalize rule name
37068         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
37069         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
37070         Use the same technique as in sc_prohibit_doubled_word, so that
37071         we recognize "can not" also when the words are separated by a newline.
37072         Suggested by Eric Blake.
37073         (perl_filename_lineno_text_): Define.  Factored out of...
37074         (prohibit_doubled_word_): ...here.  Use the new definition.
37075         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
37076         (prohibit_undesirable_word_seq_RE_): New overridable variable.
37077         (ignore_undesirable_word_sequence_RE_): New overridable variable.
37079 2011-05-10  Eric Blake  <eblake@redhat.com>
37081         fclose: avoid double close race when possible
37082         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
37083         all but WINDOWS_SOCKETS.
37085 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
37087         openat: correct new comment
37088         * lib/openat-proc.c (openat_proc_name): Correct the comment.
37090 2011-05-10  Jim Meyering  <meyering@redhat.com>
37092         openat: add comments
37093         * lib/openat-proc.c (openat_proc_name): Add comments,
37094         mostly from Eric Blake.
37096 2011-05-09  Eric Blake  <eblake@redhat.com>
37098         openat: reduce syscalls in first probe of /proc
37099         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
37100         be a directory.  Simplify the probe for .. bugs.
37101         * modules/openat (Depends-on): Drop same-inode.
37102         Reported by Bastien ROUCARIES.
37104 2011-05-09  Jim Meyering  <meyering@redhat.com>
37106         maint.mk: change semantics/name of tight_scope variables
37107         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
37108         Rename variables to align with semantics that make them more useful.
37110         maint.mk: tweak new rule's name not to impinge
37111         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
37112         (sc_tight_scope): Use new rule name rather than $@-0.
37114         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
37115         * top/maint.mk (sc_tight_scope): New rule.
37116         (sc_tight_scope-0): New rule, ifdef'd out.
37117         (_gl_TS_dir): Default.
37118         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
37119         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
37121 2011-05-09  Simon Josefsson  <simon@josefsson.org>
37123         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
37124         Haible <bruno@clisp.org>.
37126 2011-05-08  Bruno Haible  <bruno@clisp.org>
37128         Comments.
37129         * m4/isnanf.m4: Add comment.
37130         * m4/isnanl.m4: Likewise.
37132 2011-05-08  Bruno Haible  <bruno@clisp.org>
37134         glob: Remove obsolete macro.
37135         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
37137 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
37139         intprops: Sun C 5.11 supports __typeof__
37140         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
37141         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
37142         which is new.
37143         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
37145         intprops: switch to usual gnulib indenting and naming
37146         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
37147         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
37149         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
37151 2011-05-08  Jim Meyering  <meyering@redhat.com>
37153         maint.mk: suppress "Entering/Leaving directory" diag in announcement
37154         * top/maint.mk (release-prep): Use make's --no-print-directory
37155         option when generating the announcement.  This eliminates the
37156         pesky "make[2]: Entering/Leaving directory" diagnostics in the
37157         generated announcement template.
37159 2011-05-08  Bruno Haible  <bruno@clisp.org>
37161         tzset: Fix gettimeofday wrapper on Solaris 2.6.
37162         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
37163         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
37165 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
37167         ignore-value, verify: Omit include files from lib_SOURCES.
37168         * modules/ignore-value, modules/verify (Makefile.am):
37169         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
37170         that leads Automake to duplicate use of am__objects_... variables
37171         in Makefile.in.  See
37172         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
37174 2011-05-07  Bruno Haible  <bruno@clisp.org>
37176         fclose: Simplify autoconf macro.
37177         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
37178         defined.
37180 2011-05-07  Bruno Haible  <bruno@clisp.org>
37182         canonicalize-lgpl: Fix autoconf macro ordering bug.
37183         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
37184         gl_STDLIB_H_DEFAULTS.
37186 2011-05-06  Eric Blake  <eblake@redhat.com>
37188         maintainer-makefile: make sc_po_check easier to tune
37189         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
37190         to probe for strings, such as an alternate location for gnulib.
37192         fclose: guarantee behavior on seekable stdin
37193         * modules/fclose (Depends-on): Add fflush.
37194         * doc/posix-functions/fclose.texi (fclose): Document this.
37195         * tests/test-fclose.c (main): Make test for this unconditional.
37197 2011-05-06  Bruno Haible  <bruno@clisp.org>
37199         fflush, fpurge: Relicense under LGPLv2+.
37200         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
37201         * modules/fpurge (License): Likewise.
37202         With permission from Eric Blake and Jim Meyering.
37203         Suggested by Eric Blake.
37205 2011-05-06  Karl Berry  <karl@gnu.org>
37207         * MODULES.html.sh (func_all_modules): remove exit.
37209 2011-05-06  Jim Meyering  <meyering@redhat.com>
37211         maint.mk: use info-gnu@ as the default only for a stable release
37212         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
37213         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
37214         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
37215         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
37217 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
37219         assert-h: new module, which supports C1X-style static_assert
37220         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
37221         * lib/verify.h: Revamp so that this can be copied into assert.h,
37222         while retaining the ability to use it standalone as before.
37223         Rename private identifiers so as not to encroach on the
37224         standard C namespace, since this is now used by assert.h.
37225         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
37226         the old verify_true.
37227         (_GL_VERIFY_TRUE): New macro, with much of the contents of
37228         the old verify_true.  Use _GL_VERIFY_TYPE.
37229         (_GL_VERIFY): New macro, with much of the contents of the old verify.
37230         (static_assert): New macro, if _GL_STATIC_ASSERT_H
37231         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
37232         defined when this file is copied into the replacement assert.h.
37233         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
37234         and _Static_assert is not built in.
37235         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
37236         defined, and use the new macros mentioned above.
37237         * doc/posix-headers/assert.texi: Document this.
37239 2011-05-05  Bruno Haible  <bruno@clisp.org>
37241         fclose, fflush: Respect rules for use of AC_LIBOBJ.
37242         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
37243         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
37244         gl_REPLACE_FCLOSE here.
37245         * modules/fflush (Depends-on): Remove fclose.
37246         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
37247         combination with module 'fclose'.
37249 2011-05-05  Bruno Haible  <bruno@clisp.org>
37251         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
37252         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
37253         gl_FUNC_FFLUSH.
37254         (gl_FUNC_FFLUSH): Use it.
37255         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
37256         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
37257         gl_REPLACE_FSEEKO here.
37259 2011-05-05  Bruno Haible  <bruno@clisp.org>
37261         tzset: Relicense under LGPL.
37262         * modules/tzset (License): Change to LGPL.
37263         No agreement needed; it's a no-op.
37265         strtoimax, strtoumax: Relicense under LGPL.
37266         * modules/strtoimax (License): Change to LGPL.
37267         * modules/strtoumax (License): Likewise.
37268         With permission from Jim Meyering, Paul Eggert:
37269         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
37270         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
37272         getgroups: Relicense under LGPL.
37273         * modules/getgroups (License): Change to LGPL.
37274         With permission from Jim Meyering, Paul Eggert, Eric Blake:
37275         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
37276         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
37277         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37279         nanosleep: Relicense under LGPL.
37280         * modules/nanosleep (License): Change to LGPL.
37281         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
37282         Haible:
37283         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
37284         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
37285         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37286         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
37288         futimens: Relicense under LGPL.
37289         * modules/futimens (License): Change to LGPL.
37290         With permission from Eric Blake:
37291         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37293         fflush: Relicense under LGPL.
37294         * modules/fflush (License): Change to LGPL.
37295         With permission from Eric Blake, Bruno Haible, Jim Meyering:
37296         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37297         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
37298         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
37300         tmpfile: Relicense under LGPL.
37301         * modules/tmpfile (License): Change to LGPL.
37302         With permission from Ben Pfaff:
37303         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
37305         isfinite: Relicense under LGPL.
37306         * modules/isfinite (License): Change to LGPL.
37307         With permission from Ben Pfaff, Bruno Haible:
37308         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
37309         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
37311         acosl..tanl: Relicense under LGPL.
37312         * modules/acosl (License): Change to LGPL.
37313         * modules/asinl (License): Likewise.
37314         * modules/atanl (License): Likewise.
37315         * modules/cosl (License): Likewise.
37316         * modules/expl (License): Likewise.
37317         * modules/logl (License): Likewise.
37318         * modules/sinl (License): Likewise.
37319         * modules/sqrtl (License): Likewise.
37320         * modules/tanl (License): Likewise.
37321         Source code originally from glibc and Paolo Bonzini. Agreements:
37322         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
37323         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
37325 2011-05-05  Bruno Haible  <bruno@clisp.org>
37327         signal: Define sighandler_t.
37328         * lib/signal.in.h (sighandler_t): New type.
37329         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
37330         whether sighandler_t is defined.
37331         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
37332         * modules/signal (Depends-on): Add extensions.
37333         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
37334         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
37335         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
37337 2011-05-05  Eric Blake  <eblake@redhat.com>
37339         maint: remove useless REPLACE_*_H macros
37340         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
37341         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37342         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37343         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
37344         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37345         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37346         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
37347         * m4/btowc.m4: Update callers.
37348         * m4/dirfd.m4: Likewise.
37349         * m4/duplocale.m4: Likewise.
37350         * m4/fchdir.m4: Likewise.
37351         * m4/fdopendir.m4: Likewise.
37352         * m4/inet_ntop.m4: Likewise.
37353         * m4/inet_pton.m4: Likewise.
37354         * m4/ioctl.m4: Likewise.
37355         * m4/mbrlen.m4: Likewise.
37356         * m4/mbrtowc.m4: Likewise.
37357         * m4/mbsinit.m4: Likewise.
37358         * m4/mbsnrtowcs.m4: Likewise.
37359         * m4/mbsrtowcs.m4: Likewise.
37360         * m4/poll.m4: Likewise.
37361         * m4/setlocale.m4: Likewise.
37362         * m4/wcrtomb.m4: Likewise.
37363         * m4/wcsnrtombs.m4: Likewise.
37364         * m4/wcsrtombs.m4: Likewise.
37365         * m4/wctob.m4: Likewise.
37366         * m4/wcwidth.m4: Likewise.
37367         * modules/posix_spawn: Likewise.
37368         * modules/posix_spawn_file_actions_addclose: Likewise.
37369         * modules/posix_spawn_file_actions_adddup2: Likewise.
37370         * modules/posix_spawn_file_actions_addopen: Likewise.
37371         * modules/posix_spawn_file_actions_destroy: Likewise.
37372         * modules/posix_spawn_file_actions_init: Likewise.
37373         * modules/posix_spawnattr_destroy: Likewise.
37374         * modules/posix_spawnattr_getflags: Likewise.
37375         * modules/posix_spawnattr_getpgroup: Likewise.
37376         * modules/posix_spawnattr_getschedparam: Likewise.
37377         * modules/posix_spawnattr_getschedpolicy: Likewise.
37378         * modules/posix_spawnattr_getsigdefault: Likewise.
37379         * modules/posix_spawnattr_getsigmask: Likewise.
37380         * modules/posix_spawnattr_init: Likewise.
37381         * modules/posix_spawnattr_setflags: Likewise.
37382         * modules/posix_spawnattr_setpgroup: Likewise.
37383         * modules/posix_spawnattr_setschedparam: Likewise.
37384         * modules/posix_spawnattr_setschedpolicy: Likewise.
37385         * modules/posix_spawnattr_setsigdefault: Likewise.
37386         * modules/posix_spawnattr_setsigmask: Likewise.
37387         * modules/posix_spawnp: Likewise.
37389 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
37391         Add option to do-release-commit-and-tag to specify branch.
37392         * build-aux/do-release-commit-and-tag: Add --branch.
37394 2011-05-03  Bruno Haible  <bruno@clisp.org>
37396         Avoid unnecessary compilation units, through conditional dependencies.
37397         * modules/accept (Depends-on): Add conditions to the dependencies.
37398         * modules/acosl (Depends-on): Likewise.
37399         * modules/argz (Depends-on): Likewise.
37400         * modules/asinl (Depends-on): Likewise.
37401         * modules/atanl (Depends-on): Likewise.
37402         * modules/atoll (Depends-on): Likewise.
37403         * modules/bind (Depends-on): Likewise.
37404         * modules/btowc (Depends-on): Likewise.
37405         * modules/canonicalize-lgpl (Depends-on): Likewise.
37406         * modules/ceil (Depends-on): Likewise.
37407         * modules/ceilf (Depends-on): Likewise.
37408         * modules/ceill (Depends-on): Likewise.
37409         * modules/chdir-long (Depends-on): Likewise.
37410         * modules/chown (Depends-on): Likewise.
37411         * modules/close (Depends-on): Likewise.
37412         * modules/connect (Depends-on): Likewise.
37413         * modules/cosl (Depends-on): Likewise.
37414         * modules/dirfd (Depends-on): Likewise.
37415         * modules/dprintf (Depends-on): Likewise.
37416         * modules/dprintf-posix (Depends-on): Likewise.
37417         * modules/error (Depends-on): Likewise.
37418         * modules/euidaccess (Depends-on): Likewise.
37419         * modules/expl (Depends-on): Likewise.
37420         * modules/faccessat (Depends-on): Likewise.
37421         * modules/fchdir (Depends-on): Likewise.
37422         * modules/fclose (Depends-on): Likewise.
37423         * modules/fcntl (Depends-on): Likewise.
37424         * modules/fdopendir (Depends-on): Likewise.
37425         * modules/fflush (Depends-on): Likewise.
37426         * modules/floor (Depends-on): Likewise.
37427         * modules/floorf (Depends-on): Likewise.
37428         * modules/floorl (Depends-on): Likewise.
37429         * modules/fnmatch (Depends-on): Likewise.
37430         * modules/fopen (Depends-on): Likewise.
37431         * modules/fprintf-posix (Depends-on): Likewise.
37432         * modules/frexp (Depends-on): Likewise.
37433         * modules/frexp-nolibm (Depends-on): Likewise.
37434         * modules/frexpl (Depends-on): Likewise.
37435         * modules/frexpl-nolibm (Depends-on): Likewise.
37436         * modules/fseek (Depends-on): Likewise.
37437         * modules/fsusage (Depends-on): Likewise.
37438         * modules/ftell (Depends-on): Likewise.
37439         * modules/ftello (Depends-on): Likewise.
37440         * modules/futimens (Depends-on): Likewise.
37441         * modules/getcwd (Depends-on): Likewise.
37442         * modules/getcwd-lgpl (Depends-on): Likewise.
37443         * modules/getdelim (Depends-on): Likewise.
37444         * modules/getdomainname (Depends-on): Likewise.
37445         * modules/getgroups (Depends-on): Likewise.
37446         * modules/gethostname (Depends-on): Likewise.
37447         * modules/getline (Depends-on): Likewise.
37448         * modules/getlogin_r (Depends-on): Likewise.
37449         * modules/getopt-posix (Depends-on): Likewise.
37450         * modules/getpeername (Depends-on): Likewise.
37451         * modules/getsockname (Depends-on): Likewise.
37452         * modules/getsockopt (Depends-on): Likewise.
37453         * modules/getsubopt (Depends-on): Likewise.
37454         * modules/getusershell (Depends-on): Likewise.
37455         * modules/glob (Depends-on): Likewise.
37456         * modules/grantpt (Depends-on): Likewise.
37457         * modules/iconv_open (Depends-on): Likewise.
37458         * modules/iconv_open-utf (Depends-on): Likewise.
37459         * modules/inet_ntop (Depends-on): Likewise.
37460         * modules/inet_pton (Depends-on): Likewise.
37461         * modules/ioctl (Depends-on): Likewise.
37462         * modules/isapipe (Depends-on): Likewise.
37463         * modules/isfinite (Depends-on): Likewise.
37464         * modules/isinf (Depends-on): Likewise.
37465         * modules/lchown (Depends-on): Likewise.
37466         * modules/ldexpl (Depends-on): Likewise.
37467         * modules/link (Depends-on): Likewise.
37468         * modules/linkat (Depends-on): Likewise.
37469         * modules/listen (Depends-on): Likewise.
37470         * modules/logl (Depends-on): Likewise.
37471         * modules/lstat (Depends-on): Likewise.
37472         * modules/mbrlen (Depends-on): Likewise.
37473         * modules/mbrtowc (Depends-on): Likewise.
37474         * modules/mbsinit (Depends-on): Likewise.
37475         * modules/mbsnrtowcs (Depends-on): Likewise.
37476         * modules/mbsrtowcs (Depends-on): Likewise.
37477         * modules/mbtowc (Depends-on): Likewise.
37478         * modules/memcmp (Depends-on): Likewise.
37479         * modules/mkdir (Depends-on): Likewise.
37480         * modules/mkdtemp (Depends-on): Likewise.
37481         * modules/mkfifo (Depends-on): Likewise.
37482         * modules/mkfifoat (Depends-on): Likewise.
37483         * modules/mknod (Depends-on): Likewise.
37484         * modules/mkostemp (Depends-on): Likewise.
37485         * modules/mkostemps (Depends-on): Likewise.
37486         * modules/mkstemp (Depends-on): Likewise.
37487         * modules/mkstemps (Depends-on): Likewise.
37488         * modules/mktime (Depends-on): Likewise.
37489         * modules/nanosleep (Depends-on): Likewise.
37490         * modules/open (Depends-on): Likewise.
37491         * modules/openat (Depends-on): Likewise.
37492         * modules/perror (Depends-on): Likewise.
37493         * modules/poll (Depends-on): Likewise.
37494         * modules/popen (Depends-on): Likewise.
37495         * modules/posix_spawn (Depends-on): Likewise.
37496         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
37497         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37498         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37499         * modules/posix_spawnp (Depends-on): Likewise.
37500         * modules/pread (Depends-on): Likewise.
37501         * modules/printf-posix (Depends-on): Likewise.
37502         * modules/ptsname (Depends-on): Likewise.
37503         * modules/putenv (Depends-on): Likewise.
37504         * modules/pwrite (Depends-on): Likewise.
37505         * modules/readline (Depends-on): Likewise.
37506         * modules/readlink (Depends-on): Likewise.
37507         * modules/readlinkat (Depends-on): Likewise.
37508         * modules/recv (Depends-on): Likewise.
37509         * modules/recvfrom (Depends-on): Likewise.
37510         * modules/regex (Depends-on): Likewise.
37511         * modules/remove (Depends-on): Likewise.
37512         * modules/rename (Depends-on): Likewise.
37513         * modules/renameat (Depends-on): Likewise.
37514         * modules/rmdir (Depends-on): Likewise.
37515         * modules/round (Depends-on): Likewise.
37516         * modules/roundf (Depends-on): Likewise.
37517         * modules/roundl (Depends-on): Likewise.
37518         * modules/rpmatch (Depends-on): Likewise.
37519         * modules/select (Depends-on): Likewise.
37520         * modules/send (Depends-on): Likewise.
37521         * modules/sendto (Depends-on): Likewise.
37522         * modules/setenv (Depends-on): Likewise.
37523         * modules/setlocale (Depends-on): Likewise.
37524         * modules/setsockopt (Depends-on): Likewise.
37525         * modules/shutdown (Depends-on): Likewise.
37526         * modules/sigaction (Depends-on): Likewise.
37527         * modules/signbit (Depends-on): Likewise.
37528         * modules/sigprocmask (Depends-on): Likewise.
37529         * modules/sinl (Depends-on): Likewise.
37530         * modules/sleep (Depends-on): Likewise.
37531         * modules/snprintf (Depends-on): Likewise.
37532         * modules/snprintf-posix (Depends-on): Likewise.
37533         * modules/socket (Depends-on): Likewise.
37534         * modules/sprintf-posix (Depends-on): Likewise.
37535         * modules/sqrtl (Depends-on): Likewise.
37536         * modules/stat (Depends-on): Likewise.
37537         * modules/strchrnul (Depends-on): Likewise.
37538         * modules/strdup-posix (Depends-on): Likewise.
37539         * modules/strerror (Depends-on): Likewise.
37540         * modules/strerror_r-posix (Depends-on): Likewise.
37541         * modules/strndup (Depends-on): Likewise.
37542         * modules/strnlen (Depends-on): Likewise.
37543         * modules/strptime (Depends-on): Likewise.
37544         * modules/strsep (Depends-on): Likewise.
37545         * modules/strsignal (Depends-on): Likewise.
37546         * modules/strstr-simple (Depends-on): Likewise.
37547         * modules/strtod (Depends-on): Likewise.
37548         * modules/strtoimax (Depends-on): Likewise.
37549         * modules/strtok_r (Depends-on): Likewise.
37550         * modules/strtoumax (Depends-on): Likewise.
37551         * modules/symlink (Depends-on): Likewise.
37552         * modules/symlinkat (Depends-on): Likewise.
37553         * modules/tanl (Depends-on): Likewise.
37554         * modules/tcgetsid (Depends-on): Likewise.
37555         * modules/tmpfile (Depends-on): Likewise.
37556         * modules/trunc (Depends-on): Likewise.
37557         * modules/truncf (Depends-on): Likewise.
37558         * modules/truncl (Depends-on): Likewise.
37559         * modules/uname (Depends-on): Likewise.
37560         * modules/unlink (Depends-on): Likewise.
37561         * modules/unlockpt (Depends-on): Likewise.
37562         * modules/unsetenv (Depends-on): Likewise.
37563         * modules/usleep (Depends-on): Likewise.
37564         * modules/utimensat (Depends-on): Likewise.
37565         * modules/vasprintf (Depends-on): Likewise.
37566         * modules/vdprintf (Depends-on): Likewise.
37567         * modules/vdprintf-posix (Depends-on): Likewise.
37568         * modules/vfprintf-posix (Depends-on): Likewise.
37569         * modules/vprintf-posix (Depends-on): Likewise.
37570         * modules/vsnprintf (Depends-on): Likewise.
37571         * modules/vsnprintf-posix (Depends-on): Likewise.
37572         * modules/vsprintf-posix (Depends-on): Likewise.
37573         * modules/wcrtomb (Depends-on): Likewise.
37574         * modules/wcscasecmp (Depends-on): Likewise.
37575         * modules/wcscspn (Depends-on): Likewise.
37576         * modules/wcsdup (Depends-on): Likewise.
37577         * modules/wcsncasecmp (Depends-on): Likewise.
37578         * modules/wcsnrtombs (Depends-on): Likewise.
37579         * modules/wcspbrk (Depends-on): Likewise.
37580         * modules/wcsrtombs (Depends-on): Likewise.
37581         * modules/wcsspn (Depends-on): Likewise.
37582         * modules/wcsstr (Depends-on): Likewise.
37583         * modules/wcstok (Depends-on): Likewise.
37584         * modules/wcswidth (Depends-on): Likewise.
37585         * modules/wctob (Depends-on): Likewise.
37586         * modules/wctomb (Depends-on): Likewise.
37587         * modules/wctype (Depends-on): Likewise.
37588         * modules/wcwidth (Depends-on): Likewise.
37589         * modules/write (Depends-on): Likewise.
37591 2011-05-03  Bruno Haible  <bruno@clisp.org>
37593         Support for conditional dependencies.
37594         * doc/gnulib.texi (Module description): Document the syntax of
37595         conditional dependencies.
37596         * gnulib-tool: New option --conditional-dependencies.
37597         (func_usage): Document it.
37598         (cond_dependencies): New variable.
37599         (func_get_automake_snippet_conditional,
37600         func_get_automake_snippet_unconditional): New functions, extracted from
37601         func_get_automake_snippet.
37602         (func_get_automake_snippet): Use them.
37603         (sed_first_32_chars): New variable.
37604         (func_module_shellfunc_name): New function.
37605         (func_module_shellvar_name): New function.
37606         (func_module_conditional_name): New function.
37607         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
37608         func_cond_module_condition): New functions.
37609         (func_modules_transitive_closure): Add support for conditional
37610         dependencies.
37611         (func_emit_lib_Makefile_am): For a conditional module, enclose the
37612         conditional automake snippet in an automake conditional.
37613         (func_emit_autoconf_snippets): Emit shell functions that contain the
37614         code for conditional modules.
37615         (func_import, func_create_testdir): Update specification.
37617 2011-05-03  Eric Blake  <eblake@redhat.com>
37619         test-getaddrinfo: report error information
37620         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
37622 2011-05-03  Jim Meyering  <meyering@redhat.com>
37624         bootstrap: avoid build failure when $GZIP is set
37625         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
37626         program name.  If defined at all, it is supposed to list gzip options.
37627         Reported by Alan Curry in http://debbugs.gnu.org/8609
37629 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
37631         readme-release: new module with release instructions
37632         * modules/readme-release: New module.
37633         * top/README-release: New file, from coreutils, grep, diffutils.
37634         * MODULES.html.sh (Support for maintaining and releasing): Add it.
37636 2011-05-02  Eric Blake  <eblake@redhat.com>
37638         fflush: also replace fclose when fixing fflush
37639         * modules/fflush (Depends-on): Add fclose.
37640         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
37641         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
37642         memstreams with no backing fd.
37643         * doc/posix-functions/fclose.texi (fclose): Document the use of
37644         fflush module to fix the bug.
37645         * tests/test-fclose.c (main): Relax test when fclose is used in
37646         isolation.
37648         fclose: add some tests
37649         * modules/fclose-tests: New test module.
37650         * tests/test-fclose.c: New file.
37651         * doc/posix-functions/fclose.texi (fclose): Document the bug.
37653         fclose: reduced dependencies
37654         * modules/fclose (Depends-on): Switch from fflush/fseeko to
37655         simpler lseek.
37656         * lib/fclose.c (rpl_fclose): Likewise.
37657         Reported by Simon Josefsson.
37659         exit: drop remaining clients
37660         * modules/argmatch (Depends-on): Replace exit with stdlib.
37661         * modules/copy-file (Depends-on): Likewise.
37662         * modules/execute (Depends-on): Likewise.
37663         * modules/exitfail (Depends-on): Likewise.
37664         * modules/obstack (Depends-on): Likewise.
37665         * modules/pagealign_alloc (Depends-on): Likewise.
37666         * modules/pipe-filter-gi (Depends-on): Likewise.
37667         * modules/pipe-filter-ii (Depends-on): Likewise.
37668         * modules/savewd (Depends-on): Likewise.
37669         * modules/spawn-pipe (Depends-on): Likewise.
37670         * modules/wait-process (Depends-on): Likewise.
37671         * modules/xsetenv (Depends-on): Likewise.
37672         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
37673         * modules/git-merge-changelog (Depends-on): Likewise.
37674         * modules/long-options (Depends-on): Likewise.
37675         * modules/pt_chown (Depends-on): Likewise.
37676         * modules/sysexits (Depends-on): Likewise.
37678         freading: relax license from LGPLv3+ to LGPLv2+
37679         * modules/freading (License): Relax LGPL version.
37681 2011-05-02  Bruno Haible  <bruno@clisp.org>
37683         fchdir: Remove unused dependencies.
37684         * modules/fchdir (Depends-on): Remove include_next.
37686 2011-05-02  Bruno Haible  <bruno@clisp.org>
37688         gnulib-tool: Refactor.
37689         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
37690         from func_emit_autoconf_snippets.
37691         (func_emit_autoconf_snippets): Use it.
37693 2011-05-02  Simon Josefsson  <simon@josefsson.org>
37695         * NEWS: Document removal of 'exit'.
37696         * modules/exit: Remove file.
37698 2011-05-01  Bruno Haible  <bruno@clisp.org>
37700         Update DEPENDENCIES.
37701         * DEPENDENCIES (gettext): Recommend the newest release.
37702         Reported by Simon Josefsson.
37704 2011-05-01  Bruno Haible  <bruno@clisp.org>
37706         gnulib-tool: Reduce code duplication.
37707         * gnulib-tool (func_emit_autoconf_snippets): New function.
37708         (func_import, func_create_testdir): Use it.
37710 2011-04-30  Eric Blake  <eblake@redhat.com>
37712         fclose: don't fail on non-seekable input stream
37713         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
37714         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
37715         since fflush is allowed to fail in that case.
37717 2011-04-30  Bruno Haible  <bruno@clisp.org>
37719         dup3: cleanup
37720         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
37722 2011-04-30  Bruno Haible  <bruno@clisp.org>
37724         netdb: Make it work in C++ mode.
37725         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
37726         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
37727         module.
37728         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
37729         gl_MODULE_INDICATOR_FOR_TESTS.
37730         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
37731         * modules/netdb-c++-tests: New file.
37732         * tests/test-netdb-c++.cc: New file.
37734 2011-04-30  Bruno Haible  <bruno@clisp.org>
37736         New modules 'vfscanf', 'vscanf'.
37737         * modules/vfscanf: New file.
37738         * modules/vscanf: New file.
37739         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
37740         here.
37741         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
37742         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
37744 2011-04-30  Bruno Haible  <bruno@clisp.org>
37746         passfd: Add comments.
37747         * lib/passfd.c: Add comments about platforms.
37749 2011-04-30  Bruno Haible  <bruno@clisp.org>
37751         sys_uio: Make <sys/uio.h> self-contained.
37752         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
37753         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
37755 2011-04-30  Bruno Haible  <bruno@clisp.org>
37757         sys_socket: Ensure 'struct iovec' definition.
37758         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
37759         <sys/socket.h>.
37760         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
37762 2011-04-30  Bruno Haible  <bruno@clisp.org>
37764         sys_uio: Protect definition of 'struct iovec'.
37765         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
37766         it as a C struct.
37768 2011-04-30  Bruno Haible  <bruno@clisp.org>
37770         manywarnings: fix indentation
37771         * m4/manywarnings.m4: Indent by 2 spaces consistently.
37773 2011-04-30  Pádraig Brady  <P@draigBrady.com>
37775         manywarnings: add -Wno-missing-field-initializers if needed.
37776         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
37777         option if it's needed to allow initialization with { 0, }
37779 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
37781         announce-gen: cosmetic improvement
37782         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
37784 2011-04-29  Jim Meyering  <meyering@redhat.com>
37786         vc-list-files: indent with spaces, not TABs
37787         * build-aux/vc-list-files: Convert leading TABs to spaces,
37788         to match the style of most other files in gnulib.
37790         announce-gen: indent with spaces, not TABs
37791         * build-aux/announce-gen: Convert all TABs to spaces, to match
37792         the style of most other files in gnulib.
37794 2011-04-29  Eric Blake  <eblake@redhat.com>
37796         quotearg: avoid uninitialized variable use
37797         * lib/quotearg.c (quoting_options_from_style): Initialize
37798         remaining fields, and ensure that custom styles are only used via
37799         quoting_options rather than quoting_style.
37801 2011-04-29  Jim Meyering  <meyering@redhat.com>
37803         maint.mk: remove unused VC-tag variable
37804         * top/maint.mk (VC-tag): Remove unused variable.
37806 2011-04-29  Bruno Haible  <bruno@clisp.org>
37808         netdb: fix gai_strerror replacements
37809         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
37810         * modules/netdb: Substitute it.
37812 2011-04-29  Jim Meyering  <meyering@redhat.com>
37814         test-getcwd.c: avoid new set-but-not-used warning
37815         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
37816         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
37817         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
37818         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
37820         test-hash.c: avoid a new shadowing warning
37821         * tests/test-hash.c (main): Don't shadow "dup".
37823 2011-04-28  Eric Blake  <eblake@redhat.com>
37825         getaddrinfo: fix gai_strerror signature
37826         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
37827         and work around mingw with UNICODE defined.
37828         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
37829         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
37830         * modules/netdb (Makefile.am): Substitute it.
37831         * lib/netdb.in.h (gai_strerror): Declare replacement.
37832         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
37833         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
37834         the fix.
37836         getsockopt: avoid compiler warning
37837         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
37838         Reported by Matthias Bolte.
37840         tests: drop unused link dependency
37841         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
37842         * modules/dirent-safer-tests (Makefile.am): Likewise.
37843         * modules/fdopendir-tests (Makefile.am): Likewise.
37844         * modules/mkfifoat-tests (Makefile.am): Likewise.
37845         * modules/openat-safer-tests (Makefile.am): Likewise.
37846         * modules/openat-tests (Makefile.am): Likewise.
37847         * modules/readlinkat-tests (Makefile.am): Likewise.
37848         * modules/symlinkat-tests (Makefile.am): Likewise.
37849         * modules/linkat-tests (Makefile.am): Likewise.
37850         (Depends-on): Switch to filenamecat-lgpl.
37851         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
37852         LIBINTL.
37853         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
37854         * tests/test-linkat.c (main): Don't require xalloc.
37856         hash, mgetgroups: drop xalloc dependency
37857         * lib/hash.c (includes): Adjust includes.
37858         * lib/mgetgroups.c (includes): Likewise.
37859         (xgetgroups): Move...
37860         * lib/xgetgroups.c: ...to new file.
37861         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
37862         * modules/xgetgroups: New file, split from...
37863         * modules/mgetgroups: ...here.
37864         (Depends-on): Add xalloc-oversized.
37865         * modules/hash (Depends-on): Likewise.
37866         * modules/hash-tests (Depends-on): Drop xalloc.
37867         (test_hash_LDADD): Drop unused library.
37868         * tests/test-hash.c (main): Break xalloc dependency.
37869         (includes): Drop unused include.
37871         xalloc-oversized: new module
37872         * modules/xalloc-oversized: New module.
37873         * modules/xalloc (Depends-on): Add it.
37874         * lib/xalloc.h (xalloc_oversized): Move...
37875         * lib/xalloc-oversized.h: ...into new file.
37877         utimecmp: drop dependency on xmalloc
37878         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
37879         due to memory pressure.
37880         * modules/utimecmp (Depends-on): Drop xalloc.
37882 2011-04-27  Eric Blake  <eblake@redhat.com>
37884         getcwd: fix mingw bugs
37885         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
37886         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
37887         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
37889 2011-04-27  Bruno Haible  <bruno@clisp.org>
37891         mkstemps: Ensure declaration on MacOS X 10.5.
37892         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
37893         * doc/glibc-functions/mkstemps.texi: Document header file problem on
37894         MacOS X.
37896 2011-04-27  Bruno Haible  <bruno@clisp.org>
37898         mkstemp: More documentation.
37899         * doc/posix-functions/mkstemp.texi: Document header file problem on
37900         MacOS X.
37902 2011-04-27  Bruno Haible  <bruno@clisp.org>
37904         mkstemp: Tweak configure message when cross-compiling.
37905         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
37906         result as a guess.
37908 2011-04-27  Bruno Haible  <bruno@clisp.org>
37910         clean-temp: Clarify what it does.
37911         * lib/clean-temp.h: Add more comments.
37912         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
37913         module.
37914         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
37915         * doc/glibc-functions/mkstemps.texi: Likewise.
37916         * doc/glibc-functions/mkostemps.texi: Likewise.
37918 2011-04-27  Eric Blake  <eblake@redhat.com>
37920         fchdir: avoid extra chdir and fix test
37921         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
37922         getcwd-lgpl.
37923         * lib/fchdir.c (get_name): Any absolute name will do; it does not
37924         have to be canonical.
37925         (canonicalize_file_name): Drop unused macro.
37926         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
37928         filenamecat-lgpl: fix licence
37929         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
37930         when it was first created.
37932         linkat, renameat: add missing dependency
37933         * modules/linkat (Depends-on): Require getcwd-lgpl.
37934         * modules/renameat (Depends-on): Likewise.
37936         tests: reduce dependencies
37937         * tests/test-linkat.c (main): Use lighter-weight getcwd.
37938         * tests/test-renameat.c (main): Likewise.
37939         * modules/linkat-tests (Depends-on): Relax dependency.
37940         * modules/renameat-tests (Depends-on): Likewise.
37941         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
37942         dependency explicit.
37944         save-cwd: reduce default dependency
37945         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
37946         * lib/save-cwd.c: Update comments.
37947         * NEWS: Document the semantic change.
37949         getcwd: enhance tests
37950         * tests/test-getcwd-lgpl.c: New file, taken from...
37951         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
37952         repeat long path stress tests from m4 probe.
37953         * modules/getcwd-lgpl-tests: New module.
37954         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
37955         * m4/getcwd-abort-bug.m4: Update comment.
37956         * m4/getcwd-path-max.m4: Likewise.
37958         getcwd-lgpl: new module
37959         * modules/getcwd-lgpl: New module.
37960         * lib/getcwd-lgpl.c: New file.
37961         * doc/posix-functions/getcwd.texi (getcwd): Document it.
37962         * MODULES.html.sh (lacking POSIX:2008): Likewise.
37963         * modules/getcwd (configure.ac): Set C witness.
37964         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
37966         getcwd: tweak comments
37967         * m4/getcwd-abort-bug.m4: Fix comments.
37968         * m4/getcwd-path-max.m4: Likewise.
37969         * m4/getcwd.m4: Likewise.
37971 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
37972         and Eric Blake  <eblake@redhat.com>
37974         mkstemp: replace if system version uses wrong permissions
37975         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
37976         read/write mode bits set in file created by mkstemp.
37977         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
37979 2011-04-27  Eric Blake  <eblake@redhat.com>
37981         passfd: avoid compiler warning
37982         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
37983         Reported by Laine Stump.
37985 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
37987         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
37988         required by the NetBSD (and perhaps other 4.4BSD derived) join.
37990 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
37991         and Eric Blake  <eblake@redhat.com>
37993         mkstemp: mention clean-temp module
37994         * lib/mkstemp.c: Add comment.
37995         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
37997 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
37999         inttypes: also provide default values for 32-bit tests
38000         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
38001         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
38003 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
38005         strtoumax: remove dependency on strtoimax
38006         This is like the strtoull change of yesterday.
38007         * modules/strtoumax (Files): Add lib/strtoimax.c.
38008         (Depends-on): Remove strtoimax and add verify.
38010         inttypes-incomplete: new module
38011         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
38012         all but the PRI* and SCN* parts of gl_INTTYPES_H.
38013         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
38014         of gl_INTTYPES_H.
38015         (gl_INTTYPES_H): Rewrite in terms of these new macros.
38016         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
38017         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
38018         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
38019         * modules/strtoumax, modules/xstrtol (Depends-on):
38020         Depend on inttypes-incomplete, not inttypes.
38021         * modules/inttypes-incomplete: New module, containing the contents
38022         of the old modules/inttypes module, except that the Files: section
38023         omits m4/inttypes-pri.m4, and the configure.ac section invokes
38024         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
38025         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
38026         (Depends-on): Depend only on inttypes-incomplete.
38027         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
38029         inttypes: omit now-redundant strtoimax and strtoumax work
38030         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
38031         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
38033         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
38034         This supports apps that need pointers to strtoimax and strtoumax,
38035         and ports to HP-UX 11.00 64.bit, which has macros that expand to
38036         nonexistent functions.  See
38037         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
38038         et seq.
38039         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
38040         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
38041         a macro.
38042         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
38044 2011-04-25  Simon Josefsson  <simon@josefsson.org>
38046         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
38048 2011-04-25  Bruno Haible  <bruno@clisp.org>
38050         strtol, strtoul: Mark modules as obsolete.
38051         * modules/strtol (Status, Notice): New sections.
38052         * modules/strtoul (Status, Notice): New sections.
38054 2011-04-25  Bruno Haible  <bruno@clisp.org>
38056         strtod: Remove check for strtod, unless supporting old platforms.
38057         * modules/strtod-obsolete: New file.
38058         * m4/strtod-obsolete.m4: New file.
38059         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
38060         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
38061         * modules/strtod (Depends-on): Add strtod-obsolete.
38062         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
38064 2011-04-25  Bruno Haible  <bruno@clisp.org>
38066         strcase: Make module obsolete.
38067         * modules/strcase (Status, Notice): New sections.
38069 2011-04-25  Bruno Haible  <bruno@clisp.org>
38071         dup2: Remove check for dup2, unless supporting old obsolete platforms.
38072         * modules/dup2-obsolete: New file.
38073         * m4/dup2-obsolete.m4: New file.
38074         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
38075         gl_FUNC_DUP2_OBSOLETE is not also defined.
38076         * modules/dup2 (Depends-on): Add dup2-obsolete.
38077         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
38079 2011-04-25  Bruno Haible  <bruno@clisp.org>
38081         strnlen: Avoid memchr related link error on old obsolete platforms.
38082         * modules/memchr-obsolete: New file.
38083         * m4/memchr-obsolete.m4: New file.
38084         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
38085         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
38086         * modules/memchr (Depends-on): Add memchr-obsolete.
38087         * modules/strnlen (Depends-on): Likewise.
38088         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
38090 2011-04-25  Jim Meyering  <meyering@redhat.com>
38092         maint.mk: makefile_at_at_check extend and clean up
38093         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
38094         in addition to */Makefile.am.
38095         Exempt legitimate uses of @VAR@ notation, e.g.,
38096         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
38097         Remove obsolete coreutils-specific comment.
38098         Prompted by discussion here:
38099         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
38101 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
38103         strtoul: remove dependency on strtol
38104         This is so that 'configure' need not check for strtol merely because
38105         the application needs strtoul.
38106         * modules/strtoul (Files): Add lib/strtol.c.
38107         (Depends-on): Remove strtol.
38109         strtoull: remove dependency on strtoul
38110         This is like the strtoll change.
38111         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
38112         (Depends-on): Remove strtoul.
38114         strtoll: remove dependency on strtol
38115         This is so that 'configure' need not check for strtol merely because
38116         the application needs strtoll.
38117         * modules/strtoll (Files): Add lib/strtol.c.
38118         (Depends-on): Remove strtol.
38120 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38122         inttypes: Move some configure check to module 'imaxdiv'.
38123         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
38124         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
38125         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
38127 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38129         inttypes: Move some configure check to module 'imaxabs'.
38130         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
38131         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
38132         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
38134 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38136         inttypes: Remove configure tests that are not needed since 2009-12-31.
38137         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
38138         gl_cv_header_working_inttypes_h.
38140 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38142         * modules/strnlen (Depends-on): Remove memchr.
38143         The strnlen implementation doesn't need the memchr module's fixes; see
38144         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
38146         strtol: remove dependency on wchar
38147         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
38148         * modules/strtol (Depends-on): Remove wchar.
38150 2011-04-21  Eric Blake  <eblake@redhat.com>
38152         passfd: fix test regression on Linux
38153         * modules/passfd-tests (configure.ac): Correct socketpair check.
38155         passfd: speed up configure and drop unused code
38156         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
38157         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
38158         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
38159         Instead of probing at configure for unix_scm_rights_bsd44_way,
38160         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
38161         check to a struct member probe.
38162         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
38163         (sendfd, recvfd): Update preprocessor checks.
38164         * modules/passfd (Files): Reflect rename, and drop unused file.
38165         (Depends-on): Drop unused dependency.
38167         passfd: allow compilation on mingw
38168         * modules/sys_socket (Depends-on): Add sys_uio.
38169         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
38170         iovec and a minimal struct msghdr.
38171         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
38172         * tests/test-sys_socket.c (main): Enhance test.
38173         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
38174         guaranteed to provide what we need.
38175         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
38176         * modules/passfd-tests (Depends-on): Add sys_wait.
38177         * tests/test-passfd.c (main): Skip test on mingw, for now.
38178         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
38179         partial 'struct msghdr' implementation.
38181         sys_uio: new module
38182         * modules/sys_uio: New module.
38183         * modules/sys_uio-tests: Likewise.
38184         * lib/sys_uio.in.h: New file.
38185         * m4/sys_uio_h.m4: Likewise.
38186         * tests/test-sys_uio.c: Likewise.
38187         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
38188         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
38190 2011-04-20  Jim Meyering  <meyering@redhat.com>
38192         useless-if-before-free: avoid false-positive
38193         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
38194         disjunct so that it too requires a terminating ";".  Without that,
38195         this script would identify as useless one statement from gcc that
38196         was not:
38197           if (aligned_ptr)
38198             free (((void **) aligned_ptr) [-1]);
38200 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
38202         doc: update users.txt.
38203         * users.txt: Add barcode.
38205 2011-04-19  Bruno Haible  <bruno@clisp.org>
38207         ioctl: Remove link dependency on native Windows.
38208         * lib/fd-hook.h: Renamed from lib/close-hook.h.
38209         (gl_close_fn, gl_ioctl_fn): New types.
38210         (struct fd_hook): Renamed from struct close_hook. Change type of
38211         private_close_fn field. Add private_ioctl_fn field.
38212         (close_hook_fn): Add parameter for primary close method.
38213         (execute_close_hooks, execute_all_close_hooks): Likewise.
38214         (ioctl_hook_fn): New type.
38215         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
38216         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
38217         argument.
38218         (unregister_fd_hook): Renamed from unregister_close_hook.
38219         * lib/fd-hook.c: Renamed from lib/close-hook.c.
38220         Don't include <unistd.h>.
38221         (close): Remove undef.
38222         (anchor): Update.
38223         (execute_close_hooks): Add argument for primary close method.
38224         (execute_all_close_hooks): Likewise.
38225         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
38226         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
38227         argument. Allow each argument to be NULL.
38228         (unregister_fd_hook): Renamed from unregister_close_hook.
38229         * lib/close.c (rpl_close): Pass 'close' function pointer to
38230         execute_all_close_hooks.
38231         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
38232         (primary_ioctl): New function.
38233         (ioctl): Don't call ioctlsocket here. Instead, call
38234         execute_all_ioctl_hooks.
38235         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
38236         close method.
38237         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
38238         (fd_sockets_hook): Renamed from close_sockets_hook.
38239         (gl_sockets_startup, gl_sockets_cleanup): Update.
38240         * modules/fd-hook: Renamed from modules/close-hook. Update.
38241         * modules/close (Depends-on): Add fd-hook, remove close-hook.
38242         * modules/sockets (Depends-on): Likewise.
38243         * modules/ioctl (Depends-on): Add fd-hook.
38244         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
38245         GNULIB_SOCKET.
38247 2011-04-19  Bruno Haible  <bruno@clisp.org>
38249         Move the support of O_NONBLOCK in open() to the 'open' module.
38250         * modules/nonblocking (Depends-on): Remove 'open'.
38251         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
38252         gl_cv_have_open_O_NONBLOCK.
38253         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
38254         O_NONBLOCK support.
38255         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
38257 2011-04-17  Bruno Haible  <bruno@clisp.org>
38259         pipe2: Simplify code.
38260         * lib/pipe2.c (pipe2): Reduce code duplication.
38262 2011-04-17  Bruno Haible  <bruno@clisp.org>
38264         nonblocking: Add comment.
38265         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
38267 2011-04-17  Bruno Haible  <bruno@clisp.org>
38269         nonblocking: Add tests for sockets.
38270         * tests/test-nonblocking-socket.sh: New file.
38271         * tests/test-nonblocking-socket-main.c: New file.
38272         * tests/test-nonblocking-socket-child.c: New file.
38273         * tests/test-nonblocking-socket.h: New file.
38274         * tests/socket-server.h: New file.
38275         * tests/socket-client.h: New file.
38276         * modules/nonblocking-socket-tests: New file.
38277         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
38279 2011-04-17  Bruno Haible  <bruno@clisp.org>
38281         nonblocking: Add tests for pipes.
38282         * tests/test-nonblocking-pipe.sh: New file.
38283         * tests/test-nonblocking-pipe-main.c: New file.
38284         * tests/test-nonblocking-pipe-child.c: New file.
38285         * tests/test-nonblocking-pipe.h: New file.
38286         * tests/test-nonblocking-writer.h: New file.
38287         * tests/test-nonblocking-reader.h: New file.
38288         * tests/test-nonblocking-misc.h: New file.
38289         * modules/nonblocking-pipe-tests: New file.
38290         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
38292 2011-04-16  Bruno Haible  <bruno@clisp.org>
38294         gettext: Clarify the needed programmer actions.
38295         * modules/gettext (Notice): New field.
38296         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
38298 2011-04-16  Bruno Haible  <bruno@clisp.org>
38300         strchrnul: Tweak last commit.
38301         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
38302         bug.
38303         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
38304         as in _GL_FUNCDECL_SYS.
38305         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
38306         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
38308 2011-04-15  Eric Blake  <eblake@redhat.com>
38310         strchrnul: work around cygwin bug
38311         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
38312         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
38313         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
38314         * modules/string (Makefile.am): Substitute it.
38315         * lib/string.in.h (strchrnul): Use it.
38317 2011-04-15  Bruno Haible  <bruno@clisp.org>
38319         Don't require lib/stdio-write.c when only module 'stdio' is used.
38320         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
38321         invocation.
38322         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
38324 2011-04-14  Bruno Haible  <bruno@clisp.org>
38326         Support non-blocking pipe I/O in read() on native Windows.
38327         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
38328         (read): New declaration.
38329         * lib/read.c: New file.
38330         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
38331         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
38332         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
38333         vscanf): New declarations.
38334         * lib/stdio-read.c: New file.
38335         * m4/read.m4: New file.
38336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
38337         REPLACE_READ.
38338         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
38339         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38340         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
38341         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
38342         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
38343         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38344         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
38345         * modules/read: New file.
38346         * modules/nonblocking (Files): Add lib/stdio-read.c.
38347         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
38348         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
38349         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38350         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
38351         * modules/pread (Depends-on): Add read.
38352         * modules/safe-read (Depends-on): Likewise.
38353         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
38354         gets, scanf, vfscanf, vscanf): Verify signatures.
38355         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
38356         problem with non-blocking pipes.
38357         * doc/posix-functions/fgetc.texi: Likewise.
38358         * doc/posix-functions/fgets.texi: Likewise.
38359         * doc/posix-functions/fread.texi: Likewise.
38360         * doc/posix-functions/fscanf.texi: Likewise.
38361         * doc/posix-functions/getc.texi: Likewise.
38362         * doc/posix-functions/getchar.texi: Likewise.
38363         * doc/posix-functions/gets.texi: Likewise.
38364         * doc/posix-functions/scanf.texi: Likewise.
38365         * doc/posix-functions/vfscanf.texi: Likewise.
38366         * doc/posix-functions/vscanf.texi: Likewise.
38368 2011-04-14  Bruno Haible  <bruno@clisp.org>
38370         Support non-blocking pipe I/O in write() on native Windows.
38371         * lib/write.c (rpl_write): Split a write request that failed merely
38372         because the byte count was larger than the pipe buffer's size.
38373         * doc/posix-functions/write.texi: Mention the problem with large byte
38374         counts.
38376 2011-04-14  Bruno Haible  <bruno@clisp.org>
38378         wchar: Ensure that wchar_t gets defined on uClibc.
38379         * lib/wchar.in.h: On uClibc, include <stddef.h>.
38380         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
38382 2011-04-13  Bruno Haible  <bruno@clisp.org>
38384         safe-write, full-read: Avoid unnecessary compilation units.
38385         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
38386         (Depends-on): Remove safe-read. Add ssize_t.
38387         * modules/full-read (Files): Add lib/full-write.c.
38388         (Depends-on): Add full-write.
38390 2011-04-13  Bruno Haible  <bruno@clisp.org>
38392         Support non-blocking pipe I/O and SIGPIPE in pwrite().
38393         * modules/pwrite (Depends-on): Add 'write'.
38395 2011-04-13  Bruno Haible  <bruno@clisp.org>
38397         Support non-blocking pipe I/O in write() on native Windows.
38398         * lib/unistd.in.h (write): Enable replacement also if
38399         GNULIB_UNISTD_H_NONBLOCKING is 1.
38400         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
38401         (rpl_write): When failing to write on a non-blocking pipe, change
38402         errno from ENOSPC to EAGAIN.
38403         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
38404         putchar, puts, vfprintf, vprintf): Enable replacement also if
38405         GNULIB_STDIO_H_NONBLOCKING is 1.
38406         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
38407         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
38408         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
38409         CALL_WITH_SIGPIPE_EMULATION.
38410         (CALL_WITH_SIGPIPE_EMULATION): Use them.
38411         * m4/nonblocking.m4: New file.
38412         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
38413         for non-blocking I/O support.
38414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38415         GNULIB_UNISTD_H_NONBLOCKING.
38416         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
38417         required for non-blocking I/O support.
38418         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
38419         * modules/nonblocking (Files): Add m4/nonblocking.m4,
38420         lib/stdio-write.c, m4/asm-underscore.m4.
38421         (Depends-on): Add stdio, unistd.
38422         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
38423         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
38424         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
38425         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
38426         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
38427         problem with non-blocking pipes.
38428         * doc/posix-functions/fputc.texi: Likewise.
38429         * doc/posix-functions/fputs.texi: Likewise.
38430         * doc/posix-functions/fwrite.texi: Likewise.
38431         * doc/posix-functions/printf.texi: Likewise.
38432         * doc/posix-functions/putc.texi: Likewise.
38433         * doc/posix-functions/putchar.texi: Likewise.
38434         * doc/posix-functions/puts.texi: Likewise.
38435         * doc/posix-functions/vfprintf.texi: Likewise.
38436         * doc/posix-functions/vprintf.texi: Likewise.
38437         * doc/posix-functions/write.texi: Likewise.
38439 2011-04-10  Jim Meyering  <meyering@redhat.com>
38441         maint.mk: prohibit doubled words
38442         Detect them also when they're separated by a newline.
38443         There are 3 ways to customize it:
38444           - disable the test on a per file basis, as usual with rules using
38445             $(VC_LIST_EXCEPT)
38446           - replace the default doubled-word-selecting regexp (affects all files)
38447           - ignore a particular file-vs-doubled-word match
38448         I nearly used that last one to ignore the "is is" match in
38449         coreutils' NEWS file, since the text was "ls -is is ..."
38450         To do that, I would have added this line to cfg.mk:
38451           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
38452         but it would have ignored any "is is" match in NEWS.
38453         Low probability, but still...
38454         Instead, I changed the text, slightly:
38455           -  ls -is is now consistent with ls -lis in ignoring values returned
38456           +  "ls -is" is now consistent with ls -lis in ignoring values returned
38457         * top/maint.mk (prohibit_double_word_RE_): Provide default.
38458         (prohibit_doubled_word_): Define.
38459         (sc_prohibit_doubled_word): New rule.
38460         (sc_prohibit_the_the): Remove.  Subsumed by the above.
38462 2011-04-10  Jim Meyering  <meyering@redhat.com>
38464         maint: fix doubled-word typo in comment
38465         * m4/gethostname.m4: s/is is/it is/
38466         * m4/getdomainname.m4: Likewise.
38468 2011-04-10  Jim Meyering  <meyering@redhat.com>
38470         maint: remove doubled word: s/it it/it/
38471         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
38473 2011-04-10  Jim Meyering  <meyering@redhat.com>
38475         maint.mk: remove useless semicolon and backslash
38476         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
38477         semicolon and backslash.
38479 2011-04-10  Bruno Haible  <bruno@clisp.org>
38481         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
38482         * modules/stdint-tests (Depends-on): Add wchar.
38484 2011-04-10  Jim Meyering  <meyering@redhat.com>
38486         maint: remove doubled words in comments, e.g., s/a a/a/
38487         * lib/strptime.c (day_of_the_week): s/the the/the/
38488         * tests/test-chown.h (test_chown): s/a a/a/
38490         test-chown.h: correct a cast
38491         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
38492         when the destination is a stat.st_gid.
38494 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
38496         getaddrinfo: Fix test for sa_len member.
38497         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
38498         include <sys/types.h> before <sys/socket.h>.
38500 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38502         maint: change "can not" to "cannot"
38503         * doc/posix-functions/iconv.texi (iconv): This one crossed line
38504         boundaries.
38506 2011-04-09  Jim Meyering  <meyering@redhat.com>
38508         maint: change "a a" to "a"
38509         * tests/test-lchown.h (test_lchown): s/a a/a/
38511         maint.mk: prohibit \<the the\>
38512         * top/maint.mk (sc_prohibit_the_the): New rule.
38514         maint: fix "the the" in comment
38515         * lib/count-one-bits.h: s/the the/the/
38517         maint: change "can not" to "cannot"
38518         But do not change the occurrences in maintain.texi or in
38519         build-aux/po/Makefile.in.in, which I presume comes from gettext.
38520         * doc/gnulib-tool.texi: s/can not/cannot/
38521         * doc/posix-functions/accept.texi (accept): Likewise.
38522         * doc/posix-functions/socket.texi (socket): Likewise.
38523         * lib/mbrtowc.c: Likewise.
38525         maint.mk: prohibit use of "can not"
38526         * top/maint.mk (sc_prohibit_can_not): New rule.
38527         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
38529 2011-04-09  Bruno Haible  <bruno@clisp.org>
38531         careadlinkat: Guard against misuse of careadlinkatcwd.
38532         * lib/careadlinkat.c: Include <stdlib.h>.
38533         (careadlinkatcwd): Check that the fd argument is as expected.
38535 2011-04-09  Bruno Haible  <bruno@clisp.org>
38537         careadlinkat: Use common coding style.
38538         * lib/careadlinkat.c: Move gnulib includes after system includes.
38540 2011-04-09  Bruno Haible  <bruno@clisp.org>
38542         careadlinkat: Clarify specification.
38543         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
38544         (careadlinkatcwd): Add comment.
38545         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
38547 2011-04-09  Bruno Haible  <bruno@clisp.org>
38549         areadlinkat: Avoid link error on many platforms.
38550         * modules/areadlinkat (Depends-on): Add areadlink.
38552 2011-04-09  Bruno Haible  <bruno@clisp.org>
38554         allocator, careadlinkat: Fix double-inclusion guard.
38555         * lib/allocator.h: Fix double-inclusion guard.
38556         * lib/careadlinkat.h: Likewise.
38558 2011-04-09  Bruno Haible  <bruno@clisp.org>
38560         relocatable-prog-wrapper: Update after module 'areadlink' changed.
38561         * lib/relocwrapper.c: Update dependencies hierarchy.
38562         * build-aux/install-reloc: Update list of files to be compiled.
38563         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
38564         lib/allocator.[hc].
38566 2011-04-08  Eric Blake  <eblake@redhat.com>
38568         strftime: silence gnulib-tool warning
38569         * modules/strftime-tests (Depends-on): Drop automatic dependency.
38571 2011-04-08  Bruno Haible  <bruno@clisp.org>
38573         verify: Fix syntax error with GCC 4.6 in C++ mode.
38574         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
38575         (HAVE_STATIC_ASSERT): New macro.
38576         (verify_true, verify): Use 'static_assert' if it is supported and
38577         '_Static_assert' is not supported.
38579 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
38581         allocator: New module.
38582         * modules/allocator, lib/allocator.c: New files.
38583         * lib/allocator.h (stdlib_allocator): New decl.
38584         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
38585         Remove.  Do not include <stdlib.h>.
38586         (careadlinkat): Use stdlib_allocator instead of rolling our own.
38587         * modules/careadlinkat (Files): Remove lib/allocator.h.
38588         (Depends-on): Add allocator.
38590         stdlib: let modules use system malloc, realloc
38591         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
38592         if !_GL_USE_STDLIB_ALLOC.
38593         (malloc, realloc): Limit this change to a smaller scope.
38595         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
38596         (malloc, realloc): Don't #undef; no longer needed.
38597         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38598         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38599         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
38600         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38601         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38602         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38603         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38604         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
38606         careadlinkat: rename members to avoid problem
38607         * lib/allocator.h (struct allocator): Rename members from
38608         malloc/realloc to allocate/reallocate, to avoid problems if malloc
38609         and realloc are #define'd.  Reported by Eric Blake in
38610         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
38611         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
38613 2011-04-08  Eric Blake  <eblake@redhat.com>
38615         nonblocking: reduce dependency
38616         * tests/test-nonblocking.c: Only test sockets when in use.
38617         * modules/nonblocking-tests (Depends-on): Drop socket.
38618         (Makefile.am): Link even if sockets are not present.
38619         * modules/pipe2-tests (Makefile.am): Likewise.
38620         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
38622         pipe2: fix O_NONBLOCK support on mingw
38623         * modules/pipe2 (Depends-on): Add nonblocking.
38624         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
38625         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
38626         * tests/test-nonblocking.c (main): Likewise.
38627         * modules/pipe2-tests (Makefile.am): Avoid link failure.
38629         fcntl-h: fix O_ACCMODE on cygwin
38630         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
38631         * lib/fcntl.in.h (O_ACCMODE): Fix it.
38633         pipe-filter: drop O_NONBLOCK workarounds
38634         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
38635         * modules/pipe-filter-ii (Depends-on): Likewise.
38636         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
38638         nonblocking: provide O_NONBLOCK for mingw
38639         * modules/nonblocking (Depends-on): Add open.
38640         (configure.ac): Set new witness macro.
38641         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
38642         * modules/fcntl-h (Makefile.am): Substitute it.
38643         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
38644         nonblocking module is in use.
38645         * lib/nonblocking.c: Adjust portability test.
38646         * lib/open.c (open): Don't let native open see gnulib flag.
38647         * tests/test-fcntl-h.c (main): Enhance test.
38648         * tests/test-open.h (test_open): Likewise.
38649         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
38651         careadlinkat: fix compilation error on mingw
38652         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
38653         within struct allocator.
38655 2011-04-06  Eric Blake  <eblake@redhat.com>
38657         binary-io: relicense under LGPLv2+
38658         * modules/binary-io (License): Relax to LGPLv2+.
38659         Requested for libvirt, and required by pipe2.
38661 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
38663         verify: use _Static_assert if available
38664         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
38665         (verify_true, verify): Use it if available.  This generates better
38666         diagnostics with GCC 4.6.0 and later.
38668 2011-04-05  Bruno Haible  <bruno@clisp.org>
38670         Remove leftover generated .h files after config.status changed.
38672         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
38673         GL_GENERATE_ALLOCA_H.
38674         * modules/alloca-opt (Makefile.am): Remove alloca.h if
38675         GL_GENERATE_ALLOCA_H evaluates to false.
38677         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
38678         GL_GENERATE_ARGZ_H.
38679         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
38680         evaluates to false.
38682         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
38683         GL_GENERATE_BYTESWAP_H.
38684         * modules/byteswap (Makefile.am): Remove byteswap.h if
38685         GL_GENERATE_BYTESWAP_H evaluates to false.
38687         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
38688         GL_GENERATE_ERRNO_H.
38689         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
38690         evaluates to false.
38692         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
38693         GL_GENERATE_FLOAT_H.
38694         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
38695         evaluates to false.
38697         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
38698         GL_GENERATE_FNMATCH_H.
38699         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
38700         GL_GENERATE_FNMATCH_H evaluates to false.
38702         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
38703         GL_GENERATE_GLOB_H.
38704         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
38705         evaluates to false.
38707         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
38708         automake conditional GL_GENERATE_ICONV_H.
38709         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
38710         evaluates to false.
38712         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
38713         GL_GENERATE_NETINET_IN_H.
38714         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
38715         GL_GENERATE_NETINET_IN_H evaluates to false.
38717         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
38718         conditional GL_GENERATE_PTHREAD_H.
38719         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
38720         * modules/pthread (Makefile.am): Remove pthread.h if
38721         GL_GENERATE_PTHREAD_H evaluates to false.
38723         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
38724         GL_GENERATE_SCHED_H.
38725         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
38726         evaluates to false.
38728         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
38729         conditional GL_GENERATE_SELINUX_CONTEXT_H.
38730         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
38731         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
38733         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
38734         GL_GENERATE_STDARG_H.
38735         * modules/stdarg (Makefile.am): Remove stdarg.h if
38736         GL_GENERATE_STDARG_H evaluates to false.
38738         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
38739         GL_GENERATE_STDBOOL_H.
38740         * modules/stdbool (Makefile.am): Remove stdbool.h if
38741         GL_GENERATE_STDBOOL_H evaluates to false.
38743         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
38744         conditional GL_GENERATE_STDDEF_H.
38745         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
38746         * modules/stddef (Makefile.am): Remove stddef.h if
38747         GL_GENERATE_STDDEF_H evaluates to false.
38749         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
38750         GL_GENERATE_STDINT_H.
38751         * modules/stdint (Makefile.am): Remove stdint.h if
38752         GL_GENERATE_STDINT_H evaluates to false.
38754         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
38755         GL_GENERATE_SYSEXITS_H.
38756         * modules/sysexits (Makefile.am): Remove sysexits.h if
38757         GL_GENERATE_SYSEXITS_H evaluates to false.
38759         Reported by Karl Berry and Ralf Wildenhues.
38761 2011-04-05  Bruno Haible  <bruno@clisp.org>
38763         Ensure to rebuild generated .h files when config.status has changed.
38764         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
38765         config.status.
38766         * modules/ctype (Makefile.am): Likewise.
38767         * modules/dirent (Makefile.am): Likewise.
38768         * modules/errno (Makefile.am): Likewise.
38769         * modules/fcntl-h (Makefile.am): Likewise.
38770         * modules/float (Makefile.am): Likewise.
38771         * modules/getopt-posix (Makefile.am): Likewise.
38772         * modules/glob (Makefile.am): Likewise.
38773         * modules/iconv-h (Makefile.am): Likewise.
38774         * modules/inttypes (Makefile.am): Likewise.
38775         * modules/langinfo (Makefile.am): Likewise.
38776         * modules/locale (Makefile.am): Likewise.
38777         * modules/math (Makefile.am): Likewise.
38778         * modules/netdb (Makefile.am): Likewise.
38779         * modules/netinet_in (Makefile.am): Likewise.
38780         * modules/poll-h (Makefile.am): Likewise.
38781         * modules/pthread (Makefile.am): Likewise.
38782         * modules/pty (Makefile.am): Likewise.
38783         * modules/sched (Makefile.am): Likewise.
38784         * modules/search (Makefile.am): Likewise.
38785         * modules/selinux-h (Makefile.am): Likewise.
38786         * modules/signal (Makefile.am): Likewise.
38787         * modules/spawn (Makefile.am): Likewise.
38788         * modules/stdarg (Makefile.am): Likewise.
38789         * modules/stdbool (Makefile.am): Likewise.
38790         * modules/stddef (Makefile.am): Likewise.
38791         * modules/stdint (Makefile.am): Likewise.
38792         * modules/stdio (Makefile.am): Likewise.
38793         * modules/stdlib (Makefile.am): Likewise.
38794         * modules/string (Makefile.am): Likewise.
38795         * modules/strings (Makefile.am): Likewise.
38796         * modules/sys_file (Makefile.am): Likewise.
38797         * modules/sys_ioctl (Makefile.am): Likewise.
38798         * modules/sys_select (Makefile.am): Likewise.
38799         * modules/sys_socket (Makefile.am): Likewise.
38800         * modules/sys_stat (Makefile.am): Likewise.
38801         * modules/sys_time (Makefile.am): Likewise.
38802         * modules/sys_times (Makefile.am): Likewise.
38803         * modules/sys_utsname (Makefile.am): Likewise.
38804         * modules/sys_wait (Makefile.am): Likewise.
38805         * modules/sysexits (Makefile.am): Likewise.
38806         * modules/termios (Makefile.am): Likewise.
38807         * modules/time (Makefile.am): Likewise.
38808         * modules/unistd (Makefile.am): Likewise.
38809         * modules/wchar (Makefile.am): Likewise.
38810         * modules/wctype-h (Makefile.am): Likewise.
38811         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
38813 2011-04-05  Bruno Haible  <bruno@clisp.org>
38815         pipe2: Relicense under LGPLv2+.
38816         * modules/pipe2 (License): Change to LGPLv2+.
38817         Requested by Eric Blake, for libvirt.
38819 2011-04-05  Bruce Korb  <bkorb@gnu.org>
38821         bootstrap: compute gnulib_extra_files after updating build_aux
38822         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
38823         change build_aux or also supply gnulib_extra_files.  Handle correctly.
38825 2011-04-05  Eric Blake  <eblake@redhat.com>
38827         bootstrap: preserve git whitelist item sorting
38828         * build-aux/bootstrap (sort_patterns): New function.
38829         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
38831 2011-04-05  Simon Josefsson  <simon@josefsson.org>
38833         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
38834         sc_space_tab check.
38836 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
38838         areadlink, areadlinkat: rewrite in terms of careadlinkat
38839         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
38840         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
38841         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
38842         (malloc, realloc): Remove #undefs.
38843         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
38844         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
38845         readlink, ssize_t, stdint, unistd.
38846         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
38847         areadlink, stdint.
38849         careadlinkat: new module
38850         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
38851         * modules/careadlinkat: New files, written by me with
38852         a review and feedback from Ben Pfaff in
38853         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
38855 2011-04-01  Bruno Haible  <bruno@clisp.org>
38857         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
38858         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
38859         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
38860         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
38861         Reported by Bruce Korb <bruce.korb@gmail.com>.
38863 2011-04-01  Bruno Haible  <bruno@clisp.org>
38865         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
38866         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
38867         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
38868         * modules/wcpcpy (Depends-on): Add extensions.
38869         * modules/wcpncpy (Depends-on): Likewise.
38870         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
38871         systems.
38872         * doc/posix-functions/wcpncpy.texi: Likewise.
38873         * doc/posix-functions/wcwidth.texi: Likewise.
38875 2011-03-31  Eric Blake  <eblake@redhat.com>
38877         nonblocking: fix mingw test failures
38878         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
38879         non-blocking flag on regular file.
38880         (get_nonblocking_flag): Set errno on invalid fd.
38881         * tests/test-nonblocking.c (main): Avoid test failure on
38882         directories if fchdir is not active.
38883         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
38885 2011-03-31  Bruno Haible  <bruno@clisp.org>
38887         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
38888         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
38889         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
38890         Reported by Simon Josefsson <simon@josefsson.org>.
38892 2011-03-31  Bruno Haible  <bruno@clisp.org>
38893         and Eric Blake  <eblake@redhat.com>
38895         nonblocking: new module
38896         * modules/nonblocking: New module.
38897         * modules/nonblocking-tests: Likewise.
38898         * lib/nonblocking.h: New file.
38899         * lib/nonblocking.c: Likewise.
38900         * tests/test-nonblocking.c: New test.
38901         * lib/ioctl.c (ioctl) [mingw]: Update comment.
38903 2011-03-30  Bruno Haible  <bruno@clisp.org>
38905         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
38906         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
38907         instead of 'printf' format for GCC >= 4.4.
38908         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
38909         (fprintf, printf, vfprintf, vprintf): Declare with
38910         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
38911         the system's vfprintf() function.
38912         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
38914 2011-03-30  Eric Blake  <eblake@redhat.com>
38916         passfd: fix scoping bug
38917         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
38918         before sendmsg/recvmsg.
38920         passfd: standardize coding conventions
38921         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
38922         can be learned at compile time.
38923         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
38924         ifdefs.
38925         (sendfd, recvfd): Follow gnulib code conventions.
38927         passfd: fix incorrect sendmsg arguments
38928         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
38929         incorrect msg_controllen value.
38930         * modules/passfd-tests (Depends-on): Check for alarm.
38931         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
38932         Reported by Bastien ROUCARIES.
38934 2011-03-30  Bruno Haible  <bruno@clisp.org>
38936         c-strcasestr: Relicense under LGPLv2+.
38937         * modules/c-strcasestr (License): Change to LGPLv2+.
38938         Requested by Eric Blake, for libvirt.
38940 2011-03-30  Simon Josefsson  <simon@josefsson.org>
38942         * users.txt: Add libidn2.  Fix libtasn1 link.
38944 2011-03-30  Jim Meyering  <meyering@redhat.com>
38946         tests: readlink* ("",... fails with EINVAL on newer kernels
38947         readlink and readlinkat have typically failed with ENOENT for
38948         the invalid, empty file name,  "".  However, with the advent
38949         of linux-2.6.39, they fail with EINVAL.
38950         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
38951         when operating on the empty file name.
38952         * tests/test-readlink.h (test_readlink): Likewise.
38954 2011-03-29  Bruno Haible  <bruno@clisp.org>
38956         Relicense some modules under LGPLv2+, for libidn2.
38957         * modules/array-mergesort (License): Change to LGPLv2+.
38958         * modules/c-strcaseeq (License): Likewise.
38959         * modules/striconveh (License): Likewise.
38960         * modules/striconveha (License): Likewise.
38961         * modules/uniconv/base (License): Likewise.
38962         * modules/uniconv/u8-conv-from-enc (License): Likewise.
38963         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
38964         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
38965         * modules/unictype/base (License): Likewise.
38966         * modules/unictype/bidiclass-of (License): Likewise.
38967         * modules/unictype/category-M (License): Likewise.
38968         * modules/unictype/category-none (License): Likewise.
38969         * modules/unictype/category-of (License): Likewise.
38970         * modules/unictype/category-test (License): Likewise.
38971         * modules/unictype/category-test-withtable (License): Likewise.
38972         * modules/unictype/combining-class (License): Likewise.
38973         * modules/unictype/joiningtype-of (License): Likewise.
38974         * modules/unictype/scripts (License): Likewise.
38975         * modules/uninorm/base (License): Likewise.
38976         * modules/uninorm/canonical-decomposition (License): Likewise.
38977         * modules/uninorm/composition (License): Likewise.
38978         * modules/uninorm/decompose-internal (License): Likewise.
38979         * modules/uninorm/decomposition-table (License): Likewise.
38980         * modules/uninorm/nfc (License): Likewise.
38981         * modules/uninorm/nfd (License): Likewise.
38982         * modules/uninorm/u32-normalize (License): Likewise.
38983         * modules/unistr/base (License): Likewise.
38984         * modules/unistr/u32-cpy (License): Likewise.
38985         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
38986         * modules/unistr/u32-to-u8 (License): Likewise.
38987         * modules/unistr/u32-uctomb (License): Likewise.
38988         * modules/unistr/u8-check (License): Likewise.
38989         * modules/unistr/u8-mblen (License): Likewise.
38990         * modules/unistr/u8-mbtouc (License): Likewise.
38991         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
38992         * modules/unistr/u8-mbtoucr (License): Likewise.
38993         * modules/unistr/u8-prev (License): Likewise.
38994         * modules/unistr/u8-strlen (License): Likewise.
38995         * modules/unistr/u8-to-u32 (License): Likewise.
38996         * modules/unistr/u8-uctomb (License): Likewise.
38997         * modules/unitypes (License): Likewise.
38998         Requested by Simon Josefsson.
39000 2011-03-29  Simon Josefsson  <simon@josefsson.org>
39002         lib-symbol-visibility: Add a notice.
39003         * modules/lib-symbol-visibility (Notice): New field.
39005 2011-03-29  Bruno Haible  <bruno@clisp.org>
39007         getaddrinfo: Doc fix.
39008         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
39009         section "fixed in Gnulib".
39011 2011-03-28  Simon Josefsson  <simon@josefsson.org>
39013         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
39014         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
39016 2011-03-26  Bruno Haible  <bruno@clisp.org>
39018         unictype/property-byname: Reduce the number of load-time relocations.
39019         * lib/unictype/pr_byname.c: Include <stdlib.h>.
39020         (UC_PROPERTY_INDEX_*): New enumeration values.
39021         (uc_property_byname): Convert an index from the lookup table to an
39022         uc_property_t.
39023         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
39024         values.
39026 2011-03-26  Bruno Haible  <bruno@clisp.org>
39028         unictype/property-byname: Allow omitted word separators and aliases.
39029         * lib/unictype/pr_byname.gperf: Add property names without word
39030         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
39031         for 'space'.
39033 2011-03-26  Bruno Haible  <bruno@clisp.org>
39035         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
39036         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
39037         also hyphens to space.
39038         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
39039         without spaces.
39040         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
39042 2011-03-26  Bruno Haible  <bruno@clisp.org>
39044         unictype/joiningtype-byname: Recognize long names as well.
39045         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
39046         a long name.
39047         * lib/unictype/joiningtype_byname.c: Include <string.h>,
39048         unictype/joiningtype_byname.h.
39049         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
39050         * lib/unictype/joiningtype_byname.gperf: New file.
39051         * modules/unictype/joiningtype-byname (Files): Add
39052         lib/unictype/joiningtype_byname.gperf.
39053         (Depends-on): Add gperf.
39054         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
39055         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
39056         long names.
39058         Tests for module 'unictype/joiningtype-longname'.
39059         * modules/unictype/joiningtype-longname-tests: New file.
39060         * tests/unictype/test-joiningtype_longname.c: New file.
39062         New module 'unictype/joiningtype-longname'.
39063         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
39064         * lib/unictype/joiningtype_longname.c: New file.
39065         * modules/unictype/joiningtype-longname: New file.
39066         * modules/unictype/joiningtype-all (Depends-on): Add
39067         unictype/joiningtype-longname.
39069 2011-03-26  Bruno Haible  <bruno@clisp.org>
39071         unictype/bidiclass-byname: Recognize long names as well.
39072         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
39073         name.
39074         * lib/unictype/bidi_byname.c: Include <string.h>,
39075         unictype/bidi_byname.h.
39076         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
39077         * lib/unictype/bidi_byname.gperf: New file.
39078         * modules/unictype/bidiclass-byname (Files): Add
39079         lib/unictype/bidi_byname.gperf.
39080         (Depends-on): Add gperf.
39081         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
39082         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
39083         long names.
39085         Tests for module 'unictype/bidiclass-longname'.
39086         * modules/unictype/bidiclass-longname-tests: New file.
39087         * tests/unictype/test-bidi_longname.c: New file.
39089         New module 'unictype/bidiclass-longname'.
39090         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
39091         * lib/unictype/bidi_longname.c: New file.
39092         * modules/unictype/bidiclass-longname: New file.
39093         * modules/unictype/bidiclass-all (Depends-on): Add
39094         unictype/bidiclass-longname.
39096 2011-03-26  Bruno Haible  <bruno@clisp.org>
39098         unictype/bidi*: Rename modules.
39099         * modules/unictype/bidiclass-all: Renamed from
39100         modules/unictype/bidicategory-all.
39101         * modules/unictype/bidiclass-name: Renamed from
39102         modules/unictype/bidiclass-name.
39103         (Description): Update.
39104         * modules/unictype/bidiclass-name-tests: Renamed from
39105         modules/unictype/bidicategory-name-tests.
39106         * modules/unictype/bidiclass-byname: Renamed from
39107         modules/unictype/bidicategory-byname.
39108         (Description): Update.
39109         * modules/unictype/bidiclass-byname-tests: Renamed from
39110         modules/unictype/bidicategory-byname-tests.
39111         * modules/unictype/bidiclass-of: Renamed from
39112         modules/unictype/bidicategory-of.
39113         (Description): Update.
39114         * modules/unictype/bidiclass-of-tests: Renamed from
39115         modules/unictype/bidicategory-of-tests.
39116         * modules/unictype/bidiclass-test: Renamed from
39117         modules/unictype/bidicategory-test.
39118         (Description): Update.
39119         * modules/unictype/bidiclass-test-tests: Renamed from
39120         modules/unictype/bidicategory-test-tests.
39121         * modules/unictype/bidicategory-all: New file, a simple redirection.
39122         * modules/unictype/bidicategory-name: Likewise.
39123         * modules/unictype/bidicategory-byname: Likewise.
39124         * modules/unictype/bidicategory-of: Likewise.
39125         * modules/unictype/bidicategory-test: Likewise.
39126         * modules/unictype/property-bidi-* (Dependencies): Update.
39127         * lib/unictype/bidi_*.c: Update comment.
39129 2011-03-26  Bruno Haible  <bruno@clisp.org>
39131         unictype/bidi*: Rename functions, part 2.
39132         * modules/unictype/bidicategory-name (configure.ac): Update required
39133         libunistring version.
39134         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
39136 2011-03-25  Bruno Haible  <bruno@clisp.org>
39138         New module 'unictype/combining-class-all'.
39139         * modules/unictype/combining-class-all: New file.
39141         Tests for module 'unictype/combining-class-byname'.
39142         * modules/unictype/combining-class-byname-tests: New file.
39143         * tests/unictype/test-combiningclass_byname.c: New file.
39145         New module 'unictype/combining-class-byname'.
39146         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
39147         * lib/unictype/combiningclass_byname.c: New file.
39148         * lib/unictype/combiningclass_byname.gperf: New file.
39149         * modules/unictype/combining-class-byname: New file.
39151         Tests for module 'unictype/combining-class-longname'.
39152         * modules/unictype/combining-class-longname-tests: New file.
39153         * tests/unictype/test-combiningclass_longname.c: New file.
39155         New module 'unictype/combining-class-longname'.
39156         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
39157         * lib/unictype/combiningclass_longname.c: New file.
39158         * modules/unictype/combining-class-longname: New file.
39160         Tests for module 'unictype/combining-class-name'.
39161         * modules/unictype/combining-class-name-tests: New file.
39162         * tests/unictype/test-combiningclass_name.c: New file.
39164         New module 'unictype/combining-class-name'.
39165         * lib/unictype.in.h (uc_combining_class_name): New declaration.
39166         * lib/unictype/combiningclass_name.c: New file.
39167         * modules/unictype/combining-class-name: New file.
39169 2011-03-25  Bruno Haible  <bruno@clisp.org>
39171         unictype/combining-class: Rename source files.
39172         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
39173         of unictype/combining.h.
39174         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
39175         Update.
39176         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
39177         * modules/unictype/combining-class (Description): Fix.
39178         (Files, Makefile.am): Update.
39179         * tests/unictype/test-combiningclass.c: Renamed from
39180         tests/unictype/test-combining.c.
39181         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
39183 2011-03-25  Bruno Haible  <bruno@clisp.org>
39185         unictype: Update list of canonical combining classes.
39186         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
39188 2011-03-25  Bruno Haible  <bruno@clisp.org>
39190         unictype/category-byname: Recognize long names as well.
39191         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
39192         a long name.
39193         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
39194         unictype/categ_byname.h.
39195         (UC_CATEGORY_INDEX_*): New enumeration values.
39196         (uc_general_category_byname): Use uc_general_category_lookup and
39197         convert from index to value.
39198         * lib/unictype/categ_byname.gperf: New file.
39199         * modules/unictype/category-byname (Files): Add
39200         lib/unictype/categ_byname.gperf.
39201         (Depends-on): Add gperf.
39202         (Makefile.am): Add rule for generating unictype/categ_byname.h.
39203         * tests/unictype/test-categ_byname.c (main): Test the recognition of
39204         long names.
39206         Tests for module 'unictype/category-longname'.
39207         * modules/unictype/category-longname-tests: New file.
39208         * tests/unictype/test-categ_longname.c: New file.
39210         New module 'unictype/category-longname'.
39211         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
39212         * lib/unictype/categ_longname.c: New file.
39213         * modules/unictype/category-longname: New file.
39214         * modules/unictype/category-all (Depends-on): Add it.
39216 2011-03-25  Bruno Haible  <bruno@clisp.org>
39218         Tests for module 'unictype/category-LC'.
39219         * modules/unictype/category-LC-tests: New file.
39220         * tests/unictype/test-categ_LC.c: New file, automatically generated.
39222         New module 'unictype/category-LC'.
39223         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
39224         (UC_CATEGORY_LC): New declaration.
39225         (UC_CASED_LETTER): New macro.
39226         * lib/gen-uni-tables.c (is_category_LC): New function.
39227         (output_categories): Also handle category LC.
39228         (UC_CATEGORY_MASK_LC): New enumeration value.
39229         (general_category_byname): Also handle category LC.
39230         * lib/unictype/categ_LC.c: New file.
39231         * lib/unictype/categ_LC.h: New file, automatically generated.
39232         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
39233         category LC.
39234         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
39235         * modules/unictype/category-LC: New file.
39236         * modules/unictype/category-byname (Depends-on): Add
39237         unictype/category-LC.
39238         * modules/unictype/category-all (Depends-on): Likewise.
39240 2011-03-25  Eric Blake  <eblake@redhat.com>
39242         xmalloc: revert yesterday's regression
39243         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
39244         realloc's underlying behavior (allowing allocation of zero-size
39245         objects, especially if malloc-gnu is also in use).
39247 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
39249         maint.mk: add missing version to VC-tag
39250         * top/maint.mk: git tag was missing actual tag name; add it.
39252         valgrind: do leak checking, and exit with code 1 on error (not 0)
39253         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
39254         to VALGRIND.
39256 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
39258         posix-modules: say what it does.
39259         * posix-modules: Add a line to the --help output saying what it does.
39261 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
39263         xmalloc: Do not leak if underlying realloc is C99 compatible.
39264         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
39265         This avoids a leak on C99-based systems.  See
39266         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
39268 2011-03-24  Eric Blake  <eblake@redhat.com>
39270         realloc: document portability problem
39271         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
39272         passing 0 size to realloc.
39274 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
39276         doc: update users.txt
39277         * users.txt: Add cvsps, tmpwatch
39279 2011-03-23  Matt Rice  <ratmice@gmail.com>
39281         doc: update users.txt
39282         * users.txt: Add gdb.
39284 2011-03-23  Jim Meyering  <meyering@redhat.com>
39286         doc: update users.txt
39287         Looking through matches up to the following URL (there are still
39288         several more pages), I found several projects that use gnulib:
39289         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
39290         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
39291         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
39293 2011-03-22  Bruno Haible  <bruno@clisp.org>
39295         unictype/bidi*: Rename functions.
39296         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
39297         uc_bidi_class, uc_is_bidi_class): New declarations.
39298         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
39299         uc_bidi_category_byname.
39300         (uc_bidi_category_byname): New function.
39301         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
39302         u_bidi_category_name.
39303         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
39304         (uc_bidi_category_name): New function.
39305         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
39306         uc_bidi_category.
39307         (uc_bidi_category): New function.
39308         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
39309         uc_is_bidi_category. Invoke uc_bidi_class.
39310         (uc_is_bidi_category): New function.
39311         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
39312         instead of uc_bidi_category_byname.
39313         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
39314         instead of uc_bidi_category_name.
39315         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
39316         uc_bidi_category.
39317         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
39318         instead of uc_is_bidi_category.
39320 2011-03-21  Bruno Haible  <bruno@clisp.org>
39322         New module 'unictype/joininggroup-all'.
39323         * modules/unictype/joininggroup-all: New file.
39325         Tests for module 'unictype/joininggroup-of'.
39326         * modules/unictype/joininggroup-of-tests: New file.
39327         * tests/unictype/test-joininggroup_of.c: New file.
39328         * tests/unictype/test-joininggroup_of.h: New file, automatically
39329         generated by gen-uni-tables.
39331         New module 'unictype/joininggroup-of'.
39332         * modules/unictype/joininggroup-of: New file.
39333         * lib/unictype/joininggroup_of.c: New file.
39334         * lib/unictype/joininggroup_of.h: New file, automatically generated by
39335         gen-uni-tables.
39337         Tests for module 'unictype/joininggroup-byname'.
39338         * modules/unictype/joininggroup-byname-tests: New file.
39339         * tests/unictype/test-joininggroup_byname.c: New file.
39341         New module 'unictype/joininggroup-byname'.
39342         * modules/unictype/joininggroup-byname: New file.
39343         * lib/unictype/joininggroup_byname.c: New file.
39344         * lib/unictype/joininggroup_byname.gperf: New file.
39346         Tests for module 'unictype/joininggroup-name'.
39347         * modules/unictype/joininggroup-name-tests: New file.
39348         * tests/unictype/test-joininggroup_name.c: New file.
39350         New module 'unictype/joininggroup-name'.
39351         * modules/unictype/joininggroup-name: New file.
39352         * lib/unictype/joininggroup_name.c: New file.
39353         * lib/unictype/joininggroup_name.h: New file.
39355         New module 'unictype/joiningtype-all'.
39356         * modules/unictype/joiningtype-all: New file.
39358         Tests for module 'unictype/joiningtype-of'.
39359         * modules/unictype/joiningtype-of-tests: New file.
39360         * tests/unictype/test-joiningtype_of.c: New file.
39361         * tests/unictype/test-joiningtype_of.h: New file, automatically
39362         generated by gen-uni-tables.
39364         New module 'unictype/joiningtype-of'.
39365         * modules/unictype/joiningtype-of: New file.
39366         * lib/unictype/joiningtype_of.c: New file.
39367         * lib/unictype/joiningtype_of.h: New file, automatically generated by
39368         gen-uni-tables.
39370         Tests for module 'unictype/joiningtype-byname'.
39371         * modules/unictype/joiningtype-byname-tests: New file.
39372         * tests/unictype/test-joiningtype_byname.c: New file.
39374         New module 'unictype/joiningtype-byname'.
39375         * modules/unictype/joiningtype-byname: New file.
39376         * lib/unictype/joiningtype_byname.c: New file.
39378         Tests for module 'unictype/joiningtype-name'.
39379         * modules/unictype/joiningtype-name-tests: New file.
39380         * tests/unictype/test-joiningtype_name.c: New file.
39382         New module 'unictype/joiningtype-name'.
39383         * modules/unictype/joiningtype-name: New file.
39384         * lib/unictype/joiningtype_name.c: New file.
39386         unictype: Add support for Arabic shaping properties.
39387         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
39388         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
39389         declarations.
39390         (UC_JOINING_GROUP_*): New enumeration values.
39391         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
39392         declarations.
39393         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
39394         (unicode_joining_type): New variable.
39395         (UC_JOINING_GROUP_*): New enumeration values.
39396         (unicode_joining_group): New variable.
39397         (fill_arabicshaping, joining_type_as_c_identifier,
39398         output_joining_type_test, output_joining_type,
39399         joining_group_as_c_identifier, output_joining_group_test,
39400         output_joining_group): New functions.
39401         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
39402         fill_arabicshaping and output_joining_type_test, output_joining_type,
39403         output_joining_group_test, output_joining_group.
39404         Reported by Simon Josefsson.
39406 2011-03-21  Jim Meyering  <meyering@redhat.com>
39408         strftime: fix a bug in yesterday's change
39409         * lib/strftime.c (add): Accommodate width's initial value of -1.
39410         Otherwise, nstrftime would copy uninitialized data into
39411         the result buffer.
39413 2011-03-21  Jim Meyering  <meyering@redhat.com>
39415         tests: add strftime-tests module
39416         * tests/test-strftime.c: New file.
39417         * modules/strftime-tests: New module.
39419 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39421         strftime: don't assume a byte count fits in 'int'
39422         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
39423         found this problem by static analysis, using gcc -Wstrict-overflow
39424         (GCC 4.5.2, x86-64).  This reported an optimization that depended
39425         on an integer overflow having undefined behavior, but it turns out
39426         that the argument is a size, which might not fit in 'int' anyway,
39428 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39430         stdio: don't require ignore_value around fwrite
39432         This patch works around libc bug 11959
39433         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
39434         Without this patch, applications must often write
39435         ignore_value (fwrite (...)) even though the ignore_value is
39436         not helpful here.  It's common to write many objects, using
39437         fwrite/printf/etc., and then use ferror to detect output error.
39439         I considered making this patch optional, but decided against it,
39440         because libc is obviously being inconsistent here: there is no
39441         reason libc should insist that user code must inspect fwrite
39442         return's value without also insisting that it inspect printf's,
39443         putchar's, etc.  If user code wants to have a strict style where
39444         all these functions' values are checked (so that ferror need not
39445         be checked), we could add support for that style in a new gnulib
39446         module, but in the meantime it's better to be consistent and to
39447         support common usage.
39449         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
39450         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
39451         that we are compiling in checking mode, and if not C++, and
39452         if not already wrapping fwrite for some other reason.
39453         (fwrite): #define to rpl_fwrite if the latter is defined.
39455 2011-03-20  Bruno Haible  <bruno@clisp.org>
39457         verror: Fix compilation error introduced on 2011-02-13.
39458         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
39459         instead of __attribute__.
39460         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39462 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39463             Bruno Haible  <bruno@clisp.org>
39465         socklen: do not depend on sys_socket
39466         While trying to modify Emacs to use gnulib's socklen module,
39467         I discovered a circular dependency: socklen depends on sys_socket
39468         and vice versa.  Emacs can use socklen, but it does not need
39469         sys_socket because it has its own substitute for sys/socket.h.
39470         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
39471         gl_TYPE_SOCKLEN_T.
39472         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
39473         gl_PREREQ_SYS_H_SOCKET.
39474         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
39475         gl_PREREQ_SYS_H_SOCKET.
39476         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
39477         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
39478         * modules/socklen (Depends-on): Do not depend on sys_socket.
39479         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
39481 2011-03-20  Jim Meyering  <meyering@redhat.com>
39483         maint.mk: sort file names *after* new transformation
39484         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
39485         prefix would have led to an unwarranted failure in GNU parted.
39486         Sort after that transformation.
39488 2011-03-19  Jim Meyering  <meyering@redhat.com>
39490         maint.mk: fix po-file syntax-check rule
39491         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
39492         Patch by Bruno Haible.
39494 2011-03-19  Bruno Haible  <bruno@clisp.org>
39496         socklen: Update comment.
39497         * m4/socklen.m4: Update comment about platforms.
39499 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39500             Bruno Haible  <bruno@clisp.org>
39502         inet_ntop, inet_pton: Simplify.
39503         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
39504         documented to provide socklen_t and we already depend on sys_socket.
39505         * modules/inet_pton (Depends-on): Likewise.
39506         * lib/arpa_inet.in.h: Adjust comment.
39508 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39509             Bruno Haible  <bruno@clisp.org>
39511         netdb: Simplify.
39512         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
39513         documented to provide socklen_t and we already depend on sys_socket.
39514         * lib/netdb.in.h: Adjust comment.
39516 2011-03-19  Bruno Haible  <bruno@clisp.org>
39518         sys_socket, netdb: Document problem with socklen_t.
39519         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
39520         platforms.
39521         * doc/posix-headers/netdb.texi: Likewise.
39523 2011-03-18  Eric Blake  <eblake@redhat.com>
39525         maint.mk: let po check work in VPATH build
39526         * top/maint.mk (po_file): Allow cfg.mk override.
39527         (sc_po_check): Allow VPATH use.
39528         Reported by Jiri Denemark.
39530 2011-03-16  Jim Meyering  <meyering@redhat.com>
39532         maint.mk: allow fine-grained syntax-check exclusion via Make variables
39533         Before, you would have had to create one .x-sc_ file per rule in order
39534         to exempt offending files.  Now, you may instead use a Make variable --
39535         usually defined in cfg.mk -- whose name identifies the affected rule.
39536         * top/maint.mk (_sc_excl): Define.
39537         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
39538         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
39540 2011-03-13  Bruno Haible  <bruno@clisp.org>
39542         ignore-value tests: Avoid warnings.
39543         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
39544         empty for gcc < 3.4.
39546 2011-03-13  Bruno Haible  <bruno@clisp.org>
39548         passfd: Fix link error on Solaris.
39549         * modules/passfd (Description): Correct.
39550         (Depends-on): Add socketlib.
39551         (Link): New section.
39552         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
39554 2011-03-13  Bruno Haible  <bruno@clisp.org>
39556         passfd: Fix link error on AIX 5.2.
39557         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
39559 2011-03-13  Bruno Haible  <bruno@clisp.org>
39561         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
39562         * lib/sys_socket.in.h: Include <stddef.h>.
39563         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
39564         CMSG_FIRSTHDR. Remove unused variable.
39566 2011-03-13  Bruno Haible  <bruno@clisp.org>
39568         passfd: Fix compilation error on OpenBSD.
39569         * lib/passfd.c: Include <sys/uio.h>.
39571 2011-03-13  Bruno Haible  <bruno@clisp.org>
39573         passfd test: Fix warnings.
39574         * tests/test-passfd.c: Include <sys/wait.h>.
39575         (main): Fix typo.
39577 2011-03-13  Bruno Haible  <bruno@clisp.org>
39579         passfd module, part 4, tweaks.
39580         * tests/test-passfd.c: Reorder includes.
39581         (main): Fix perror and printf calls.
39583 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
39585         passfd module, part 4.
39586         * modules/passfd-tests: New file.
39587         * tests/test-passfd.c: New file.
39589 2011-03-13  Jim Meyering  <meyering@redhat.com>
39591         Makefile: rely on GNU make; derive syntax-check rule names
39592         Rather than requiring that each sc_ rule be listed as a dependent
39593         of "check", use features of GNU make to derive the list.
39594         * Makefile (syntax-check-rules): Define.
39595         (check): Depend on the new variable, not the hard-coded list.
39597 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
39598             Bruno Haible  <bruno@clisp.org>
39600         passfd module, part 3.
39601         * lib/passfd.h (recvfd): Add a flags argument.
39602         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
39603         (recvfd): Add a flags argument.
39604         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
39605         exists.
39606         * modules/passfd (Depends-on): Add cloexec.
39607         Suggested by Eric Blake.
39609 2011-03-13  Bruno Haible  <bruno@clisp.org>
39611         passfd module, part 2, tweaks.
39612         * modules/passfd (Files): Reorder.
39613         (Depends-on): Remove errno.
39614         (Include): Remove <sys/socket.h>, <sys/un.h>.
39615         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
39616         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
39617         specification header. Include <sys/socket.h> always. Don't include
39618         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
39619         (sendfd): Clarify that it sets errno when it fails.
39620         (recvfd): Fix specification.
39622 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
39624         passfd module, part 2.
39625         * modules/passfd: New file.
39626         * lib/passfd.h: New file.
39627         * lib/passfd.c: New file.
39629 2011-03-12  Bruno Haible  <bruno@clisp.org>
39631         wcswidth, mbswidth: Avoid integer overflow.
39632         * lib/wcswidth.c: Include <limits.h>.
39633         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
39634         * lib/mbswidth.c: Include <limits.h>.
39635         (mbsnwidth): Avoid 'int' overflow.
39636         Reported by Jim Meyering.
39638 2011-03-12  Bruno Haible  <bruno@clisp.org>
39640         futimens, utimensat: Avoid endless recursion on Solaris 10.
39641         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
39642         Solaris.
39643         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
39644         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
39646 2011-03-11  Jim Meyering  <meyering@redhat.com>
39648         maint.mk: relax a regexp to accommodate other formatting styles
39649         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
39650         between "ngettext" and the following "(".
39652 2011-03-11  Pádraig Brady  <P@draigBrady.com>
39654         maint.mk: suppress a false positive warning
39655         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
39656         diagnostics are marked with ngettext.
39658 2011-03-10  Eric Blake  <eblake@redhat.com>
39660         wchar: add explicit dependencies, for Tru64
39661         * modules/mbmemcasecoll (Depends-on): Add wchar.
39662         * modules/mbtowc (Depends-on): Likewise.
39663         * modules/vasnprintf (Depends-on): Likewise.
39664         * modules/unistdio/u-printf-args (Depends-on): Likewise.
39665         * modules/wctomb (Depends-on): Likewise.
39666         Reported by Peter O'Gorman.
39668 2011-03-08  Bruno Haible  <bruno@clisp.org>
39670         passfd module, part 1, tweaks.
39671         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
39672         Improve indentation. Improve AC_MSG_CHECKING messages.
39673         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
39674         gl_SOCKET_FAMILIES.
39676 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
39678         passfd module, part 1.
39679         * m4/afunix.m4: New file.
39680         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
39681         sockets.
39683 2011-03-08  Bruno Haible  <bruno@clisp.org>
39685         regex-quote: New API.
39686         * lib/regex-quote.h: Include <stdbool.h>.
39687         (struct regex_quote_spec): New type.
39688         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
39689         New declarations.
39690         (regex_quote_length, regex_quote_copy, regex_quote): Take a
39691         'const struct regex_quote_spec *' argument.
39692         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
39693         (pcre_special): New constant.
39694         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
39695         New functions.
39696         (regex_quote_length, regex_quote_copy, regex_quote): Take a
39697         'const struct regex_quote_spec *' argument.
39698         * modules/regex-quote (Depends-on): Add stdbool.
39699         * tests/test-regex-quote.c (check): Update for new API. Add test for
39700         anchored results.
39701         * NEWS: Mention the API change.
39702         Reported by Reuben Thomas and Eric Blake.
39704 2011-03-06  Bruno Haible  <bruno@clisp.org>
39706         regex-quote: Fix creation of POSIX extended regular expressions.
39707         * lib/regex-quote.c (ere_special): Add grouping and alternation
39708         operators.
39710 2011-03-05  Bruno Haible  <bruno@clisp.org>
39712         doc: Improve doc regarding autopoint vs. gnulib.
39713         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
39714         disable autopoint while running autoreconf.
39715         Suggested by Ralf Wildenhues.
39717 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39719         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
39720         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
39722 2011-03-03  Bruce Korb  <bkorb@gnu.org>
39724         parse-duration: remove xalloc.h dependency
39725         * lib/parse-duration.c (parse_period): handle NULL return from
39726         strdup instead of calling xstrdup().
39727         * modules/parse-duration: remove "xalloc" dependency
39729 2011-03-03  Matthew Booth  <mbooth@redhat.com>
39731         bootstrap: honor m4_base when running aclocal
39732         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
39734 2011-03-02  Jim Meyering  <meyering@redhat.com>
39736         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
39737         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
39738         on request from Matt Booth.
39740 2011-03-01  Eric Blake  <eblake@redhat.com>
39742         test-link: work on Hurd
39743         * tests/test-link.h (test_link): Hurd rejects linking directories
39744         with EISDIR instead of the POSIX-mandated EPERM.
39746 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
39748         stdio: simplify by moving files to printf-posix, sigpipe
39749         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
39750         since this symbol is needed only if printf is replaced.
39751         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
39752         Require gl_ASM_SYMBOL_PREFIX.
39753         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
39754         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
39755         (Depends-on): Add 'raise'.
39756         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
39757         * modules/stdio (Files): Remove lib/stdio-write.c,
39758         m4/asm-underscore.m4.
39759         (Depends-on): Remove 'raise'.
39761         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
39762         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
39763         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
39764         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
39766 2011-02-28  Bruno Haible  <bruno@clisp.org>
39768         localcharset: Assume ANSI C behaviour of free().
39769         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
39770         calling free().
39771         Suggested by Simon Josefsson <simon@josefsson.org>.
39773 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
39774             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
39775             Bruno Haible  <bruno@clisp.org>  (tiny change)
39777         On Cygwin, use /proc file system instead of win32 API.
39778         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
39779         Win32 file names.
39780         (DllMain): Simplify by removing Cygwin specific code.
39781         (find_shared_library_fullname): Use Linux specific implementation also
39782         for Cygwin.
39783         (get_shared_library_fullname): Update accordingly.
39784         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
39785         Win32 file names.
39786         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
39787         Cygwin specific code.
39789 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
39790             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
39792         Fix OpenMP flag detection for various Fortran compilers.
39793         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
39794         OpenMP-conditional compilation construct, to force compile
39795         failure with missing OpenMP flag.
39796         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
39798 2011-02-25  Eric Blake  <eblake@redhat.com>
39800         strstr: expand test coverage
39801         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
39802         compilation.
39803         * tests/test-memmem.c (main): Duplicate tests.
39804         * tests/test-strcasestr.c (main): Likewise.
39805         * tests/test-c-strcasestr.c (main): Likewise.
39807 2011-02-25  Jim Meyering  <meyering@redhat.com>
39809         maint.mk: detect missing-NL-at-EOF, too
39810         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
39811         it also detects when a file lacks a newline at EOF.
39812         (require_exactly_one_NL_at_EOF_): Renamed from
39813         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
39814         since people may well have .x-sc_... file names tied to the
39815         existing name.  Suggested by Eric Blake.
39817 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
39819         dirname: move m4/dos.m4 functionality into lib/dosname.h
39821         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
39822         extracts symbols from it, puts them into config.h; but it's much
39823         easier to use the symbols directly.  filename.h already does this,
39824         but it disagrees with dos.m4 in some respects.  This patch
39825         introduces a different include file dosname.h that packages up
39826         dos.m4, and then later we can work on merging filename.h and
39827         dosname.h.  Applications that need only the easy-to-configure
39828         symbols should consider including dosname.h rather than dirname.h.
39829         * NEWS: Mention incompatible changes.
39830         * m4/dos.m4: Remove.
39831         * lib/dosname.h, modules/dosname: New files.
39832         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
39833         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
39834         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
39835         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
39836         Include dosname.h, not dirname.h.
39837         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
39838         Include dosname.h, for definitions of symbols like ISSLASH
39839         that used to be in config.h.
39840         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
39841         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
39842         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39843         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39844         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
39845         * modules/rmdir (Files): Likewise.
39846         * modules/stat (Files): Likewise.
39847         * modules/unlink (Files): Likewise.
39848         * modules/dirname-lgpl (Depends-on): Add dosname.
39849         * modules/lstat (Depends-on): Likewise.
39850         * modules/openat (Depends-on): Likewise.
39851         * modules/rmdir (Depends-on): Likewise.
39852         * modules/savewd (Depends-on): Likewise.
39853         * modules/stat (Depends-on): Likewise.
39854         * modules/unlink (Depends-on): Likewise.
39855         * modules/openat (Depends-on): Remove dirname-lgpl.
39856         * modules/savewd (Depends-on): Likewise.
39857         * tests/test-dirname.c: Do not use removed symbols like
39858         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
39859         the remaining symbols, e.g., ISSLASH ('\\').
39861 2011-02-25  Eric Blake  <eblake@redhat.com>
39863         strstr: revert patches that introduced bug and pessimization
39864         * lib/str-two-way.h: Add another reference.
39865         (two_way_short_needle, two_way_long_needle): Revert changes from
39866         2011-02-24; they pessimize search speed.
39867         (critical_factorization): Partially revert changes from
39868         2010-06-22; they violate the requirement that the left half of the
39869         needle be smaller than the period of the needle.
39871 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
39873         filenamecat: remove unnecessary dependency on dirname-lgpl
39874         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
39875         is no direct dependency, just an indirect one via filenamecat-lgpl.
39877         remove: remove unnecessary use of m4/dos.m4
39878         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
39879         * modules/remove (FILES): Remove m4/dos.m4.
39881         * lib/openat-proc.c: Don't include dirname.h; not needed.
39883         backupfile: remove unnecessary use of m4/dos.m4
39884         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
39885         of its symbols are used by the backupfile code.  backupfile.c does
39886         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
39887         for the rare case of programs that want all their backup file
39888         names to live within 8+3 limits, and dos.m4 doesn't address that.
39889         * modules/backupfile (Files): Remove m4/dos.m4.
39891 2011-02-24  Jim Meyering  <meyering@redhat.com>
39893         strstr: fix a bug whereby strstr would mistakenly return NULL
39894         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
39895         in period calculation.
39896         (two_way_long_needle): Likewise.
39897         The original problem was reported by Mike Stump in
39898         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
39899         Ralf Wildenhues provided the short needle and haystack.
39900         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
39901         Add a more involved test to trigger the bug in two_way_long_needle.
39903 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
39905         gnulib-tool: remove use of bold display in help screen
39906         * gnulib-tool (func_usage): Do not use bold display anymore in the
39907         help screen.  That was just meant to be a temporary emphasis for a
39908         backward-incompatible change.
39910 2011-02-23  Bruno Haible  <bruno@clisp.org>
39912         Fix misindentation of preprocessor directives.
39913         * lib/argp-namefrob.h: Reindent preprocessor directives.
39914         * lib/getopt_int.h (struct _getopt_data): Likewise.
39915         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
39916         * lib/vasnprintf.c (decode_long_double): Likewise.
39917         * tests/test-argmatch.c: Insert blank lines, for clarity.
39918         * tests/test-exclude.c: Likewise.
39920 2011-02-22  Bruno Haible  <bruno@clisp.org>
39922         ioctl: Fix for MacOS X in 64-bit mode.
39923         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
39924         value.
39925         Suggested by Eric Blake.
39926         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
39928 2011-02-22  Jim Meyering  <meyering@redhat.com>
39930         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
39931         * Makefile (sc_cpp_indent_check): Don't limit the check to files
39932         in lib/.
39934 2011-02-22  Eric Blake  <eblake@redhat.com>
39936         maint: avoid any CDPATH issue
39937         * Makefile (sc_cpp_indent_check): Anchor cd argument.
39939         maint: adjust cpp indentation for my modules, as well
39940         * Makefile (sc_cpp_indent_check): Add my name.
39941         * lib/fbufmode.c: Filter through cppi.
39942         * lib/fpurge.c: Likewise.
39943         * lib/freadable.c: Likewise.
39944         * lib/freading.c: Likewise.
39945         * lib/fwritable.c: Likewise.
39946         * lib/fwriting.c: Likewise.
39947         * lib/sigaction.c: Likewise.
39949 2011-02-22  Jim Meyering  <meyering@redhat.com>
39951         maint: adjust cpp indentation to reflect nesting depth
39952         I.e., in a block of code that begins with an unnested "#if",
39953         put one space between the "#" in column 1 and following token.
39954         For example,
39955         -#include <sys/vfs.h>
39956         +# include <sys/vfs.h>
39957         Do this only in .c files that are part of a module I maintain.
39958         * lib/linkat.c: Filter through cppi.
39959         * lib/nanosleep.c: Likewise.
39960         * lib/openat.c: Likewise.
39961         * lib/openat-die.c: Likewise.
39962         * lib/dup3.c: Likewise.
39963         * lib/fchownat.c: Likewise.
39964         * lib/flock.c: Likewise.
39965         * lib/fsync.c: Likewise.
39966         * lib/fts.c: Likewise.
39967         * lib/getpass.c: Likewise.
39968         * lib/gettimeofday.c: Likewise.
39969         * lib/userspec.c: Likewise.
39970         * Makefile (sc_cpp_indent_check): New rule, to check this.
39972 2011-02-22  Bruno Haible  <bruno@clisp.org>
39974         New module 'wctomb'.
39975         * lib/stdlib.in.h (wctomb): New declaration.
39976         * lib/wctomb.c: New file.
39977         * lib/wctomb-impl.h: New file.
39978         * m4/wctomb.m4: New file.
39979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
39980         REPLACE_WCTOMB.
39981         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
39982         REPLACE_WCTOMB.
39983         * modules/wctomb: New file.
39984         * tests/test-stdlib-c++.cc: Test signature of wctomb.
39985         * doc/posix-functions/wctomb.texi: Mention the new module.
39986         * modules/wctob (Depends-on): Add wctomb.
39988 2011-02-22  Bruno Haible  <bruno@clisp.org>
39990         New module 'mbtowc'.
39991         * lib/stdlib.in.h (mbtowc): New declaration.
39992         * lib/mbtowc.c: New file.
39993         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
39994         * m4/mbtowc.m4: New file.
39995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
39996         REPLACE_MBTOWC.
39997         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
39998         REPLACE_MBTOWC.
39999         * modules/mbtowc: New file.
40000         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
40001         * doc/posix-functions/mbtowc.texi: Mention the new module.
40002         * modules/btowc (Depends-on): Add mbtowc.
40004 2011-02-22  Bruno Haible  <bruno@clisp.org>
40006         wcrtomb: Add more tests for native Windows platforms.
40007         * tests/test-wcrtomb-w32-1.sh: New file.
40008         * tests/test-wcrtomb-w32-2.sh: New file.
40009         * tests/test-wcrtomb-w32-3.sh: New file.
40010         * tests/test-wcrtomb-w32-4.sh: New file.
40011         * tests/test-wcrtomb-w32-5.sh: New file.
40012         * tests/test-wcrtomb-w32.c: New file.
40013         * modules/wcrtomb-tests (Files): Add them.
40014         (Makefile.am): Arrange to run these tests.
40015         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
40016         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
40018 2011-02-20  Bruno Haible  <bruno@clisp.org>
40020         wcrtomb: Enhance test.
40021         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
40023 2011-02-20  Bruno Haible  <bruno@clisp.org>
40025         mbrtowc: Tiny optimization.
40026         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
40028 2011-02-20  Jim Meyering  <meyering@redhat.com>
40030         test-exclude.c: remove unmatched #endif
40031         * tests/test-exclude.c: Remove stray #endif, left over from
40032         the change of a week ago.
40034 2011-02-19  Jim Meyering  <meyering@redhat.com>
40036         git-version-gen: skip "-dirty" check when appropriate
40037         * build-aux/git-version-gen: Don't run any git commands when the
40038         version string comes from .tarball-version.  Prior to this, we
40039         would run git update-index --refresh even from a just-unpacked
40040         tarball directory, and that could affect a .git/ directory in a
40041         parent of the build directory.  Reported by Mike Frysinger.
40043 2011-02-19  Bruno Haible  <bruno@clisp.org>
40045         unictype/property-byname: Reduce the size of the 'data' segment.
40046         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
40048 2011-02-19  Bruno Haible  <bruno@clisp.org>
40050         unictype/scripts: Reduce the size of the 'data' segment.
40051         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
40052         '%pic'.
40053         * lib/unictype/scripts_byname.gperf: Regenerated.
40055 2011-02-19  Bruno Haible  <bruno@clisp.org>
40057         stdint: Update documentation.
40058         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
40060 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
40062         stdint: omit redundant check for wchar.h
40063         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
40064         always tests whether wchar.h exists, so remove the now-redundant test.
40066 2011-02-18  Bruno Haible  <bruno@clisp.org>
40068         stdint: Cut dependency to module 'wchar'.
40069         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
40070         include the necessary prerequisites.
40071         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
40072         * modules/stdint (Depends-on): Remove wchar.
40073         (Makefile.am): Substitute HAVE_WCHAR_H.
40074         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
40076 2011-02-18  Eric Blake  <eblake@redhat.com>
40078         longlong: skip, rather than fail, on cross-compilation
40079         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
40080         when cross-compiling; regression from 2011-02-16.
40082 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
40084         * NEWS: Mention 2011-02-08 change to stdlib.
40086 2011-02-17  Bruno Haible  <bruno@clisp.org>
40088         getloadavg: Add comments about platforms.
40089         * m4/getloadavg.m4: Add comment.
40090         * lib/getloadavg.c: Likewise.
40092 2011-02-17  Bruno Haible  <bruno@clisp.org>
40094         getloadavg: Fix link error on Solaris 2.6.
40095         * modules/getloadavg (Link): New section.
40096         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
40097         linking test-getloadavg.
40098         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
40099         getloadavg.
40101 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
40103         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
40104         It was 'int', but this doesn't match the IRIX 6.5 manual.
40105         Suggested by Bruno Haible in
40106         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
40108 2011-02-17  Bruno Haible  <bruno@clisp.org>
40110         havelib: Fix comments.
40111         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
40112         change.
40114 2011-02-17  Bruno Haible  <bruno@clisp.org>
40116         havelib: Update config.rpath.
40117         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
40119 2011-02-17  Bruno Haible  <bruno@clisp.org>
40121         getloadavg test: Add some plausibility checks.
40122         * tests/test-getloadavg.c (check_avg): Print a warning when the value
40123         is improbable.
40125 2011-02-16  Eric Blake  <eblake@redhat.com>
40127         maintainer-makefile: make syntax-check a no-op from tarballs
40128         * top/maint.mk (no-vc-detected): New rule.
40129         (local-checks-available): Use it to avoid hanging if someone tries
40130         'make syntax-check' from a tarball.  Also append to any non-syntax
40131         checks already defined in cfg.mk.
40133 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
40135         longlong: tune, particularly for common case of c99
40137         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
40138         or running anything if c99, or if unsigned long long int does not
40139         work.  In either case, we know the answer without further tests.
40140         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
40141         it at most once, and use its results for both long long int and
40142         unsigned long long int.  This is more likely to be efficient in
40143         the common case where the program wants to check for both long
40144         long int and unsigned long long int.
40145         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
40146         since the answer is already known.
40148 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
40150         getloadavg: set errno
40151         * lib/getloadavg.c: Set errno when returning -1.  If no other
40152         error number looks appropriate, set it to ENOSYS if the getloadavg
40153         looks like it can't possibly ever work, ENOTSUP otherwise.
40154         Suggested by Bruno Haible in
40155         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
40157         getloadavg: trim unused parts and speed up 'configure'
40158         * NEWS: Document this.
40159         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
40160         always compiled if getloadavg is absent.
40161         Move test code to ...
40162         * tests/test-getloadavg.c: New file, containing previous
40163         contents of test from lib/getloadavg.c.  It also contains
40164         suggestions by Bruno Haible in
40165         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
40166         * modules/getloadavg-tests: New file.
40167         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
40168         Do tests in the same order as they're needed for getloadavg.c.
40169         Omit setgid-related tests that generate symbols KMEM_GROUP,
40170         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
40171         Do only the tests that are needed to see whether the system has
40172         getloadavg, moving the other tests into ...
40173         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
40174         NLIST_NAME_UNION; nobody should be using it.  Do not define
40175         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
40176         relevant, as the user of this module shouldn't care how getloadavg
40177         is implemented.
40179         getloadavg: omit unused var
40180         * lib/getloadavg.c (getloadavg): Omit unused local variable.
40182 2011-02-15  Jim Meyering  <meyering@redhat.com>
40184         doc: update users.txt
40185         * users.txt: Update iwhd's URL.
40187 2011-02-13  Bruno Haible  <bruno@clisp.org>
40189         Consistent macro naming for macros that use GCC __attribute__.
40190         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
40191         _ATTRIBUTE_NONNULL_.
40192         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
40193         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
40194         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
40195         ATTRIBUTE_DEPRECATED.
40196         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
40197         ATTRIBUTE_NORETURN.
40198         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40199         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40200         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40201         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40202         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
40203         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
40204         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
40205         ATTRIBUTE_SENTINEL.
40206         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
40207         ATTRIBUTE_RETURN_CHECK.
40208         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
40209         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
40210         ATTRIBUTE_NORETURN.
40211         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
40212         Reported by Paul Eggert.
40214 2011-02-13  Bruno Haible  <bruno@clisp.org>
40216         Don't interfere with a program's definition of __attribute__.
40217         * lib/argp.h (__attribute__): Remove definition.
40218         (_GL_ATTRIBUTE_FORMAT): New macro.
40219         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
40220         * lib/argp-fmtstream.h (__attribute__): Remove definition.
40221         (_GL_ATTRIBUTE_FORMAT): New macro.
40222         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
40223         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
40224         GCC 3 or newer.
40225         * lib/error.h (__attribute__): Remove definition.
40226         (_GL_ATTRIBUTE_FORMAT): New macro.
40227         (error, error_at_line): Use it.
40228         * lib/hash.h (__attribute__): Remove definition.
40229         (ATTRIBUTE_WUR): Update definition. Define always.
40230         * lib/openat.h (__attribute__): Remove definition.
40231         (ATTRIBUTE_NORETURN): Update definition. Define always.
40232         * lib/sigpipe-die.h (__attribute__): Remove definition.
40233         (ATTRIBUTE_NORETURN): Update definition. Define always.
40234         * lib/vasnprintf.h (__attribute__): Remove definition.
40235         (_GL_ATTRIBUTE_FORMAT): New macro.
40236         (asnprintf, vasnprintf): Use it.
40237         * lib/xalloc.h (__attribute__): Remove definition.
40238         (ATTRIBUTE_NORETURN): Update definition. Define always.
40239         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
40240         * lib/xmemdup0.h (__attribute__): Remove definition.
40241         (ATTRIBUTE_NORETURN): Update definition. Define always.
40242         * lib/xprintf.h (__attribute__): Remove definition.
40243         (_GL_ATTRIBUTE_FORMAT): New macro.
40244         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
40245         * lib/xstrtol.h (__attribute__): Remove definition.
40246         (ATTRIBUTE_NORETURN): Update definition. Define always.
40247         * lib/xvasprintf.h (__attribute__): Remove definition.
40248         (_GL_ATTRIBUTE_FORMAT): New macro.
40249         (xasprintf, xvasprintf): Use it.
40250         * tests/test-argmatch.c (__attribute__): Remove definition.
40251         (ATTRIBUTE_NORETURN): Update definition. Define always.
40252         * tests/test-exclude.c (__attribute__): Remove definition.
40253         (ATTRIBUTE_NORETURN): Update definition. Define always.
40254         Reported by Paul Eggert.
40256 2011-02-13  Bruno Haible  <bruno@clisp.org>
40258         mbrtowc: Add more tests for native Windows platforms.
40259         * tests/test-mbrtowc-w32-1.sh: New file.
40260         * tests/test-mbrtowc-w32-2.sh: New file.
40261         * tests/test-mbrtowc-w32-3.sh: New file.
40262         * tests/test-mbrtowc-w32-4.sh: New file.
40263         * tests/test-mbrtowc-w32-5.sh: New file.
40264         * tests/test-mbrtowc-w32.c: New file.
40265         * modules/mbrtowc-tests (Files): Add them.
40266         (Makefile.am): Arrange to run these tests.
40267         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
40268         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
40270 2011-02-13  Bruno Haible  <bruno@clisp.org>
40272         mbrtowc: Work around native Windows bug.
40273         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
40274         guess when no suitable locale for testing was found.
40275         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
40277 2011-02-13  Bruno Haible  <bruno@clisp.org>
40279         mbsinit: Work around mingw bug.
40280         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
40281         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
40282         Windows.
40283         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
40285 2011-02-13  Bruno Haible  <bruno@clisp.org>
40287         mbsinit: Don't crash for a NULL argument.
40288         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
40289         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
40291 2011-02-13  Bruno Haible  <bruno@clisp.org>
40293         Don't interfere with a program's definition of __attribute__.
40294         * lib/stdio.in.h (__attribute__): Remove definition.
40295         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
40296         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
40297         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
40298         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
40299         * lib/string.in.h (__attribute__): Remove definition.
40300         Reported by Paul Eggert.
40302 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
40304         stdlib: don't get in the way of non-GCC __attribute__
40305         See thread starting at
40306         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
40307         Revert previous stdlib change, installing the following instead:
40308         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
40309         to get in the way of a non-GCC compiler that supports __attribute__.
40310         (_GL_ATTRIBUTE_RETURN): New macro.
40311         (_Exit): Use it instead of __attribute__.
40313 2011-02-12  Bruno Haible  <bruno@clisp.org>
40315         quotearg test: Avoid test failure on mingw.
40316         * tests/test-quotearg.sh: Convert the locale identifier from native
40317         Windows syntax to Unix syntax.
40319 2011-02-12  Bruno Haible  <bruno@clisp.org>
40321         setlocale: Prefer gnulib's override over libintl's override.
40322         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
40323         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
40324         GNULIB_defined_setlocale is set.
40326 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
40328         stdlib: support non-GCC __attribute__
40330         Fix a serious and tricky problem encountered when attempting to
40331         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
40332         5.5, but it crashed due to memory corruption on Solaris 10 with
40333         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
40334         bits that are otherwise zero.  This tagging is optional inside
40335         Emacs but is preferred and is used when __attribute__ ((__aligned
40336         (8))) works, as it does with both recent-enough GCC and with Sun C
40337         5.11.  However, Sun C 5.11 is not GCC and does not #define
40338         __GNUC__ and __GNUC_MINOR__.
40340         When I added the getloadavg module to Emacs, it brought in
40341         stdlib.in.h, which contained this fragment:
40343            #ifndef __attribute__
40344            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
40345            #  define __attribute__(Spec)   /* empty */
40346            # endif
40347            #endif
40349         When files that include <stdlib.h> were compiled with Sun C 5.11,
40350         the above code disabled __attribute__ ((__aligned (8))), which
40351         caused variables to not be properly aligned, which eventually led
40352         to the pointer corruption mentioned above.  (This was a bit hard
40353         to diagnose, unfortunately.)
40355         Several "#define __attribute__(X) /* empty */" code snippets need
40356         to be eradicated from Gnulib to work with non-GCC compilers that
40357         support __attribute__.  The Autoconf way to do this is to test for
40358         each kind of attribute that we want support for, and selectively
40359         enable that in source code.
40361         Fix this problem just for stdlib.h, by adding a test for the
40362         __noreturn__ attribute, and change stdlib.in.h to use that test
40363         when needed.  This technique can be easily generalized to the
40364         other *.in.h files and attributes, and a similar technique can be
40365         used for *.h and *.c files.  This patch is enough to solve the
40366         problem for Emacs + getloadavg, and I thought I'd publish it for
40367         feedback before undertaking further, similar fixes in other
40368         modules.
40370         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
40371         because it's not needed for stdlib.h.  It merely substitutes the
40372         value directly into stdlib.h.  We may well need to #define it, or
40373         similar symbols, for other modules, but it's nice to also have an
40374         option to not #define it for applications like Emacs that do not
40375         need it.
40377         * lib/stdlib.in.h (__attribute__): Do not #define.
40378         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
40379         be defined only if the _Exit module is also used.
40380         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
40381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
40382         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
40383         platforms.
40384         * modules/_Exit (Files): Add m4/attribute.m4.
40385         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
40386         * m4/attribute.m4: New file.
40388 2011-02-12  Bruno Haible  <bruno@clisp.org>
40390         wcsrtombs: Work around bug on native Windows.
40391         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
40392         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
40393         instead of len.
40394         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
40396 2011-02-12  Bruno Haible  <bruno@clisp.org>
40398         mbsrtowcs: Work around bug on native Windows.
40399         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
40400         against mingw bug.
40401         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
40403 2011-02-12  Bruno Haible  <bruno@clisp.org>
40405         Avoid setlocale bugs in tests.
40406         * modules/btowc (Dependencies): Add setlocale.
40407         * modules/c-strcase (Dependencies): Likewise.
40408         * modules/mbmemcasecmp (Dependencies): Likewise.
40409         * modules/mbmemcasecoll (Dependencies): Likewise.
40410         * modules/mbrtowc (Dependencies): Likewise.
40411         * modules/mbscasecmp (Dependencies): Likewise.
40412         * modules/mbscasestr (Dependencies): Likewise.
40413         * modules/mbschr (Dependencies): Likewise.
40414         * modules/mbscspn (Dependencies): Likewise.
40415         * modules/mbsinit (Dependencies): Likewise.
40416         * modules/mbsncasecmp (Dependencies): Likewise.
40417         * modules/mbsnrtowcs (Dependencies): Likewise.
40418         * modules/mbspbrk (Dependencies): Likewise.
40419         * modules/mbspcasecmp (Dependencies): Likewise.
40420         * modules/mbsrchr (Dependencies): Likewise.
40421         * modules/mbsrtowcs (Dependencies): Likewise.
40422         * modules/mbsspn (Dependencies): Likewise.
40423         * modules/mbsstr (Dependencies): Likewise.
40424         * modules/nl_langinfo (Dependencies): Likewise.
40425         * modules/quotearg (Dependencies): Likewise.
40426         * modules/unicase/locale-language (Dependencies): Likewise.
40427         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
40428         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
40429         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
40430         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
40431         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
40432         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
40433         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
40434         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
40435         * modules/vasnprintf-posix (Dependencies): Likewise.
40436         * modules/wcrtomb (Dependencies): Likewise.
40437         * modules/wcsnrtombs (Dependencies): Likewise.
40438         * modules/wcsrtombs (Dependencies): Likewise.
40440 2011-02-12  Bruno Haible  <bruno@clisp.org>
40442         setlocale: Workaround native Windows bug.
40443         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
40444         succeeds but sets LC_CTYPE to "C", report a failure.
40445         * tests/test-setlocale2.sh: New file.
40446         * tests/test-setlocale2.c: New file.
40447         * modules/setlocale-tests (Files): Add the new files.
40448         (Makefile.am): Enable test-setlocale2.sh test.
40449         * doc/posix-functions/setlocale.texi: Mention workaround.
40451 2011-02-11  Bruno Haible  <bruno@clisp.org>
40453         Tests for module 'setlocale'.
40454         * modules/setlocale-tests: New file.
40455         * tests/test-setlocale1.sh: New file.
40456         * tests/test-setlocale1.c: New file.
40458         New module 'setlocale'.
40459         * lib/locale.in.h (setlocale): New declaration.
40460         * lib/setlocale.c: New file, based on
40461         gettext/gettext-runtime/intl/setlocale.c.
40462         * m4/setlocale.m4: New file.
40463         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
40464         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
40465         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
40466         REPLACE_SETLOCALE.
40467         * modules/setlocale: New file.
40468         * tests/test-locale-c++.cc: Test the declaration of setlocale.
40469         * doc/posix-functions/setlocale.texi: Mention the new module.
40471 2011-02-11  Bruno Haible  <bruno@clisp.org>
40473         Prepare for locale dependent tests on mingw.
40474         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
40475         because it has the wrong locale encoding.
40476         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
40477         French_France.1252 instead of "fr".
40478         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
40479         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
40480         because it has the wrong locale encoding.
40481         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
40482         native Windows, try Turkish_Turkey.65001.
40483         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
40484         Chinese_China.54936.
40486         Prepare for locale dependent tests on mingw.
40487         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
40488         differently.
40489         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
40490         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
40491         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40492         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40494 2011-02-11  Eric Blake  <eblake@redhat.com>
40496         strptime: avoid compiler warnings
40497         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
40498         compiler warnings about dead code.
40499         Reported by Daniel P. Berrange.
40501 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
40503         doc: update users.txt
40504         * users.txt: Add rcs.
40506 2011-02-10  John W. Eaton  <jwe@gnu.org>
40508         doc: update users.txt
40509         * users.txt: Add octave.
40511 2011-02-10  Jim Meyering  <meyering@redhat.com>
40513         doc: update users.txt
40514         * users.txt: Add iwhd.
40516 2011-02-09  Bruno Haible  <bruno@clisp.org>
40518         gnulib-tool: Make copyright notice adjustment more robust.
40519         * gnulib-tool (func_import): In sed_transform_main_lib_file,
40520         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
40521         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
40522         License".
40523         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
40525 2011-02-06  Bruno Haible  <bruno@clisp.org>
40527         New module 'towctrans'.
40528         * modules/towctrans: New file.
40529         * lib/wctype.in.h (towctrans): New declaration.
40530         * lib/towctrans.c: New file.
40531         * lib/towctrans-impl.h: New file.
40532         * m4/towctrans.m4: New file.
40533         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
40534         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
40535         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
40536         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
40537         * doc/posix-functions/towctrans.texi: Mention the new module.
40539 2011-02-06  Bruno Haible  <bruno@clisp.org>
40541         New module 'wctrans'.
40542         * modules/wctrans: New file.
40543         * lib/wctype.in.h (wctrans): New declaration.
40544         * lib/wctrans.c: New file.
40545         * lib/wctrans-impl.h: New file.
40546         * m4/wctrans.m4: New file.
40547         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
40548         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
40549         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
40550         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
40551         * doc/posix-functions/wctrans.texi: Mention the new module.
40553 2011-02-06  Bruno Haible  <bruno@clisp.org>
40555         New module 'iswctype'.
40556         * modules/iswctype: New file.
40557         * lib/wctype.in.h (iswctype): New declaration.
40558         * lib/iswctype.c: New file.
40559         * lib/iswctype-impl.h: New file.
40560         * m4/iswctype.m4: New file.
40561         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
40562         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
40563         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
40564         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
40565         * doc/posix-functions/iswctype.texi: Mention the new module and the
40566         HP-UX 11.00 problem.
40568 2011-02-06  Bruno Haible  <bruno@clisp.org>
40570         New module 'wctype'.
40571         * modules/wctype: Change to represent the wctype() substitute.
40572         * lib/wctype.in.h (wctype): New declaration.
40573         * lib/wctype.c: New file.
40574         * lib/wctype-impl.h: New file.
40575         * m4/wctype.m4: New file.
40576         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
40577         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
40578         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
40579         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
40580         * doc/posix-functions/wctype.texi: Mention the new module and the
40581         HP-UX 11.00 problem.
40583 2011-02-06  Bruno Haible  <bruno@clisp.org>
40585         wctype-h: Ensure wctype_t and wctrans_t are defined.
40586         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
40587         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
40588         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
40589         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
40590         HAVE_WCTRANS_T.
40591         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
40593 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
40595         flock: fix license typo
40597         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
40598         omitted.
40600 2011-02-08  Bruno Haible  <bruno@clisp.org>
40602         Split large sed scripts, for HP-UX sed.
40603         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
40604         to avoid HP-UX limit of 99 commands, in the near future.
40605         * modules/stdlib (Makefile.am): Likewise.
40606         * modules/unistd (Makefile.am): Likewise.
40607         * modules/wchar (Makefile.am): Likewise.
40608         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40609         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
40610         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
40612 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
40613             Bruno Haible  <bruno@clisp.org>
40615         stdlib: improve random_r modularization
40616         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
40617         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
40618         you also need the random_r module to get this material right.
40619         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
40620         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
40621         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
40623 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
40625         stdlib: don't depend on stdint
40626         * lib/stdlib.in.h: Don't include <stdint.h> merely because
40627         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
40628         be independent of whether stdint.h is needed.
40629         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
40630         here, instead of ...
40631         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
40632         struct random_data should be using the random_r module, not just
40633         the stdlib module (which wouldn't make sense: what package needs
40634         just struct random_data without also needing random_r?).
40635         * modules/stdlib (Depends-on): Remove stdint.
40637         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
40638         See the thread rooted at
40639         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
40640         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
40641         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
40642         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
40643         __VMS)); previously it was always included (via fcntl--.h).
40644         (getloadavg): Do not use c_strtod.  Instead, approximate it by
40645         hand; this is good enough for load averages.  Also, do not use
40646         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
40647         flags directly if available and don't bother otherwise.  (Packages
40648         that need the extra reliability should use the modules that define
40649         these flags on older platforms that lack them.)
40650         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
40651         fcntl-safer.
40653 2011-02-08  Jim Meyering  <meyering@redhat.com>
40655         di-set.h, ino-map.h: add multiple-inclusion guard
40656         Technically, the guard is required only for ino-map.h, due to its
40657         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
40658         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
40659         * lib/ino-map.h: Likewise.
40661 2011-02-06  Bruno Haible  <bruno@clisp.org>
40663         iswblank: Ensure declaration on glibc systems.
40664         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
40665         * modules/iswblank (Dependencies): Add 'extensions'.
40666         * doc/posix-functions/iswblank.texi: Document the glibc problem.
40668 2011-02-06  Bruno Haible  <bruno@clisp.org>
40670         New module 'iswblank'.
40671         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
40672         * modules/iswblank: New file.
40673         * modules/wctype-h (Files): Remove lib/iswblank.c.
40674         (Makefile.am): Substitute GNULIB_ISWBLANK.
40675         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
40676         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
40677         (gl_WCTYPE_H_DEFAULTS): New macro.
40678         (gl_WCTYPE_H): Require it. Remove iswblank related code.
40679         * modules/iswblank-tests: New file.
40680         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
40681         * tests/test-wctype-h.c (main): Remove iswblank tests.
40682         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
40683         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
40684         of 'wctype-h'.
40685         * NEWS: Mention the change.
40686         * modules/mbchar (Depends-on): Add iswblank.
40688 2011-02-08  Bruno Haible  <bruno@clisp.org>
40690         di-set tests: Refactor.
40691         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
40692         unnecessary includes.
40693         (ASSERT): Remove macro.
40694         (main): Make C90 compliant by avoiding variable declaration after
40695         statement.
40696         * modules/di-set-tests (Files): Add tests/macros.h.
40698 2011-02-08  Bruno Haible  <bruno@clisp.org>
40700         ino-map tests: Refactor.
40701         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
40702         unnecessary includes.
40703         (ASSERT): Remove macro.
40704         (main): Make C90 compliant by avoiding variable declaration after
40705         statement.
40706         * modules/ino-map-tests (Files): Add tests/macros.h.
40708 2011-02-08  Jim Meyering  <meyering@redhat.com>
40710         di-set: add "const" to a cast
40711         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
40712         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
40714 2011-02-06  Bruno Haible  <bruno@clisp.org>
40716         Rename module 'wctype' to 'wctype-h'.
40717         * modules/wctype-h: Renamed from modules/wctype.
40718         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
40719         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
40720         (Files, Depends-on, Makefile.am): Update.
40721         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
40722         (Files, Makefile.am): Update.
40723         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
40724         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
40725         * doc/posix-headers/wctype.texi: Update.
40726         * doc/posix-functions/iswalnum.texi: Update.
40727         * doc/posix-functions/iswalpha.texi: Update.
40728         * doc/posix-functions/iswblank.texi: Update.
40729         * doc/posix-functions/iswcntrl.texi: Update.
40730         * doc/posix-functions/iswdigit.texi: Update.
40731         * doc/posix-functions/iswgraph.texi: Update.
40732         * doc/posix-functions/iswlower.texi: Update.
40733         * doc/posix-functions/iswprint.texi: Update.
40734         * doc/posix-functions/iswpunct.texi: Update.
40735         * doc/posix-functions/iswspace.texi: Update.
40736         * doc/posix-functions/iswupper.texi: Update.
40737         * doc/posix-functions/iswxdigit.texi: Update.
40738         * doc/posix-functions/towlower.texi: Update.
40739         * doc/posix-functions/towupper.texi: Update.
40740         * NEWS: Mention the change.
40741         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
40742         * modules/mbchar (Dependencies): Likewise.
40743         * modules/mbswidth (Dependencies): Likewise.
40744         * modules/quotearg (Dependencies): Likewise.
40745         * modules/regex (Dependencies): Likewise.
40746         * modules/wcscasecmp (Dependencies): Likewise.
40747         * modules/wcsncasecmp (Dependencies): Likewise.
40748         * modules/wcwidth (Dependencies): Likewise.
40750 2011-02-06  Bruno Haible  <bruno@clisp.org>
40752         New module 'wcswidth'.
40753         * modules/wcswidth: New file.
40754         * lib/wchar.in.h (wcswidth): New declaration.
40755         * lib/wcswidth.c: New file.
40756         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
40757         * m4/wcswidth.m4: New file.
40758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
40759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
40760         REPLACE_WCSWIDTH.
40761         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
40762         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
40763         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
40764         * doc/posix-functions/wcswidth.texi: Mention the new module.
40766 2011-02-06  Bruno Haible  <bruno@clisp.org>
40768         New module 'wcstok'.
40769         * modules/wcstok: New file.
40770         * lib/wchar.in.h (wcstok): New declaration.
40771         * lib/wcstok.c: New file.
40772         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
40773         * m4/wcstok.m4: New file.
40774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
40775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
40776         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
40777         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
40778         * doc/posix-functions/wcstok.texi: Mention the new module.
40780 2011-02-06  Bruno Haible  <bruno@clisp.org>
40782         New module 'wcsstr'.
40783         * modules/wcsstr: New file.
40784         * lib/wchar.in.h (wcsstr): New declaration.
40785         * lib/wcsstr.c: New file.
40786         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
40787         * m4/wcsstr.m4: New file.
40788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
40789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
40790         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
40791         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
40792         * doc/posix-functions/wcsstr.texi: Mention the new module.
40794 2011-02-06  Bruno Haible  <bruno@clisp.org>
40796         New module 'wcspbrk'.
40797         * modules/wcspbrk: New file.
40798         * lib/wchar.in.h (wcspbrk): New declaration.
40799         * lib/wcspbrk.c: New file.
40800         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
40801         * m4/wcspbrk.m4: New file.
40802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
40803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
40804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
40805         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
40806         * doc/posix-functions/wcspbrk.texi: Mention the new module.
40808 2011-02-06  Bruno Haible  <bruno@clisp.org>
40810         New module 'wcsspn'.
40811         * modules/wcsspn: New file.
40812         * lib/wchar.in.h (wcsspn): New declaration.
40813         * lib/wcsspn.c: New file.
40814         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
40815         * m4/wcsspn.m4: New file.
40816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
40817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
40818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
40819         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
40820         * doc/posix-functions/wcsspn.texi: Mention the new module.
40822 2011-02-06  Bruno Haible  <bruno@clisp.org>
40824         New module 'wcscspn'.
40825         * modules/wcscspn: New file.
40826         * lib/wchar.in.h (wcscspn): New declaration.
40827         * lib/wcscspn.c: New file.
40828         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
40829         * m4/wcscspn.m4: New file.
40830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
40831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
40832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
40833         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
40834         * doc/posix-functions/wcscspn.texi: Mention the new module.
40836 2011-02-06  Bruno Haible  <bruno@clisp.org>
40838         New module 'wcsrchr'.
40839         * modules/wcsrchr: New file.
40840         * lib/wchar.in.h (wcsrchr): New declaration.
40841         * lib/wcsrchr.c: New file.
40842         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
40843         * m4/wcsrchr.m4: New file.
40844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
40845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
40846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
40847         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
40848         * doc/posix-functions/wcsrchr.texi: Mention the new module.
40850 2011-02-06  Bruno Haible  <bruno@clisp.org>
40852         New module 'wcschr'.
40853         * modules/wcschr: New file.
40854         * lib/wchar.in.h (wcschr): New declaration.
40855         * lib/wcschr.c: New file.
40856         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
40857         * m4/wcschr.m4: New file.
40858         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
40859         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
40860         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
40861         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
40862         * doc/posix-functions/wcschr.texi: Mention the new module.
40864 2011-02-06  Bruno Haible  <bruno@clisp.org>
40866         New module 'wcsdup'.
40867         * modules/wcsdup: New file.
40868         * lib/wchar.in.h (wcsdup): New declaration.
40869         * lib/wcsdup.c: New file.
40870         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
40871         * m4/wcsdup.m4: New file.
40872         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
40873         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
40874         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
40875         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
40876         * doc/posix-functions/wcsdup.texi: Mention the new module.
40878 2011-02-06  Bruno Haible  <bruno@clisp.org>
40880         New module 'wcsxfrm'.
40881         * modules/wcsxfrm: New file.
40882         * lib/wchar.in.h (wcsxfrm): New declaration.
40883         * lib/wcsxfrm.c: New file.
40884         * lib/wcsxfrm-impl.h: New file.
40885         * m4/wcsxfrm.m4: New file.
40886         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
40887         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
40888         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
40889         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
40890         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
40892 2011-02-06  Bruno Haible  <bruno@clisp.org>
40894         New module 'wcscoll'.
40895         * modules/wcscoll: New file.
40896         * lib/wchar.in.h (wcscoll): New declaration.
40897         * lib/wcscoll.c: New file.
40898         * lib/wcscoll-impl.h: New file.
40899         * m4/wcscoll.m4: New file.
40900         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
40901         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
40902         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
40903         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
40904         * doc/posix-functions/wcscoll.texi: Mention the new module.
40906 2011-02-06  Bruno Haible  <bruno@clisp.org>
40908         New module 'wcsncasecmp'.
40909         * modules/wcsncasecmp: New file.
40910         * lib/wchar.in.h (wcsncasecmp): New declaration.
40911         * lib/wcsncasecmp.c: New file.
40912         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
40913         * m4/wcsncasecmp.m4: New file.
40914         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
40915         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
40916         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
40917         HAVE_WCSNCASECMP.
40918         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
40919         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
40921 2011-02-06  Bruno Haible  <bruno@clisp.org>
40923         New module 'wcscasecmp'.
40924         * modules/wcscasecmp: New file.
40925         * lib/wchar.in.h (wcscasecmp): New declaration.
40926         * lib/wcscasecmp.c: New file.
40927         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
40928         * m4/wcscasecmp.m4: New file.
40929         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
40930         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
40931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
40932         HAVE_WCSCASECMP.
40933         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
40934         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
40936 2011-02-05  Bruno Haible  <bruno@clisp.org>
40938         New module 'wcsncmp'.
40939         * modules/wcsncmp: New file.
40940         * lib/wchar.in.h (wcsncmp): New declaration.
40941         * lib/wcsncmp.c: New file.
40942         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
40943         * m4/wcsncmp.m4: New file.
40944         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
40945         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
40946         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
40947         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
40948         * doc/posix-functions/wcsncmp.texi: Mention the new module.
40950 2011-02-05  Bruno Haible  <bruno@clisp.org>
40952         New module 'wcscmp'.
40953         * modules/wcscmp: New file.
40954         * lib/wchar.in.h (wcscmp): New declaration.
40955         * lib/wcscmp.c: New file.
40956         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
40957         * m4/wcscmp.m4: New file.
40958         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
40959         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
40960         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
40961         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
40962         * doc/posix-functions/wcscmp.texi: Mention the new module.
40964 2011-02-05  Bruno Haible  <bruno@clisp.org>
40966         New module 'wcsncat'.
40967         * modules/wcsncat: New file.
40968         * lib/wchar.in.h (wcsncat): New declaration.
40969         * lib/wcsncat.c: New file.
40970         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
40971         * m4/wcsncat.m4: New file.
40972         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
40973         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
40974         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
40975         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
40976         * doc/posix-functions/wcsncat.texi: Mention the new module.
40978 2011-02-05  Bruno Haible  <bruno@clisp.org>
40980         New module 'wcscat'.
40981         * modules/wcscat: New file.
40982         * lib/wchar.in.h (wcscat): New declaration.
40983         * lib/wcscat.c: New file.
40984         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
40985         * m4/wcscat.m4: New file.
40986         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
40987         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
40988         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
40989         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
40990         * doc/posix-functions/wcscat.texi: Mention the new module.
40992 2011-02-05  Bruno Haible  <bruno@clisp.org>
40994         New module 'wcpncpy'.
40995         * modules/wcpncpy: New file.
40996         * lib/wchar.in.h (wcpncpy): New declaration.
40997         * lib/wcpncpy.c: New file.
40998         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
40999         * m4/wcpncpy.m4: New file.
41000         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
41001         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
41002         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
41003         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
41004         * doc/posix-functions/wcpncpy.texi: Mention the new module.
41006 2011-02-05  Bruno Haible  <bruno@clisp.org>
41008         New module 'wcsncpy'.
41009         * modules/wcsncpy: New file.
41010         * lib/wchar.in.h (wcsncpy): New declaration.
41011         * lib/wcsncpy.c: New file.
41012         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
41013         * m4/wcsncpy.m4: New file.
41014         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
41015         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
41016         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
41017         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
41018         * doc/posix-functions/wcsncpy.texi: Mention the new module.
41020 2011-02-05  Bruno Haible  <bruno@clisp.org>
41022         New module 'wcpcpy'.
41023         * modules/wcpcpy: New file.
41024         * lib/wchar.in.h (wcpcpy): New declaration.
41025         * lib/wcpcpy.c: New file.
41026         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
41027         * m4/wcpcpy.m4: New file.
41028         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
41029         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
41030         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
41031         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
41032         * doc/posix-functions/wcpcpy.texi: Mention the new module.
41034 2011-02-05  Bruno Haible  <bruno@clisp.org>
41036         New module 'wcscpy'.
41037         * modules/wcscpy: New file.
41038         * lib/wchar.in.h (wcscpy): New declaration.
41039         * lib/wcscpy.c: New file.
41040         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
41041         * m4/wcscpy.m4: New file.
41042         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
41043         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
41044         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
41045         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
41046         * doc/posix-functions/wcscpy.texi: Mention the new module.
41048 2011-02-05  Bruno Haible  <bruno@clisp.org>
41050         New module 'wcsnlen'.
41051         * modules/wcsnlen: New file.
41052         * lib/wchar.in.h (wcsnlen): New declaration.
41053         * lib/wcsnlen.c: New file.
41054         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
41055         * m4/wcsnlen.m4: New file.
41056         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
41057         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
41058         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
41059         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
41060         * doc/posix-functions/wcsnlen.texi: Mention the new module.
41062 2011-02-05  Bruno Haible  <bruno@clisp.org>
41064         New module 'wcslen'.
41065         * modules/wcslen: New file.
41066         * lib/wchar.in.h (wcslen): New declaration.
41067         * lib/wcslen.c: New file.
41068         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
41069         * m4/wcslen.m4: New file.
41070         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
41071         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
41072         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
41073         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
41074         * doc/posix-functions/wcslen.texi: Mention the new module.
41076 2011-02-05  Bruno Haible  <bruno@clisp.org>
41078         New module 'wmemset'.
41079         * modules/wmemset: New file.
41080         * lib/wchar.in.h (wmemset): New declaration.
41081         * lib/wmemset.c: New file.
41082         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
41083         * m4/wmemset.m4: New file.
41084         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
41085         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
41086         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
41087         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
41088         * doc/posix-functions/wmemset.texi: Mention the new module.
41090 2011-02-05  Bruno Haible  <bruno@clisp.org>
41092         New module 'wmemmove'.
41093         * modules/wmemmove: New file.
41094         * lib/wchar.in.h (wmemmove): New declaration.
41095         * lib/wmemmove.c: New file.
41096         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
41097         * m4/wmemmove.m4: New file.
41098         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
41099         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
41100         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
41101         HAVE_WMEMMOVE.
41102         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
41103         * doc/posix-functions/wmemmove.texi: Mention the new module.
41105 2011-02-05  Bruno Haible  <bruno@clisp.org>
41107         New module 'wmemcpy'.
41108         * modules/wmemcpy: New file.
41109         * lib/wchar.in.h (wmemcpy): New declaration.
41110         * lib/wmemcpy.c: New file.
41111         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
41112         * m4/wmemcpy.m4: New file.
41113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
41114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
41115         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
41116         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
41117         * doc/posix-functions/wmemcpy.texi: Mention the new module.
41119 2011-02-05  Bruno Haible  <bruno@clisp.org>
41121         New module 'wmemcmp'.
41122         * modules/wmemcmp: New file.
41123         * lib/wchar.in.h (wmemcmp): New declaration.
41124         * lib/wmemcmp.c: New file.
41125         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
41126         * m4/wmemcmp.m4: New file.
41127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
41128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
41129         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
41130         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
41131         * doc/posix-functions/wmemcmp.texi: Mention the new module.
41133 2011-02-07  Jim Meyering  <meyering@redhat.com>
41135         di-set, ino-map: new modules, from coreutils
41136         * lib/di-set.c: New file.
41137         * lib/di-set.h: Likewise.
41138         * lib/ino-map.c: Likewise.
41139         * lib/ino-map.h: Likewise.
41140         * modules/di-set: Likewise.
41141         * modules/di-set-tests: Likewise.
41142         * modules/ino-map: Likewise.
41143         * modules/ino-map-tests: Likewise.
41144         * tests/test-di-set.c: Likewise.
41145         * tests/test-ino-map.c: Likewise.
41147 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
41149         getloadavg: merge minor changes from Emacs
41151         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
41152         (getloadavg): Use memset, not bzero.
41154         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
41155         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
41156         clash (bug#86).
41158 2010-11-14  Bruno Haible  <bruno@clisp.org>
41160         Allow multiple gnulib generated replacements to coexist.
41161         * lib/getopt.in.h (struct option): Avoid identical redefinition.
41162         * lib/inttypes.in.h (imaxdiv_t): Likewise.
41163         * lib/langinfo.in.h (nl_item): Likewise.
41164         * lib/math.in.h (_NaN, NAN): Likewise.
41165         * lib/netdb.in.h (struct addrinfo): Likewise.
41166         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
41167         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
41168         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
41169         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
41170         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
41171         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
41172         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
41173         pthread_mutexattr_init, pthread_mutexattr_settype,
41174         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
41175         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
41176         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
41177         pthread_spin_trylock, pthread_spin_unlock): Likewise.
41178         * lib/sched.in.h (struct sched_param): Likewise.
41179         * lib/se-selinux.in.h (security_class_t, security_context_t,
41180         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
41181         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
41182         lsetfilecon, fsetfilecon, security_check_context,
41183         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
41184         Likewise.
41185         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
41186         Likewise.
41187         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
41188         _gl_function_taking_int_returning_void_t, union sigval,
41189         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
41190         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
41191         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
41192         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
41193         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
41194         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
41195         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
41196         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
41197         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
41198         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
41199         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
41200         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
41201         socklen_t, rpl_fd_isset): Likewise.
41202         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
41203         * lib/sys_time.in.h (struct timeval): Likewise.
41204         * lib/sys_times.in.h (struct tms): Likewise.
41205         * lib/sys_utsname.in.h (struct utsname):
41206         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
41207         * lib/unistd.in.h (getpagesize): Likewise.
41208         * lib/wchar.in.h (mbstate_t): Likewise.
41209         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41210         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
41211         towlower, towupper): Likewise.
41212         Reported by Sam Steingold <sds@gnu.org>.
41214 2011-02-05  Eric Blake  <eblake@redhat.com>
41216         unsetenv: work around Haiku issues
41217         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
41218         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
41220 2010-12-30  Bruce Korb  <bkorb@gnu.org>
41222         libposix: avoid calling error() within libposix
41223         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
41224         is defined.
41226 2011-02-05  Eric Blake  <eblake@redhat.com>
41228         strerror_r-posix: port to cygwin
41229         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
41230         implementation.
41231         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
41232         * tests/test-strerror_r.c (main): Fix test.
41233         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
41234         issue.
41236 2011-02-05  Bruno Haible  <bruno@clisp.org>
41238         New module 'wmemchr'.
41239         * modules/wmemchr: New file.
41240         * lib/wchar.in.h (wmemchr): New declaration.
41241         * lib/wmemchr.c: New file.
41242         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
41243         * m4/wmemchr.m4: New file.
41244         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
41245         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
41246         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
41247         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
41248         * doc/posix-functions/wmemchr.texi: Mention the new module.
41250 2011-02-04  Eric Blake  <eblake@redhat.com>
41252         fdopendir: detect FreeBSD bug
41253         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
41254         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
41256 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
41258         stdbool: do not define HAVE_STDBOOL_H
41259         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
41260         AC_HEADER_STDBOOL.  All uses changed.  Do not define
41261         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
41262         imported from the latest Autoconf git.  It was motivated by Emacs,
41263         which uses gnulib but does not need HAVE_STDBOOL_H.
41265 2011-02-04  Bruno Haible  <bruno@clisp.org>
41267         wcsnrtombs: Prepare for new module wwcsnrtombs.
41268         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
41269         * lib/wcsnrtombs.c: Include it.
41270         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
41272         wcsrtombs: Prepare for new module wwcsrtombs.
41273         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
41274         * lib/wcsrtombs.c: Include it.
41275         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
41277         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
41278         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
41279         * lib/mbsnrtowcs.c: Include it.
41280         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
41282         mbsrtowcs: Prepare for new module mbsrtowwcs.
41283         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
41284         * lib/mbsrtowcs.c: Include it.
41285         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
41287 2011-02-04  Bruno Haible  <bruno@clisp.org>
41289         vasnprintf: Reduce use of malloc for small format strings.
41290         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
41291         (arguments): Add room for the first 7 arguments.
41292         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
41293         (char_directives, u8_directives, u16_directives, u32_directives): Add
41294         room for the first 7 directives.
41295         * lib/printf-parse.c: Include <string.h>.
41296         (PRINTF_PARSE): Change memory handling code so that it uses the first
41297         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
41298         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
41299         Reported by Pádraig Brady <P@draigbrady.com>.
41301 2011-01-31  Eric Blake  <eblake@redhat.com>
41303         dup2: work around Haiku bug
41304         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
41305         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
41306         * doc/posix-functions/dup2.texi (dup2): Document the bug.
41307         * tests/test-dup2.c (main): Enhance test.
41309 2011-01-31  Simon Josefsson  <simon@josefsson.org>
41311         doc: off_t is not available in eglibc 2.11.2 stdio.h.
41312         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
41313         declared by eglibc 2.11.2.
41314         * lib/stdio.in.h: Likewise.
41316 2011-01-31  Eric Blake  <eblake@redhat.com>
41318         ignore-value: add missing test dependency
41319         * tests/test-ignore-value.c: Revert previous change; stdio.h
41320         provides off_t.
41321         * modules/ignore-value-tests (Depends-on): Add missing dependency.
41323 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
41325         mktime: clarify long_int width checking
41326         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
41327         the top level, to make it clearer that the assumption about
41328         long_int width is being checked.  See
41329         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
41331 2011-01-30  Simon Josefsson  <simon@josefsson.org>
41333         ignore-value: Fix self-test.
41334         * tests/test-ignore-value.c: Include sys/types.h for off_t.
41336 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
41338         TYPE_MAXIMUM: avoid theoretically undefined behavior
41339         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
41340         negative number, which the C Standard says has undefined behavior.
41341         In practice this is not a problem, but might as well do it by the book.
41342         Reported by Rich Felker and Eric Blake; see
41343         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
41344         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
41345         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
41346         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41347         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
41348         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41349         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
41351         mktime: #undef mktime before #defining it
41352         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
41354         mktime: systematically normalize tm_isdst comparisons
41355         * lib/mktime.c (isdst_differ): New function.
41356         (__mktime_internal): Use it systematically for all isdst comparisons.
41357         This completes the fix for libc BZ #6723, and removes the need for
41358         normalizing tm_isdst.  See
41359         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
41360         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
41362         mktime: fix some integer overflow issues and sidestep the rest
41364         This was prompted by a bug report by Benjamin Lindner for MinGW
41365         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
41366         His bug is due to signed integer overflow (0 - INT_MIN), and I
41367         I scanned through mktime.c looking for other integer overflow
41368         problems, fixing all the bugs I found.
41370         Although the C Standard says the resulting code is still not safe
41371         in the presence of integer overflow, in practice it should be good
41372         enough for all real-world two's-complement implementations, except
41373         for debugging environments that deliberately trap on integer
41374         overflow (e.g., gcc -ftrapv).
41376         * lib/mktime.c (WRAPV): New macro.
41377         (SHR): Also check that long_int and time_t shift right in the
41378         usual way, before using the fast-but-unportable method.
41379         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
41380         used.  The code already assumed two's complement, so there's
41381         no need to test for alternatives.  All uses removed.
41382         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
41383         the C standard.  Problem reported by Rich Felker in
41384         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
41385         (twos_complement_arithmetic): Also check long_int and time_t.
41386         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
41387         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
41388         (__mktime_internal): Avoid integer overflow with unary subtraction
41389         in two instances where -1 - X is an adequate replacement for -X,
41390         since the calculations are approximate.
41392 2011-01-29  Eric Blake  <eblake@redhat.com>
41394         mktime: avoid infinite loop
41395         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
41396         type; behavior is still undefined but portable to all known targets.
41397         Reported by Rich Felker.
41399 2011-01-29  Simon Josefsson  <simon@josefsson.org>
41401         rename, unlink, same-inode: Relicense.
41402         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
41403         * modules/unlink (License): Likewise.
41404         * modules/same-inode (License): Likewise.
41406 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41408         mktime: avoid problems on NetBSD 5 / i386
41409         * lib/mktime.c (long_int): New type.  This works around a problem
41410         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
41411         but time_t is 64 bits, and where I expect the existing code is
41412         wrong in some cases.
41413         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
41414         (ydhms_diff): Bring back the compile-time check for wide-enough
41415         year and yday.
41417         mktime: fix misspelling in comment
41418         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
41419         This merges all recent glibc changes of importance.
41421 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41423         move-if-change: cope with concurrent mv of identical file.
41424         * build-aux/move-if-change (CMPPROG): Accept environment
41425         variable as an override for `cmp'.
41426         (usage): Document CMPPROG.
41427         Adjust comparison to drop stdout.  Cope with failure of mv if
41428         the target file exists and is identical to the source, for
41429         parallel builds.
41430         Report from H.J. Lu against binutils in PR binutils/12283.
41432 2011-01-28  Bruce Korb  <bkorb@gnu.org>
41434         * users.txt: Mention sharutils.
41436 2011-01-28  Simon Josefsson  <simon@josefsson.org>
41438         * users.txt: Mention OATH Toolkit.
41440 2011-01-27  Bruno Haible  <bruno@clisp.org>
41442         Prepare for supporting FreeBSD 10.
41443         * build-aux/config.libpath: Remove handling of freebsd1*.
41445 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
41447         Prepare for supporting FreeBSD 10.
41448         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
41449         match FreeBSD 10.0.
41451 2011-01-27  Bruno Haible  <bruno@clisp.org>
41453         vma-iter, get-rusage-as: Add OpenBSD support.
41454         * modules/vma-iter (configure.ac): Test for mquery.
41455         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
41456         * lib/vma-iter.c: Include <sys/mman.h>.
41457         (vma_iterate): Add an implementation based on mquery().
41458         * lib/resource-ext.h (get_rusage_as): Update comments.
41459         * lib/get-rusage-as.c: Likewise.
41460         * lib/get-rusage-data.c: Likewise.
41462 2011-01-26  Karl Berry  <karl@gnu.org>
41464         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
41465         variables to make it easier to override the makeinfo program used.
41467 2011-01-26  Eric Blake  <eblake@redhat.com>
41469         fcntl: work around Haiku F_DUPFD bugs
41470         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
41471         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
41472         cloexec bit on duplication.
41473         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
41475 2011-01-26  Bruno Haible  <bruno@clisp.org>
41477         Enable memory leak tests on AIX.
41478         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
41479         * tests/test-fprintf-posix3.c (main): Likewise.
41481 2011-01-26  Bruno Haible  <bruno@clisp.org>
41483         Tests for module 'get-rusage-data'.
41484         * modules/get-rusage-data-tests: New file.
41485         * tests/test-get-rusage-data.c: New file.
41487         New module 'get-rusage-data'.
41488         * lib/resource-ext.h (get_rusage_data): New declaration.
41489         * lib/get-rusage-data.c: New file.
41490         * modules/get-rusage-data: New file.
41492 2011-01-25  Bruno Haible  <bruno@clisp.org>
41494         get-rusage-as: Allow for easier testing.
41495         * lib/resource-ext.h (get_rusage_as): Add comment.
41496         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
41497         (main): New function for interactive testing.
41499 2011-01-25  Bruno Haible  <bruno@clisp.org>
41501         vma-iter: Treat Haiku like BeOS.
41502         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
41503         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
41505 2011-01-25  Eric Blake  <eblake@redhat.com>
41507         c-stack: fix regression on cygwin when libsigsegv is present
41508         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
41510 2011-01-24  Bruno Haible  <bruno@clisp.org>
41512         vma-iter: Avoid empty intervals.
41513         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
41514         on an empty interval.
41516 2011-01-24  Jim Meyering  <meyering@redhat.com>
41518         u64: remove unnecessary #include
41519         * lib/u64.h: Don't include <stddef.h>.  It was not used.
41521 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
41523         Allow the user to avoid the HAVE_RAW_DECL_* macros.
41524         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
41526 2011-01-23  Bruno Haible  <bruno@clisp.org>
41528         New module 'vma-iter'.
41529         * lib/vma-iter.h: New file.
41530         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
41531         * modules/vma-iter: New file.
41532         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
41533         for get_rusage_as_via_iterator.
41534         (vma_iterate_callback): New function.
41535         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
41536         * modules/get-rusage-as (Depends-on): Add vma-iter.
41538 2011-01-23  Bruno Haible  <bruno@clisp.org>
41540         uninorm: Tweak includes.
41541         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
41542         Reported by Jim Meyering.
41544 2011-01-23  Bruno Haible  <bruno@clisp.org>
41546         get-rusage-as: Improve on NetBSD.
41547         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
41548         /proc, like on FreeBSD.
41550 2011-01-23  Jim Meyering  <meyering@redhat.com>
41552         xreadlink.h: remove unnecessary #include
41553         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
41555         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
41556         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
41558 2011-01-23  Bruno Haible  <bruno@clisp.org>
41560         get-rusage-as: Fix bug.
41561         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
41562         original limit when aborting the first loop.
41564 2011-01-23  Bruno Haible  <bruno@clisp.org>
41566         wctype: Ensure valid C syntax.
41567         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
41568         unconditionally, instead of gl_NEXT_HEADERS conditionally.
41570 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
41572         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
41573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
41574         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
41575         as they are needed only for configure's test case.
41576         This removes two unnecessary symbols from config.h.
41578         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
41579         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
41580         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
41581         AC_CHECK_HEADERS_ONCE on a header that we also invoke
41582         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
41583         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
41584         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
41585         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
41586         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
41587         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41588         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
41589         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41590         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
41591         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
41592         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
41593         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41594         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
41595         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
41597 2011-01-21  Eric Blake  <eblake@redhat.com>
41599         maintainer-makefile: work with older git for submodule check
41600         * top/maint.mk (public-submodule-commit): Rewrite to avoid
41601         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
41602         Reported by Matthias Bolte.
41604         bootstrap: minor portability fixes
41605         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
41606         (usage): Omit leading capital and trailing . on help phrases, per
41607         GNU Coding Standards.
41608         (check_versions, top level): Prefix messages with script name.
41610 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
41612         bootstrap: support --no-git option
41613         * build-aux/bootstrap: Add --no-git option, to be used when
41614         --gnulib-srcdir points to the exact desired checkout.
41616 2011-01-21  Eric Blake  <eblake@redhat.com>
41618         strerror_r-posix: work with glibc 2.13
41619         * lib/strerror_r.c (strerror_r): Fix return type.
41621 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41622             Bruno Haible  <bruno@clisp.org>
41624         uN_strstr: New unit tests.
41625         * modules/unistr/u8-strstr-tests: New file.
41626         * modules/unistr/u16-strstr-tests: New file.
41627         * modules/unistr/u32-strstr-tests: New file.
41628         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
41629         * tests/unistr/test-u8-strstr.c: New file.
41630         * tests/unistr/test-u16-strstr.c: New file.
41631         * tests/unistr/test-u32-strstr.c: New file.
41633 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41634             Bruno Haible  <bruno@clisp.org>
41636         Make uN_strstr functions O(n) worst-case.
41637         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
41638         16-bit and 32-bit unit cases, use the unibyte algorithm from
41639         lib/mbsstr.c.
41640         * lib/unistr/u8-strstr.c: Include <string.h>.
41641         (UNIT_IS_UINT8_T): New macro.
41642         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
41643         (U_STRLEN, U_STRNLEN): New macros.
41644         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
41645         (U_STRLEN, U_STRNLEN): New macros.
41646         * modules/unistr/u8-strstr (Depends-on): Add strstr.
41647         (configure.ac): Update required libunistring version.
41648         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
41649         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
41650         malloca.
41651         (configure.ac): Update required libunistring version.
41652         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
41653         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
41654         malloca.
41655         (configure.ac): Update required libunistring version.
41657 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41658             Bruno Haible  <bruno@clisp.org>
41660         Prepare for faster uN_strstr functions.
41661         * lib/str-kmp.h: Support definable UNITs.
41662         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
41663         needle_len argument.
41664         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
41665         * lib/mbscasestr.c (mbscasestr): Likewise.
41667 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41669         malloca-tests: make faster by unsetting MALLOC_PERTURB_
41670         * tests/test-malloca.c (main): Unset the environment variable
41671         to greatly speed up the test.
41672         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
41673         * modules/malloca-tests: Depend on unsetenv.
41675 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41677         ignore-value: remove stdint dependency
41678         * lib/ignore-value.h: Remove <stdint.h>
41679         * modules/ignore-value: Remove stdint dependency.
41681 2011-01-21  Jim Meyering  <meyering@redhat.com>
41683         maint.mk: adjust variable name to be consistent with other gl_ vars
41684         * top/maint.mk (gl_public_submodule_commit): Rename the variable
41685         to be lower case.
41687 2011-01-20  Jim Meyering  <meyering@redhat.com>
41689         maint.mk: make "check" depend on public-submodule-commit by default
41690         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
41692 2011-01-20  Bruno Haible  <bruno@clisp.org>
41694         mbfile, mbiter: Complete change from 2008-12-21.
41695         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
41696         * m4/mbiter.m4 (gl_MBITER): Likewise.
41698 2011-01-20  Jim Meyering  <meyering@redhat.com>
41700         init.sh: insert space between each function name and "()"
41701         * tests/init.sh: Make it a little easier to see that a function's
41702         name is "warn_", and not "warn" when looking at the first part of
41703         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
41705 2011-01-20  Jim Meyering  <meyering@redhat.com>
41707         mountlist: clean up code formatting
41708         * lib/mountlist.c (read_file_system_list): Split a long line,
41709         correct bracing style, use NULL in place of "(struct statfs *)0",
41710         don't parenthesize return value, add spaces around "=" and after
41711         ";-in-for-stmt".
41713 2011-01-14  Markus Duft  <mduft@gentoo.org>
41715         mountlist: add support for Interix
41716         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
41717         Apply statvfs to all entries of /dev/fs.
41718         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
41719         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
41721 2011-01-20  Jim Meyering  <meyering@redhat.com>
41723         maint.mk: improve the public-submodule-commit rule
41724         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
41725         to suppress printing of its commands... unless V=1.
41726         Add git submodule's --quiet option to suppress printing of e.g.,
41727         "Entering gnulib" output.
41728         "cd" into $(srcdir) before running git submodule.
41730 2011-01-20  Bruno Haible  <bruno@clisp.org>
41732         include_next: Fix bug introduced on 2011-01-18.
41733         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
41734         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
41735         ac_cv_header_... variable if the second argument is not 'check'.
41736         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
41737         gl_NEXT_HEADERS_INTERNAL.
41739 2011-01-20  Bruno Haible  <bruno@clisp.org>
41741         Allow the user to avoid the GNULIB_TEST_* macros.
41742         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
41743         Suggested by Paul Eggert.
41745 2011-01-14  Jim Meyering  <meyering@redhat.com>
41747         bootstrap: avoid failure when there is no .gitmodules file
41748         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
41749         has been assigned to, even when its value is the empty string.
41750         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
41751         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
41752         Reported by John W. Eaton <jwe@gnu.org>.
41754 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
41756         assume <ctype.h>, ..., <time.h> exist
41757         For years gnulib has been assuming the existence of the headers
41758         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
41759         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
41760         them, since they don't appear to be needed.
41761         * README (Portability guidelines): Document this.
41762         * lib/flock.c: Assume <fcntl.h> exists.
41763         * lib/regex_internal.h: Assume <locale.h> exists.
41764         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
41765         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
41766         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
41767         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
41768         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
41769         * m4/regex.m4 (gl_REGEX): Likewise.
41770         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
41771         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
41772         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
41773         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
41774         * tests/test-argp.c: Likewise.
41775         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
41777         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
41778         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
41779         AA_APPLE_UNIVERSAL_BUILD.  See
41780         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
41781         * NEWS: Document this.
41783 2011-01-19  Eric Blake  <eblake@redhat.com>
41785         c-stack: assume stack overflow if SA_SIGINFO unsupported
41786         * lib/c-stack.c (SIGACTION_WORKS): Rename...
41787         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
41788         sigaction will work.
41789         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
41790         behavior match Linux.
41791         * tests/test-c-stack.c (main): Prefer NULL for pointers.
41793         stdbool-tests: accommodate Haiku
41794         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
41796         binary-io: fix O_TEXT on Haiku
41797         * modules/binary-io (Depends-on): Add fcntl-h.
41798         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
41799         than blindly undefining O_TEXT.
41800         Reported by Scott McCreary.
41802 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41804         include_next: do not check for standard headers like stddef.h
41806         I found this problem when modifying Emacs to use gnulib.
41807         I noticed that it added HAVE_STDDEF_H to config.h, even though
41808         gnulib always assumes <stddef.h> exists as per README and this
41809         symbol is unnecessary.
41810         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
41811         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
41812         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
41813         faster for headers like stddef.h that are known to exist.
41814         (gl_CHECK_NEXT_HEADERS): Use it.
41815         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
41816         rather than gl_CHECK_NEXT_HEADERS.
41817         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
41818         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
41820 2011-01-18  Eric Blake  <eblake@redhat.com>
41822         ansi-c++-opt: skip C++ dependency style if C++ is unused
41823         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
41824         tests when we know C++ compilation is not desired.
41825         Reported by Scott McCreary.
41827 2011-01-18  Bruno Haible  <bruno@clisp.org>
41829         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
41830         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
41831         (main): Perform test also when getrlimit and setrlimit don't exist or
41832         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
41833         limiting the address space size using setrlimit, compare the address
41834         space size before and after the test.
41835         * tests/test-dprintf-posix2.c: Likewise.
41836         * tests/test-fprintf-posix3.sh: Update skip messages.
41837         * tests/test-dprintf-posix2.sh: Likewise.
41838         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
41839         * modules/dprintf-posix-tests (Depends-on): Likewise.
41840         Reported by Bruce Korb <bkorb@gnu.org> and
41841         Gary V. Vaughan <gary@gnu.org>.
41843 2011-01-18  Bruno Haible  <bruno@clisp.org>
41845         get-rusage-as: Improvement for Cygwin.
41846         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
41847         areas that are merely reserved.
41849 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41851         strftime: remove dependencies on multibyte modules
41853         strftime depended on mbrlen, mbsinit, and wchar, but these modules
41854         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
41855         only if __osf__ is defined, and I suspect OSF doesn't need these
41856         other modules.  If my guess is wrong, we'll need to come up with a
41857         variant of strftime that doesn't need the multibyte modules.
41859         I discovered this problem when attempting modify Emacs to use the
41860         strftime module.  With the previous gnulib, this caused Emacs to
41861         need 31 new files, ranging from lib/config.charset to
41862         m4/wint_t.m4.  This was overkill and I expect would be offputting
41863         to the Emacs maintainers.  After this change, only 6 new files are
41864         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
41865         stdbool.m4, and tm_gmtoff.m4.
41867         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
41868         Suggested by Bruno Haible in
41869         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
41870         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
41871         and do not check for wchar.h.
41872         * modules/strftime (Files): Remove m4/mbstate_t.m4.
41873         (Depends-on): Remove mbrlen, mbsinit, wchar.
41875 2011-01-18  Bruno Haible  <bruno@clisp.org>
41877         Tests for module 'get-rusage-as'.
41878         * modules/get-rusage-as-tests: New file.
41879         * tests/test-get-rusage-as.c: New file.
41881         New module 'get-rusage-as'.
41882         * modules/get-rusage-as: New file.
41883         * lib/resource-ext.h: New file.
41884         * lib/get-rusage-as.c: New file.
41886 2011-01-17  Eric Blake  <eblake@redhat.com>
41888         sigaction: relax license from LGPLv3+ to LGPLv2+
41889         * modules/sigaction (License): Relax to LGPLv2+.
41891 2011-01-14  Bruno Haible  <bruno@clisp.org>
41893         filemode: Make function declarations usable in C++ mode.
41894         * lib/filemode.h: Enclose function declarations in extern "C" block.
41895         Reported by John W. Eaton <jwe@gnu.org>.
41897 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
41899         save-cwd: no longer include "xgetcwd.h"
41900         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
41901         This avoids a compilation failure in projects that use save-cwd
41902         without also using the xgetcwd module.
41904 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
41906         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
41907         This is so that a program like Emacs, which needs only dtoastr,
41908         does not have to bother with distributing and compiling ftoastr
41909         and ldtoastr.
41910         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
41911         * modules/dtoastr, modules/ldtoastr: New files.
41912         * modules/ftoastr: Now works just for 'float'.
41913         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
41914         (Makefile.am): Remove ftoastr.h (not needed and no effect),
41915         dtoastr.c, ldtoastr.c.
41917 2011-01-11  Jim Meyering  <meyering@redhat.com>
41919         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
41920         There is no need to work around the lack of the fchdir function,
41921         since gnulib can now provide a replacement when required.
41922         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
41923         * modules/save-cwd (Depends-on): Add fchdir.
41925 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
41927         openat, save-cwd: avoid xmalloc
41929         This removes a direct (but undocumented) dependency of openat on
41930         xalloc, along with an indirect dependency via save-cwd.  It also
41931         removes a dependency of save-cwd on xgetcwd, and thereby
41932         indirectly on xalloc.  This change causes the openat substitute
41933         to fall back on save_cwd when memory is tight, and for save_cwd to
41934         fail instead of dying when memory is tight, but that's good enough.
41935         Problem and initial idea for fix reported by Bastien Roucaries in
41936         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
41938         * lib/openat-proc.c: Include stdlib.h (for malloc), not
41939         xalloc.h (for xmalloc).
41940         (openat_proc_name): Use malloc, not xmalloc.
41941         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
41942         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
41944         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
41945         This avoids heap allocation for file names whose lengths are in
41946         the range 512..1023, with the upper bound increasing to at most
41947         4031 depending on the platform's PATH_MAX.  (We do not want
41948         pathmax.h here as it might supply a non-constant PATH_MAX.)
41949         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
41950         Perhaps they should be moved to malloca.h?
41951         (OPENAT_BUFFER_SIZE): Use them.
41953 2011-01-10  Bruno Haible  <bruno@clisp.org>
41955         doc: Update users.txt.
41956         * users.txt: Add recutils.
41958 2011-01-09  Karl Berry  <karl@gnu.org>
41960         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
41962         * doc/configmake.texi: New file.
41963         * doc/gnulib.texi: Include it.
41964         * modules/configmake: Move documentation from here.
41966 2011-01-09  Bruno Haible  <bruno@clisp.org>
41968         Update to Unicode 6.0.0.
41969         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
41970         (get_lbp): Update for Unicode 6.0.0.
41971         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
41972         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
41973         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
41974         U+11001, U+11038..U+11046. Remove U+06DE.
41975         (uc_width): Fix bounds of planes.
41976         * tests/uniwidth/test-uc_width2.sh: Same updates as in
41977         lib/uniwidth/width.c.
41978         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
41979         trailing whitespace removed.
41980         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
41981         without comments, but with the original copyright notice.
41982         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
41983         * lib/unicase/ignorable.h: Likewise.
41984         * lib/unicase/tocasefold.h: Likewise.
41985         * lib/unicase/tolower.h: Likewise.
41986         * lib/unicase/totitle.h: Likewise.
41987         * lib/unicase/toupper.h: Likewise.
41988         * lib/unictype/bidi_of.h: Likewise.
41989         * lib/unictype/blocks.h: Likewise.
41990         * lib/unictype/categ_C.h: Likewise.
41991         * lib/unictype/categ_Cn.h: Likewise.
41992         * lib/unictype/categ_L.h: Likewise.
41993         * lib/unictype/categ_Ll.h: Likewise.
41994         * lib/unictype/categ_Lm.h: Likewise.
41995         * lib/unictype/categ_Lo.h: Likewise.
41996         * lib/unictype/categ_Lu.h: Likewise.
41997         * lib/unictype/categ_M.h: Likewise.
41998         * lib/unictype/categ_Mc.h: Likewise.
41999         * lib/unictype/categ_Me.h: Likewise.
42000         * lib/unictype/categ_Mn.h: Likewise.
42001         * lib/unictype/categ_N.h: Likewise.
42002         * lib/unictype/categ_Nd.h: Likewise.
42003         * lib/unictype/categ_No.h: Likewise.
42004         * lib/unictype/categ_P.h: Likewise.
42005         * lib/unictype/categ_Po.h: Likewise.
42006         * lib/unictype/categ_S.h: Likewise.
42007         * lib/unictype/categ_Sc.h: Likewise.
42008         * lib/unictype/categ_Sk.h: Likewise.
42009         * lib/unictype/categ_Sm.h: Likewise.
42010         * lib/unictype/categ_So.h: Likewise.
42011         * lib/unictype/categ_of.h: Likewise.
42012         * lib/unictype/combining.h: Likewise.
42013         * lib/unictype/ctype_alnum.h: Likewise.
42014         * lib/unictype/ctype_alpha.h: Likewise.
42015         * lib/unictype/ctype_graph.h: Likewise.
42016         * lib/unictype/ctype_lower.h: Likewise.
42017         * lib/unictype/ctype_print.h: Likewise.
42018         * lib/unictype/ctype_punct.h: Likewise.
42019         * lib/unictype/ctype_upper.h: Likewise.
42020         * lib/unictype/decdigit.h: Likewise.
42021         * lib/unictype/digit.h: Likewise.
42022         * lib/unictype/numeric.h: Likewise.
42023         * lib/unictype/pr_alphabetic.h: Likewise.
42024         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42025         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42026         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42027         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42028         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42029         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42030         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42031         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42032         * lib/unictype/pr_case_ignorable.h: Likewise.
42033         * lib/unictype/pr_cased.h: Likewise.
42034         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
42035         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
42036         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
42037         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
42038         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
42039         * lib/unictype/pr_combining.h: Likewise.
42040         * lib/unictype/pr_composite.h: Likewise.
42041         * lib/unictype/pr_currency_symbol.h: Likewise.
42042         * lib/unictype/pr_decimal_digit.h: Likewise.
42043         * lib/unictype/pr_deprecated.h: Likewise.
42044         * lib/unictype/pr_format_control.h: Likewise.
42045         * lib/unictype/pr_grapheme_base.h: Likewise.
42046         * lib/unictype/pr_grapheme_extend.h: Likewise.
42047         * lib/unictype/pr_grapheme_link.h: Likewise.
42048         * lib/unictype/pr_id_continue.h: Likewise.
42049         * lib/unictype/pr_id_start.h: Likewise.
42050         * lib/unictype/pr_ideographic.h: Likewise.
42051         * lib/unictype/pr_lowercase.h: Likewise.
42052         * lib/unictype/pr_math.h: Likewise.
42053         * lib/unictype/pr_numeric.h: Likewise.
42054         * lib/unictype/pr_other_alphabetic.h: Likewise.
42055         * lib/unictype/pr_other_id_continue.h: Likewise.
42056         * lib/unictype/pr_other_math.h: Likewise.
42057         * lib/unictype/pr_punctuation.h: Likewise.
42058         * lib/unictype/pr_sentence_terminal.h: Likewise.
42059         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42060         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42061         * lib/unictype/pr_unified_ideograph.h: Likewise.
42062         * lib/unictype/pr_uppercase.h: Likewise.
42063         * lib/unictype/pr_xid_continue.h: Likewise.
42064         * lib/unictype/pr_xid_start.h: Likewise.
42065         * lib/unictype/scripts.h: Likewise.
42066         * lib/unictype/scripts_byname.gperf: Likewise.
42067         * lib/unictype/sy_java_ident.h: Likewise.
42068         * lib/unigbrk/gbrkprop.h: Likewise.
42069         * lib/unilbrk/lbrkprop1.h: Likewise.
42070         * lib/unilbrk/lbrkprop2.h: Likewise.
42071         * lib/uninorm/decomposition-table2.h: Likewise.
42072         * lib/uniwbrk/wbrkprop.h: Likewise.
42073         * tests/unicase/test-cased.c: Likewise.
42074         * tests/unicase/test-ignorable.c: Likewise.
42075         * tests/unicase/test-uc_tolower.c: Likewise.
42076         * tests/unicase/test-uc_totitle.c: Likewise.
42077         * tests/unicase/test-uc_toupper.c: Likewise.
42078         * tests/unictype/test-categ_C.c: Likewise.
42079         * tests/unictype/test-categ_Cn.c: Likewise.
42080         * tests/unictype/test-categ_L.c: Likewise.
42081         * tests/unictype/test-categ_Ll.c: Likewise.
42082         * tests/unictype/test-categ_Lm.c: Likewise.
42083         * tests/unictype/test-categ_Lo.c: Likewise.
42084         * tests/unictype/test-categ_Lu.c: Likewise.
42085         * tests/unictype/test-categ_M.c: Likewise.
42086         * tests/unictype/test-categ_Mc.c: Likewise.
42087         * tests/unictype/test-categ_Me.c: Likewise.
42088         * tests/unictype/test-categ_Mn.c: Likewise.
42089         * tests/unictype/test-categ_N.c: Likewise.
42090         * tests/unictype/test-categ_Nd.c: Likewise.
42091         * tests/unictype/test-categ_No.c: Likewise.
42092         * tests/unictype/test-categ_P.c: Likewise.
42093         * tests/unictype/test-categ_Po.c: Likewise.
42094         * tests/unictype/test-categ_S.c: Likewise.
42095         * tests/unictype/test-categ_Sc.c: Likewise.
42096         * tests/unictype/test-categ_Sk.c: Likewise.
42097         * tests/unictype/test-categ_Sm.c: Likewise.
42098         * tests/unictype/test-categ_So.c: Likewise.
42099         * tests/unictype/test-ctype_alnum.c: Likewise.
42100         * tests/unictype/test-ctype_alpha.c: Likewise.
42101         * tests/unictype/test-ctype_graph.c: Likewise.
42102         * tests/unictype/test-ctype_lower.c: Likewise.
42103         * tests/unictype/test-ctype_print.c: Likewise.
42104         * tests/unictype/test-ctype_punct.c: Likewise.
42105         * tests/unictype/test-ctype_upper.c: Likewise.
42106         * tests/unictype/test-decdigit.h: Likewise.
42107         * tests/unictype/test-digit.h: Likewise.
42108         * tests/unictype/test-numeric.h: Likewise.
42109         * tests/unictype/test-pr_alphabetic.c: Likewise.
42110         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42111         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42112         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42113         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42114         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42115         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42116         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42117         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42118         * tests/unictype/test-pr_case_ignorable.c: Likewise.
42119         * tests/unictype/test-pr_cased.c: Likewise.
42120         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
42121         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
42122         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
42123         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
42124         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
42125         * tests/unictype/test-pr_combining.c: Likewise.
42126         * tests/unictype/test-pr_composite.c: Likewise.
42127         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42128         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42129         * tests/unictype/test-pr_deprecated.c: Likewise.
42130         * tests/unictype/test-pr_format_control.c: Likewise.
42131         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42132         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42133         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42134         * tests/unictype/test-pr_id_continue.c: Likewise.
42135         * tests/unictype/test-pr_id_start.c: Likewise.
42136         * tests/unictype/test-pr_ideographic.c: Likewise.
42137         * tests/unictype/test-pr_lowercase.c: Likewise.
42138         * tests/unictype/test-pr_math.c: Likewise.
42139         * tests/unictype/test-pr_numeric.c: Likewise.
42140         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42141         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42142         * tests/unictype/test-pr_other_math.c: Likewise.
42143         * tests/unictype/test-pr_punctuation.c: Likewise.
42144         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42145         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42146         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42147         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42148         * tests/unictype/test-pr_uppercase.c: Likewise.
42149         * tests/unictype/test-pr_xid_continue.c: Likewise.
42150         * tests/unictype/test-pr_xid_start.c: Likewise.
42151         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
42152         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
42153         changes.
42154         * lib/unictype/categ_Cc.h: Likewise.
42155         * lib/unictype/categ_Cf.h: Likewise.
42156         * lib/unictype/categ_Co.h: Likewise.
42157         * lib/unictype/categ_Cs.h: Likewise.
42158         * lib/unictype/categ_Lt.h: Likewise.
42159         * lib/unictype/categ_Nl.h: Likewise.
42160         * lib/unictype/categ_Pc.h: Likewise.
42161         * lib/unictype/categ_Pd.h: Likewise.
42162         * lib/unictype/categ_Pe.h: Likewise.
42163         * lib/unictype/categ_Pf.h: Likewise.
42164         * lib/unictype/categ_Pi.h: Likewise.
42165         * lib/unictype/categ_Ps.h: Likewise.
42166         * lib/unictype/categ_Z.h: Likewise.
42167         * lib/unictype/categ_Zl.h: Likewise.
42168         * lib/unictype/categ_Zp.h: Likewise.
42169         * lib/unictype/categ_Zs.h: Likewise.
42170         * lib/unictype/ctype_blank.h: Likewise.
42171         * lib/unictype/ctype_cntrl.h: Likewise.
42172         * lib/unictype/ctype_digit.h: Likewise.
42173         * lib/unictype/ctype_space.h: Likewise.
42174         * lib/unictype/ctype_xdigit.h: Likewise.
42175         * lib/unictype/mirror.h: Likewise.
42176         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42177         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42178         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42179         * lib/unictype/pr_bidi_control.h: Likewise.
42180         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42181         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42182         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42183         * lib/unictype/pr_bidi_pdf.h: Likewise.
42184         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42185         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42186         * lib/unictype/pr_dash.h: Likewise.
42187         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42188         * lib/unictype/pr_diacritic.h: Likewise.
42189         * lib/unictype/pr_extender.h: Likewise.
42190         * lib/unictype/pr_hex_digit.h: Likewise.
42191         * lib/unictype/pr_hyphen.h: Likewise.
42192         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42193         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42194         * lib/unictype/pr_ignorable_control.h: Likewise.
42195         * lib/unictype/pr_iso_control.h: Likewise.
42196         * lib/unictype/pr_join_control.h: Likewise.
42197         * lib/unictype/pr_left_of_pair.h: Likewise.
42198         * lib/unictype/pr_line_separator.h: Likewise.
42199         * lib/unictype/pr_logical_order_exception.h: Likewise.
42200         * lib/unictype/pr_non_break.h: Likewise.
42201         * lib/unictype/pr_not_a_character.h: Likewise.
42202         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42203         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42204         * lib/unictype/pr_other_id_start.h: Likewise.
42205         * lib/unictype/pr_other_lowercase.h: Likewise.
42206         * lib/unictype/pr_other_uppercase.h: Likewise.
42207         * lib/unictype/pr_paired_punctuation.h: Likewise.
42208         * lib/unictype/pr_paragraph_separator.h: Likewise.
42209         * lib/unictype/pr_pattern_syntax.h: Likewise.
42210         * lib/unictype/pr_pattern_white_space.h: Likewise.
42211         * lib/unictype/pr_private_use.h: Likewise.
42212         * lib/unictype/pr_quotation_mark.h: Likewise.
42213         * lib/unictype/pr_radical.h: Likewise.
42214         * lib/unictype/pr_soft_dotted.h: Likewise.
42215         * lib/unictype/pr_space.h: Likewise.
42216         * lib/unictype/pr_titlecase.h: Likewise.
42217         * lib/unictype/pr_variation_selector.h: Likewise.
42218         * lib/unictype/pr_white_space.h: Likewise.
42219         * lib/unictype/pr_zero_width.h: Likewise.
42220         * lib/unictype/sy_c_ident.h: Likewise.
42221         * lib/unictype/sy_c_whitespace.h: Likewise.
42222         * lib/unictype/sy_java_whitespace.h: Likewise.
42223         * lib/uninorm/composition-table.gperf: Likewise.
42224         * lib/uninorm/decomposition-table1.h: Likewise.
42225         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
42226         LB8.
42227         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42228         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42229         * modules/unictype/*: Bump version number of expected libunistring
42230         version.
42232 2011-01-09  Bruno Haible  <bruno@clisp.org>
42234         Update to Unicode 5.2.0.
42235         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
42236         trailing whitespace removed.
42238 2011-01-09  Bruno Haible  <bruno@clisp.org>
42240         New Unicode character properties, from Unicode 5.2.0.
42241         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
42242         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
42243         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
42244         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
42245         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
42246         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
42247         uc_is_property_cased, uc_is_property_case_ignorable,
42248         uc_is_property_changes_when_lowercased,
42249         uc_is_property_changes_when_uppercased,
42250         uc_is_property_changes_when_titlecased,
42251         uc_is_property_changes_when_casefolded,
42252         uc_is_property_changes_when_casemapped): New declarations.
42253         * lib/unictype/pr_byname.gperf: Add the new properties.
42254         * modules/unictype/property-byname (Depends-on): Depend on the new
42255         properties modules.
42256         * modules/unictype/property-all (Depends-on): Likewise.
42257         * MODULES.html.sh (Unicode string functions): Add
42258         unictype/property-case-ignorable, unictype/property-cased,
42259         unictype/property-changes-when-casefolded,
42260         unictype/property-changes-when-casemapped,
42261         unictype/property-changes-when-lowercased,
42262         unictype/property-changes-when-titlecased,
42263         unictype/property-changes-when-uppercased.
42265         New module 'unictype/property-changes-when-casemapped'.
42266         * modules/unictype/property-changes-when-casemapped: New file.
42267         * lib/unictype/pr_changes_when_casemapped.c: New file.
42268         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
42269         generated by gen-uni-tables.
42270         * modules/unictype/property-changes-when-casemapped-tests: New file.
42271         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
42272         automatically generated by gen-uni-tables.
42274         New module 'unictype/property-changes-when-casefolded'.
42275         * modules/unictype/property-changes-when-casefolded: New file.
42276         * lib/unictype/pr_changes_when_casefolded.c: New file.
42277         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
42278         generated by gen-uni-tables.
42279         * modules/unictype/property-changes-when-casefolded-tests: New file.
42280         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
42281         automatically generated by gen-uni-tables.
42283         New module 'unictype/property-changes-when-titlecased'.
42284         * modules/unictype/property-changes-when-titlecased: New file.
42285         * lib/unictype/pr_changes_when_titlecased.c: New file.
42286         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
42287         generated by gen-uni-tables.
42288         * modules/unictype/property-changes-when-titlecased-tests: New file.
42289         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
42290         automatically generated by gen-uni-tables.
42292         New module 'unictype/property-changes-when-uppercased'.
42293         * modules/unictype/property-changes-when-uppercased: New file.
42294         * lib/unictype/pr_changes_when_uppercased.c: New file.
42295         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
42296         generated by gen-uni-tables.
42297         * modules/unictype/property-changes-when-uppercased-tests: New file.
42298         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
42299         automatically generated by gen-uni-tables.
42301         New module 'unictype/property-changes-when-lowercased'.
42302         * modules/unictype/property-changes-when-lowercased: New file.
42303         * lib/unictype/pr_changes_when_lowercased.c: New file.
42304         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
42305         generated by gen-uni-tables.
42306         * modules/unictype/property-changes-when-lowercased-tests: New file.
42307         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
42308         automatically generated by gen-uni-tables.
42310         New module 'unictype/property-case-ignorable'.
42311         * modules/unictype/property-case-ignorable: New file.
42312         * lib/unictype/pr_case_ignorable.c: New file.
42313         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
42314         by gen-uni-tables.
42315         * modules/unictype/property-case-ignorable-tests: New file.
42316         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
42317         generated by gen-uni-tables.
42319         New module 'unictype/property-cased'.
42320         * modules/unictype/property-cased: New file.
42321         * lib/unictype/pr_cased.c: New file.
42322         * lib/unictype/pr_cased.h: New file, automatically generated by
42323         gen-uni-tables.
42324         * modules/unictype/property-cased-tests: New file.
42325         * tests/unictype/test-pr_cased.c: New file, automatically generated by
42326         gen-uni-tables.
42328 2011-01-09  Bruno Haible  <bruno@clisp.org>
42330         Update to Unicode 5.2.0.
42331         * lib/gen-uni-tables.c (output_predicate, output_category,
42332         output_combclass, output_bidi_category, output_decimal_digit_test,
42333         output_decimal_digit, output_digit_test, output_digit,
42334         output_numeric_test, output_numeric, output_mirror, output_scripts,
42335         output_scripts_byname, output_blocks, output_ident_category): Fix
42336         comment header.
42337         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
42338         get_wbp.
42339         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
42340         items.
42341         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
42342         Changes_When_Lowercased, Changes_When_Uppercased,
42343         Changes_When_Titlecased, Changes_When_Casefolded,
42344         Changes_When_Casemapped.
42345         (is_property_alphabetic, is_property_default_ignorable_code_point):
42346         Update for Unicode 5.2.0.
42347         (is_property_cased, is_property_case_ignorable,
42348         is_property_changes_when_lowercased,
42349         is_property_changes_when_uppercased,
42350         is_property_changes_when_titlecased,
42351         is_property_changes_when_casefolded,
42352         is_property_changes_when_casemapped): New functions.
42353         (output_properties): Output also the properties cased, case_ignorable,
42354         changes_when_lowercased, changes_when_uppercased,
42355         changes_when_titlecased, changes_when_casefolded,
42356         changes_when_casemapped.
42357         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
42358         Unicode TR#11 revision 17 -> 19.
42359         (LBP_CP): New enumeration value.
42360         (LBP_*): Adjust values accordingly.
42361         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
42362         TR#14 revision 22 -> 24.
42363         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
42364         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
42365         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
42366         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
42367         is_WBP_MIDLETTER.
42368         (output_composition_tables): Allow for 24 bits instead of 16 bits in
42369         the code1 and code2 of each composition rule.
42370         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
42371         * lib/unicase/ignorable.h: Likewise.
42372         * lib/unicase/tocasefold.h: Likewise.
42373         * lib/unicase/tolower.h: Likewise.
42374         * lib/unicase/totitle.h: Likewise.
42375         * lib/unicase/toupper.h: Likewise.
42376         * lib/unictype/bidi_of.h: Likewise.
42377         * lib/unictype/blocks.h: Likewise.
42378         * lib/unictype/categ_C.h: Likewise.
42379         * lib/unictype/categ_Cf.h: Likewise.
42380         * lib/unictype/categ_Cn.h: Likewise.
42381         * lib/unictype/categ_L.h: Likewise.
42382         * lib/unictype/categ_Ll.h: Likewise.
42383         * lib/unictype/categ_Lm.h: Likewise.
42384         * lib/unictype/categ_Lo.h: Likewise.
42385         * lib/unictype/categ_Lu.h: Likewise.
42386         * lib/unictype/categ_M.h: Likewise.
42387         * lib/unictype/categ_Mc.h: Likewise.
42388         * lib/unictype/categ_Mn.h: Likewise.
42389         * lib/unictype/categ_N.h: Likewise.
42390         * lib/unictype/categ_Nd.h: Likewise.
42391         * lib/unictype/categ_Nl.h: Likewise.
42392         * lib/unictype/categ_No.h: Likewise.
42393         * lib/unictype/categ_P.h: Likewise.
42394         * lib/unictype/categ_Pd.h: Likewise.
42395         * lib/unictype/categ_Po.h: Likewise.
42396         * lib/unictype/categ_S.h: Likewise.
42397         * lib/unictype/categ_Sc.h: Likewise.
42398         * lib/unictype/categ_So.h: Likewise.
42399         * lib/unictype/categ_of.h: Likewise.
42400         * lib/unictype/combining.h: Likewise.
42401         * lib/unictype/ctype_alnum.h: Likewise.
42402         * lib/unictype/ctype_alpha.h: Likewise.
42403         * lib/unictype/ctype_graph.h: Likewise.
42404         * lib/unictype/ctype_lower.h: Likewise.
42405         * lib/unictype/ctype_print.h: Likewise.
42406         * lib/unictype/ctype_punct.h: Likewise.
42407         * lib/unictype/ctype_upper.h: Likewise.
42408         * lib/unictype/decdigit.h: Likewise.
42409         * lib/unictype/digit.h: Likewise.
42410         * lib/unictype/numeric.h: Likewise.
42411         * lib/unictype/pr_alphabetic.h: Likewise.
42412         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42413         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42414         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42415         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42416         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42417         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42418         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42419         * lib/unictype/pr_combining.h: Likewise.
42420         * lib/unictype/pr_composite.h: Likewise.
42421         * lib/unictype/pr_currency_symbol.h: Likewise.
42422         * lib/unictype/pr_dash.h: Likewise.
42423         * lib/unictype/pr_decimal_digit.h: Likewise.
42424         * lib/unictype/pr_deprecated.h: Likewise.
42425         * lib/unictype/pr_diacritic.h: Likewise.
42426         * lib/unictype/pr_extender.h: Likewise.
42427         * lib/unictype/pr_grapheme_base.h: Likewise.
42428         * lib/unictype/pr_grapheme_extend.h: Likewise.
42429         * lib/unictype/pr_grapheme_link.h: Likewise.
42430         * lib/unictype/pr_id_continue.h: Likewise.
42431         * lib/unictype/pr_id_start.h: Likewise.
42432         * lib/unictype/pr_ideographic.h: Likewise.
42433         * lib/unictype/pr_ignorable_control.h: Likewise.
42434         * lib/unictype/pr_logical_order_exception.h: Likewise.
42435         * lib/unictype/pr_lowercase.h: Likewise.
42436         * lib/unictype/pr_numeric.h: Likewise.
42437         * lib/unictype/pr_other_alphabetic.h: Likewise.
42438         * lib/unictype/pr_punctuation.h: Likewise.
42439         * lib/unictype/pr_sentence_terminal.h: Likewise.
42440         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42441         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42442         * lib/unictype/pr_unified_ideograph.h: Likewise.
42443         * lib/unictype/pr_uppercase.h: Likewise.
42444         * lib/unictype/pr_xid_continue.h: Likewise.
42445         * lib/unictype/pr_xid_start.h: Likewise.
42446         * lib/unictype/pr_zero_width.h: Likewise.
42447         * lib/unictype/scripts.h: Likewise.
42448         * lib/unictype/scripts_byname.gperf: Likewise.
42449         * lib/unictype/sy_java_ident.h: Likewise.
42450         * lib/unigbrk/gbrkprop.h: Likewise.
42451         * lib/unilbrk/lbrkprop1.h: Likewise.
42452         * lib/unilbrk/lbrkprop2.h: Likewise.
42453         * lib/unilbrk/lbrktables.h: Likewise.
42454         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
42455         LBP_CP. Implement rule LB30.
42456         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
42457         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
42458         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
42459         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
42460         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
42461         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
42462         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
42463         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
42464         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
42465         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
42466         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
42467         bits instead of 16 bits in the code1 and code2 of each composition
42468         rule.
42469         (uc_composition): Update for Unicode 5.2.0.
42470         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
42471         * lib/uninorm/decomposition-table2.h: Likewise.
42472         * lib/uniwbrk/wbrkprop.h: Likewise.
42473         * tests/unicase/test-cased.c: Likewise.
42474         * tests/unicase/test-ignorable.c: Likewise.
42475         * tests/unicase/test-uc_tolower.c: Likewise.
42476         * tests/unicase/test-uc_totitle.c: Likewise.
42477         * tests/unicase/test-uc_toupper.c: Likewise.
42478         * tests/unictype/test-categ_C.c: Likewise.
42479         * tests/unictype/test-categ_Cf.c: Likewise.
42480         * tests/unictype/test-categ_Cn.c: Likewise.
42481         * tests/unictype/test-categ_L.c: Likewise.
42482         * tests/unictype/test-categ_Ll.c: Likewise.
42483         * tests/unictype/test-categ_Lm.c: Likewise.
42484         * tests/unictype/test-categ_Lo.c: Likewise.
42485         * tests/unictype/test-categ_Lu.c: Likewise.
42486         * tests/unictype/test-categ_M.c: Likewise.
42487         * tests/unictype/test-categ_Mc.c: Likewise.
42488         * tests/unictype/test-categ_Mn.c: Likewise.
42489         * tests/unictype/test-categ_N.c: Likewise.
42490         * tests/unictype/test-categ_Nd.c: Likewise.
42491         * tests/unictype/test-categ_Nl.c: Likewise.
42492         * tests/unictype/test-categ_No.c: Likewise.
42493         * tests/unictype/test-categ_P.c: Likewise.
42494         * tests/unictype/test-categ_Pd.c: Likewise.
42495         * tests/unictype/test-categ_Po.c: Likewise.
42496         * tests/unictype/test-categ_S.c: Likewise.
42497         * tests/unictype/test-categ_Sc.c: Likewise.
42498         * tests/unictype/test-categ_So.c: Likewise.
42499         * tests/unictype/test-ctype_alnum.c: Likewise.
42500         * tests/unictype/test-ctype_alpha.c: Likewise.
42501         * tests/unictype/test-ctype_graph.c: Likewise.
42502         * tests/unictype/test-ctype_lower.c: Likewise.
42503         * tests/unictype/test-ctype_print.c: Likewise.
42504         * tests/unictype/test-ctype_punct.c: Likewise.
42505         * tests/unictype/test-ctype_upper.c: Likewise.
42506         * tests/unictype/test-decdigit.h: Likewise.
42507         * tests/unictype/test-digit.h: Likewise.
42508         * tests/unictype/test-numeric.h: Likewise.
42509         * tests/unictype/test-pr_alphabetic.c: Likewise.
42510         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42511         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42512         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42513         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42514         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42515         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42516         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42517         * tests/unictype/test-pr_combining.c: Likewise.
42518         * tests/unictype/test-pr_composite.c: Likewise.
42519         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42520         * tests/unictype/test-pr_dash.c: Likewise.
42521         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42522         * tests/unictype/test-pr_deprecated.c: Likewise.
42523         * tests/unictype/test-pr_diacritic.c: Likewise.
42524         * tests/unictype/test-pr_extender.c: Likewise.
42525         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42526         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42527         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42528         * tests/unictype/test-pr_id_continue.c: Likewise.
42529         * tests/unictype/test-pr_id_start.c: Likewise.
42530         * tests/unictype/test-pr_ideographic.c: Likewise.
42531         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42532         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42533         * tests/unictype/test-pr_lowercase.c: Likewise.
42534         * tests/unictype/test-pr_numeric.c: Likewise.
42535         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42536         * tests/unictype/test-pr_punctuation.c: Likewise.
42537         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42538         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42539         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42540         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42541         * tests/unictype/test-pr_uppercase.c: Likewise.
42542         * tests/unictype/test-pr_xid_continue.c: Likewise.
42543         * tests/unictype/test-pr_xid_start.c: Likewise.
42544         * tests/unictype/test-pr_zero_width.c: Likewise.
42545         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
42546         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
42547         changed behaviour: line breaking is now disallowed between a letter
42548         or '=' and '('.
42549         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42550         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42551         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42552         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
42553         * tests/uniwidth/test-uc_width2.sh: Same updates as in
42554         lib/uniwidth/width.c.
42555         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
42556         without comments, but with the original copyright notice.
42557         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
42558         changes.
42559         * lib/unictype/categ_Cc.h: Likewise.
42560         * lib/unictype/categ_Co.h: Likewise.
42561         * lib/unictype/categ_Cs.h: Likewise.
42562         * lib/unictype/categ_Lt.h: Likewise.
42563         * lib/unictype/categ_Me.h: Likewise.
42564         * lib/unictype/categ_Pc.h: Likewise.
42565         * lib/unictype/categ_Pe.h: Likewise.
42566         * lib/unictype/categ_Pf.h: Likewise.
42567         * lib/unictype/categ_Pi.h: Likewise.
42568         * lib/unictype/categ_Ps.h: Likewise.
42569         * lib/unictype/categ_Sk.h: Likewise.
42570         * lib/unictype/categ_Sm.h: Likewise.
42571         * lib/unictype/categ_Z.h: Likewise.
42572         * lib/unictype/categ_Zl.h: Likewise.
42573         * lib/unictype/categ_Zp.h: Likewise.
42574         * lib/unictype/categ_Zs.h: Likewise.
42575         * lib/unictype/ctype_blank.h: Likewise.
42576         * lib/unictype/ctype_cntrl.h: Likewise.
42577         * lib/unictype/ctype_digit.h: Likewise.
42578         * lib/unictype/ctype_space.h: Likewise.
42579         * lib/unictype/ctype_xdigit.h: Likewise.
42580         * lib/unictype/mirror.h: Likewise.
42581         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42582         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42583         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42584         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42585         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42586         * lib/unictype/pr_bidi_control.h: Likewise.
42587         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42588         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42589         * lib/unictype/pr_bidi_pdf.h: Likewise.
42590         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42591         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42592         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42593         * lib/unictype/pr_format_control.h: Likewise.
42594         * lib/unictype/pr_hex_digit.h: Likewise.
42595         * lib/unictype/pr_hyphen.h: Likewise.
42596         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42597         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42598         * lib/unictype/pr_iso_control.h: Likewise.
42599         * lib/unictype/pr_join_control.h: Likewise.
42600         * lib/unictype/pr_left_of_pair.h: Likewise.
42601         * lib/unictype/pr_line_separator.h: Likewise.
42602         * lib/unictype/pr_math.h: Likewise.
42603         * lib/unictype/pr_non_break.h: Likewise.
42604         * lib/unictype/pr_not_a_character.h: Likewise.
42605         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42606         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42607         * lib/unictype/pr_other_id_continue.h: Likewise.
42608         * lib/unictype/pr_other_id_start.h: Likewise.
42609         * lib/unictype/pr_other_lowercase.h: Likewise.
42610         * lib/unictype/pr_other_math.h: Likewise.
42611         * lib/unictype/pr_other_uppercase.h: Likewise.
42612         * lib/unictype/pr_paired_punctuation.h: Likewise.
42613         * lib/unictype/pr_paragraph_separator.h: Likewise.
42614         * lib/unictype/pr_pattern_syntax.h: Likewise.
42615         * lib/unictype/pr_pattern_white_space.h: Likewise.
42616         * lib/unictype/pr_private_use.h: Likewise.
42617         * lib/unictype/pr_quotation_mark.h: Likewise.
42618         * lib/unictype/pr_radical.h: Likewise.
42619         * lib/unictype/pr_soft_dotted.h: Likewise.
42620         * lib/unictype/pr_space.h: Likewise.
42621         * lib/unictype/pr_titlecase.h: Likewise.
42622         * lib/unictype/pr_variation_selector.h: Likewise.
42623         * lib/unictype/pr_white_space.h: Likewise.
42624         * lib/unictype/sy_c_ident.h: Likewise.
42625         * lib/unictype/sy_c_whitespace.h: Likewise.
42626         * lib/unictype/sy_java_whitespace.h: Likewise.
42627         * modules/uni*/*: Bump version number of expected libunistring version.
42628         Reported by Simon Josefsson.
42630 2011-01-09  Karl Heuer  <kwzh@gnu.org>
42632         useless-if-before-free: fix typo in --help and make the internal,
42633         automatic version date update process work once again.
42634         --help output contained a NUL character instead of the
42635         backslash-zero that was intended.  Also, the "must lie within
42636         the first 8 lines" line is on line 9, and hence not getting
42637         automatically updated.
42638         * build-aux/useless-if-before-free: Fix the former by adding a
42639         backslash, and the latter by condensing the three lines of what-it-does
42640         to a single line, leaving one line of slack for the future.
42642 2011-01-09  Bruno Haible  <bruno@clisp.org>
42644         uniwidth/width: Fix width of U+1D173..U+1D17A.
42645         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
42646         symbolic_width, output_width_property_test): New functions.
42647         (main): Invoke output_nonspacing_property, output_width_property_test.
42648         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
42649         U+1D173..U+1D17A.
42650         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
42651         1.
42652         * modules/uniwidth/*: Bump version number of expected libunistring
42653         version.
42654         * modules/unilbrk/*: Likewise.
42656 2011-01-08  Bruno Haible  <bruno@clisp.org>
42658         uninorm tests: Preserve copyright of Unicode data file.
42659         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
42660         Mention modifications.
42662 2011-01-08  Bruno Haible  <bruno@clisp.org>
42664         gen-uni-tables: Prepare for Unicode 5.2.0.
42665         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
42666         (debug_output_lbp, output_lbp): Update.
42668 2011-01-08  Bruno Haible  <bruno@clisp.org>
42670         unilbrk: Clarify gen-uni-tables.c code.
42671         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
42672         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
42673         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
42675 2011-01-07  Bruno Haible  <bruno@clisp.org>
42677         strtod: Restore errno when successfully parsing Infinity or NaN.
42678         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
42679         restore the original errno.
42681 2011-01-07  Bruno Haible  <bruno@clisp.org>
42683         remove test: Avoid failure on HP-UX 11.
42684         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
42686 2011-01-07  Bruno Haible  <bruno@clisp.org>
42688         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
42689         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
42690         error code.
42692 2011-01-07  Pádraig Brady  <P@draigBrady.com>
42694         ignore-value: fixup comments, and add Eric Blake
42695         as an author since he rewrote the macros.
42696         * lib/ignore-value.h (ignore_value):  State that
42697         we now support aggregates.  Also specify exactly
42698         when the GCC warn_unused_result feature was added.
42700 2011-01-06  Eric Blake  <eblake@redhat.com>
42702         ignore-value: support aggregate types
42703         * lib/ignore-value.h (ignore_value): Provide separate gcc
42704         definition.
42705         * modules/ignore-value-tests: New test module.
42706         * tests/test-ignore-value.c: New test.
42708         maint.mk: improve sc_prohibit_strcmp regex
42709         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
42710         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
42711         definition of STRNEQ.
42713         signal: work around Haiku issue with SIGBUS
42714         * lib/siglist.h: Add comment.
42715         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
42716         strsignal's favoring of SIGSEGV.
42717         * tests/test-signal.c (main): Avoid test failure.
42718         * doc/posix-headers/signal.texi (signal.h): Document the issue.
42719         Reported by Scott McCreary.
42721         maint.mk: add pre-release check to ensure submodule commits are public
42722         * top/maint.mk (public-submodule-commit): New rule.
42723         (submodule-checks): New variable.
42724         (alpha beta stable): Depend on the variable.
42726 2011-01-05  Pádraig Brady  <P@draigBrady.com>
42727         and Jim Meyering  <meyering@redhat.com>
42729         ignore-value: make ignore_value more generic; deprecate ignore_ptr
42730         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
42731         (ATTRIBUTE_DEPRECATED): Define.
42732         (_ignore_case): New function.
42733         (ignore_value): New macro, to replace the old function.
42734         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
42735         * modules/ignore-value (Depends-on): Add stdint.
42737 2011-01-04  Eric Blake  <eblake@redhat.com>
42739         doc: regenerate INSTALL
42740         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
42741         @firstparagraphindent support, now that autoconf dropped it.
42742         (INSTALL_PRELUDE): Reinstate old macro.
42743         * doc/install.texi: Resync from autoconf.
42744         * doc/INSTALL: Reflect recent autoconf update.
42745         * doc/INSTALL.ISO: Likewise.
42746         * doc/INSTALL.UTF-8: Likewise.
42747         Reported by Karl Berry.
42749 2011-01-04  Bruce Korb  <address@hidden>
42751         git-version-gen: avoid a sub-shell
42752         * build-aux/git-version-gen: Redirect stderr in `...` via
42753         "exec 2>...", rather than via an added sub-shell.
42755 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
42757         git-version-gen: use (...) rather than sh -c '...'
42758         * build-aux/git-version-gen: Rather than hard-coding a shell's name
42759         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
42761 2011-01-03  Jim Meyering  <meyering@redhat.com>
42763         git-version-gen: convert leading TABs to spaces
42764         * build-aux/git-version-gen: Expand leading TABs.
42766         git-version-gen: handle failed "git rev-list"
42767         * build-aux/git-version-gen: Rather than leaking a "fatal" error
42768         from git and proceeding as if it had succeeded but printed no SHA1
42769         checksums, suppress the diagnostic and handle the failure.
42770         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
42772         git-version-gen: include command name in one more diagnostic
42773         * build-aux/git-version-gen: When the required .tarball-version file
42774         was missing or unreadable, you might see the diagnostic from "cat",
42775         but no trace of the name of the invoking script.  Now, you still see
42776         the diagnostic from cat, but also get one from "git-version-gen: ".
42777         Inspired by a patch from Bruce Korb.
42779         update-copyright: adjust test to match changed code
42780         * tests/test-update-copyright.sh: Change test's expected output
42781         to match new actual output.
42783 2011-01-02  Bruno Haible  <bruno@clisp.org>
42785         getlogin_r: Avoid test failure on HP-UX 11.
42786         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
42787         ERANGE when the second argument is zero.
42788         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
42789         portability problem.
42791 2011-01-02  Bruce Korb  <bkorb@gnu.org>
42793         * build-aux/update-copyright: doc Simon's changes
42795 2011-01-02  Simon Josefsson  <simon@josefsson.org>
42797         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
42798         environment variable.
42800 2011-01-02  Bruno Haible  <bruno@clisp.org>
42802         unigbrk: Avoid gcc warnings.
42803         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
42804         unused variable.
42805         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
42806         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
42807         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
42808         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
42809         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
42810         Change type of first argument to 'const char *'.
42811         (main): Remove unused variable.
42812         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
42813         type of first argument to 'const char *'.
42814         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
42815         Likewise.
42816         (main): Change type of variable 's'.
42817         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
42818         to 'int'.
42820 2011-01-02  Bruno Haible  <bruno@clisp.org>
42822         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
42823         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
42824         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
42825         bug.
42826         * lib/pwrite.c: Undo 2010-12-31 patch.
42827         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
42829 2011-01-02  Bruno Haible  <bruno@clisp.org>
42831         pread: Fix test whether it works.
42832         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
42834 2011-01-02  Bruno Haible  <bruno@clisp.org>
42836         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
42837         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
42838         ends in "6". Don't require a specific month name. Try also the locale
42839         names found on HP-UX 11 and Solaris 7.
42841 2011-01-02  Bruno Haible  <bruno@clisp.org>
42843         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
42844         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
42845         C linkage.
42846         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
42848 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42850         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
42851         for consistency, since the "cluster" term is not used elsewhere.
42852         * lib/unigbrk.in.h: Update name.
42853         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
42854         * lib/unigbrk/u16-grapheme-next.c: Update name.
42855         * lib/unigbrk/u16-grapheme-prev.c: Update name.
42856         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
42857         * lib/unigbrk/u32-grapheme-next.c: Update name.
42858         * lib/unigbrk/u32-grapheme-prev.c: Update name.
42859         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
42860         * lib/unigbrk/u8-grapheme-next.c: Update name.
42861         * lib/unigbrk/u8-grapheme-prev.c: Update name.
42862         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
42863         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
42864         Suggested by Bruno Haible.
42866 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42868         Remove module 'u8-grapheme-len' as too redundant with
42869         'u8-grapheme-next'.
42870         * modules/unigbrk/u8-grapheme-len: Delete file.
42871         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
42872         * lib/unigbrk.in.h: Remove prototype for deleted function.
42873         * lib/unigbrk/u8-grapheme-len.c: Delete file.
42874         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
42876         Remove module 'u16-grapheme-len' as too redundant with
42877         'u16-grapheme-next'.
42878         * modules/unigbrk/u16-grapheme-len: Delete file.
42879         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
42880         * lib/unigbrk.in.h: Remove prototype for deleted function.
42881         * lib/unigbrk/u16-grapheme-len.c: Delete file.
42882         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
42884         Remove module 'u32-grapheme-len' as too redundant with
42885         'u32-grapheme-next'.
42886         * modules/unigbrk/u32-grapheme-len: Delete file.
42887         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
42888         * lib/unigbrk.in.h: Remove prototype for deleted function.
42889         * lib/unigbrk/u32-grapheme-len.c: Delete file.
42890         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
42892         Suggested by Bruno Haible.
42894 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42896         * unigbrk.in.h: Fix typo: "ben" => "been".
42897         Reported by Bruno Haible.
42899 2011-01-01  Jim Meyering  <meyering@redhat.com>
42901         maint: update almost all copyright ranges to include 2011
42902         Run the new "make update-copyright" rule.
42904 2011-01-01  Jim Meyering  <meyering@redhat.com>
42906         maint: update-copyright: exempt doc/INSTALL*
42907         * Makefile (update-copyright): Also exclude doc/INSTALL*,
42908         since they are generated.  Suggested by Bruno Haible.
42910 2011-01-01  Jim Meyering  <meyering@redhat.com>
42912         maint: refine the update-copyright rule
42913         * Makefile (update-copyright): Also exclude any file that includes
42914         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
42915         code that merely generates the comment.
42917 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
42919         New module 'u8-grapheme-len'.
42920         * modules/unigbrk/u8-grapheme-len: New file.
42921         * modules/unigbrk/u8-grapheme-len-tests: New file.
42922         * lib/unigbrk.in.h: Add prototype for new function.
42923         * lib/unigbrk/u8-grapheme-len.c: New file.
42924         * tests/unigbrk/test-u8-grapheme-len.c: New file.
42926         New module 'u16-grapheme-len'.
42927         * modules/unigbrk/u16-grapheme-len: New file.
42928         * modules/unigbrk/u16-grapheme-len-tests: New file.
42929         * lib/unigbrk.in.h: Add prototype for new function.
42930         * lib/unigbrk/u16-grapheme-len.c: New file.
42931         * tests/unigbrk/test-u16-grapheme-len.c: New file.
42933         New module 'u32-grapheme-len'.
42934         * modules/unigbrk/u32-grapheme-len: New file.
42935         * modules/unigbrk/u32-grapheme-len-tests: New file.
42936         * lib/unigbrk.in.h: Add prototype for new function.
42937         * lib/unigbrk/u32-grapheme-len.c: New file.
42938         * tests/unigbrk/test-u32-grapheme-len.c: New file.
42940         New module 'u8-grapheme-next'.
42941         * modules/unigbrk/u8-grapheme-next: New file.
42942         * modules/unigbrk/u8-grapheme-next-tests: New file.
42943         * lib/unigbrk.in.h: Add prototype for new function.
42944         * lib/unigbrk/u8-grapheme-next.c: New file.
42945         * tests/unigbrk/test-u8-grapheme-next.c: New file.
42947         New module 'u16-grapheme-next'.
42948         * modules/unigbrk/u16-grapheme-next: New file.
42949         * modules/unigbrk/u16-grapheme-next-tests: New file.
42950         * lib/unigbrk.in.h: Add prototype for new function.
42951         * lib/unigbrk/u16-grapheme-next.c: New file.
42952         * tests/unigbrk/test-u16-grapheme-next.c: New file.
42954         New module 'u32-grapheme-next'.
42955         * modules/unigbrk/u32-grapheme-next: New file.
42956         * modules/unigbrk/u32-grapheme-next-tests: New file.
42957         * lib/unigbrk.in.h: Add prototype for new function.
42958         * lib/unigbrk/u32-grapheme-next.c: New file.
42959         * tests/unigbrk/test-u32-grapheme-next.c: New file.
42961         New module 'u8-grapheme-prev'.
42962         * modules/unigbrk/u8-grapheme-prev: New file.
42963         * modules/unigbrk/u8-grapheme-prev-tests: New file.
42964         * lib/unigbrk.in.h: Add prototype for new function.
42965         * lib/unigbrk/u8-grapheme-prev.c: New file.
42966         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
42968         New module 'u16-grapheme-prev'.
42969         * modules/unigbrk/u16-grapheme-prev: New file.
42970         * modules/unigbrk/u16-grapheme-prev-tests: New file.
42971         * lib/unigbrk.in.h: Add prototype for new function.
42972         * lib/unigbrk/u16-grapheme-prev.c: New file.
42973         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
42975         New module 'u32-grapheme-prev'.
42976         * modules/unigbrk/u32-grapheme-prev: New file.
42977         * modules/unigbrk/u32-grapheme-prev-tests: New file.
42978         * lib/unigbrk.in.h: Add prototype for new function.
42979         * lib/unigbrk/u32-grapheme-prev.c: New file.
42980         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
42982         New module 'u8-grapheme-breaks'.
42983         * modules/unigbrk/u8-grapheme-breaks: New file.
42984         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
42985         * lib/unigbrk.in.h: Add prototype for new function.
42986         * lib/unigbrk/u8-grapheme-breaks.c: New file.
42987         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
42989         New module 'u16-grapheme-breaks'.
42990         * modules/unigbrk/u16-grapheme-breaks: New file.
42991         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
42992         * lib/unigbrk.in.h: Add prototype for new function.
42993         * lib/unigbrk/u16-grapheme-breaks.c: New file.
42994         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
42996         New module 'u32-grapheme-breaks'.
42997         * modules/unigbrk/u32-grapheme-breaks: New file.
42998         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
42999         * lib/unigbrk.in.h: Add prototype for new function.
43000         * lib/unigbrk/u32-grapheme-breaks.c: New file.
43001         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
43003         New module 'ulc-grapheme-breaks'.
43004         * modules/unigbrk/ulc-grapheme-breaks: New file.
43005         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
43006         * m4/locale-ar.m4: New file.
43007         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
43008         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
43009         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
43011 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
43013         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
43014         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
43015         modified how this file was generated before I initially submitted
43016         the module, but failed to regenerate it.  This meant that several
43017         of the level2 entries were wrong.
43018         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
43019         Remove the division-by-2 that is folded into the table now that
43020         gbrkprop.h has been regenerated properly.  Now -1 entries are
43021         handled correctly.
43023         New module 'unigbrk/uc-gbrk-prop-tests'.
43024         * modules/unigbrk/uc-gbrk-prop-tests: New file.
43025         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
43026         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
43027         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
43029 2011-01-01  Bruno Haible  <bruno@clisp.org>
43031         Avoid use of hexadecimal escapes.
43032         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
43033         instead of hexadecimal escapes.
43035 2011-01-01  Jim Meyering  <meyering@redhat.com>
43037         maint: new rule to update copyright year ranges
43038         * Makefile (update-copyright): New rule.
43040         maint: indent with TABs in Makefile
43041         * Makefile: Expand leading sequences of spaces to TABs
43043         version-etc: update the copyright year it reports
43044         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
43046 2010-12-31  Bruno Haible  <bruno@clisp.org>
43048         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
43049         * lib/isfinite.c (zerof, zerod, zerol): New variables.
43050         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
43051         zero.
43053 2010-12-31  Bruno Haible  <bruno@clisp.org>
43055         pwrite: Work around HP-UX 11.11 bug.
43056         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
43057         works and set REPLACE_PWRITE if not.
43058         * lib/pwrite.c (pwrite): Add an implementation that uses the system
43059         function.
43060         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
43062 2010-12-31  Bruno Haible  <bruno@clisp.org>
43064         pread: Work around HP-UX 11 bugs.
43065         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
43066         and set REPLACE_PREAD if not.
43067         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
43069 2010-12-31  Eric Blake  <eblake@redhat.com>
43071         nl_langinfo: fix YESEXPR on Irix 6.5
43072         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
43073         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
43074         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
43075         it.
43077 2010-12-31  Bruno Haible  <bruno@clisp.org>
43079         iconv: Document HP-UX 11 bug.
43080         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
43082 2010-12-31  Bruno Haible  <bruno@clisp.org>
43084         ldexpl: Fix link error on HP-UX 11.
43085         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
43086         LDEXPL_LIBM, using $ISNANL_LIBM.
43088 2010-12-31  Eric Blake  <eblake@redhat.com>
43090         ftello: avoid compilation failure with SunStudio c89
43091         * lib/ftello.c (ftello): Use lseek, not llseek.
43093         tests: avoid failing coreutils tests on cygwin
43094         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
43095         (create_exe_shims_): Return 0 when skipping.
43097 2010-12-31  Bruno Haible  <bruno@clisp.org>
43099         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
43100         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
43102 2010-12-31  Bruno Haible  <bruno@clisp.org>
43104         waitpid: Fix link error in C++ mode.
43105         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
43107 2010-12-31  Bruno Haible  <bruno@clisp.org>
43109         isnan: Use GCC built-ins when possible.
43110         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
43111         __builtin_isnan.
43112         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
43113         (isnan): Define using GCC built-ins for GCC >= 4.0.
43115 2010-12-31  Bruno Haible  <bruno@clisp.org>
43117         isnand: Fix mistake.
43118         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
43119         __builtin_isnand.
43121 2010-12-31  Bruno Haible  <bruno@clisp.org>
43123         open: Avoid C++ error on HP-UX 11.
43124         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
43126 2010-12-31  Bruno Haible  <bruno@clisp.org>
43128         time_r: Add missing declarations on HP-UX 11.
43129         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
43130         instead of HAVE_LOCALTIME_R.
43131         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
43132         HAVE_LOCALTIME_R always.
43133         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
43134         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
43135         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
43136         HAVE_LOCALTIME_R.
43137         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
43138         * doc/posix-functions/localtime_r.texi: Likewise.
43140 2010-12-29  Eric Blake  <eblake@redhat.com>
43142         mountlist: tweak previous commit
43143         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
43144         Reported by Paul Eggert.
43146         mountlist: fix local drive detection on cygwin
43147         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
43148         that works for cygwin.
43150 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43152         ftoastr, snprintf: ftoastr + snprintf module
43153         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
43154         since the snprintf module now should be good enough here.
43155         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
43156         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
43157         and gl_MODULE_INDICATOR([snprintf]), but the former enables
43158         GNULIB_SNPRINTF only for the test directory, and the latter
43159         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
43160         seems to suffice by itself.
43162 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43164         alloca: one step towards thread-safety
43165         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
43166         need for a static variable.  All callers changed.  This does not
43167         make the alloca replacement thread-safe, but it's one step.
43169         tests: minor indenting change
43170         * tests/init.sh: Sync from coreutils housekeeping patch
43171         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
43172         to keep lines within 80 columns.
43174 2010-12-28  Jim Meyering  <meyering@redhat.com>
43176         regex: don't infloop on persistent failing calloc
43177         * lib/regexec.c (build_trtable): Return failure indication upon
43178         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
43179         In glibc, this was fixed for version 2.13:
43180         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
43182 2010-12-28  Bruno Haible  <bruno@clisp.org>
43183             Paul Eggert <eggert@cs.ucla.edu>
43185         linkat: Make implementation robust against system behaviour variations.
43186         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
43187         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
43188         way, and to -2 if it needs a generic runtime test.
43189         * lib/linkat.c (solaris_optimized_link_immediate,
43190         solaris_optimized_link_follow): New functions.
43191         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
43192         (check_same_link): Use it.
43194 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
43196         New module 'unigbrk/base'.
43197         * modules/unigbrk/base: New file.
43198         * lib/unigbrk.in.h: New file.
43200         New module 'unigbrk/uc-gbrk-prop'.
43201         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
43202         * modules/unigbrk/uc-gbrk-prop: New file.
43203         * lib/unigbrk/gbrkprop.h: New file.
43204         * lib/unigbrk/uc-gbrk-prop.c: New file.
43206         New module 'unigbrk/uc-is-grapheme-break'.
43207         * modules/unigbrk/uc-is-grapheme-break: New file.
43208         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
43209         * lib/unigbrk/uc-is-grapheme-break.c: New file.
43210         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
43211         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
43212         * tests/unigbrk/GraphemeBreakTest.txt: New file.
43214         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
43216 2010-12-27  Bruno Haible  <bruno@clisp.org>
43218         linkat test: Avoid failure on Solaris 11 2010-11.
43219         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
43221 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43223         utimens: work around glibc rounding bug on more platforms
43224         * lib/utimens.c (fdutimens): Work around rounding bug even if
43225         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
43226         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
43228 2010-12-27  Bruno Haible  <bruno@clisp.org>
43230         select tests: Improve comments.
43231         * tests/test-select.c (do_select): Add comments.
43233 2010-12-27  Bruno Haible  <bruno@clisp.org>
43235         select tests: Safer way of handling timeout.
43236         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
43237         at every invocation.
43239 2010-12-27  Bruno Haible  <bruno@clisp.org>
43241         select tests: Use 'bool' where appropriate.
43242         * tests/test-select.c (connect_to_socket): Change argument type to
43243         'bool'.
43245 2010-12-27  Bruno Haible  <bruno@clisp.org>
43247         select tests: Use existing modules.
43248         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
43249         (configure.ac): Don't test for unistd.h.
43250         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
43251         declared in <unistd.h>.
43253 2010-12-27  Bruno Haible  <bruno@clisp.org>
43255         mbrtowc: Work around a Solaris 7 bug.
43256         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
43257         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
43258         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
43259         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
43260         MBRTOWC_NULL_ARG1_BUG.
43261         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
43262         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
43263         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
43264         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
43266 2010-12-27  Jim Meyering  <meyering@redhat.com>
43268         read-file.c: tweak syntax
43269         * lib/read-file.c (fread_file): Remove space after "*" in function
43270         definitions.
43272 2010-12-27  Bruno Haible  <bruno@clisp.org>
43274         times test: Avoid gcc warnings on OSF/1.
43275         * tests/test-times.c (main): Cast printf arguments from clock_t to
43276         'long int'.
43278 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43280         utimens: work around glibc rounding bug on older Linux kernels
43281         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
43282         on Linux with a glibc whose utimes might not work, then work
43283         around a longstanding glibc bug involving rounding rather than
43284         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
43285         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
43287 2010-12-26  Bruno Haible  <bruno@clisp.org>
43289         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
43290         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
43291         _GL_CXXALIAS_SYS.
43292         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43294 2010-12-26  Bruno Haible  <bruno@clisp.org>
43296         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
43297         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
43298         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
43299         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
43300         looking for the declaration.
43301         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43302         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
43303         problem.
43304         * doc/posix-functions/inet_pton.texi: Likewise.
43306 2010-12-26  Bruno Haible  <bruno@clisp.org>
43308         arpa_inet: Use the common idioms with C++ support.
43309         * lib/arpa_inet.in.h: Include c++defs.h.
43310         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
43311         support.
43312         * modules/arpa_inet (Depends-on): Add c++defs.
43313         (Makefile.am): Substitute the contents of c++defs.h.
43314         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
43315         * modules/arpa_inet-c++-tests: New file.
43316         * tests/test-arpa_inet-c++.cc: New file.
43318 2010-12-25  Bruno Haible  <bruno@clisp.org>
43320         Fix more C++ link errors on Solaris 8.
43321         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
43322         $(LIB_EACCESS).
43323         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
43324         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
43325         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
43326         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
43327         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
43329 2010-12-25  Bruno Haible  <bruno@clisp.org>
43331         printf-posix: Fix link error when a non-GCC compiler is used.
43332         * lib/stdio.in.h (printf): When not using GCC, override printf
43333         correctly.
43334         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43336 2010-12-25  Bruno Haible  <bruno@clisp.org>
43338         strerror_r-posix: Update doc.
43339         * doc/posix-functions/strerror_r.texi: Update doc about the return
43340         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
43342 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43344         utimens: simplify the logic of the previous change
43345         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
43346         This should not affect whether the test succeeds or fails.
43348         utimens: configure better on hosts with NFS clock skew
43349         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
43350         uses the clock of the local host.  It might use the clock of the
43351         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
43352         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
43354 2010-12-25  Bruno Haible  <bruno@clisp.org>
43356         ptsname test: Avoid failure on Solaris.
43357         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
43358         open a pseudo-terminal; don't use BSD-style ptys.
43359         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
43361 2010-12-25  Bruno Haible  <bruno@clisp.org>
43363         ptsname: Avoid ERANGE failure on some systems.
43364         * lib/ptsname.c (buffer): Increase size.
43366 2010-12-25  Bruno Haible  <bruno@clisp.org>
43368         rename, renameat: Avoid test failures at NFS mounted locations.
43369         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
43370         so that subsequent mkdir calls succeed.
43372 2010-12-25  Bruno Haible  <bruno@clisp.org>
43374         iswblank: Fix C++ link error on Solaris 8.
43375         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
43376         _GL_FUNCDECL_SYS.
43378 2010-12-25  Bruno Haible  <bruno@clisp.org>
43380         unistd: Fix C++ link error on Solaris 8.
43381         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
43383 2010-12-25  Bruno Haible  <bruno@clisp.org>
43385         readlink doc: Mention an old glibc bug.
43386         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
43388 2010-12-25  Bruno Haible  <bruno@clisp.org>
43390         fcntl-h: Fix for use of C++ on glibc systems.
43391         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
43392         also on glibc systems in C++ mode.
43393         Reported by Gary V. Vaughan <gary@gnu.org>.
43395 2010-12-25  Bruno Haible  <bruno@clisp.org>
43397         roundl-ieee: Make it work on OSF/1 5.1 with cc.
43398         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
43400 2010-12-25  Bruno Haible  <bruno@clisp.org>
43402         truncl-ieee: Make it work on OSF/1 5.1 with cc.
43403         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
43404         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
43405         test whether truncl works according to ISO C 99 with IEC 60559.
43406         * m4/truncl-ieee.m4: New file.
43407         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
43408         m4/signbit.m4.
43409         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
43411 2010-12-25  Bruno Haible  <bruno@clisp.org>
43413         ceill-ieee: Make it work on OSF/1 5.1 with cc.
43414         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
43415         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
43416         test whether ceill works according to ISO C 99 with IEC 60559.
43417         * m4/ceill-ieee.m4: New file.
43418         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
43419         m4/signbit.m4.
43420         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
43422 2010-12-25  Bruno Haible  <bruno@clisp.org>
43424         Ensure all prerequisites of <wchar.h> are included.
43425         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
43426         before <wchar.h>.
43427         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
43428         gl_MBRLEN_NUL_RETVAL): Likewise.
43429         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43430         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
43431         AC_FUNC_MBRTOWC): Likewise.
43432         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43433         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43434         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
43435         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43436         Likewise.
43437         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43438         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
43439         (gl_WCHAR_H): Improve comments.
43440         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
43442 2010-12-25  Bruno Haible  <bruno@clisp.org>
43444         strtok_r: Fix C syntax error in autoconf macro.
43445         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
43446         characters in test program.
43448 2010-12-24  Bruno Haible  <bruno@clisp.org>
43450         ceil, trunc, round: Fix gcc warnings.
43451         * lib/ceil.c (MIN): Undefine before redefining.
43452         * lib/trunc.c (MIN): Likewise.
43453         * lib/round.c (MIN): Likewise.
43454         Include <math.h> first.
43456 2010-12-24  Bruno Haible  <bruno@clisp.org>
43458         select tests: Avoid failures on OSF/1 5.1.
43459         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
43460         failure of closing the last socket; it may fail with ECONNRESET.
43462 2010-12-24  Eric Blake  <eblake@redhat.com>
43464         stdint: avoid HP-UX 10.20 preprocessor bug
43465         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
43466         than #if.
43467         * tests/test-floor2.c (main): Likewise.
43468         Reported by Peter O'Gorman.
43470         pipe: make obsoletion transition easier
43471         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
43472         * modules/pipe (Files): Include revived file.
43473         (Include): Drop reference, to mirror getdate's behavior.
43475 2010-12-24  Bruno Haible  <bruno@clisp.org>
43477         sys_socket: Hide mismatch of declarations on NonStop Kernel.
43478         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
43479         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
43480         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43482 2010-12-24  Bruno Haible  <bruno@clisp.org>
43484         gethostname: Ensure declaration on NonStop Kernel.
43485         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
43486         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43488 2010-12-24  Bruno Haible  <bruno@clisp.org>
43490         sys_select: Ensure all necessary types on NonStop Kernel.
43491         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
43492         include <sys/time.h>.
43493         * doc/posix-headers/sys_select.texi: Mention that it's missing on
43494         NonStop Kernel.
43495         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43497 2010-12-24  Bruno Haible  <bruno@clisp.org>
43499         sys_select: Remove unneeded include.
43500         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
43501         have <sys/select.h>.
43503 2010-12-24  Bruno Haible  <bruno@clisp.org>
43505         gethostname: Provide a fallback for HOST_NAME_MAX.
43506         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
43507         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
43508         instead.
43509         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43511 2010-12-24  Bruno Haible  <bruno@clisp.org>
43513         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
43514         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
43515         (SA_RESTART): Likewise.
43516         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43518 2010-12-24  Bruno Haible  <bruno@clisp.org>
43520         signal: Define NSIG.
43521         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
43522         * tests/test-signal.c (nsig): New variable.
43523         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43525 2010-12-24  Bruno Haible  <bruno@clisp.org>
43527         rename, renameat: Avoid test failures on OSF/1 5.1.
43528         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
43529         alternative error codes.
43530         * tests/test-renameat.c (main): Likewise.
43532 2010-12-24  Bruno Haible  <bruno@clisp.org>
43534         *printf: Detect large precisions bug on Solaris 10/SPARC.
43535         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
43536         by Paul Eggert.
43537         * tests/test-snprintf-posix.h (test_function): Add this test code here
43538         too.
43539         * tests/test-sprintf-posix.h (test_function): Likewise.
43540         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43541         * tests/test-vasprintf-posix.c (test_function): Likewise.
43542         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
43543         around by gnulib.
43544         * doc/posix-functions/printf.texi: Likewise.
43545         * doc/posix-functions/snprintf.texi: Likewise.
43546         * doc/posix-functions/sprintf.texi: Likewise.
43547         * doc/posix-functions/vfprintf.texi: Likewise.
43548         * doc/posix-functions/vprintf.texi: Likewise.
43549         * doc/posix-functions/vsnprintf.texi: Likewise.
43550         * doc/posix-functions/vsprintf.texi: Likewise.
43551         * doc/posix-functions/dprintf.texi: Undo last commit.
43552         * doc/posix-functions/vdprintf.texi: Likewise.
43554 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43556         tests: port test-fdutimensat.c to Solaris 8
43557         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
43558         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
43559         On Solaris 8, it fails with errno == ENOSYS, because there is no
43560         futimens (so it can't use the fd), and there is no lutimens (so it
43561         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
43563         vsnprintf: make more consistent with snprintf; doc fixes
43565         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
43566         the byte count return problem was promoted from the snprintf-posix
43567         to the snprintf module.
43568         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43569         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
43570         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
43571         * tests/test-snprintf.c (main): Check the byte count returned.
43572         * tests/test-vsnprintf.c (main): Likewise.
43574 2010-12-23  Eric Blake  <eblake@redhat.com>
43576         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
43577         * modules/sigpipe (License): Relax license.
43579 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
43581         doc: document Solaris printf bug with large float precisions
43582         * doc/posix-functions/dprintf.texi (dprintf):
43583         * doc/posix-functions/fprintf.texi (fprintf):
43584         * doc/posix-functions/printf.texi (printf):
43585         * doc/posix-functions/snprintf.texi (snprintf):
43586         * doc/posix-functions/sprintf.texi (sprintf):
43587         * doc/posix-functions/vdprintf.texi (vdprintf):
43588         * doc/posix-functions/vfprintf.texi (vfprintf):
43589         * doc/posix-functions/vprintf.texi (vprintf):
43590         * doc/posix-functions/vsnprintf.texi (vsnprintf):
43591         * doc/posix-functions/vsprintf.texi (vsprintf):
43592         Mention that these functions mishandle large floating point
43593         precisions on Solaris 10.  The same bug is also present in Solaris
43594         8, and I assume earlier.  This causes "cd gnulib-tests; make
43595         check" to fail on Solaris 8 (and I assume, later) when building
43596         the latest coreutils, in test-vasprintf-posix's call to
43597         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
43598         the wide flavors (e.g., wprintf) so this patch just updates the
43599         documentation for the narrow ones.
43601         test-posixtm.c: add two tests
43602         * tests/test-posixtm.c: Add two tests, to highlight the
43603         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
43604         around this bug; this is merely to document it.
43606 2010-12-22  Bruno Haible  <bruno@clisp.org>
43608         getlogin_r: Work around portability problem on OSF/1.
43609         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
43610         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
43611         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
43612         test for a truncated result.
43613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
43614         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
43615         * modules/getlogin_r (Depends-on): Add memchr.
43616         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
43618 2010-12-22  Bruno Haible  <bruno@clisp.org>
43620         ptsname: Avoid test failure on OSF/1 5.1.
43621         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
43622         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
43623         (same_slave): New function.
43624         (main): Use it to compare ptsname's result with the expected file name.
43626 2010-12-22  Bruno Haible  <bruno@clisp.org>
43628         Port extended stdio modules to HP NonStop Kernel.
43629         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
43630         macros.
43631         * lib/fbufmode.c: Update comments.
43632         * lib/fflush.c: Likewise.
43633         * lib/fpurge.c: Likewise.
43634         * lib/freadable.c: Likewise.
43635         * lib/freadahead.c: Likewise.
43636         * lib/freading.c: Likewise.
43637         * lib/freadptr.c: Likewise.
43638         * lib/freadseek.c: Likewise.
43639         * lib/fseeko.c: Likewise.
43640         * lib/fseterr.c: Likewise.
43641         * lib/fwritable.c: Likewise.
43642         * lib/fwriting.c: Likewise.
43643         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43645 2010-12-22  Bruno Haible  <bruno@clisp.org>
43647         ttyname_r: Work around bug on OSF/1 5.1.
43648         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
43649         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
43650         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
43651         present.
43652         * lib/ttyname_r.c (ttyname_r): Update comments.
43654 2010-12-22  Bruno Haible  <bruno@clisp.org>
43656         round: Implement result sign according to IEEE 754.
43657         * lib/round.c (MIN, MINUS_ZERO): New macros.
43658         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
43659         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
43660         * tests/test-round-ieee.c (main): Likewise.
43661         * tests/test-roundl-ieee.c (main): Likewise.
43663         trunc: Implement result sign according to IEEE 754.
43664         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
43665         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
43666         * tests/test-trunc2.c: Include minus-zero.h.
43667         (MINUS_ZERO): New macro.
43668         (trunc_reference): Keep in sync with lib/trunc.c.
43669         * tests/test-truncf2.c: Include minus-zero.h.
43670         (MINUS_ZERO): New macro.
43671         (truncf_reference): Keep in sync with lib/trunc.c.
43672         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
43673         * tests/test-trunc-ieee.c (main): Likewise.
43674         * tests/test-truncl-ieee.c (main): Likewise.
43676         ceil: Implement result sign according to IEEE 754.
43677         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
43678         (FUNC): Return -0.0 for -1 < x < 0.
43679         * tests/test-ceil2.c: Include minus-zero.h.
43680         (MINUS_ZERO): New macro.
43681         (ceil_reference): Keep in sync with lib/ceil.c.
43682         * tests/test-ceilf2.c: Include minus-zero.h.
43683         (MINUS_ZERO): New macro.
43684         (ceilf_reference): Keep in sync with lib/ceil.c.
43685         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
43686         * tests/test-ceil-ieee.c (main): Likewise.
43687         * tests/test-ceill-ieee.c (main): Likewise.
43689         floor: Implement result sign according to IEEE 754.
43690         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
43691         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
43692         * tests/test-floorf2.c (floorf_reference): Likewise.
43693         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
43694         * tests/test-floor-ieee.c (main): Likewise.
43695         * tests/test-floorl-ieee.c (main): Likewise.
43697 2010-12-22  Bruno Haible  <bruno@clisp.org>
43699         getaddrinfo: Update doc.
43700         * doc/posix-functions/gai_strerror.texi: Return type is also different
43701         on AIX and HP-UX.
43703 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
43705         getaddrinfo, inet_ntop: Update doc for Solaris.
43706         * doc/posix-functions/gai_strerror.texi: Return type is also an
43707         issue on Solaris 9 and earlier.
43708         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
43709         on Solaris 10 and earlier.
43711 2010-12-21  Bruno Haible  <bruno@clisp.org>
43713         New module 'roundl-ieee'.
43714         * modules/roundl-ieee: New file.
43715         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
43716         test whether roundl works according to ISO C 99 with IEC 60559.
43717         * m4/roundl-ieee.m4: New file.
43718         * modules/roundl-ieee-tests: New file.
43719         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
43720         * tests/test-roundl.c (main): Remove signbit tests.
43721         * modules/roundl-tests (Depends-on): Remove signbit.
43722         * doc/posix-functions/roundl.texi: Mention the new module.
43724 2010-12-21  Bruno Haible  <bruno@clisp.org>
43726         New module 'truncl-ieee'.
43727         * modules/truncl-ieee: New file.
43728         * modules/truncl-ieee-tests: New file.
43729         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
43730         * tests/test-truncl.c (main): Remove signbit tests.
43731         * modules/truncl-tests (Depends-on): Remove signbit.
43732         * doc/posix-functions/truncl.texi: Mention the new module.
43734 2010-12-21  Bruno Haible  <bruno@clisp.org>
43736         New module 'ceill-ieee'.
43737         * modules/ceill-ieee: New file.
43738         * modules/ceill-ieee-tests: New file.
43739         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
43740         * tests/test-ceill.c (main): Remove signbit tests.
43741         * modules/ceill-tests (Depends-on): Remove signbit.
43742         * doc/posix-functions/ceill.texi: Mention the new module.
43744 2010-12-21  Bruno Haible  <bruno@clisp.org>
43746         New module 'floorl-ieee'.
43747         * modules/floorl-ieee: New file.
43748         * modules/floorl-ieee-tests: New file.
43749         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
43750         * tests/test-floorl.c (main): Remove signbit tests.
43751         * modules/floorl-tests (Depends-on): Remove signbit.
43752         * doc/posix-functions/floorl.texi: Mention the new module.
43754 2010-12-21  Bruno Haible  <bruno@clisp.org>
43756         New module 'round-ieee'.
43757         * modules/round-ieee: New file.
43758         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
43759         whether round works according to ISO C 99 with IEC 60559.
43760         * m4/round-ieee.m4: New file.
43761         * modules/round-ieee-tests: New file.
43762         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
43763         * tests/test-round1.c (main): Remove signbit tests.
43764         * modules/round-tests (Depends-on): Remove 'signbit'.
43765         * doc/posix-functions/round.texi: Mention the new module.
43767 2010-12-21  Bruno Haible  <bruno@clisp.org>
43769         New module 'trunc-ieee'.
43770         * modules/trunc-ieee: New file.
43771         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
43772         whether trunc works according to ISO C 99 with IEC 60559.
43773         * m4/trunc-ieee.m4: New file.
43774         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
43775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
43776         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
43777         * modules/trunc-ieee-tests: New file.
43778         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
43779         * tests/test-trunc1.c (main): Remove signbit tests.
43780         * modules/trunc-tests (Depends-on): Remove 'signbit'.
43781         * doc/posix-functions/trunc.texi: Mention the new module.
43783 2010-12-21  Bruno Haible  <bruno@clisp.org>
43785         New module 'ceil-ieee'.
43786         * modules/ceil-ieee: New file.
43787         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
43788         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
43789         ISO C 99 with IEC 60559.
43790         * m4/ceil-ieee.m4: New file.
43791         * modules/ceil (Files): Add lib/ceil.c.
43792         (Depends-on): Add 'float'.
43793         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43794         * lib/math.in.h (ceil): New declaration.
43795         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
43796         REPLACE_CEIL.
43797         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
43798         * modules/ceil-ieee-tests: New file.
43799         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
43800         * tests/test-math-c++.cc: Check the signature of 'ceil'.
43801         * doc/posix-functions/ceil.texi: Mention the new module.
43803 2010-12-21  Bruno Haible  <bruno@clisp.org>
43805         New module 'floor-ieee'.
43806         * modules/floor-ieee: New file.
43807         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
43808         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
43809         ISO C 99 with IEC 60559.
43810         * m4/floor-ieee.m4: New file.
43811         * modules/floor (Files): Add lib/floor.c.
43812         (Depends-on): Add 'float'.
43813         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43814         * lib/math.in.h (floor): New declaration.
43815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
43816         REPLACE_FLOOR.
43817         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
43818         * modules/floor-ieee-tests: New file.
43819         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
43820         * tests/test-math-c++.cc: Check the signature of 'floor'.
43821         * doc/posix-functions/floor.texi: Mention the new module.
43823 2010-12-21  Bruno Haible  <bruno@clisp.org>
43825         New module 'roundf-ieee'.
43826         * modules/roundf-ieee: New file.
43827         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
43828         test whether roundf works according to ISO C 99 with IEC 60559.
43829         * m4/roundf-ieee.m4: New file.
43830         * modules/roundf-ieee-tests: New file.
43831         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
43832         * tests/test-roundf1.c (main): Remove signbit tests.
43833         * modules/roundf-tests (Depends-on): Remove 'signbit'.
43834         * doc/posix-functions/roundf.texi: Mention the new module.
43836 2010-12-21  Bruno Haible  <bruno@clisp.org>
43838         New module 'truncf-ieee'.
43839         * modules/truncf-ieee: New file.
43840         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
43841         test whether truncf works according to ISO C 99 with IEC 60559.
43842         * m4/truncf-ieee.m4: New file.
43843         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
43844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
43845         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
43846         * modules/truncf-ieee-tests: New file.
43847         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
43848         * tests/test-truncf1.c (main): Remove signbit tests.
43849         * modules/truncf-tests (Depends-on): Remove 'signbit'.
43850         * doc/posix-functions/truncf.texi: Mention the new module.
43852 2010-12-21  Bruno Haible  <bruno@clisp.org>
43854         New module 'ceilf-ieee'.
43855         * modules/ceilf-ieee: New file.
43856         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
43857         test whether ceilf works according to ISO C 99 with IEC 60559.
43858         * m4/ceilf-ieee.m4: New file.
43859         * modules/ceilf-ieee-tests: New file.
43860         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
43861         * tests/test-ceilf1.c (main): Remove signbit tests.
43862         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
43863         * doc/posix-functions/ceilf.texi: Mention the new module.
43865 2010-12-21  Bruno Haible  <bruno@clisp.org>
43867         New module 'floorf-ieee'.
43868         * modules/floorf-ieee: New file.
43869         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
43870         test whether floorf works according to ISO C 99 with IEC 60559.
43871         * m4/floorf-ieee.m4: New file.
43872         * modules/floorf-ieee-tests: New file.
43873         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
43874         * tests/test-floorf1.c (main): Remove signbit tests.
43875         * modules/floorf-tests (Depends-on): Remove 'signbit'.
43876         * doc/posix-functions/floorf.texi: Mention the new module.
43878 2010-12-21  Bruno Haible  <bruno@clisp.org>
43880         Support for minus zero in autoconf macros.
43881         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
43882         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
43883         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
43884         * tests/minus-zero.h: Update comments.
43886 2010-12-21  Bruno Haible  <bruno@clisp.org>
43888         Tests for module 'ceil'.
43889         * modules/ceil-tests: New file.
43890         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
43891         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
43893 2010-12-21  Bruno Haible  <bruno@clisp.org>
43895         Tests for module 'floor'.
43896         * modules/floor-tests: New file.
43897         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
43898         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
43900 2010-12-21  Bruno Haible  <bruno@clisp.org>
43902         math: Fix indentation.
43903         * lib/math.in.h (floorf): Fix indentation.
43905 2010-12-21  Bruno Haible  <bruno@clisp.org>
43907         Fix cross-compilation guesses on Solaris.
43908         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
43909         not match "solaris2.10".
43910         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
43911         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
43912         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
43914 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
43916         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
43917         This fixes a problem observed with the latest coreutils snapshot
43918         that caused a test to fail on Solaris 8.  src/csplit.c's call
43919         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
43920         earlier, instead of returning the number of bytes that would have
43921         been generated; this causes csplit to incorrectly report memory
43922         exhaustion.
43923         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
43924         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
43925         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
43926         comments to match.
43927         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
43928         Fix typo in matching older versions of Solaris: "solaris2.10"
43929         is matched by the shell pattern "solaris2.[0-9]*".  This matters
43930         only for guessing while cross-compiling.
43931         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
43933 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
43935         ftoastr: fix comment again
43936         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
43937         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
43938         Also, simplify example a bit by using flags = 0.
43940 2010-12-20  Bruno Haible  <bruno@clisp.org>
43942         round*, trunc*: Update documentation regarding glibc.
43943         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
43944         * doc/posix-functions/round.texi: Likewise.
43945         * doc/posix-functions/roundl.texi: Likewise.
43946         * doc/posix-functions/truncf.texi: Likewise.
43947         * doc/posix-functions/trunc.texi: Likewise.
43948         * doc/posix-functions/truncl.texi: Likewise.
43950 2010-12-20  Bruno Haible  <bruno@clisp.org>
43952         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
43953         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
43954         * doc/posix-functions/round.texi: Likewise.
43955         * doc/posix-functions/roundl.texi: Likewise.
43957 2010-12-20  Bruno Haible  <bruno@clisp.org>
43959         ttyname_r: Add missing declaration on HP-UX 11.
43960         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
43961         HAVE_TTYNAME_R.
43962         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
43963         declared. Set HAVE_TTYNAME_R always.
43964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43965         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
43966         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
43967         HAVE_TTYNAME_R.
43968         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
43970 2010-12-20  Bruno Haible  <bruno@clisp.org>
43972         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
43973         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
43974         * doc/posix-functions/getlogin_r.texi: Likewise.
43975         * tests/test-getlogin.c: Include <errno.h>.
43976         (main): Avoid test failure on HP-UX 11.11.
43977         * tests/test-getlogin_r.c (main): Likewise.
43979 2010-12-20  Bruno Haible  <bruno@clisp.org>
43981         getlogin_r: Add missing declaration on HP-UX 11.
43982         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
43983         declared also when it exists as a function.
43984         * doc/posix-functions/getlogin_r.texi: Document this workaround.
43986 2010-12-20  Bruno Haible  <bruno@clisp.org>
43988         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
43989         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
43990         through wcrtomb.
43992 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
43994         ftoastr: fix comment
43995         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
43996         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
43998 2010-12-19  Bruno Haible  <bruno@clisp.org>
44000         isnan: Ensure it is a macro.
44001         * lib/math.in.h (isnan): Define as a macro if not already a macro.
44002         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
44003         Solaris.
44005 2010-12-19  Bruno Haible  <bruno@clisp.org>
44007         ldexpl test: Fix link error on OSF/1 5.1.
44008         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
44010 2010-12-19  Bruno Haible  <bruno@clisp.org>
44012         wctype: Make it work in C++ mode on OSF/1 5.1.
44013         * lib/wctype.in.h (iswblank): Declare but not define here.
44014         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
44015         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
44016         * modules/wctype (Files): Add lib/iswblank.c.
44018 2010-12-19  Bruno Haible  <bruno@clisp.org>
44020         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
44021         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
44022         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
44024 2010-12-19  Bruno Haible  <bruno@clisp.org>
44026         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
44027         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
44028         _POSIX_PII_SOCKET.
44029         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
44030         * doc/posix-functions/recvfrom.texi: Likewise.
44031         * doc/posix-functions/send.texi: Likewise.
44032         * doc/posix-functions/sendto.texi: Likewise.
44034 2010-12-19  Bruno Haible  <bruno@clisp.org>
44036         tcgetsid: Add missing declaration on OSF/1 5.1.
44037         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
44038         HAVE_TCGETSID.
44039         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
44040         Don't set HAVE_TCGETSID.
44041         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
44042         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
44043         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
44044         HAVE_TCGETSID.
44045         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
44047 2010-12-19  Bruno Haible  <bruno@clisp.org>
44049         stdio: Fix problem with popen() declaration on OSF/1 5.1.
44050         * lib/stdio.in.h: During the include_next statement, let recursive
44051         includes of this file include only the system header file.
44053 2010-12-19  Bruno Haible  <bruno@clisp.org>
44055         iconv_open: Fix regression from 2010-12-04.
44056         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
44057         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
44059 2010-12-19  Bruno Haible  <bruno@clisp.org>
44061         stdbool test: Avoid a gcc warning.
44062         * tests/test-stdbool.c (main): Fail if e1 is false.
44063         Reported by Jim Meyering.
44065 2010-12-19  Jim Meyering  <meyering@redhat.com>
44067         setenv: restore to working order
44068         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
44069         mistakenly removed.
44070         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
44071         HAVE_SETENV.
44072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
44073         HAVE_SETENV.
44075 2010-12-19  Bruno Haible  <bruno@clisp.org>
44077         Document some different function declarations on OSF/1 5.1.
44078         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
44079         * doc/posix-functions/inet_ntop.texi: Likewise.
44080         * doc/posix-functions/gethostname.texi: Likewise.
44081         * lib/unistd.in.h (gethostname): Update comment.
44083 2010-12-19  Bruno Haible  <bruno@clisp.org>
44085         doc: Mention vasprintf-posix module.
44086         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
44087         the 'vasprintf-posix' module.
44088         * doc/glibc-functions/vasprintf.texi: Likewise.
44090 2010-12-19  Bruno Haible  <bruno@clisp.org>
44092         unsetenv: Add missing declaration on OSF/1 5.1.
44093         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
44094         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
44095         Don't set HAVE_UNSETENV. In the test program, set _BSD.
44096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
44097         not HAVE_UNSETENV.
44098         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
44099         HAVE_UNSETENV.
44100         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
44102 2010-12-19  Bruno Haible  <bruno@clisp.org>
44104         setenv: Add missing declaration on OSF/1 5.1.
44105         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
44106         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
44107         declared. Don't set HAVE_SETENV.
44108         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
44109         not HAVE_SETENV.
44110         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
44111         HAVE_SETENV.
44112         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
44114 2010-12-19  Bruno Haible  <bruno@clisp.org>
44116         nl_langinfo tests: Avoid gcc warning.
44117         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
44119 2010-12-19  Bruno Haible  <bruno@clisp.org>
44121         mknod: Avoid error in C++ mode on OSF/1 with GCC.
44122         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
44123         _GL_CXXALIAS_SYS.
44125 2010-12-19  Bruno Haible  <bruno@clisp.org>
44127         stdbool: Relax test.
44128         * tests/test-stdbool.c (e): Don't require that casts from a variable's
44129         address to 'bool' work in static initializer, for compilers other than
44130         GCC.
44132 2010-12-19  Bruno Haible  <bruno@clisp.org>
44134         ftello: Add missing declaration on OSF/1 5.1.
44135         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
44136         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
44137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
44138         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
44139         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
44141 2010-12-19  Bruno Haible  <bruno@clisp.org>
44143         fseeko: Add missing declaration on OSF/1 5.1.
44144         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
44145         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
44146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
44147         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
44148         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
44150 2010-12-19  Bruno Haible  <bruno@clisp.org>
44152         fchdir: Add missing declaration on OSF/1 5.1.
44153         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
44154         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
44155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
44156         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
44157         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
44159 2010-12-19  Bruno Haible  <bruno@clisp.org>
44161         relocatable-prog-wrapper: Separate from relocatable-prog.
44162         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
44163         uninstall-relocwrapper rule here.
44164         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
44165         Reported by Ian Beckwith <ianb@erislabs.net>.
44167 2010-12-19  Bruno Haible  <bruno@clisp.org>
44169         unistr/u8-mbsnlen: Add missing dependency.
44170         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
44171         Reported by Ian Beckwith <ianb@erislabs.net>.
44173 2010-12-19  Bruno Haible  <bruno@clisp.org>
44175         iconv: Make it possible again to use this module without 'iconv-h'.
44176         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
44177         if it is not defined.
44178         Reported by Ian Beckwith <ianb@erislabs.net>.
44180 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44182         acl: port to Solaris 8 when copying from tmpfs to ufs
44183         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
44184         error number.  Problem observed on Solaris 8 with latest
44185         coreutils, with "mv A B", where A is on a tmpfs file system and B
44186         is on a ufs file system.  This caused coreutils' mv/part-symlink
44187         test to fail.
44189         tests: set fail=0 at start
44190         * tests/init.sh (setup_): Move fail=0 initialization here ...
44191         (mktempd_): ... from here, so that tests can rely on fail being
44192         set to 0 initially.  This fixes a problem in coreutils; see:
44193         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
44195 2010-12-18  Bruno Haible  <bruno@clisp.org>
44197         memmem-simple: Stylistic changes.
44198         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
44199         Fix preprocessor directive indentation.
44201 2010-12-15  Pádraig Brady  <P@draigBrady.com>
44203         memmem, memmem-simple: reorganize and expand empty needle check
44204         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
44205         functional checks to memmem-simple so that one has a fully functional
44206         memmem by using just this module.
44207         Restrict the performance only check to the memmem module.
44208         Also expand the empty needle check to ensure the correct
44209         pointer is returned, not just a non NULL pointer.
44210         * doc/glibc-functions/memmem.texi: Rearrange the portability
44211         documentation to correlate with the rearranged checks.
44212         Clarify exactly how the memmem and memmem-simple modules
44213         relate to each other.
44215 2010-12-15  Pádraig Brady  <P@draigBrady.com>
44216             Bruno Haible  <bruno@clisp.org>
44218         Improve cross-compilation guesses for uClibc.
44219         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
44220         that uClibc does not have the glibc bug.
44221         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
44222         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
44224 2010-12-14  Eric Blake  <eblake@redhat.com>
44226         configmake: provide fallbacks for oldest supported autotools
44227         * m4/configmake.m4: New file.
44228         * modules/configmake (Files): Ship it.
44229         (configure.ac): Use it to guarantee fallbacks.
44231 2010-12-13  Pádraig Brady  <P@draigBrady.com>
44233         read-file: Improve handling of large files
44234         * lib/read-file.c (fread_file): Minimize realloc()s
44235         for regular files, and better manage sizes around SIZE_MAX.
44237 2010-12-13  Eric Blake  <eblake@redhat.com>
44239         cloexec, fcntl: relax license
44240         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
44241         consent from all contributors.
44242         * modules/fcntl (License): Likewise.
44244 2010-12-10  Bruno Haible  <bruno@clisp.org>
44246         Tests for module 'pipe-posix'.
44247         * modules/pipe-posix-tests: New file.
44248         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
44250 2010-12-10  Bruno Haible  <bruno@clisp.org>
44252         pipe-posix: Make it work in C++ mode.
44253         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
44254         (pipe): Use common idiom, not a macro definition.
44255         * lib/pipe.c: New file.
44256         * m4/pipe.m4: New file.
44257         * modules/pipe-posix (Description): Enhance.
44258         (Files): Add lib/pipe.c, m4/pipe.m4.
44259         (configure.ac): Invoke gl_FUNC_PIPE.
44260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
44261         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
44262         * tests/test-unistd-c++.cc: Check the signature of pipe.
44264 2010-12-10  Bruno Haible  <bruno@clisp.org>
44266         Rename module 'pipe' to 'spawn-pipe'.
44267         * modules/spawn-pipe: New file, renamed from modules/pipe.
44268         (Files, configure.ac, Makefile.am): Update.
44269         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
44270         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
44271         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
44272         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
44273         "spawn-pipe.h" instead of "pipe.h".
44274         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
44275         to gl_SPAWN_PIPE.
44276         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
44277         (Files, Makefile.am): Update.
44278         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
44279         Update.
44280         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
44281         Include "spawn-pipe.h" instead of "pipe.h".
44282         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
44283         * lib/javacomp.c: Likewise.
44284         * lib/javaversion.c: Likewise.
44285         * lib/pipe-filter-gi.c: Likewise.
44286         * lib/pipe-filter-ii.c: Likewise.
44287         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
44288         * modules/javacomp (Depends-on): Likewise.
44289         * modules/javaversion (Depends-on): Likewise.
44290         * modules/pipe-filter-gi (Depends-on): Likewise.
44291         * modules/pipe-filter-ii (Depends-on): Likewise.
44292         * MODULES.html.sh (Executing programs): Update.
44293         * NEWS: Mention the change.
44295 2010-12-10  Eric Blake  <eblake@redhat.com>
44297         pipe-posix: new module
44298         * modules/pipe-posix: New file.
44299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
44300         (gl_UNISTD_H): Check for declaration.
44301         * modules/unistd (Makefile.am): Substitute it.
44302         * lib/unistd.in.h (pipe): Provide it for mingw.
44303         * doc/posix-functions/pipe.texi (pipe): Update documentation.
44304         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
44306 2010-12-07  Bruno Haible  <bruno@clisp.org>
44308         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
44309         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
44310         u8_strcmp_gnu.
44311         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
44313 2010-12-06  Bruno Haible  <bruno@clisp.org>
44315         Update internal documentation.
44316         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
44318 2010-12-04  Bruno Haible  <bruno@clisp.org>
44320         Put more information about failed tests into the test return codes.
44321         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
44322         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
44323         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44324         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44325         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
44326         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44327         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44328         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44329         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
44330         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44331         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
44332         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44333         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
44334         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44335         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
44336         returns a bit mask.
44337         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
44338         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
44339         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
44340         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
44341         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
44342         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
44343         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44344         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44345         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
44346         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
44347         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44348         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
44349         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44350         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
44351         * m4/link.m4 (gl_FUNC_LINK): Likewise.
44352         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44353         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
44354         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
44355         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44356         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
44357         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44358         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44359         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
44360         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44361         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
44362         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44363         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
44364         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
44365         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
44366         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
44367         gl_PRINTF_PRECISION): Likewise.
44368         * m4/regex.m4 (gl_REGEX): Likewise.
44369         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44370         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
44371         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
44372         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44373         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44374         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44375         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
44376         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
44377         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44378         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44379         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44380         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44381         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
44382         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44383         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44384         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44385         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
44386         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
44387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44388         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
44389         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
44390         enumerated value.
44391         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
44393 2010-12-04  Bruno Haible  <bruno@clisp.org>
44395         Update for Solaris 11 2010-11.
44396         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
44397         Express, released in November 2010.
44399 2010-12-04  Bruno Haible  <bruno@clisp.org>
44401         nproc: Relax license.
44402         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
44403         and Paul Eggert.
44404         Requested by Ludovic Courtès <ludo@gnu.org>.
44406 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
44408         utimecmp: fine-grained src to nearby coarse-grained dest
44410         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
44411         and the source is on a file system with higher-resolution time
44412         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
44413         not work, and the time stamps are close together, the algorithm to
44414         determine the exact resolution from the read-back mtime was buggy:
44415         it had a "!=" where it should have had an "==".  This bug has been
44416         in the code ever since it was introduced to gnulib.
44417         Problem reported by Dan Jacobson in
44418         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
44420 2010-11-30  Bruno Haible  <bruno@clisp.org>
44422         strerror_r-posix: Fix autoconf test.
44423         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
44425 2010-11-28  Bruno Haible  <bruno@clisp.org>
44426             Paul Eggert  <eggert@cs.ucla.edu>
44428         Tests for module 'getdomainname'.
44429         * modules/getdomainname-tests: New file.
44430         * tests/test-getdomainname.c: New file, based on
44431         tests/test-gethostname.c.
44433 2010-11-28  Bruno Haible  <bruno@clisp.org>
44434             Paul Eggert  <eggert@cs.ucla.edu>
44436         getdomainname: Use the system function when possible.
44437         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
44438         (getdomainname): Replace if needed. Provide the declaration if it is
44439         missing. Don't use _GL_CXXALIAS_SYS_CAST.
44440         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
44441         (getdomainname): When the system has getdomainname, call the system
44442         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
44443         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44444         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
44445         found in libnsl. Look for the declaration also in <netdb.h>. Replace
44446         the function if its second argument is of type 'int' or if it is found
44447         in libnsl.
44448         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
44449         <sys/systeminfo.h> and sysinfo().
44450         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
44451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44452         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
44453         HAVE_GETDOMAINNAME.
44454         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
44455         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
44456         * doc/glibc-functions/getdomainname.texi: Document the problems with
44457         the getdomainname declaration.
44459 2010-11-28  Bruno Haible  <bruno@clisp.org>
44461         sys_socket: Ensure ss_family field on AIX.
44462         * lib/sys_socket.in.h (ss_family): New macro definition.
44463         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
44464         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
44465         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44466         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
44467         * modules/sys_socket (Makefile.am): Substitute
44468         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
44469         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
44471 2010-11-27  Bruno Haible  <bruno@clisp.org>
44473         readline: Improve configure output.
44474         * m4/readline.m4 (gl_FUNC_READLINE): Make the
44475         "checking for readline..." result understandable.
44477 2010-11-27  Bruno Haible  <bruno@clisp.org>
44479         *printf-posix: Detect a bug on Solaris 10/x86.
44480         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
44481         for floating-point output.
44482         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
44483         directive.
44484         * tests/test-snprintf-posix.h (test_function): Likewise.
44485         * tests/test-sprintf-posix.h (test_function): Likewise.
44486         * tests/test-vasprintf-posix.c (test_function): Likewise.
44487         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
44488         * doc/posix-functions/printf.texi: Likewise.
44489         * doc/posix-functions/snprintf.texi: Likewise.
44490         * doc/posix-functions/sprintf.texi: Likewise.
44491         * doc/posix-functions/vfprintf.texi: Likewise.
44492         * doc/posix-functions/vprintf.texi: Likewise.
44493         * doc/posix-functions/vsnprintf.texi: Likewise.
44494         * doc/posix-functions/vsprintf.texi: Likewise.
44495         * doc/glibc-functions/obstack_printf.texi: Likewise.
44496         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
44498 2010-11-27  Bruno Haible  <bruno@clisp.org>
44500         Fix link error when module libunistring-optional is in use.
44501         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
44502         * modules/striconveha-tests (Makefile.am): Likewise.
44504 2010-11-27  Bruno Haible  <bruno@clisp.org>
44506         regex: Mention link dependencies.
44507         * modules/regex (Link): New section.
44508         * modules/rpmatch (Link): Likewise.
44509         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
44511 2010-11-27  Bruno Haible  <bruno@clisp.org>
44513         ftoastr: Fix compilation error on Solaris.
44514         * lib/ftoastr.c: Include <config.h>.
44516 2010-11-27  Bruno Haible  <bruno@clisp.org>
44518         getloadavg: Update documentation.
44519         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
44521 2010-11-27  Bruno Haible  <bruno@clisp.org>
44523         sys_socket: Fix test whether the functions are declared.
44524         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
44525         not <sys/select.h>.
44527 2010-11-27  Bruno Haible  <bruno@clisp.org>
44529         getpass: Make sure to get system declaration on some platforms.
44530         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
44531         gl_USE_SYSTEM_EXTENSIONS.
44532         * modules/getpass (Depends-on): Add extensions.
44534 2010-11-26  Bruno Haible  <bruno@clisp.org>
44536         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
44537         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
44538         'iconv' module is present.
44539         (ICONV_CONST): New macro.
44540         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
44541         ICONV_CONST.
44542         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
44543         set ICONV_CONST.
44544         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
44545         here.
44546         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
44547         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
44548         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
44549         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
44550         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
44551         present.
44553 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
44555         ftoastr: comment fix
44556         * lib/ftoastr.c: "little" -> "little or no" in comment
44558 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
44560         stdint: port to GCC 4.3 + OSX + Octave
44561         On this platform, stdint.h is buggy and defines int64_t to long
44562         long int.  The replacement defined it to long int, causing
44563         problems with C++ style name mangling.  Instead, trust the system
44564         definition if INT64_MAX is defined, and likewise for the unsigned
44565         variant.   Problem reported by Jarno Rajahalme in
44566         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
44567         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
44568         and don't mess with int64_t and INT64_MAX in this case.
44569         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
44571 2010-11-24  Bruno Haible  <bruno@clisp.org>
44573         doc: Corrections regarding MacOS X 10.4 and 10.5.
44574         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
44575         MacOS X.
44576         Reported by Simon Josefsson.
44578 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
44580         Uninstall ".bin" files installed by relocwrapper.
44581         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
44582         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
44583         unless it is already there.
44585 2010-11-21  Bruno Haible  <bruno@clisp.org>
44587         Update for NetBSD 5.0.
44588         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
44589         NetBSD; the test fails on NetBSD 5.0.
44590         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
44591         about NetBSD.
44593 2010-11-21  Bruno Haible  <bruno@clisp.org>
44595         Update for HP-UX 11.23 and HP-UX 11.31.
44596         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
44597         HP-UX.
44599 2010-11-21  Bruno Haible  <bruno@clisp.org>
44601         Update for MacOS X 10.5.
44602         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
44603         MacOS X; the test fails on MacOS X 10.5.8.
44604         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
44605         about MacOS X.
44607 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
44609         bootstrap: add bootstrap_sync option.
44610         See discussion at
44611         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
44612         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
44613         * build-aux/bootstrap: Accept --bootstrap-sync to update
44614         bootstrap if it is not identical to the local gnulib's
44615         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
44616         enable this by default.  Accept --no-bootstrap-sync to disable
44617         it.
44619 2010-11-20  Bruno Haible  <bruno@clisp.org>
44621         Ensure that <features.h> is included before __GLIBC__ is tested.
44622         * lib/printf-parse.h: Include <features.h>.
44623         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
44624         Reported by Mike Frysinger <vapier@gentoo.org>.
44626         Ensure that <features.h> is included before __GLIBC__ is tested.
44627         * lib/wchar.in.h: Include <features.h>.
44628         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
44629         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
44630         Reported by Mike Frysinger <vapier@gentoo.org>.
44632         Ensure that <features.h> is included before __GLIBC__ is tested.
44633         * lib/arpa_inet.in.h: Include <features.h>.
44634         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
44635         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
44636         Reported by Mike Frysinger <vapier@gentoo.org>.
44638         Ensure that <features.h> is included before __GLIBC__ is tested.
44639         * build-aux/link-warning.h: Include <features.h>.
44640         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
44641         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
44642         Reported by Mike Frysinger <vapier@gentoo.org>.
44644         Ensure that <features.h> is included before __GLIBC__ is tested.
44645         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
44646         Reported by Mike Frysinger <vapier@gentoo.org>.
44648 2010-11-20  Bruno Haible  <bruno@clisp.org>
44650         memmem: Fix autoconf test.
44651         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
44653 2010-11-20  Bruno Haible  <bruno@clisp.org>
44655         Port to uClibc.
44656         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
44657         * lib/fcntl.in.h: Likewise.
44658         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
44659         * lib/mbrtowc.c (mbrtowc): Likewise.
44660         * lib/relocatable.c (find_shared_library_fullname): Likewise.
44661         * lib/strerror_r.c: Likewise.
44662         * lib/unistr/u8-strnlen.c: Likewise.
44663         * lib/vasnprintf.c (decimal_point_char): Likewise.
44664         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
44665         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
44666         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44667         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44668         * tests/test-sigaction.c (handler, main): Likewise.
44669         * lib/freading.h: Treat uClibc like a non-glibc platform.
44670         * lib/freading.c: Likewise.
44671         * lib/gettext.h: Likewise.
44672         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
44673         Likewise.
44674         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
44675         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
44676         * lib/propername.c (proper_name_utf8): Likewise.
44677         * lib/spawn.in.h: Likewise.
44678         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
44679         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
44680         mem_cd_iconveh_internal): Likewise.
44681         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
44682         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
44683         strstr, strcasestr): Likewise.
44684         * lib/unicodeio.c (unicode_to_mb): Likewise.
44685         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
44686         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
44687         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
44688         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
44689         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
44690         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
44691         * lib/unistr/u8-stpncpy.c: Likewise.
44692         * lib/vasnprintf.c (VASNPRINTF): Likewise.
44693         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
44694         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44695         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44696         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44697         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
44698         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
44699         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
44700         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
44701         Likewise.
44702         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
44703         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44704         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
44705         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44706         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44707         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
44708         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44709         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
44710         * tests/test-getopt.h (OPTIND_MIN): Likewise.
44711         * tests/test-striconveha.c (main): Likewise.
44712         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44713         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
44714         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
44715         * doc/posix-functions/getline.texi: Likewise.
44716         Reported by Mike Frysinger <vapier@gentoo.org>.
44718 2010-11-20  Bruno Haible  <bruno@clisp.org>
44720         nproc: Fix condition.
44721         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
44722         HAVE_PTHREAD_AFFINITY_NP.
44724 2010-11-20  Bruno Haible  <bruno@clisp.org>
44726         Fix a comment.
44727         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
44729 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
44731         ftoastr: don't assume snprintf
44732         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
44733         Implement a subset of snprintf here, by using sprintf safely.
44734         * modules/ftoastr (Depends-on): Remove snprintf.
44736 2010-11-19  Jim Meyering  <meyering@redhat.com>
44738         test-rename.h: fix compilation failure
44739         * tests/test-rename.h (test_rename): Add omitted "}".
44741 2010-11-17  Jim Meyering  <meyering@redhat.com>
44743         maint.mk: add a URL discussing the no-@acronym policy
44744         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
44746 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
44748         ftoastr: depend on snprintf, improve comments
44749         * lib/ftoastr.c: Also mention Loitsch's draft.
44750         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
44751         needed in the current implementation, but it might simplify
44752         speeding up the code later.
44753         * modules/ftoastr: Depend on snprintf; this improves portability.
44754         Suggested by Bruno Haible in the same email.
44756         ftoastr: port to hosts lacking strtof and strtold
44757         Problem reported by Bruno Haible in
44758         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
44759         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
44760         environment and strtold (and presumably strtof) are not available.
44761         * modules/ftoastr (Files): Add m4/c-strtod.m4.
44762         (configure.ac): Require gl_C99_STRTOLD.
44764 2010-11-18  Bruno Haible  <bruno@clisp.org>
44766         c-strtold: Avoid link error on AIX 7.
44767         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
44768         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
44769         (gl_C_STRTOLD): Test whether strtold_l exists.
44770         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44772 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44774         intprops: new macro INT_BITS_STRLEN_BOUND
44775         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
44776         ftoastr.h.  This exposes an internal of intprops.h that was formerly
44777         not exposed.  Also, it uses a slightly tighter bound than before;
44778         though this makes no practical difference, we might as well be as
44779         tight as we easily can.
44781         ftoastr: new module, for lossless conversion of floats to short strings
44782         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
44783         * modules/ftoastr: New files.
44785 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44787         bootstrap: port to Solaris sed
44788         * build-aux/bootstrap (get_version): Port to Solaris sed.
44789         See Ralf Wildenhues's note in
44790         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
44792 2010-11-14  Jim Meyering  <meyering@redhat.com>
44794         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
44795         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
44796         and move definition closer to sole use.
44798 2010-11-13  Jim Meyering  <meyering@redhat.com>
44800         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
44801         Now we require at least autoconf-2.59, which means the work-around
44802         is no longer needed.
44803         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
44804         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44805         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
44806         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
44807         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
44809 2010-11-13  Bruno Haible  <bruno@clisp.org>
44811         rename, renameat: Avoid test failures at NFS mounted locations.
44812         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
44813         functions.
44814         (test_rename): Use assert_nonexistent.
44815         * tests/test-rename.c: Include <dirent.h>.
44816         * tests/test-renameat.c: Likewise.
44817         Reported by Gary V. Vaughan <gary@gnu.org>.
44819         rename, renameat: Document Linux bug with NFS
44820         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
44821         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
44822         * doc/posix-functions/renameat.texi: Likewise.
44823         Suggested by Eric Blake.
44825 2010-11-13  Bruno Haible  <bruno@clisp.org>
44827         rename test: Add comments.
44828         * tests/test-rename.h (test_rename): Add structure and comments.
44830 2010-11-13  Eric Blake  <eblake@redhat.com>
44832         maintainer-makefile: cover a few more files
44833         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
44834         scripts generated within C files, for libvirt.
44836 2010-11-13  Bruno Haible  <bruno@clisp.org>
44838         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
44839         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
44840         character, return the number of bytes that belong together, not always
44841         1.
44842         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
44843         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
44844         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
44845         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
44846         number of bytes of an invalid character.
44847         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
44848         (main): Invoke it.
44849         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
44850         results.
44851         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
44852         malformed byte sequences.
44853         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
44854         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
44855         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
44856         Reported by Ben Pfaff and Paolo Bonzini.
44858 2010-11-13  Bruno Haible  <bruno@clisp.org>
44860         openat: Work around glibc bug with fchownat() and empty file names.
44861         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
44862         (gl_FUNC_FCHOWNAT): Invoke it.
44863         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
44864         * doc/posix-functions/fchownat.texi: Document the glibc bug.
44865         Reported by Gary V. Vaughan <gary@gnu.org>.
44867 2010-11-13  Bruno Haible  <bruno@clisp.org>
44869         openat: Ensure autoconf macro ordering.
44870         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
44871         gl_USE_SYSTEM_EXTENSIONS.
44872         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
44874 2010-11-13  Bruno Haible  <bruno@clisp.org>
44876         Update comments.
44877         * lib/unistr/u8-check.c: Update file name in comments.
44878         * lib/unistr/u8-mblen.c: Likewise.
44879         * lib/unistr/u8-prev.c: Likewise.
44880         * lib/unistr/u8-strmblen.c: Likewise.
44881         * lib/unistr/u8-strmbtouc.c: Likewise.
44883 2010-11-13  Jim Meyering  <meyering@redhat.com>
44885         tests: avoid test failure on Solaris 10 due to lack of PATH export
44886         * tests/test-update-copyright.sh: Don't forget to export PATH.
44888         init.sh: ensure that IFS is defined, just in case...
44889         * tests/init.sh (setup_): Ensure that IFS is defined,
44890         so that saving and restoring it works as expected.  This
44891         appears to be useful at least for an old version of dash
44892         from a long time ago (RH 6).  See here for details:
44893         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
44895         maint.mk: tighten "test a == b" check
44896         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
44897         test to files that contain something like #!/bin/sh.
44898         Without this, coreutils would get two false positives in
44899         the comments of C source files.
44901 2010-11-12  Eric Blake  <eblake@redhat.com>
44903         bootstrap: fix typo in previous attempt
44904         * build-aux/bootstrap (buildreq): Correct the grouping.
44905         Reported by Paul Eggert.
44907         maintainer-makefile: prohibit test x == x
44908         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
44909         Based on a report by Matthias Bolte.
44911         bootstrap: allow FreeBSD gzip
44912         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
44913         which has no '.' and goes to stderr.
44914         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
44915         Reported by Matthias Bolte.
44917         maintainer-makefile: check for i18n setup
44918         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
44919         will likely work.
44921 2010-11-12  Bruno Haible  <bruno@clisp.org>
44923         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
44924         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
44925         * lib/nanosleep.c (nanosleep): Likewise.
44927 2010-11-11  Bruno Haible  <bruno@clisp.org>
44929         fcntl-h: Fix for use of C++ on glibc systems.
44930         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
44931         also on glibc systems in C++ mode.
44932         Reported by Gary V. Vaughan <gary@gnu.org>.
44934 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
44936         mknod: avoid false failure with dash
44937         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
44939 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
44941         unlink: Fix "is it should" typo in diagnostic.
44942         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
44943         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
44945 2010-11-11  Bruno Haible  <bruno@clisp.org>
44947         Tests for module 'strerror_r-posix'.
44948         * modules/strerror_r-posix-tests: New file.
44949         * tests/test-strerror_r.c: New file.
44950         * tests/test-string-c++.cc: Check the signature of strerror_r.
44952         New module 'strerror_r-posix'.
44953         * lib/string.in.h (strerror_r): New declaration.
44954         * lib/strerror_r.c: New file.
44955         * m4/strerror_r.m4: New file.
44956         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
44957         of strerror_r.
44958         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
44959         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
44960         * modules/strerror_r-posix: New file.
44961         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
44962         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
44963         * doc/posix-functions/strerror_r.texi: Mention the new module and the
44964         portability problems.
44966 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
44968         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
44969         line is also considered for output. Quoted function name in shell
44970         command, so temporary files for functions like MyClass::operator()
44971         are removed correctly without errors.
44973 2010-11-09  Bruno Haible  <bruno@clisp.org>
44975         * doc/posix-functions/strerror.texi: List more failing platforms.
44977         * doc/posix-functions/strerror.texi: Add a comment.
44979 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44981         fdopendir: fix bug on MacOS X when low on file descriptors
44983         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
44984         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
44985         All callers changed.
44986         (fdopendir): Invoke save_cwd at the top level, not after using
44987         multiple dup() calls to use up file descriptors.  Then retry
44988         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
44989         less than the maximum number of open file descriptors, because
44990         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
44991         on Mac OS X 10.6.4 for tar 1.24
44992         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
44993         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
44994         and for tar 1.25
44995         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
44997 2010-11-07  Bruno Haible  <bruno@clisp.org>
44999         vasnprintf: Support I flag on glibc systems.
45000         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
45001         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
45002         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
45003         snprintf function.
45004         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
45005         glibc systems.
45006         * tests/test-vasnprintf-posix3.c: New file.
45007         * modules/vasnprintf-posix-tests (Files): Add it.
45008         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
45010 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45012         [html] Fix copy/paste bug: Use unique name for compiler warnings.
45013         * MODULES.html.sh: For compiler warnings, use name
45014         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
45016 2010-11-05  Eric Blake  <eblake@redhat.com>
45018         ceil, floor: avoid spurious failure with icc
45019         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
45020         [denormals-as-zero] when optimizing without -mieee-fp option.
45021         * tests/test-floorf2.c (floorf_reference): Likewise.
45022         * tests/test-ceilf1.c (dummy): New function.
45023         (main): Use it to outsmart icc's optimization.
45024         * tests/test-floorf1.c (dummy, main): Likewise.
45026         tests: require working signbit
45027         * modules/ceilf-tests (Depends-on): Add signbit.
45028         * modules/ceill-tests (Depends-on): Likewise.
45029         * modules/floorf-tests (Depends-on): Likewise.
45030         * modules/floorl-tests (Depends-on): Likewise.
45031         * modules/round-tests (Depends-on): Likewise.
45032         * modules/roundf-tests (Depends-on): Likewise.
45033         * modules/roundl-tests (Depends-on): Likewise.
45034         * modules/trunc-tests (Depends-on): Likewise.
45035         * modules/truncf-tests (Depends-on): Likewise.
45036         * modules/truncl-tests (Depends-on): Likewise.
45038         strtod: work around icc bug
45039         * lib/strtod.c (minus_zero): Define to working value.
45040         (strtod): Use it to avoid icc bug.
45042         copysign: enhance tests
45043         * modules/copysign-tests (Files): Add minus-zero.h.
45044         * tests/test-copysign.c (main): Also test zeros.
45046 2010-11-04  Eric Blake  <eblake@redhat.com>
45048         ceil, floor, round, trunc: enhance tests of -0
45049         * tests/test-ceilf1.c (main): Ensure correct sign of result.
45050         * tests/test-ceill.c (main): Likewise.
45051         * tests/test-floorf1.c (main): Likewise.
45052         * tests/test-floorl.c (main): Likewise.
45053         * tests/test-round1.c (main): Likewise.
45054         * tests/test-roundf1.c (main): Likewise.
45055         * tests/test-roundl.c (main): Likewise.
45056         * tests/test-trunc1.c (main): Likewise.
45057         * tests/test-truncf1.c (main): Likewise.
45058         * tests/test-truncl.c (main): Likewise.
45060 2010-11-04  Eric Blake  <eblake@redhat.com>
45062         frexp, tests: work around ICC bug with -zero
45063         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
45064         works with more compilers.
45065         * tests/minus-zero.h: New file.
45066         * modules/ceilf-tests (Files): Include it.
45067         * modules/ceill-tests (Files): Likewise.
45068         * modules/floorf-tests (Files): Likewise.
45069         * modules/floorl-tests (Files): Likewise.
45070         * modules/frexp-nolibm-tests (Files): Likewise.
45071         * modules/frexp-tests (Files): Likewise.
45072         * modules/frexpl-nolibm-tests (Files): Likewise.
45073         * modules/frexpl-tests (Files): Likewise.
45074         * modules/isnan-tests (Files): Likewise.
45075         * modules/isnand-nolibm-tests (Files): Likewise.
45076         * modules/isnand-tests (Files): Likewise.
45077         * modules/isnanf-nolibm-tests (Files): Likewise.
45078         * modules/isnanf-tests (Files): Likewise.
45079         * modules/isnanl-nolibm-tests (Files): Likewise.
45080         * modules/isnanl-tests (Files): Likewise.
45081         * modules/round-tests (Files): Likewise.
45082         * modules/roundf-tests (Files): Likewise.
45083         * modules/roundl-tests (Files): Likewise.
45084         * modules/ldexpl-tests (Files): Likewise.
45085         * modules/signbit-tests (Files): Likewise.
45086         * modules/snprintf-posix-tests (Files): Likewise.
45087         * modules/sprintf-posix-tests (Files): Likewise.
45088         * modules/strtod-tests (Files): Likewise.
45089         * modules/trunc-tests (Files): Likewise.
45090         * modules/truncf-tests (Files): Likewise.
45091         * modules/truncl-tests (Files): Likewise.
45092         * modules/vsnprintf-posix-tests (Files): Likewise.
45093         * modules/vsprintf-posix-tests (Files): Likewise.
45094         * modules/vasnprintf-posix-tests (Files): Likewise.
45095         * modules/vasprintf-posix-tests (Files): Likewise.
45096         * tests/test-ceilf1.c (main): Use it.
45097         * tests/test-ceill.c (main): Likewise.
45098         * tests/test-floorf1.c (main): Likewise.
45099         * tests/test-floorl.c (main): Likewise.
45100         * tests/test-frexp.c (main): Likewise.
45101         * tests/test-frexpl.c (main): Likewise.
45102         * tests/test-isnan.c (main): Likewise.
45103         * tests/test-isnand.h (main): Likewise.
45104         * tests/test-isnanf.h (main): Likewise.
45105         * tests/test-isnanl.h (main): Likewise.
45106         * tests/test-ldexpl.c (main): Likewise.
45107         * tests/test-round.c (main): Likewise.
45108         * tests/test-roundf.c (main): Likewise.
45109         * tests/test-roundl.c (main): Likewise.
45110         * tests/test-signbit.c (test_signbitf, test_signbitd)
45111         (test_signbitl): Likewise.
45112         * tests/test-snprintf-posix.h (test_function): Likewise.
45113         * tests/test-sprintf-posix.h (test_function): Likewise.
45114         * tests/test-strtod.c (main): Likewise.
45115         * tests/test-trunc1.c (main): Likewise.
45116         * tests/test-truncf1.c (main): Likewise.
45117         * tests/test-truncl.c (main): Likewise.
45119         isnanl: work around icc bug
45120         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
45122 2010-11-03  Eric Blake  <eblake@redhat.com>
45124         tests: fix compiler warnings
45125         * tests/test-getopt.h (test_getopt): Fix condition.
45126         * tests/test-getopt_long.h (test_getopt_long): Likewise.
45127         * tests/test-pipe2.c (main): Likewise.
45128         * tests/test-quotearg-simple.c (main): Avoid icc warning.
45130         utimens: fix broken m4 test
45131         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
45133 2010-10-28  Bruno Haible  <bruno@clisp.org>
45135         posix_spawn*, getdtablesize: Relax license.
45136         * modules/posix_spawn (License): Change to LGPLv2+.
45137         * modules/posix_spawnp (License): Likewise.
45138         * modules/posix_spawn-internal (License): Likewise.
45139         * modules/posix_spawnattr_init (License): Likewise.
45140         * modules/posix_spawnattr_getflags (License): Likewise.
45141         * modules/posix_spawnattr_setflags (License): Likewise.
45142         * modules/posix_spawnattr_getpgroup (License): Likewise.
45143         * modules/posix_spawnattr_setpgroup (License): Likewise.
45144         * modules/posix_spawnattr_getschedparam (License): Likewise.
45145         * modules/posix_spawnattr_setschedparam (License): Likewise.
45146         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
45147         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
45148         * modules/posix_spawnattr_getsigdefault (License): Likewise.
45149         * modules/posix_spawnattr_setsigdefault (License): Likewise.
45150         * modules/posix_spawnattr_getsigmask (License): Likewise.
45151         * modules/posix_spawnattr_setsigmask (License): Likewise.
45152         * modules/posix_spawnattr_destroy (License): Likewise.
45153         * modules/posix_spawn_file_actions_init (License): Likewise.
45154         * modules/posix_spawn_file_actions_addclose (License): Likewise.
45155         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
45156         * modules/posix_spawn_file_actions_addopen (License): Likewise.
45157         * modules/posix_spawn_file_actions_destroy (License): Likewise.
45158         * modules/getdtablesize (License): Likewise.
45159         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
45161 2010-10-26  Bruno Haible  <bruno@clisp.org>
45163         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
45164         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
45165         Cygwin and mingw.
45166         Suggested by Eric Blake.
45168 2010-10-26  Bruno Haible  <bruno@clisp.org>
45170         stdio: Work around compilation error due to renameat() on Solaris 10.
45171         * lib/stdio.in.h: Include <unistd.h> on Solaris.
45172         * lib/renameat.c: Don't include <unistd.h> here.
45173         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
45174         Reported by Paul Eggert and Eric Blake.
45176 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
45178         renameat: port to Solaris 10, which declares renameat in unistd.h
45180         * lib/renameat.c: Include unistd.h before stdio.h, because
45181         Solaris 10 declares renameat in unistd.h.  Problem encountered
45182         when building GNU tar 1.24 on Solaris 10.
45184 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
45186         fdopendir: fix C89 compilation
45187         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
45188         compilers.
45190 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
45192         inttostr: simplify by removing unnecessary redundancy
45193         * lib/anytostr.c: Don't include verify.h.
45194         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
45195         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
45196         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
45197         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
45198         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
45199         Likewise.
45200         * modules/inttostr (Depends-on): Remove 'verify'.
45202 2010-10-23  Bruno Haible  <bruno@clisp.org>
45204         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
45205         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
45206         Reported by Eric Blake.
45208 2010-10-23  Bruno Haible  <bruno@clisp.org>
45210         Tests: Fix LOCALE_JA on MirBSD 10.
45211         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
45212         to an UTF-8 locale.
45213         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
45214         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45215         Reported by Eric Blake.
45217 2010-10-21  Bruno Haible  <bruno@clisp.org>
45219         nl_langinfo test: Avoid test failure on NetBSD 5.
45220         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
45221         Reported by Eric Blake.
45223 2010-10-21  Eric Blake  <eblake@redhat.com>
45225         c-stack: work around libsigsegv 2.8 bug
45226         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
45227         overflow on at least PowerPC64.
45229 2010-10-17  Bruno Haible  <bruno@clisp.org>
45231         userspec: Drop redundant file.
45232         * modules/userspec (Files): Remove lib/inttostr.h.
45234 2010-10-17  Bruno Haible  <bruno@clisp.org>
45236         nl_langinfo tests: Silence some warnings.
45237         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
45238         Reported by Jim Meyering.
45240 2010-10-17  Bruno Haible  <bruno@clisp.org>
45242         Make use of GCC's attribute __alloc_size__.
45243         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
45244         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
45245         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
45246         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
45247         __alloc_size__.
45248         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45249         Suggested by Jim Meyering.
45251 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
45253         bootstrap: anchor .gitignore entries.
45254         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
45255         with...
45256         (insert_vc_ignore): ... this new function, which prepends `/' to
45257         all .gitignore entries before passing them to
45258         insert_sorted_if_absent.
45260 2010-10-16  Bruno Haible  <bruno@clisp.org>
45262         nextafter: Fix configure check.
45263         * modules/nextafter (configure.ac): Correct expected prototype.
45265 2010-10-16  Bruno Haible  <bruno@clisp.org>
45267         termios: Update documentation.
45268         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
45270 2010-10-16  Bruno Haible  <bruno@clisp.org>
45272         tests: Make them compile with TinyCC.
45273         * tests/test-strstr.c (main): Remove parentheses around array
45274         initializer.
45276 2010-10-15  Eric Blake  <eblake@redhat.com>
45278         ignore-value: make header idempotent
45279         * lib/ignore-value.h: Add double-inclusion guards.
45280         Reported by Stefan Berger.
45282 2010-10-15  Jim Meyering  <meyering@redhat.com>
45284         GNUmakefile: handle "stable" target, not "major"
45285         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
45286         lists in maint.mk and announce-gen.  Without this, "make stable"
45287         would fail to ensure that $(VERSION) is up to date.
45289 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
45291         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
45292         & co.
45294 2010-10-14  Bruno Haible  <bruno@clisp.org>
45296         vasnprintf: Don't set errno to 0.
45297         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
45298         block that sets it to 0.
45299         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
45301 2010-10-14  Bruno Haible  <bruno@clisp.org>
45303         socketlib: Fix.
45304         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
45305         gl_PREREQ_SYS_H_WINSOCK2.
45306         Reported by Ian Beckwith <ianb@erislabs.net>.
45308 2010-10-13  Jim Meyering  <meyering@redhat.com>
45310         test-select-stdin.c: avoid warn_unused_result warnings
45311         * tests/test-select-stdin.c: Include "macros.h".
45312         ASSERT that read and fflush succeed.
45314 2010-10-13  Jim Meyering  <meyering@redhat.com>
45316         git-version-gen: do require git-VC'd files in cwd
45317         * build-aux/git-version-gen: Reject a git version string
45318         if there are no commits associated with the current directory.
45319         This avoids an unlikely false-positive (unrelated dir whose parent
45320         repository also contains a tag matching v*), as pointed out
45321         by Giuseppe Scrivano in
45322         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
45324 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
45326         argv-iter: omit nonconforming declaration
45327         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
45328         enum arg_iter_err declaration, which doesn't conform to C99.
45329         Solaris 10 cc warns about this.
45331 2010-10-13  Eric Blake  <eblake@redhat.com>
45333         termios: fix compilation on mingw
45334         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
45335         (gl_TERMIOS_H): Adjust it on mingw.
45336         * modules/termios (Makefile.am): Substitute new key.
45337         * lib/termios.in.h (includes): Make include_next conditional.
45338         * doc/posix-headers/termios.texi (termios.h): Update
45339         documentation.
45340         Reported by Daniel P. Berrange.
45342 2010-10-13  Jim Meyering  <meyering@redhat.com>
45344         git-version-gen: don't require that .git/ be in the current dir
45345         * build-aux/git-version-gen: Adjust this script so that it works
45346         when run from any working directory beneath the top-level .git/-
45347         containing directory.  Inspired by a patch from Giuseppe Scrivano,
45348         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
45350         test-select: avoid warn_unused_result warnings
45351         * tests/test-select.c: Include "macros.h".
45352         ASSERT that each call to read, write, and pipe succeeds.
45353         While not technically required, also check each "close".
45354         * modules/select-tests (Files): Add tests/macros.h.
45356         test-symlinkat: remove declaration of unused local
45357         * tests/test-symlinkat.c (main): Remove unused local, "buf".
45359         test-inttostr: avoid shadowing warnings
45360         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
45361         and use malloc rather than the stack for the same reason as
45362         mentioned in the comment justifying the other allocation.
45364 2010-10-11  Bruno Haible  <bruno@clisp.org>
45366         stdlib: Allow multiple gnulib generated replacements to coexist.
45367         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
45368         Reported by Sam Steingold <sds@gnu.org>.
45370 2010-10-11  Jim Meyering  <meyering@redhat.com>
45372         fix a documentation typo
45373         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
45375 2010-10-11  Eric Blake  <eblake@redhat.com>
45377         futimens: work around Solaris 11 bug
45378         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
45379         * tests/test-futimens.h (test_futimens): Enhance, rather than
45380         weaken test.
45381         * doc/posix-functions/futimens.texi (futimens): Document the bug.
45383 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45385         Indentation.
45386         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
45387         higher-level operators more to the left.
45389 2010-10-11  Jim Meyering  <meyering@redhat.com>
45391         test-futimens: avoid unwarranted test failure on Solaris 5.11
45392         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
45393         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
45394         because it tries to dereference the NULL name argument.
45396 2010-10-11  Bruno Haible  <bruno@clisp.org>
45398         Indentation.
45399         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
45400         indentation.
45402 2010-10-11  Jim Meyering  <meyering@redhat.com>
45404         spawn.in.h: make indentation consistent with parentheses
45405         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
45406         Make indentation consistent with parentheses.
45408 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
45410         Fix mismatched parens in previous commit
45411         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
45412         parens.
45414 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45416         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
45418         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
45419         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
45420         * lib/malloca.c: Include "verify.h".
45421         (verify1): Remove, replacing with a verify call.
45422         * lib/relocwrapper.c (verify1): Likewise.
45423         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
45424         Likewise.
45425         * modules/malloca (Depends-on): Add 'verify'.
45426         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
45427         * modules/vasnprintf (Depends-on): Add 'verify'.
45428         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45429         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45430         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45431         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45432         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45433         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45434         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45436         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
45438         Formerly the style was sometimes 2*X - 1, because the C standard
45439         was wrongly thought to disallow ?: in integral constant expressions.
45440         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
45441         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
45442         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
45443         * lib/stdint.in.h (_verify_intmax_size): Likewise.
45444         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
45445         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
45446         verify that time_t cannot be floating.
45448 2010-10-08  Eric Blake  <eblake@redhat.com>
45450         time: enforce recent POSIX ruling that time_t is integral
45451         * lib/time.in.h (__time_t_must_be_integral): Detect any
45452         problematic systems, allowing the rest of gnulib to assume POSIX.
45454 2010-10-08  Jim Meyering  <meyering@redhat.com>
45456         fdopendir: fix a bug on systems lacking openat and /proc support
45457         OpenBSD 4.7 is one such system.  The most noticeable effect was
45458         failure of any application making nontrivial use of fts: rm, du,
45459         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
45460           ./rm: traversal failed: `a': Bad file descriptor
45461         Debugging that, you see that even though FD 6 was closed just
45462         prior to the opendir call in fd_clone_opendir, its resulting
45463         dir->dd_fd was 8, rather than the expected value of 6:
45465         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
45466         93                close (fd);
45467         (gdb) n
45468         94                dir = fd_clone_opendir (dupfd);
45469         (gdb) n
45470         95                saved_errno = errno;
45471         (gdb) p dir->dd_fd
45472         $11 = 8
45474         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
45475         The problem is that on OpenBSD, fd_clone_opendir has to resort
45476         to using the old-style save/restore CWD mechanism, due to its
45477         lack of openat/proc support, and *that* would steal the FD (6)
45478         that opendir was supposed to use.
45480         The fix is to squirrel away the desired FD so that save_cwd uses a
45481         different one, and then free the dest FD right before calling opendir.
45482         That guarantees opendir will use the required file descriptor.
45484         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
45486 2010-10-08  Bruno Haible  <bruno@clisp.org>
45488         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
45489         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
45491 2010-10-08  Bruno Haible  <bruno@clisp.org>
45493         nanosleep: Make replacement POSIX compliant.
45494         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
45495         is out of range.
45496         Reported by Jim Meyering.
45498 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45500         bootstrap: add hook for altering gnulib.mk, for Bison
45501         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
45502         the Bison bootstrapping process can rewrite file names and variables
45503         in this file before later parts of 'bootstrap' use the file.
45504         Bison wants to include lib/gnulib.mk from the top-level makefile,
45505         so it needs the file names in this file to be relative to the top
45506         level, not relative to lib; plus it needs variable names to be
45507         rewritten.
45508         (slurp): Use the new function.
45510         bootstrap: reformat for readability
45511         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
45513 2010-10-08  Eric Blake  <eblake@redhat.com>
45515         docs: update cygwin progress
45516         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
45517         1.7.7.
45518         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
45519         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
45520         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
45521         * doc/posix-functions/carg.texi (carg): Likewise.
45522         * doc/posix-functions/cargf.texi (cargf): Likewise.
45523         * doc/posix-functions/casin.texi (casin): Likewise.
45524         * doc/posix-functions/casinf.texi (casinf): Likewise.
45525         * doc/posix-functions/casinh.texi (casinh): Likewise.
45526         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
45527         * doc/posix-functions/catan.texi (catan): Likewise.
45528         * doc/posix-functions/catanf.texi (catanf): Likewise.
45529         * doc/posix-functions/catanh.texi (catanh): Likewise.
45530         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
45531         * doc/posix-functions/ccos.texi (ccos): Likewise.
45532         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
45533         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
45534         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
45535         * doc/posix-functions/cexp.texi (cexp): Likewise.
45536         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
45537         * doc/posix-functions/cimag.texi (cimag): Likewise.
45538         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
45539         * doc/posix-functions/clog.texi (clog): Likewise.
45540         * doc/posix-functions/clogf.texi (clogf): Likewise.
45541         * doc/posix-functions/conj.texi (conj): Likewise.
45542         * doc/posix-functions/conjf.texi (conjf): Likewise.
45543         * doc/posix-functions/cpow.texi (cpow): Likewise.
45544         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
45545         * doc/posix-functions/cproj.texi (cproj): Likewise.
45546         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
45547         * doc/posix-functions/creal.texi (creal): Likewise.
45548         * doc/posix-functions/crealf.texi (crealf): Likewise.
45549         * doc/posix-functions/csin.texi (csin): Likewise.
45550         * doc/posix-functions/csinf.texi (csinf): Likewise.
45551         * doc/posix-functions/csinh.texi (csinh): Likewise.
45552         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
45553         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
45554         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
45555         * doc/posix-functions/ctan.texi (ctan): Likewise.
45556         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
45557         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
45558         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
45559         * doc/posix-headers/complex.texi (complex.h): Likewise.
45561 2010-10-07  Jim Meyering  <meyering@redhat.com>
45563         parse-datetime: avoid compilation failure on OpenBSD 4.7
45564         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
45565         This works around a compilation failure on OpenBSD 4.7:
45566         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
45568 2010-10-07  Eric Blake  <eblake@redhat.com>
45570         docs: update cygwin progress
45571         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
45572         1.7.6.
45573         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
45574         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
45575         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
45576         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
45577         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
45578         Likewise.
45579         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
45580         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
45581         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
45582         Likewise.
45583         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
45584         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
45585         Likewise.
45586         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
45587         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
45588         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
45589         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
45590         Likewise.
45591         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
45592         Likewise.
45593         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
45595         docs: update parse-datetime history
45596         * doc/parse-datetime.texi (Authors of parse_datetime): Better
45597         documentation of this function's history and alternatives.
45599         cygwin: use more robust version check
45600         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
45601         exclude an eventual cygwin 1.9.1.
45602         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
45603         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
45604         (gl_FUNC_STRCASESTR): Likewise.
45605         Reported by Bruno Haible.
45607 2010-10-06  Bruno Haible  <bruno@clisp.org>
45609         string, sys_select: Avoid #including large headers unless necessary.
45610         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
45611         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
45612         OSF/1, BeOS, Haiku.
45613         Reported by Jim Meyering.
45615 2010-10-05  Eric Blake  <eblake@redhat.com>
45617         memmem, strstr, strcasestr: fix bug with long periodic needle
45618         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
45619         periodic needle having false positive.
45620         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
45621         and cygwin 1.7.7.
45622         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
45623         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
45624         (gl_FUNC_STRCASESTR): Likewise.
45625         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
45626         * tests/test-memmem.c (main): Expose the bug.
45627         * tests/test-strcasestr.c (main): Likewise.
45628         * tests/test-strstr.c (main): Likewise.
45629         * tests/test-c-strcasestr.c (main): Likewise.
45630         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
45631         * doc/posix-functions/strstr.texi (strstr): Likewise.
45632         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45633         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
45635 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45637         parse-datetime: do some more renaming
45638         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
45639         parse_datetime, not get_date.  Mention the renaming.
45640         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
45641         in comments.
45642         * m4/bison.m4: Likewise.
45644 2010-10-05  Eric Blake  <eblake@redhat.com>
45646         parse-datetime: better name than get_date
45647         * NEWS: Reword the deprecation notice.
45648         * modules/get_date: Rename to modules/parse-datetime.
45649         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
45650         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
45651         * lib/get_date.y: Rename to lib/parse-datetime.y.
45652         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
45653         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
45654         * doc/getdate.texi: Provide fallback wrapper.
45655         * lib/getdate.h: Move guts, and wrap...
45656         * lib/parse-datetime.h: ...new file.
45657         * lib/parse-datetime.y (get_date): Rename...
45658         (parse_datetime): ...to this.
45659         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
45660         (gl_PARSE_DATETIME): ...to this.
45661         * doc/posix-functions/getdate.texi (get_date): Provide fallback
45662         documentation.
45663         * modules/getdate (Files): Provide fallback docs and header.
45664         (Notice, Depends-on): Update references.
45665         * tests/test-parse-datetime.c: Likewise.
45666         * DEPENDENCIES: Likewise.
45667         * MODULES.html.sh (Date and time <time.h>): Likewise.
45668         * doc/parse-datetime.texi (Date input formats)
45669         (Authors of parse_datetime): Likewise.
45670         * modules/parse-datetime (Files, configure.ac, Makefile.am)
45671         (Include): Likewise.
45672         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
45673         * gnulib-tool: Likewise.
45674         * m4/bison.m4 (gl_BISON): Likewise.
45675         Suggested by Bruno Haible.
45677 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45679         more ports to Solaris tr, which needs [] around ranges
45680         * gnulib-tool: Solaris tr needs [] around ranges.
45681         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
45682         * tests/test-pipe-filter-gi1.c (main): Likewise.
45683         * tests/test-pipe-filter-ii1.c (main): Likewise.
45685 2010-10-05  Eric Blake  <eblake@redhat.com>
45687         bootstrap: fix Solaris regression
45688         * build-aux/bootstrap (check_versions): Solaris tr still needs []
45689         around ranges.
45690         Reported by Pádraig Brady.
45692         bootstrap: work with pkg-config
45693         * build-aux/bootstrap (check_versions): Also transliterate - in
45694         prerequisite name.
45695         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
45696         prerequisites that were already found, to avoid confusion.
45697         Reported by Justin Clift.
45699         faccessat: remove unused wrappers
45700         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
45701         presence of these wrappers dragged in -lgen on Solaris.
45702         Reported by Clemens Brogi; fix suggested by Paul Eggert.
45704 2010-10-05  Jim Meyering  <meyering@redhat.com>
45706         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
45707         * Makefile (sc_pragma_columns): New syntax-check rule.
45709 2010-10-04  Bruno Haible  <bruno@clisp.org>
45711         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
45712         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
45713         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
45714         Reported by Bruce Korb and Eric Blake.
45716 2010-10-04  Bruno Haible  <bruno@clisp.org>
45718         threadlib: Make option --with-libpth-prefix work.
45719         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
45720         use $LIBPTH, not just -lpth.
45722 2010-10-04  Bruno Haible  <bruno@clisp.org>
45724         Avoid line length limitation from HP NonStop system header files.
45725         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
45726         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
45727         * lib/ctype.in.h: Likewise.
45728         * lib/dirent.in.h: Likewise.
45729         * lib/errno.in.h: Likewise.
45730         * lib/fcntl.in.h: Likewise.
45731         * lib/float.in.h: Likewise.
45732         * lib/getopt.in.h: Likewise.
45733         * lib/iconv.in.h: Likewise.
45734         * lib/inttypes.in.h: Likewise.
45735         * lib/langinfo.in.h: Likewise.
45736         * lib/locale.in.h: Likewise.
45737         * lib/math.in.h: Likewise.
45738         * lib/netdb.in.h: Likewise.
45739         * lib/netinet_in.in.h: Likewise.
45740         * lib/poll.in.h: Likewise.
45741         * lib/pthread.in.h: Likewise.
45742         * lib/pty.in.h: Likewise.
45743         * lib/sched.in.h: Likewise.
45744         * lib/se-selinux.in.h: Likewise.
45745         * lib/search.in.h: Likewise.
45746         * lib/signal.in.h: Likewise.
45747         * lib/spawn.in.h: Likewise.
45748         * lib/stdarg.in.h: Likewise.
45749         * lib/stddef.in.h: Likewise.
45750         * lib/stdint.in.h: Likewise.
45751         * lib/stdio.in.h: Likewise.
45752         * lib/stdlib.in.h: Likewise.
45753         * lib/string.in.h: Likewise.
45754         * lib/strings.in.h: Likewise.
45755         * lib/sys_file.in.h: Likewise.
45756         * lib/sys_ioctl.in.h: Likewise.
45757         * lib/sys_select.in.h: Likewise.
45758         * lib/sys_socket.in.h: Likewise.
45759         * lib/sys_stat.in.h: Likewise.
45760         * lib/sys_time.in.h: Likewise.
45761         * lib/sys_times.in.h: Likewise.
45762         * lib/sys_utsname.in.h: Likewise.
45763         * lib/sys_wait.in.h: Likewise.
45764         * lib/sysexits.in.h: Likewise.
45765         * lib/termios.in.h: Likewise.
45766         * lib/time.in.h: Likewise.
45767         * lib/unistd.in.h: Likewise.
45768         * lib/wchar.in.h: Likewise.
45769         * lib/wctype.in.h: Likewise.
45770         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
45771         * modules/ctype (Makefile.am): Likewise.
45772         * modules/dirent (Makefile.am): Likewise.
45773         * modules/errno (Makefile.am): Likewise.
45774         * modules/fcntl-h (Makefile.am): Likewise.
45775         * modules/float (Makefile.am): Likewise.
45776         * modules/getopt-posix (Makefile.am): Likewise.
45777         * modules/iconv-h (Makefile.am): Likewise.
45778         * modules/inttypes (Makefile.am): Likewise.
45779         * modules/langinfo (Makefile.am): Likewise.
45780         * modules/locale (Makefile.am): Likewise.
45781         * modules/math (Makefile.am): Likewise.
45782         * modules/netdb (Makefile.am): Likewise.
45783         * modules/netinet_in (Makefile.am): Likewise.
45784         * modules/poll-h (Makefile.am): Likewise.
45785         * modules/pthread (Makefile.am): Likewise.
45786         * modules/pty (Makefile.am): Likewise.
45787         * modules/sched (Makefile.am): Likewise.
45788         * modules/search (Makefile.am): Likewise.
45789         * modules/selinux-h (Makefile.am): Likewise.
45790         * modules/signal (Makefile.am): Likewise.
45791         * modules/spawn (Makefile.am): Likewise.
45792         * modules/stdarg (Makefile.am): Likewise.
45793         * modules/stddef (Makefile.am): Likewise.
45794         * modules/stdint (Makefile.am): Likewise.
45795         * modules/stdio (Makefile.am): Likewise.
45796         * modules/stdlib (Makefile.am): Likewise.
45797         * modules/string (Makefile.am): Likewise.
45798         * modules/strings (Makefile.am): Likewise.
45799         * modules/sys_file (Makefile.am): Likewise.
45800         * modules/sys_ioctl (Makefile.am): Likewise.
45801         * modules/sys_select (Makefile.am): Likewise.
45802         * modules/sys_socket (Makefile.am): Likewise.
45803         * modules/sys_stat (Makefile.am): Likewise.
45804         * modules/sys_time (Makefile.am): Likewise.
45805         * modules/sys_times (Makefile.am): Likewise.
45806         * modules/sys_utsname (Makefile.am): Likewise.
45807         * modules/sys_wait (Makefile.am): Likewise.
45808         * modules/sysexits (Makefile.am): Likewise.
45809         * modules/termios (Makefile.am): Likewise.
45810         * modules/time (Makefile.am): Likewise.
45811         * modules/unistd (Makefile.am): Likewise.
45812         * modules/wchar (Makefile.am): Likewise.
45813         * modules/wctype (Makefile.am): Likewise.
45815 2010-10-04  Bruno Haible  <bruno@clisp.org>
45817         read-file tests: Avoid a test failure on NonStop Kernel.
45818         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
45819         a regular file.
45820         Reported by Joachim Schmitz <schmitz@hp.com>.
45822 2010-10-03  Bruno Haible  <bruno@clisp.org>
45824         gnulib-tool: Fixes for --create-testdir with --libtool.
45825         * gnulib-tool (func_get_automake_snippet): Don't augment
45826         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
45827         an executable.
45828         (func_create_testdir): Handle module 'alloca' like func_import.
45829         Reported by Bruce Korb <bruce.korb@gmail.com>.
45831 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
45833         Avoid some lines longer than 80 characters.
45834         * lib/stdint.in.h: Break long comment lines.
45835         * lib/math.in.h: Likewise.
45836         (_GL_NUM_UINT_WORDS): New macro, for readability.
45837         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
45838         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
45839         * lib/stdlib.in.h: Likewise.
45840         * lib/spawn.in.h: Likewise.
45841         * lib/sys_socket.in.h: Update an URL.
45842         * lib/sys_stat.in.h: Break long line.
45844 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
45846         Improve pmccabe2html.
45847         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
45848         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
45849         when the sources change. Remove the line in the HTML about "Used
45850         ranges" (which implied that there might be other unused ranges),
45851         rename "Resume" to "Summary" (easier to understand for more users).
45852         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
45853         styles, and some unnecessary blank lines.
45855 2010-10-03  Bruno Haible  <bruno@clisp.org>
45856             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
45858         acl: Add support for ACLs on NonStop Kernel.
45859         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
45860         Check whether the function aclsort() exists.
45861         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
45862         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
45863         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45864         (acl_nontrivial [HAVE_ACLSORT]: New function.
45865         (file_has_acl): Implement for NonStop Kernel.
45866         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45867         (qset_acl): Implement for NonStop Kernel.
45868         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
45869         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45870         (main): Implement for NonStop Kernel.
45871         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
45872         Kernel. Handle this flavor.
45873         * tests/test-set-mode-acl.sh: Likewise.
45874         * tests/test-copy-acl.sh: Likewise.
45875         * tests/test-copy-file.sh: Likewise.
45877 2010-10-03  Bruno Haible  <bruno@clisp.org>
45879         Info about ACLs on NonStop Kernel.
45880         * doc/acl-resources.txt: Add info about NonStop Kernel.
45881         References by Joachim Schmitz <schmitz@hp.com>.
45883 2010-10-02  Bruno Haible  <bruno@clisp.org>
45885         Define missing EDQUOT on NonStop Kernel.
45886         * lib/errno.in.h (EDQUOT): Assign a value if missing.
45887         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
45888         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
45889         missing.
45890         * doc/posix-headers/errno.texi: Mention the NSK bug.
45891         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
45892         Reported by Joachim Schmitz <schmitz@hp.com>.
45894 2010-10-02  Bruno Haible  <bruno@clisp.org>
45896         Update doc for POSIX:2008.
45897         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
45898         Update URL of POSIX specification.
45900 2010-10-02  Bruno Haible  <bruno@clisp.org>
45902         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
45903         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
45904         from gnulib, not from Automake.
45906 2010-10-02  Bruno Haible  <bruno@clisp.org>
45908         New module 'system-posix'.
45909         * modules/system-posix: New file.
45910         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
45911         module is present.
45912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45913         GNULIB_SYSTEM_POSIX.
45914         * modules/stdlib (Depends-on): Remove sys_wait.
45915         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
45916         * doc/posix-functions/system.texi: Mention the new module.
45917         * doc/posix-headers/stdlib.texi: Likewise.
45918         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
45919         define test_sys_wait_macros to a no-op.
45920         Reported by Sam Steingold <sds@gnu.org>.
45922 2010-09-30  Bruno Haible  <bruno@clisp.org>
45924         More renaming from 'getdate' to 'get_date'.
45925         * doc/get_date.texi: Renamed from doc/getdate.texi.
45926         * modules/get_date (Files): Update.
45927         * MODULES.html.sh (Date and time <time.h>): Update.
45928         * DEPENDENCIES: Update.
45929         * gnulib-tool: Update comment.
45930         * m4/bison.m4 (gl_BISON): Likewise.
45931         * m4/get_date.m4 (gl_GET_DATE): Likewise.
45933 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
45935         bootstrap: support ACLOCAL_FLAGS during aclocal
45936         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
45937         can add additional -I dir for third-party .m4 files.
45939 2010-09-30  Eric Blake  <eblake@redhat.com>
45941         bootstrap: use glibtoolize on MacOS
45942         * build-aux/bootstrap (check_versions): Convert libtool into
45943         libtoolize.
45944         (tool search): Move libtool check earlier, and look for
45945         glibtoolize for MacOS.
45946         (gnulib_tool_options): Auto-add --libtool when appropriate.
45947         Reported by Justin Clift.
45949         poll: fix typo that broke test on MacOS
45950         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
45951         Reported by Justin Clift.
45953         getdate: rename to get_date
45954         Note: getdate.h is not renamed, to minimize client impact.
45955         * modules/getdate: Mark obsolete.  Move old contents...
45956         * modules/get_date: ...to new module name.
45957         * modules/getdate-tests: Move...
45958         * modules/get_date-tests: ...here.
45959         * m4/getdate.m4: Move...
45960         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
45961         * lib/getdate.y: Move...
45962         * lib/get_date.y: ...here.
45963         * tests/test-getdate.c: Move...
45964         * tests/test-get_date.c: ...here.
45965         * doc/posix-functions/getdate.texi (getdate): Update name.
45966         * NEWS: Mention the change.
45968 2010-09-29  Bruno Haible  <bruno@clisp.org>
45970         Separate the module 'waitpid' from the module 'sys_wait'.
45971         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
45972         present.
45973         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
45974         gl_MODULE_INDICATOR_FOR_TESTS.
45975         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
45976         * modules/sys_wait (Depends-on): Remove waitpid.
45977         (Makefile.am): Substitute GNULIB_WAITPID.
45978         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
45979         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
45980         signature only if the 'waitpid' module is present.
45981         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
45982         * NEWS: Mention the change.
45983         * modules/grantpt (Depends-on): Add waitpid.
45984         * modules/wait-process (Depends-on): Likewise.
45986 2010-09-29  Bruno Haible  <bruno@clisp.org>
45988         More tests for module 'sys_wait'.
45989         * modules/sys_wait-c++-tests: New file.
45990         * tests/test-sys_wait-c++.cc: New file.
45991         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
45992         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
45994 2010-09-29  Bruno Haible  <bruno@clisp.org>
45996         New module 'waitpid'.
45997         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
45998         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
45999         Don't include <process.h>.
46000         (waitpid): Declare only, using modern idiom.
46001         * m4/waitpid.m4: New file.
46002         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
46003         * modules/waitpid: New file.
46004         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
46005         (Makefile.am): Update.
46006         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46008 2010-09-28  Bruno Haible  <bruno@clisp.org>
46010         poll: Assume ANSI C.
46011         * lib/poll.c (poll): Use an ANSI C declaration.
46013 2010-09-28  Bruno Haible  <bruno@clisp.org>
46015         poll-h: Create poll.h on all platforms.
46016         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
46017         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
46018         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
46019         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
46020         (gl_REPLACE_POLL_H): Don't set POLL_H.
46021         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
46022         * modules/poll-h (Depends-on): Add include_next.
46023         (Makefile.am): Create poll.h unconditionally. Substitute also
46024         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
46026 2010-09-28  Bruno Haible  <bruno@clisp.org>
46028         Tests for module 'poll-h'.
46029         * modules/poll-h-c++-tests: New file.
46030         * tests/test-poll-h-c++.cc: New file.
46032         Tests for module 'poll-h'.
46033         * modules/poll-h-tests: New file.
46034         * tests/test-poll-h.c: New file.
46036 2010-09-28  Bruno Haible  <bruno@clisp.org>
46038         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
46039         * modules/poll-h (Depends-on): Add 'extensions'.
46041 2010-09-28  Bruno Haible  <bruno@clisp.org>
46043         New module 'poll-h'.
46044         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
46045         (poll): Use modern idiom.
46046         * modules/poll-h: New file.
46047         * modules/poll (Files): Remove lib/poll.in.h.
46048         (Depends-on): Add poll-h.
46049         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
46050         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
46051         * m4/poll_h.m4: New file.
46052         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
46053         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
46054         and invoke gl_REPLACE_POLL_H.
46055         * lib/poll.c: Use common idiom.
46056         * tests/test-poll.c: Likewise.
46057         * doc/posix-headers/poll.texi: Mention the poll-h module.
46058         Suggested by Eric Blake.
46060 2010-09-26  Bruno Haible  <bruno@clisp.org>
46062         sys_wait: Implement WSTOPSIG.
46063         * lib/sys_wait.in.h (WSTOPSIG): New macro.
46064         Reported by Simon Josefsson.
46066 2010-09-26  Simon Josefsson  <simon@josefsson.org>
46068         stdlib, sys_wait: Avoid compilation error on mingw.
46069         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
46071 2010-09-26  Bruno Haible  <bruno@clisp.org>
46073         stdlib tests: Avoid code duplication.
46074         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
46075         * modules/sys_wait-tests (Files): Likewise.
46076         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
46077         * tests/test-stdlib.c: Include test-sys_wait.h.
46078         (main): Invoke test_sys_wait_macros.
46079         * tests/test-sys_wait.c: Include test-sys_wait.h.
46080         (main): Invoke test_sys_wait_macros.
46082 2010-09-25  Simon Josefsson  <simon@josefsson.org>
46084         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
46085         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
46086         sure Windows sockets are working before calling getaddrinfo.
46087         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
46088         * doc/gnulib.texi (Windows sockets): Fix typo.
46090 2010-09-25  Bruno Haible  <bruno@clisp.org>
46092         Tests for module 'regex-quote'.
46093         * modules/regex-quote-tests: New file.
46094         * tests/test-regex-quote.c: New file.
46096         New module 'regex-quote'.
46097         * lib/regex-quote.h: New file.
46098         * lib/regex-quote.c: New file.
46099         * modules/regex-quote: New file.
46100         Suggested by Reuben Thomas <rrt@sc3d.org>.
46102 2010-09-24  Bruno Haible  <bruno@clisp.org>
46104         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
46105         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
46107 2010-09-23  Bruno Haible  <bruno@clisp.org>
46109         setenv: Relax license.
46110         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
46111         Blake.
46112         Requested by Eric Blake.
46114 2010-09-22  Bruno Haible  <bruno@clisp.org>
46116         termios: Relax license.
46117         * modules/termios (License): Change to LGPLv2+.
46118         Requested by Eric Blake.
46120 2010-09-22  Bruno Haible  <bruno@clisp.org>
46122         threadlib: Allow the package to change the default to 'no'.
46123         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
46124         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
46125         Reported by Paul Eggert.
46127 2010-09-22  Pádraig Brady  <P@draigbrady.com>
46128             Bruno Haible  <bruno@clisp.org>
46130         Fix endless loop in mbmemcasecoll.
46131         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
46132         byte.
46133         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
46135 2010-09-22  Bruno Haible  <bruno@clisp.org>
46137         Tests for module 'memcoll'.
46138         * modules/memcoll-tests: New file.
46139         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
46141         memcoll, xmemcoll: Clarify size vs. length.
46142         * modules/memcoll.c (memcoll0): Clarify specification.
46143         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
46144         passed to collate_error.
46146 2010-09-22  Bruno Haible  <bruno@clisp.org>
46148         Tests for module 'memcasecmp'.
46149         * modules/memcasecmp-tests: New file.
46150         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
46152 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46154         * lib/pthread.in.h: Add split double-inclusion guard, and include
46155         system <pthread.h> if there is one.  Use @@-style as in other
46156         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
46157         pthread.h doesn't.
46158         (pthread_mutexattr_destroy, pthread_mutexattr_init):
46159         (pthread_mutexattr_settype, pthread_mutex_trylock):
46160         New static inline functions, if there's no system <pthread.h>.
46161         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
46162         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
46163         Approximate with mutexes if the system lacks spinlocks, as in
46164         MacOS.
46165         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
46166         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
46167         @@-style.  Check for spinlocks separately.
46168         (gl_PTHREAD_DEFAULTS): New macro.
46169         * modules/pthread: Redo to use a more typical style for in.h files.
46171 2010-09-21  Eric Blake  <eblake@redhat.com>
46173         net_if: enhance tests
46174         * tests/test-net_if.c (main): Move signature checks earlier.
46175         Print failures to stderr.
46176         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
46177         Document the bug that we do not yet fix.
46179 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
46181         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
46182         about gnulib, not GSS.
46184 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
46186         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
46187         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
46188         for Emacs.
46189         * build-aux/pmccabe2html: Make Makefile.am example code more
46190         cut-and-paste friendly.
46192 2010-09-21  Simon Josefsson  <simon@josefsson.org>
46194         * tests/test-net_if.c: New file.
46195         * modules/net_if-tests: New file.
46197 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46199         pthread: add pthread_spin_destroy
46200         * lib/pthread.in.h (pthread_spin_destroy): New function.
46202 2010-09-19  Bruno Haible  <bruno@clisp.org>
46204         gnulib-tool: Fix --help output.
46205         * gnulib-tool (func_usage): Fix help message.
46206         Reported by Reuben Thomas <rrt@sc3d.org>.
46208 2010-09-18  Jim Meyering  <meyering@redhat.com>
46210         maint.mk: avoid unexpanded \n in two diagnostics
46211         * top/maint.mk (sc_prohibit_always_true_header_tests):
46212         Don't use a literal \n in a halt=... assignment.  It would not be
46213         expanded, and the two \n bytes would appear in the diagnostic output
46214         rather than the desired newline.  Use halt=$$(printf ... instead.
46215         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
46217 2010-09-18  Bruno Haible  <bruno@clisp.org>
46219         netinet_in: Doc tweak.
46220         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
46221         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46223 2010-09-18  Jim Meyering  <meyering@redhat.com>
46225         init.sh: correct an outdated comment
46226         * tests/init.sh (create_exe_shims_):  s/function/alias/
46228         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
46229         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
46230         a file named "*.exe" is removed between the glob expansion and the
46231         processing of that oddly named file.
46233 2010-09-17  Eric Blake  <eblake@redhat.com>
46235         mirbsd: add some more support
46236         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
46237         in BSD family.
46238         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
46239         devices as OpenBSD.
46240         * m4/host-os.m4 (mirbsd): Add MirBSD.
46242         tests: fix unportable assumption on sys/wait.h
46243         * tests/test-sys_wait.c (main): Relax test.
46244         * tests/test-stdlib.c (main): Likewise.
46246         init.sh: accommodate directory with no .exes
46247         * tests/init.sh: Accomodate directory containing only scripts.
46249         tests: avoid compiler warning
46250         * tests/test-stdlib.c (main): Use the variable.
46252         fdutimens, fdutimensat: update signature, again
46253         * lib/utimens.h (gl_futimens): Delete, and move signature...
46254         (fdutimens): ...here.
46255         (fdutimensat): Rearrange signature.
46256         (lutimensat): Rename variable for clarity.
46257         * lib/fdutimensat.c (fdutimensat): Update signature.
46258         * lib/utimens.c (fdutimens): Likewise.
46259         (gl_futimens): Delete.
46260         (utimens, lutimens): Update callers.
46261         * lib/futimens.c (futimens): Likewise.
46262         * tests/test-fdutimensat.c: Likewise.
46263         * tests/test-utimens.c: Likewise.
46264         * tests/test-futimens.h: Update comment.
46265         * NEWS: Mention this.
46266         Suggested by Paul Eggert.
46268 2010-09-17  Bruno Haible  <bruno@clisp.org>
46270         Take over the maintenance of some older macros from Autoconf.
46271         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
46272         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
46273         GNU Autoconf.
46274         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
46275         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
46277 2010-09-17  Eric Blake  <eblake@redhat.com>
46279         fdutimensat: drop atflag validation
46280         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
46281         with valid fd, to close a race scenario where futimens is
46282         unsupported and FILE was replaced by a symlink.
46283         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
46284         accordingly.
46285         Suggested by Paul Eggert.
46287 2010-09-16  Bruno Haible  <bruno@clisp.org>
46289         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
46290         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
46292 2010-09-16  Bruno Haible  <bruno@clisp.org>
46294         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
46295         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
46296         login_tty exists.
46297         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46299 2010-09-16  Bruno Haible  <bruno@clisp.org>
46301         login_tty: Make the replacement code work on BSD systems.
46302         * lib/login_tty.c: Include <sys/ioctl.h>.
46303         (login_tty): Use ioctl TIOCSCTTY when available.
46304         * modules/login_tty (Depends-on): Add sys_ioctl.
46305         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46307 2010-09-16  Bruno Haible  <bruno@clisp.org>
46309         login_tty: Stricter unit test.
46310         * modules/login_tty-tests (Depends-on): Add tcgetsid.
46311         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
46312         and tcgetsid() after login_tty.
46313         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46315 2010-09-16  Bruno Haible  <bruno@clisp.org>
46317         New module 'tcgetsid'.
46318         * lib/tcgetsid.c: New file.
46319         * m4/tcgetsid.m4: New file.
46320         * modules/tcgetsid: New file.
46321         * modules/termios (Depends-on): Add c++defs, warn-on-use.
46322         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
46323         GNULIB_TCGETSID, HAVE_TCGETSID.
46324         * lib/termios.in.h: Include <sys/types.h>.
46325         (tcgetsid): New declaration.
46326         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
46327         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
46328         * doc/posix-functions/tcgetsid.texi: Mention the new module.
46329         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
46331 2010-09-16  Bruno Haible  <bruno@clisp.org>
46333         Tests for module 'termios'.
46334         * modules/termios-c++-tests: New file.
46335         * modules/termios-tests: New file.
46336         * tests/test-termios-c++.cc: New file.
46337         * tests/test-termios.c: New file.
46339         New module 'termios'.
46340         * modules/termios: New file.
46341         * lib/termios.in.h: New file.
46342         * m4/termios_h.m4: New file.
46343         * doc/posix-headers/termios.texi: Mention the new module.
46345 2010-09-16  Eric Blake  <eblake@redhat.com>
46347         fdutimensat: add an atflag parameter
46348         * lib/fdutimensat.c (fdutimensat): Add new parameter.
46349         * lib/utimens.h (fdutimensat): Update prototype.
46350         * tests/test-fdutimensat.c: Adjust test to match.
46351         * NEWS: Document the change.
46352         Suggested by Paul Eggert.
46354 2010-09-16  Bruno Haible  <bruno@clisp.org>
46356         Fix typos in comments.
46357         * lib/striconveh.h: Fix typo in comment.
46358         * lib/login_tty.c (login_tty): Likewise.
46360 2010-09-15  Bruno Haible  <bruno@clisp.org>
46362         stdlib: clarify MirBSD WEXITSTATUS bug
46363         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
46364         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46366 2010-09-15  Eric Blake  <eblake@redhat.com>
46368         stdlib: work around MirBSD WEXITSTATUS bug
46369         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
46370         * modules/stdlib (Depends-on): Add sys_wait.
46371         * tests/test-sys_wait.c (main): Enhance test.
46372         * tests/test-stdlib.c (main): Likewise.
46373         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
46375         docs: mention MacOS issue with WEXITSTATUS(constant)
46376         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
46377         issue.
46378         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46380         strnlen: add tests
46381         * modules/strnlen-tests: New file.
46382         * tests/test-strnlen.c: Likewise.
46384 2010-09-14  Bruno Haible  <bruno@clisp.org>
46386         unistr/base: Avoid link errors when module 'libunistring' is also used.
46387         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
46388         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
46389         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
46390         Declare also when HAVE_LIBUNISTRING is set.
46391         Reported by Pádraig Brady <P@draigbrady.com>.
46393 2010-09-14  Eric Blake  <eblake@redhat.com>
46395         test-rawmemchr: make more robust
46396         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
46397         (Depends-on, configure.ac): Add needed prerequisites to use it.
46398         * modules/memchr-tests (Files, Depends-on, configure.ac):
46399         Likewise, to avoid implicit reliance on memchr module prereqs.
46400         * tests/test-memchr.c (main): Ensure proper masking.
46401         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
46402         reads.
46404         memchr: detect glibc Alpha bug
46405         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
46406         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
46407         Alpha.
46408         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
46409         * tests/test-memchr.c (main): Enhance test.
46410         Reported by Nelson H. F. Beebe.
46412 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46414         fts, getcwd, glob: audit for dirfd returning -1
46415         * lib/fts.c (opendir): Remove #define; no longer used.
46416         (opendirat): New arg PDIR_FD.  All callers changed.
46417         (fts_build, _opendir2): Use new opendirat to avoid the need for
46418         dirfd, or for checking whether dirfd returns a negative value.
46419         Don't use opendir; always use openat followed by fdopendir.
46420         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
46421         it.
46422         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
46423         returns -1 here.
46424         * modules/fts (Depends-on): Remove dirfd.
46425         * modules/getcwd (Depends-on): Likewise.
46427 2010-09-13  Eric Blake  <eblake@redhat.com>
46429         float: fix broken MirBSD header
46430         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
46431         * doc/posix-headers/float.texi (float.h): Document it.
46433 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46435         fts: use O_NOFOLLOW to avoid race condition when opening a directory
46436         * lib/fts.c (opendirat): New arg extra_flags.
46437         (__opendir2): Use it to avoid following symlinks when opening
46438         a directory, if symlinks are not supposed to be followed.  See
46439         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
46441         fdopendir: preserve argument fd before returning
46442         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
46443         (fdopendir_with_dup, fd_clone_opendir): New static functions.
46444         (fdopendir): Use them, arranging for FD to be open to the same
46445         directory that it was when it started.  (It might be temporarily
46446         closed while fdopendir is running, so this not thread- or
46447         signal-safe.)  Be careful to do the right thing even when file
46448         descriptors are scarce and dup fails with errno == EMFILE.  See
46449         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
46451 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
46453         regex: Pass the system regex if its only problem is 32-bit regoff_t.
46454         * NEWS: Document change.
46455         * m4/regex.m4: Disable test for regoff_t size.
46457 2010-09-13  Jim Meyering  <meyering@redhat.com>
46459         fts: don't operate on an invalid file descriptor after failed dup
46460         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
46461         negative file descriptor.
46463 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
46465         savedir: add streamsavedir, deprecate fdsavedir
46466         * NEWS: Mention deprecation of fdsavedir.
46467         * lib/savedir.c (streamsavedir): New extern function, whose name
46468         ends in "savedir" to be consistent with the others.  This differs
46469         from savedirstream in that it doesn't close its argument.  The
46470         next version of GNU tar will use this instead of fdsavedir, to
46471         avoid some race conditions and conserve file descriptors.
46472         (savedirstream): Reimplement as a wrapper around streamsavedir.
46473         (fdsavedir): Add a comment deprecating this function.  As far as
46474         I know, only GNU tar used it, and GNU tar doesn't need it any more.
46475         * lib/savedir.h (streamsavedir): New decl.
46476         (fdsavedir): Add a comment deprecating this.
46478 2010-09-10  Bruno Haible  <bruno@clisp.org>
46480         langinfo: Fix last commit.
46481         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
46482         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
46483         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46485 2010-09-10  Bruno Haible  <bruno@clisp.org>
46487         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
46488         * lib/progreloc.c (O_EXEC): Define fallback.
46490 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
46492         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
46493         * NEWS: Document recent changes to fcntl-h.
46494         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
46495         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
46496         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
46497         Similarly for O_SEARCH; this last was already true, but not documented.
46498         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
46499         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
46500         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
46501         Likewise.
46502         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
46503         is zero, not whether it is defined.
46504         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
46505         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
46506         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
46508 2010-09-10  Bruno Haible  <bruno@clisp.org>
46510         langinfo, nl_langinfo: Fix for IRIX 5.3.
46511         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
46512         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
46513         HAVE_LANGINFO_YESEXPR.
46514         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
46515         HAVE_LANGINFO_YESEXPR.
46516         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
46517         HAVE_LANGINFO_T_FMT_AMPM is 0.
46518         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
46519         HAVE_LANGINFO_YESEXPR is 0.
46520         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
46521         NOEXPR.
46522         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
46523         * doc/posix-functions/nl_langinfo.texi: Likewise.
46524         Reported by Eric Blake.
46526 2010-09-10  Bruno Haible  <bruno@clisp.org>
46528         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
46529         * doc/glibc-functions/login_tty.texi: Mention the include file problem
46530         on FreeBSD 8.0 and OpenBSD 4.6.
46531         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
46532         * m4/pty_h.m4 (gl_PTY_H): Likewise.
46533         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
46534         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
46535         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
46536         ac_includes_default.
46537         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46539 2010-09-09  Eric Blake  <eblake@redhat.com>
46541         strsignal: work around NetBSD bug
46542         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
46543         * lib/string.in.h (includes): Likewise.
46544         * doc/posix-functions/strsignal.texi (strsignal): Document the
46545         bug.
46546         Reported by Nelson H. F. Beebe.
46548         gnulib-tool: work with NetBSD /bin/sh
46549         * gnulib-tool (func_cache_var, func_cache_lookup_module)
46550         (func_get_description, func_get_comment, func_get_status)
46551         (func_get_notice, func_get_applicability, func_get_filelist)
46552         (func_get_dependencies, func_get_autoconf_early_snippet)
46553         (func_get_autoconf_snippet, func_get_automake_snippet)
46554         (func_get_include_directive, func_get_link_directive)
46555         (func_get_license, func_get_maintainer, func_import): Avoid
46556         shell syntax errors from parsing syntax extensions.
46558 2010-09-09  Bruno Haible  <bruno@clisp.org>
46560         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
46561         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
46562         a reliable way to determine whether the 'alias' command works.
46564 2010-09-08  Jim Meyering  <meyering@redhat.com>
46566         init.sh: penalize a set-x-impaired shell; don't disqualify it
46567         * tests/init.sh: Too many shells corrupt application stderr when
46568         you set -x, so we can't afford to disqualify them, since at least
46569         on Irix-6.5, that would disqualify all bourne shells.
46570         Instead, use a two-pass approach.
46571         On the first pass, try to find a shell that meets the stricter
46572         condition that set -x does not corrupt stderr.
46573         If no shell meets the stricter condition, retest each candidate
46574         shell, but without that extra condition.  Finally, when
46575         VERBOSE=yes is requested and set -x might cause trouble, simply
46576         issue a warning and refrain from enabling debug output.
46578 2010-09-08  Eric Blake  <eblake@redhat.com>
46580         unsetenv: fix OpenBSD bug
46581         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
46582         * doc/posix-functions/unsetenv.texi (unsetenv): Update
46583         documentation.
46584         Reported by Jim Meyering.
46586         strtod: work around IRIX 6.5 bug
46587         * lib/strtod.c (strtod): Reparse number on shorter string if
46588         exponent parse was invalid.
46589         * tests/test-strtod.c (main): Add check for "0x1p 2".
46590         Reported by Tom G. Christensen.
46592         getopt: optimize previous patch
46593         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
46594         empty variable.  Speed up awk script.
46595         Reported by Paolo Bonzini.
46597 2010-09-08  Jim Meyering  <meyering@redhat.com>
46599         test.sh: disqualify shells for which set -x corrupts stderr
46600         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
46601         and OpenBSD 4.7.  They make it so with "set -x", environment settings
46602         appear in stderr output.  For example, this command:
46603             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
46604         prints "P=1" on those two systems:
46606 2010-09-08  Bruno Haible  <bruno@clisp.org>
46608         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
46609         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
46610         commands, because some shells ignore redirections when there is an
46611         error in the command lookup.
46612         Reported by Eric Blake.
46614 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
46616         * lib/regex.h: Fix a mention of `regex_compile' (should be
46617         `re_compile_pattern').
46618         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
46619         (re_set_registers): Correct name of parameter in comment.
46621         * doc/regex.texi: Add documentation for missing syntax flags.
46622         Remove commented-out documentation of defunct syntax option
46623         RE_NO_EMPTY_ALTS.
46624         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
46625         Add documentation of re_set_registers.
46626         Document trick to re-use a pattern buffer by setting fastmap manually.
46627         Update documentation of struct re_pattern_buffer per public members.
46628         Uncomment documentation of equivalence class operators and
46629         collating symbol operators, since they are now implemented,
46630         Explain leftmost-longest matching in relation to alternatives.
46631         Tidy documentation of substring matching.
46632         Remove POSIX documentation, which is done better in
46633         glibc, and refer the reader there. Keep BSD API documentation, as
46634         that is not readily available elsewhere.
46636 2010-09-07  Eric Blake  <eblake@redhat.com>
46638         getopt: handle POSIXLY_CORRECT set but not exported
46639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
46640         export state of POSIXLY_CORRECT, due to bash set -o posix.
46641         Reported by Dustin J. Mitchell.
46643 2010-09-05  Bruno Haible  <bruno@clisp.org>
46645         gnulib-tool: Highlight the changed options.
46646         * gnulib-tool (func_usage): Display the --import, --add-import,
46647         --remove-import explanations in bold font.
46649 2010-09-06  Karl Berry  <karl@gnu.org>
46651         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
46653 2010-09-05  Bruno Haible  <bruno@clisp.org>
46655         uniwidth/width: Update comment.
46656         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
46657         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
46659 2010-09-05  Bruno Haible  <bruno@clisp.org>
46661         isinf, isnan: Relax license.
46662         * modules/isinf (License): Change from GPL to LGPL, with consent from
46663         Ben Pfaff.
46664         * modules/isnan (License): Likewise.
46665         Requested by Ludovic Courtès.
46667 2010-09-04  Bruno Haible  <bruno@clisp.org>
46669         gnulib-tool: Help migration from --import to --add-import or --update.
46670         * gnulib-tool: Emit a verbose error message when --import is used
46671         without any module name.
46673 2010-09-04  Bruno Haible  <bruno@clisp.org>
46675         Update doc about gnulib-tool.
46676         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
46677         'gnulib-tool --update' in more detail.
46678         Reported by Eric Blake.
46680 2010-09-04  Bruno Haible  <bruno@clisp.org>
46682         gnulib-tool: Change --import. New options --add/remove-import.
46683         * gnulib-tool: New options --add-import, --remove-import.
46684         (func_usage): Document them.
46685         (have_associative): Define always.
46686         (func_import): In import mode, don't merge the specified settings with
46687         the cached settings. Implement remove-import mode.
46688         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
46689         Explain when to use them versus --import.
46690         (Simple update): Use --add-import instead of --import.
46691         * NEWS: Mention the change.
46693 2010-09-04  Bruno Haible  <bruno@clisp.org>
46695         * doc/gnulib-tool.texi (Initial import): Update paragraph about
46696         separate gnulib.mk.
46698 2010-09-04  Bruno Haible  <bruno@clisp.org>
46700         gnulib-tool: Don't talk about CVS any more.
46701         * gnulib-tool (func_usage, func_import): Write "version control"
46702         instead of CVS.
46704 2010-09-04  Jim Meyering  <meyering@redhat.com>
46706         maint.mk: avoid obscure sc_copyright_check failure in coreutils
46707         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
46708         false positives (whose names may be ill-chosen) when searching
46709         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
46710         would cause a false-positive.
46712         avoid coreutils "make distcheck" failure
46713         Coreutils tests with an absolute build directory name that contains
46714         a space.  Not quoting this directory name caused a failure.
46715         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
46716         * tests/test-vc-list-files-cvs.sh: Likewise.
46718 2010-09-04  Bruno Haible  <bruno@clisp.org>
46720         gnulib-tool: Avoid error when run in a package without Makefile.am.
46721         * gnulib-tool: When collecting the m4dirs in a package that does not
46722         have a Makefile.am, eliminate those directories that contain no
46723         gnulib-cache.m4. Fix expression that counts these directories.
46725 2010-09-04  Bruno Haible  <bruno@clisp.org>
46727         update-copyright test: Improve output when perl is missing or too old.
46728         * tests/test-update-copyright.sh: Move test of Perl version down after
46729         the test whether Perl exists. Provide an explanation relating Perl's
46730         error message to Automake's SKIP: message.
46732 2010-09-04  Bruno Haible  <bruno@clisp.org>
46734         Don't augment PATH in TESTS_ENVIRONMENT.
46735         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
46736         set abs_aux_dir instead of augmenting PATH.
46737         * modules/vc-list-files-tests (Makefile.am): Likewise.
46738         * tests/test-update-copyright.sh: Augment PATH here.
46739         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
46740         path_prepend_.
46741         * tests/test-vc-list-files-git.sh: Likewise.
46743 2010-09-04  Jim Meyering  <meyering@redhat.com>
46745         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
46746         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
46748 2010-09-04  Bruno Haible  <bruno@clisp.org>
46750         strdup: Fix compilation error in C++ mode.
46751         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
46752         the macro.
46754 2010-09-04  Bruno Haible  <bruno@clisp.org>
46756         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
46757         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
46758         macro into a function.
46759         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46761 2010-09-04  Bruno Haible  <bruno@clisp.org>
46763         Set PATH_SEPARATOR the same way autoconf does.
46764         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
46765         the value of PATH_SEPARATOR the same way autoconf-generated configure
46766         scripts do.
46767         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
46768         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
46770 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46772         Set PATH_SEPARATOR the same way autoconf does.
46773         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
46774         the same way autoconf-generated configure scripts do.
46775         * posix-modules: Likewise.
46777 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46779         hash: fix safe_hasher const typo
46780         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
46781         const; otherwise, there is a type error later.
46783 2010-09-02  Jim Meyering  <meyering@redhat.com>
46785         test-update-copyright.sh: require perl 5.8.0
46786         * tests/test-update-copyright.sh: Require 5.8.0,
46787         which Tom G. Christensen has confirmed is adequate,
46788         while 5.6.1 is not.
46790 2010-09-02  Eric Blake  <eblake@redhat.com>
46792         tests: init.sh improvements for re-exec'ing with zsh
46793         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
46794         -vx through shell re-exec.
46795         Reported by Tom G. Christensen.
46797         wctype: fix typo in previous commit
46798         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
46799         Reported by Ludovic Courtès.
46801 2010-09-02  Jim Meyering  <meyering@redhat.com>
46803         test-update-copyright.sh: skip test if Perl is too old
46804         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
46805         Reported by Tom G. Christensen.
46807 2010-09-02  Bruno Haible  <bruno@clisp.org>
46809         wctype: Avoid compilation error on IRIX 6.5.30.
46810         * lib/wctype.in.h (iswblank): Declare with a replacement if
46811         REPLACE_ISWBLANK is set.
46812         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
46813         declared. Set REPLACE_ISWBLANK.
46814         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
46815         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
46816         * doc/posix-headers/wctype.texi: Likewise.
46817         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46819 2010-09-01  Bruno Haible  <bruno@clisp.org>
46821         New module 'socketlib'.
46822         * modules/socketlib: New file.
46823         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
46824         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
46825         * modules/sockets (Depends-on): Add socketlib.
46826         Suggested by Sam Steingold <sds@gnu.org>.
46828 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46830         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
46832         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
46833         when one needs search access to a directory but not read access.
46834         On systems where it is available, it works in some cases where
46835         O_RDONLY does not, namely on directories that are searchable but
46836         not readable, and which need only to be searchable.  If O_SEARCH
46837         is not available, fall back to the traditional method of using
46838         O_RDONLY.
46840         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
46841         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
46842         when opening a directory that needs only to be searchable.
46843         * lib/chdir-safer.c (chdir_no_follow): Likewise.
46844         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
46845         * lib/openat-proc.c (openat_proc_name): Likewise.
46846         * lib/openat.c (openat_needs_fchdir): Likewise.
46847         * lib/save-cwd.c (save_cwd): Likewise.
46848         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
46850 2010-08-28  Bruno Haible  <bruno@clisp.org>
46852         New module 'host-cpu-c-abi'.
46853         * modules/host-cpu-c-abi: New file.
46854         * m4/host-cpu-c-abi.m4: New file, based on part of
46855         clisp/src/m4/general.m4.
46856         Requested by Sam Steingold <sds@gnu.org>.
46858 2010-08-31  Eric Blake  <eblake@redhat.com>
46859         and Jim Meyering  <meyering@redhat.com>
46861         hash: factor, and guard against misbehaving hasher function
46862         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
46863         of table->hasher's return value.  Also protect against a hash value
46864         so large that adding it to table->bucket results in a NULL pointer.
46865         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
46866         Use it in place of open-coded check-and-abort.
46868 2010-08-30  Bruno Haible  <bruno@clisp.org>
46870         hash: silence spurious clang warning
46871         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
46872         Reported by Eric Blake.
46874 2010-08-30  Eric Blake  <eblake@redhat.com>
46876         strstr, memmem, strcasestr: avoid leaked shell message
46877         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
46878         FreeBSD.
46879         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46880         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46882         tests: silence clang warning
46883         * tests/test-malloca.c (do_allocation): Avoid dead store.
46885 2010-08-29  Bruno Haible  <bruno@clisp.org>
46887         gettext: Fix recent mistake.
46888         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
46890 2010-08-29  Bruno Haible  <bruno@clisp.org>
46892         selinux-h: Offer a --without-selinux option.
46893         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
46894         --without-selinux was specified, skip all tests and define
46895         HAVE_SELINUX_SELINUX_H to 0.
46896         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
46897         set LIB_SELINUX to empty.
46898         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
46899         gl_LIBSELINUX. If --without-selinux was specified, replace
46900         selinux/context.h.
46901         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
46903 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46904             Bruno Haible  <bruno@clisp.org>
46906         Make the module 'realloc-gnu' work again on AIX and OSF/1.
46907         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
46908         of HAVE_REALLOC.
46909         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
46910         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
46911         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
46912         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
46914 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46915             Bruno Haible  <bruno@clisp.org>
46917         Make the module 'calloc-gnu' work again on AIX and OSF/1.
46918         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
46919         HAVE_CALLOC.
46920         * lib/xmalloc.c: Update accordingly.
46921         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
46922         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
46923         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
46925 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46926             Bruno Haible  <bruno@clisp.org>
46928         Make the module 'malloc-gnu' work again on AIX and OSF/1.
46929         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
46930         HAVE_MALLOC.
46931         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
46932         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
46933         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
46935 2010-08-29  Bruno Haible  <bruno@clisp.org>
46937         Update modules list.
46938         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46939         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
46940         (String handling <string.h>): Add astrxfrm.
46941         (File system functions): Add readlinkat.
46943 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46945         Tests for module 'realloc-gnu'.
46946         * modules/realloc-gnu-tests: New file.
46947         * tests/test-realloc-gnu.c: New file.
46949         Tests for module 'calloc-gnu'.
46950         * modules/calloc-gnu-tests: New file.
46951         * tests/test-calloc-gnu.c: New file.
46953         Tests for module 'malloc-gnu'.
46954         * modules/malloc-gnu-tests: New file.
46955         * tests/test-malloc-gnu.c: New file.
46957 2010-08-28  Bruno Haible  <bruno@clisp.org>
46959         Rename module 'realloc' -> 'realloc-gnu'.
46960         * modules/realloc-gnu: New file, copied from modules/realloc.
46961         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
46962         obsolete.
46963         * modules/mgetgroups (Depends-on): Update.
46964         * doc/posix-functions/realloc.texi: Update.
46965         * NEWS: Mention the change.
46967         Rename module 'calloc' -> 'calloc-gnu'.
46968         * modules/calloc-gnu: New file, copied from modules/calloc.
46969         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
46970         obsolete.
46971         * doc/posix-functions/calloc.texi: Update.
46972         * NEWS: Mention the change.
46974         Rename module 'malloc' -> 'malloc-gnu'.
46975         * modules/malloc-gnu: New file, copied from modules/malloc.
46976         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
46977         obsolete.
46978         * modules/argp (Depends-on): Update.
46979         * modules/regex (Depends-on): Update.
46980         * doc/posix-functions/malloc.texi: Update.
46981         * NEWS: Mention the change.
46983 2010-08-28  Eric Blake  <eblake@redhat.com>
46985         pread, pwrite: add missing dependency
46986         * modules/pread (Depends-on): Add extensions.
46987         * modules/pwrite (Depends-on): Likewise.
46989 2010-08-28  Bruno Haible  <bruno@clisp.org>
46991         unistr/u*-strchr: Fix tests dependencies.
46992         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
46993         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
46994         Reported by Ian Beckwith <ianb@erislabs.net>.
46996 2010-08-28  Bruno Haible  <bruno@clisp.org>
46998         read-file: Don't occupy too much unused memory.
46999         * lib/read-file.c (fread_file): Shrink the buffer at the end.
47001 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
47002             Eric Blake  <eblake@redhat.com>
47003             Bruno Haible  <bruno@clisp.org>
47005         read-file: Avoid memory reallocations with regular files.
47006         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
47007         (fread_file): With regular files, use the remaining length as the
47008         initial buffer size.  Check against overflow.
47009         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
47010         sys_stat.
47012 2010-08-28  Bruno Haible  <bruno@clisp.org>
47014         ftello: Relax license.
47015         * modules/ftello (License): Relax to LGPLv2+.
47016         Reported by Eric Blake.
47018 2010-08-28  Bruno Haible  <bruno@clisp.org>
47020         Avoid relocwrapper link errors due to gnulib replacement functions.
47021         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
47022         function.
47023         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47025 2010-08-28  Bruno Haible  <bruno@clisp.org>
47027         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
47028         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
47029         defined.
47030         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
47031         Suggested by Eric Blake.
47033 2010-08-28  Bruno Haible  <bruno@clisp.org>
47035         sys_socket, netdb: Ensure socklen_t gets defined.
47036         * modules/sys_socket (Depends-on): Add socklen.
47037         * modules/netdb (Depends-on): Likewise.
47038         * modules/getaddrinfo (Depends-on): Remove socklen.
47039         * modules/getsockopt (Depends-on): Likewise.
47040         * modules/setsockopt (Depends-on): Likewise.
47041         * tests/test-sys_socket.c: Check that socklen_t is defined.
47042         * tests/test-netdb.c: Likewise.
47043         * m4/socklen.m4: Update comments.
47044         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47046 2010-08-27  Eric Blake  <eblake@redhat.com>
47048         login_tty: add missing dependency
47049         * modules/login_tty (Depends-on): Add pty.
47051 2010-08-26  Eric Blake  <eblake@redhat.com>
47053         lib-symbol-versions: fix m4 quoting
47054         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
47055         format for AC_LINK_IFELSE.
47057         glob: fix compile test
47058         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
47060         btowc: fix missing file
47061         * modules/btowc (Files): Also ship locale-fr.m4.
47063         lseek: fix link test
47064         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
47065         AC_LINK_IFELSE.
47067         include_next: silence autoconf 2.68 warning
47068         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
47069         AC_COMPILE_IFELSE as special.
47070         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
47071         autoconf < 2.68.
47073         acl: fix compilation test
47074         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
47075         AC_COMPILE_IFELSE.
47077 2010-08-26  Bruno Haible  <bruno@clisp.org>
47079         Modernize AC_TRY_RUN invocations.
47080         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
47081         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
47082         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
47083         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
47084         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
47085         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
47086         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
47087         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47088         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
47089         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47090         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
47091         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47092         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
47093         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47094         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
47095         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
47096         gl_MBRLEN_NUL_RETVAL): Likewise.
47097         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47098         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47099         Likewise.
47100         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47101         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
47102         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
47103         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
47104         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
47105         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
47106         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
47107         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
47108         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
47109         Likewise.
47110         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47111         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
47112         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47113         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47114         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47115         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
47116         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
47117         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
47118         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47119         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47121 2010-08-26  Bruno Haible  <bruno@clisp.org>
47123         Modernize AC_TRY_LINK invocations.
47124         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
47125         AC_TRY_LINK.
47126         * m4/argp.m4 (gl_ARGP): Likewise.
47127         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
47128         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
47129         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47130         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47131         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47132         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
47133         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
47134         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
47135         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47136         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47137         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47138         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
47139         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
47140         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
47141         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47142         * m4/hostent.m4 (gl_HOSTENT): Likewise.
47143         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47144         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
47145         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47146         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
47147         Likewise.
47148         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
47149         Likewise.
47150         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
47151         Likewise.
47152         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47153         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
47154         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
47155         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
47156         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
47157         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
47158         * m4/servent.m4 (gl_SERVENT): Likewise.
47159         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
47160         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
47161         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
47162         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
47163         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47164         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47165         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47166         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47167         * modules/tsearch-tests (configure.ac): Likewise.
47169 2010-08-26  Bruno Haible  <bruno@clisp.org>
47171         Modernize AC_TRY_COMPILE invocations.
47172         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
47173         AC_TRY_COMPILE.
47174         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
47175         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
47176         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47177         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47178         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47179         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47180         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47181         * m4/lock.m4 (gl_LOCK): Likewise.
47182         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
47183         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47184         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
47185         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
47186         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47187         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
47188         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47189         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
47190         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47191         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47192         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47193         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47194         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
47195         extraneous semicolon.
47197 2010-08-26  Jim Meyering  <meyering@redhat.com>
47199         stat-time: relax license LGPL
47200         * modules/stat-time (License): Change from GPL to LGPL,
47201         with consent from all contributors, for use in libguile.
47202         Requested by Ludovic Courtès.
47204 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
47206         poll: return immediately on POLLHUP.
47207         * lib/poll.c (poll): Always set timeout before wait_timeout is
47208         computed.
47210 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47212         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
47213         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
47214         rmdir ("dir/.//"), unlinkat.
47216 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47218         stdbool: avoid spurious failure with modern xlc
47219         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
47221 2010-08-24  Bruno Haible  <bruno@clisp.org>
47223         getloadavg: simplify code
47224         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
47225         gl_have_func. Update comments.
47227 2010-08-24  Eric Blake  <eblake@redhat.com>
47229         getloadavg: don't define SVR4 on cygwin
47230         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
47231         only define SVR4 when -lkvm is required.
47232         Reported by Yaakov Selkowitz.
47234 2010-08-24  Bruno Haible  <bruno@clisp.org>
47236         priv-set: fix comment
47237         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
47239 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47241         priv-set: fix comments
47242         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
47243         to match code, as suggested by David Bartley in:
47244         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
47246 2010-08-23  Eric Blake  <eblake@redhat.com>
47248         stdbool: avoid rejecting clang
47249         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
47250         * tests/test-stdbool.c: Enable more tests if using the system
47251         <stdbool.h> instead of the gnulib replacement.
47252         (main): Move xlc bug test to a runtime test for all compilers.
47253         Reported by Anders Kaseorg.
47255         argz: fix shell quoting issue
47256         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
47257         Reported by Charles Wilson.
47259 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
47260             Erik Faye-Lund <kusmabite@gmail.com>
47262         poll, select: handle ERROR_BROKEN_PIPE.
47263         * lib/poll.c (win32_compute_revents): Return POLLHUP when
47264         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
47265         * lib/select.c (win32_compute_revents): Do not mark a pipe
47266         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
47268 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
47270         fts: allow compilation with C++
47271         * lib/fts_.h: Specify extern "C" linkage with C++.
47273 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47275         Fix gnulib-tool sed script de-commentation for AIX sed.
47276         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
47277         sed.
47279 2010-08-17  Eric Blake  <eblake@redhat.com>
47281         test-stddef: test for (some) offsetof bugs
47282         * tests/test-stddef.c: Enhance test to ensure correct type of
47283         offsetof.
47284         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
47285         that we are not fixing at this time.
47287 2010-08-15  Bruno Haible  <bruno@clisp.org>
47289         stpncpy: Allow stpncpy to be defined as a macro.
47290         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
47291         if it's already correctly declared.
47292         * lib/string.in.h (stpncpy): Undefine before redefining.
47293         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
47295 2010-08-14  Bruno Haible  <bruno@clisp.org>
47297         Rename module 'memxfrm' to 'amemxfrm'.
47298         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
47299         (amemxfrm): Renamed from memxfrm.
47300         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
47301         (amemxfrm): Renamed from memxfrm.
47302         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
47303         * NEWS: Mention the change.
47304         * MODULES.html.sh (String handling <string.h>): Update.
47305         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
47306         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
47307         * lib/unicase/u16-casexfrm.c: Likewise.
47308         * lib/unicase/u32-casexfrm.c: Likewise.
47309         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
47310         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
47311         * lib/uninorm/u16-normxfrm.c: Likewise.
47312         * lib/uninorm/u32-normxfrm.c: Likewise.
47313         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
47314         memxfrm.
47315         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
47316         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
47317         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
47318         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
47319         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
47320         Suggested by Paul Eggert.
47322 2010-08-14  Bruno Haible  <bruno@clisp.org>
47324         Tests for module 'astrxfrm'.
47325         * modules/astrxfrm-tests: New file.
47326         * tests/test-astrxfrm.c: New file.
47328         New module 'astrxfrm'.
47329         * lib/astrxfrm.h: New file.
47330         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
47331         * modules/astrxfrm: New file.
47333 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
47335         regex: Tweak doc.
47336         * doc/regex.texi (Overview): Don't mention regex.c.
47337         (GNU Regular Expression Compiling): Likewise.
47338         (Match-end-of-line Operator): Mention 'not_eol'.
47340 2010-08-14  Brian Gough  <bjg@gnu.org>
47341             Bruno Haible  <bruno@clisp.org>
47343         git-merge-changelog: add doc relating to use with bzr and hg.
47344         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
47346 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
47348         pthread: fix pthread.h creation for srcdir != builddir
47349         * modules/pthread (Makefile.am): Fix the rule to work also in a
47350         non-srcdir build.
47352 2010-08-13  Karl Berry  <karl@gnu.org>
47354         * doc/regex.texi (Predefined Syntaxes): @smallexample.
47355         * doc/posix-*/*: force line break before @url of POSIX
47356         specifications.
47357         Suggested by Werner Lemberg.
47359 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47361         strtod: fix const diagnostic
47362         * lib/strtod.c (strtod): Don't assign const char * to char *,
47363         as this elicits a warning from GCC when warnings are enabled.
47365 2010-08-10  Pádraig Brady  <P@draigbrady.com>
47366         and Eric Blake  <eblake@redhat.com>
47368         copy-acl: ignore ENOTSUP on HP-UX
47369         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
47370         so that it is available for HP-UX.
47371         * lib/copy-acl.c (qcopy_acl): Use it.
47372         Reported by Patrick M. Callahan.
47374 2010-08-10  Eric Blake  <eblake@redhat.com>
47376         open, chown: relax license
47377         * modules/open (License): Change to LGPLv2+, with consent by all
47378         authors, for use in augeas.
47379         * modules/chown (License): Likewise.
47380         * modules/lchown (Likewise): Likewise.
47381         Requested by Adam Stokes.
47383 2010-08-09  Karl Berry  <karl@gnu.org>
47385         * build-aux/ar-lib: new file, import from Automake.
47386         * config/srclist.txt: autocheck for updates.
47388 2010-08-09  Eric Blake  <eblake@redhat.com>
47390         readlinkat: adjust client modules
47391         * modules/areadlinkat (Depends-on): Use readlinkat, not
47392         symlinkat.
47393         * modules/areadlinkat-with-size (Depends-on): Likewise.
47395         mknod: be more vocal about danger of running tests as root
47396         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
47397         root, since that is just asking for problems.
47398         Suggested by Bruno Haible, based on a report by Rainer Tammer.
47400         readlinkat: split into its own module
47401         * modules/symlinkat: Split readlinkat...
47402         * modules/readlinkat: ...into separate module.
47403         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
47404         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
47405         * lib/symlinkat.c (readlinkat): Move...
47406         * lib/readlinkat.c: ...into new file.
47407         * modules/symlinkat-tests: Split readlinkat test...
47408         * modules/readlinkat-tests: ...into separate module.
47409         * tests/test-symlinkat.c: Split...
47410         * tests/test-readlinkat.c: ...into new file.
47411         * NEWS: Document the split.
47412         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
47413         * lib/unistd.in.h (readlinkat): Likewise.
47414         Suggested by Bruno Haible.
47416 2010-08-08  Bruno Haible  <bruno@clisp.org>
47418         memxfrm: Speed up.
47419         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
47420         that usually only one call to strxfrm is necessary for each string
47421         part.
47422         Reported by Paul Eggert <eggert@cs.ucla.edu>.
47424 2010-08-07  Karl Berry  <karl@gnu.org>
47426         * doc/posix-headers/limits.texi,
47427         * doc/posix-functions/malloc.texi,
47428         * doc/posix-functions/strsignal.texi: missing @item.
47429         * doc/ld-version-script.texi: spurious leading i.
47430         * doc/regex.texi (Interval Operators): no commas inside @var.
47432 2010-08-01  Bruno Haible  <bruno@clisp.org>
47434         Integrate the regex documentation.
47435         * doc/gnulib.texi: Define 'cn' index.
47436         (Regular expressions): New a chapter that includes regex.texi and
47437         regexprops-generic.texi.
47438         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
47439         syntax.
47441         Whitespace cleanup.
47442         * doc/regex.texi: Remove trailing spaces.
47444         Add regex documentation.
47445         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
47446         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
47447         Written by Kathy A. Hargreaves and Karl Berry.
47449 2010-08-01  Bruno Haible  <bruno@clisp.org>
47451         link: Update documentation.
47452         * doc/posix-functions/link.texi: Update regarding Solaris.
47454 2010-07-31  Bruno Haible  <bruno@clisp.org>
47456         Update modules list.
47457         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
47458         (String handling <string.h>): Add memcmp2, memxfrm.
47459         (Container data structures): Add xlist, xsublist, xoset.
47460         (Core language properties): Add alignof, unused-parameter.
47461         (Process control, Numeric conversion functions <stdlib.h>): Renamed
47462         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
47463         (Unibyte characters <ctype.h>): New section.
47464         (String handling <string.h>): New section.
47465         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
47466         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
47467         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
47468         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
47469         tan, tanh, tanl, y0, y1, yn.
47470         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
47471         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
47472         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
47473         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
47474         unlockpt, vdprintf, vdprintf-posix.
47475         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
47476         (File system functions): Add concat-filename, sys_file, sys_ioctl,
47477         xconcat-filename.
47478         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
47479         getdtablesize, pipe2, pipe2-safer.
47480         (Security): New section.
47481         (Networking functions): Add accept4.
47482         (Signal handling): Add sigpipe.
47483         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
47484         mbmemcasecoll.
47485         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
47486         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
47487         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
47488         pipe-filter-ii.
47489         (Misc): Add argp-version-etc, login_tty, parse-duration.
47491 2010-07-31  Bruno Haible  <bruno@clisp.org>
47493         Improve doc in MODULES.html.
47494         * modules/linkat (Description): Add the word "function".
47495         * modules/mkfifo (Description): Likewise.
47496         * modules/mknod (Description): Likewise.
47497         * modules/remove (Description): Likewise.
47498         * modules/renameat (Description): Likewise.
47499         * modules/stat (Description): Likewise.
47500         * modules/symlink (Description): Likewise.
47501         * modules/unlink (Description): Likewise.
47503 2010-07-31  Bruno Haible  <bruno@clisp.org>
47505         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
47506         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
47507         option --enable/disable-c++ instead of --enable/disable-cxx.
47508         * NEWS: Mention the change.
47510 2010-07-31  Bruno Haible  <bruno@clisp.org>
47512         readlink, areadlink: Relax test a bit.
47513         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
47514         alternative to ENOTDIR.
47515         * tests/test-areadlink.h (test_areadlink): Likewise.
47516         Reported by Rainer Tammer.
47518 2010-07-31  Bruno Haible  <bruno@clisp.org>
47520         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
47521         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
47522         character, perform the search using U_STRCHR.
47523         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
47524         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
47525         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
47526         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
47527         Suggested by Paolo Bonzini.
47529 2010-07-31  Bruno Haible  <bruno@clisp.org>
47531         unistr/u*-strstr: Fix dependencies.
47532         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
47533         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
47534         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
47536 2010-07-31  Bruno Haible  <bruno@clisp.org>
47538         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
47539         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
47540         the beginning of the loop.
47541         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
47542         cases in 'switch' statement.
47544         unistr/u8-strchr: Fix several bugs.
47545         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
47546         the string. When not found, return NULL, not a pointer near the end.
47548         More tests for unistr/u8-strchr.
47549         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
47550         that the function does not read past the first occurrence of the byte
47551         being searched.
47552         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
47553         * tests/unistr/test-u16-strchr.c (main): New function.
47554         * tests/unistr/test-u32-strchr.c (main): New function.
47556 2010-07-31  Bruno Haible  <bruno@clisp.org>
47558         posix-modules: Ignore backup files of documentation files.
47559         * posix-modules: grep only through files named *.texi.
47561 2010-07-31  Bruno Haible  <bruno@clisp.org>
47563         symlinkat: Fix documentation.
47564         * doc/posix-functions/readlinkat.texi: Fix module name.
47566 2010-07-31  Bruno Haible  <bruno@clisp.org>
47568         fchownat: Replace also when chown has the trailing slash bug.
47569         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
47570         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
47571         introduced on 2010-04-10.
47572         Reported by Rainer Tammer.
47574 2010-07-31  Bruno Haible  <bruno@clisp.org>
47576         linkat: Work around AIX 7.1 bug.
47577         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
47578         whether linkat handles trailing slash correctly. If not, replace linkat
47579         and define LINKAT_TRAILING_SLASH_BUG.
47580         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
47581         check whether (fd1,file1) points to a directory if file1 or file2 ends
47582         in a slash. Code taken from lib/link.c.
47583         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
47584         Reported by Rainer Tammer.
47586 2010-07-31  Bruno Haible  <bruno@clisp.org>
47588         Correctly determine whether pow is available in libc on AIX 7 with xlc.
47589         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
47590         This disables an xlc optimization that was causing wrong test results.
47591         Reported by Rainer Tammer.
47593 2010-07-31  Bruno Haible  <bruno@clisp.org>
47595         iconv: Work around AIX 6.1..7.1 bug.
47596         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
47597         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
47598         cross-compiling, guess no on all versions of AIX.
47599         Reported by Rainer Tammer.
47601 2010-07-31  Bruno Haible  <bruno@clisp.org>
47603         readlink: Relax test a bit.
47604         * tests/test-readlink.h (test_readlink): Allow different errno value
47605         when readlink is called with a file name that ends in / and refers to
47606         a file.
47607         Suggested by Eric Blake.
47608         Reported by Rainer Tammer.
47610 2010-07-31  Bruno Haible  <bruno@clisp.org>
47612         copysign: Does not require -lm on glibc systems.
47613         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
47614         gl_COMMON_DOUBLE_MATHFUNC.
47615         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
47617 2010-07-31  Bruno Haible  <bruno@clisp.org>
47619         duplocale: Work around AIX 7.1 bug.
47620         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
47621         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
47622         * lib/duplocale.c (rpl_duplocale): Update comment.
47623         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
47624         Reported by Rainer Tammer.
47626 2010-07-30  Bruno Haible  <bruno@clisp.org>
47628         dirfd: Avoid link error on AIX 7.1.
47629         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
47630         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
47631         exist, set REPLACE_DIRFD.
47632         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
47633         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
47634         * doc/posix-functions/dirfd.texi: Update.
47635         Reported by Rainer Tammer.
47637 2010-07-30  Eric Blake  <eblake@redhat.com>
47639         strtod: next round of AIX fixes
47640         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
47641         exponent.
47642         * tests/test-strtod.c (main): Enhance tests.
47643         * doc/posix-functions/strtod.texi (strtod): Document next bug.
47644         Reported by Rainer Tammer.
47646         futimens: fix configure check
47647         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
47648         Reported by Bruno Haible.
47650 2010-07-30  Bruno Haible  <bruno@clisp.org>
47652         getline: Update regarding AIX.
47653         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
47654         Reported by Rainer Tammer.
47656 2010-07-30  Bruno Haible  <bruno@clisp.org>
47658         wcwidth: Drop replacement on AIX 7.
47659         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
47660         AIX 7.
47661         Reported by Rainer Tammer.
47663 2010-07-30  Bruno Haible  <bruno@clisp.org>
47665         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
47666         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
47667         a 'char *'.
47668         Reported by Rainer Tammer.
47670 2010-07-30  Bruno Haible  <bruno@clisp.org>
47672         unlink: Update regarding AIX.
47673         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
47674         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
47675         Reported by Rainer Tammer.
47677 2010-07-30  Bruno Haible  <bruno@clisp.org>
47679         symlink: Update regarding AIX.
47680         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
47681         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
47682         Reported by Rainer Tammer.
47684 2010-07-30  Bruno Haible  <bruno@clisp.org>
47686         strndup: Update regarding AIX.
47687         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
47688         AIX 7.
47689         Reported by Rainer Tammer.
47691 2010-07-30  Bruno Haible  <bruno@clisp.org>
47693         stat: Update regarding AIX.
47694         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
47695         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
47696         Reported by Rainer Tammer.
47698 2010-07-30  Bruno Haible  <bruno@clisp.org>
47700         truncl: Fix autoconf test.
47701         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
47702         whether truncl works.
47703         Reported by Rainer Tammer.
47705 2010-07-30  Bruno Haible  <bruno@clisp.org>
47707         round: Update regarding AIX.
47708         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
47709         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
47710         Reported by Rainer Tammer.
47712 2010-07-30  Bruno Haible  <bruno@clisp.org>
47714         rename: Update regarding AIX.
47715         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
47716         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
47717         Reported by Rainer Tammer.
47719 2010-07-30  Bruno Haible  <bruno@clisp.org>
47721         printf.m4: Update regarding AIX.
47722         * m4/printf.m4: Update comments regarding AIX.
47723         Reported by Rainer Tammer.
47725 2010-07-30  Bruno Haible  <bruno@clisp.org>
47727         iconv: Update regarding AIX.
47728         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
47729         AIX 7.
47730         Reported by Rainer Tammer.
47732 2010-07-30  Bruno Haible  <bruno@clisp.org>
47734         getopt: Update regarding AIX.
47735         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
47736         no on AIX.
47737         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
47738         Reported by Rainer Tammer.
47740 2010-07-30  Bruno Haible  <bruno@clisp.org>
47742         ldexpl; Update regarding AIX.
47743         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
47744         on AIX 7.
47745         Reported by Rainer Tammer.
47747 2010-07-30  Bruno Haible  <bruno@clisp.org>
47749         frexpl: Update regarding AIX.
47750         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
47751         on AIX 7.
47752         Reported by Rainer Tammer.
47754 2010-07-30  Bruno Haible  <bruno@clisp.org>
47756         open, fopen: Update regarding AIX.
47757         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
47758         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
47759         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
47760         * doc/posix-functions/fopen.texi: Likewise.
47761         Reported by Rainer Tammer.
47763 2010-07-30  Bruno Haible  <bruno@clisp.org>
47765         chown: Update doc regarding AIX.
47766         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
47767         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
47768         Reported by Rainer Tammer.
47770 2010-07-30  Eric Blake  <eblake@redhat.com>
47772         strtod: fix bug in replacement function on AIX
47773         * lib/strtod.c (strtod): Special case broken "0x" parse in
47774         underlying strtod.
47775         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
47776         * doc/posix-functions/strtod.texi (strtod): Likewise.
47777         Reported by Rainer Tammer.
47779 2010-07-30  Bruno Haible  <bruno@clisp.org>
47781         mbrlen: Fix cross-compilation guess for AIX.
47782         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
47783         guess. Leftover from 2008-12-22.
47785 2010-07-30  Bruno Haible  <bruno@clisp.org>
47787         mbrtowc: Fix cross-compilation guess for AIX.
47788         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
47789         guess. Leftover from 2008-12-21.
47791 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
47793         init.sh: work around trap limitation of some shells
47794         * tests/init.sh (setup_): Move exit trap outside of shell function.
47796 2010-07-29  Eric Blake  <eblake@redhat.com>
47798         strtod: aid debugging
47799         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
47800         understanding why strtod is rejected.
47802 2010-07-28  Bruno Haible  <bruno@clisp.org>
47804         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
47805         * lib/unistr/u8-chr.c: Include <string.h>.
47806         * tests/unistr/test-u8-chr.c: Likewise.
47807         * tests/unistr/test-u16-chr.c: Likewise.
47808         * tests/unistr/test-u32-chr.c: Likewise.
47809         * tests/unistr/test-u8-strchr.c: Likewise.
47810         * tests/unistr/test-u16-strchr.c: Likewise.
47811         * tests/unistr/test-u32-strchr.c: Likewise.
47812         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
47813         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
47814         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
47815         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
47817 2010-07-28  Bruno Haible  <bruno@clisp.org>
47819         Use spaces for indentation, not tabs.
47820         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
47822 2010-07-27  Bruno Haible  <bruno@clisp.org>
47824         mbspcasecmp: Fix function specification.
47825         * lib/string.in.h (mbspcasecmp): Fix specification comment.
47826         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
47827         Reported by Eric Blake <eblake@redhat.com>.
47829 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
47831         timespec: use cast and not conditional, as truncation isn't possible
47832         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
47833         instead of a conditional.  Comment about the situation in more detail.
47834         This undoes most of the 2009-10-29 patch.
47836 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
47838         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
47839         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
47840         * lib/unistr/u8-strchr.c: Likewise.
47841         * modules/unistr/u8-chr: Depend on memchr.
47843         unistr/u*-strchr: add tests
47844         * modules/unistr/u8-strchr-tests: New file.
47845         * modules/unistr/u16-strchr-tests: New file.
47846         * modules/unistr/u32-strchr-tests: New file.
47847         * tests/unistr/test-strchr.h: New file.
47848         * tests/unistr/test-u8-strchr.c: New file.
47849         * tests/unistr/test-u16-strchr.c: New file.
47850         * tests/unistr/test-u32-strchr.c: New file.
47852         unistr/u*-chr: test multibyte sequences more
47853         * tests/unistr/test-chr.h: Do complete testing of the characters in the
47854         test vector.
47855         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
47856         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
47857         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
47859         unistr/u*-chr: test multibyte sequences
47860         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
47862         unistr/u*-chr: prepare for multibyte tests
47863         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
47864         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
47865         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
47866         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
47867         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
47868         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
47870 2010-07-18  Bruno Haible  <bruno@clisp.org>
47872         unistr/u8-strchr: Optimize non-ASCII argument case.
47873         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
47874         because the first byte often matches anyway.
47875         Reported by Pádraig Brady <P@draigbrady.com>.
47877 2010-07-15  Karl Berry  <karl@gnu.org>
47879         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
47881 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
47883         getcwd: on Solaris, work better if ancestors are inaccessible
47884         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
47885         buffer and size, try again with a large buffer.  This works better
47886         on Solaris, since its getcwd succeeds even if the path to the root
47887         is inaccessible, and this is helpful in common cases such as .zfs
47888         hidden directories.  Problem reported by J Chapman Flack in
47889         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
47890         Use system getcwd if it's declared, not merely if it's partly
47891         working; use the partly-working test only to avoid needless effort
47892         if the system getcwd fails.
47893         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
47894         comment that was already obsolete and is now even more obsolete.
47895         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
47896         now might call strdup.
47898 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
47900         pthread: Add enough so that coreutils/src/sort.c compiles.
47901         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
47902         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
47903         gnulib. Include <sched.h> and <time.h>, as per POSIX.
47904         Include <sys/types.h>, in case it defines pthread_t.
47905         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
47906         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
47907         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
47908         (pthread_rwlockattr_t, pthread_spinlock_t):
47909         New typedefs, if HAVE_PTHREAD_T is not defined.
47910         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
47911         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
47912         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
47913         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
47914         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
47915         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
47916         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
47917         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
47918         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
47919         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
47920         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
47921         New macros.
47922         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
47923         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
47924         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
47925         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
47926         (pthread_spin_unlock): New dummy functions.
47927         (pthread_create): Return EAGAIN; don't set errno.
47928         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
47929         require AC_C_INLINE.
47930         * modules/pthread (Depends-on): Add sched, time.
47931         (pthread.h): Use AM_V_GEN.
47933 2010-07-13  Bruno Haible  <bruno@clisp.org>
47935         striconveh: Don't malloc memory if the result buffer is sufficient.
47936         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
47937         buffer if its size is sufficient.
47938         Reported by Ludovic Courtès <ludo@gnu.org>.
47940 2010-07-13  Bruno Haible  <bruno@clisp.org>
47942         strtod: Add safety check.
47943         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
47945 2010-07-12  Bruno Haible  <bruno@clisp.org>
47947         Unify tests that set gl_cv_func_ldexpl_no_libm.
47948         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
47949         gl_FUNC_LDEXPL.
47950         (gl_FUNC_LDEXPL): Invoke it.
47951         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47953 2010-07-12  Bruno Haible  <bruno@clisp.org>
47955         Unify tests that set gl_cv_func_ldexp_no_libm.
47956         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
47957         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
47958         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
47959         (configure.ac): Simply invoke gl_FUNC_LDEXP.
47960         * modules/strtod (Files): Add m4/ldexp.m4.
47962 2010-07-12  Bruno Haible  <bruno@clisp.org>
47964         Unify tests that set gl_cv_func_frexpl_no_libm.
47965         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
47966         gl_FUNC_FREXPL_NO_LIBM.
47967         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
47968         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47970 2010-07-12  Bruno Haible  <bruno@clisp.org>
47972         Unify tests that set gl_cv_func_frexp_no_libm.
47973         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
47974         gl_FUNC_FREXP_NO_LIBM.
47975         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
47976         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
47978 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
47980         memcoll: clarify sizes versus lengths, document better, and tweak perf
47981         * lib/memcoll.c (strcoll_loop, memcoll0):
47982         Improve quality of descriptive comments.  Name variables
47983         consistently as to whether they are lengths (which do not include
47984         terminating null) versus sizes (which do).
47985         * lib/xmemcoll.c (xmemcoll0): Likewise.
47986         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
47987         returned when s1size == 0; this is easier to compile and saves
47988         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
47990 2010-07-12  Bruno Haible  <bruno@clisp.org>
47992         Tests for module '_Exit'.
47993         * modules/_Exit-tests: New file.
47994         * tests/test-_Exit.sh: New file.
47995         * tests/test-_Exit.c: New file.
47997         New module '_Exit'.
47998         * lib/stdlib.in.h (__attribute__): New macro.
47999         (_Exit): New declaration.
48000         * lib/_Exit.c: New file.
48001         * m4/_Exit.m4: New file.
48002         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
48003         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
48004         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
48005         * modules/_Exit: New file.
48006         * tests/test-stdlib-c++.cc (_Exit): Check signature.
48007         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
48009 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
48011         strtod: make it more-accurate typically, and don't require libm
48012         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
48013         Include limits.h.  Don't include string.h.
48014         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
48015         (locale_isspace): New function, so that no casts are needed to
48016         check whether *s is a space.
48017         (ldexp): Provide an unused dummy if not available.
48018         (scale_radix_exp, parse_number, underlying_strtod): New functions.
48019         (strtod): Use them.  This implementation prefers to use the
48020         underlying strtod if available, falling back on our own code
48021         only to fix known bugs.  This is more likely to produce an
48022         accurate result.  Also, it avoids the use of libm functions.
48023         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
48024         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
48025         was absent, but it caused a test failure with coreutils.
48026         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
48027         with libm.
48028         * modules/strtod (Makefile.am, Link): libm is no longer needed.
48029         * modules/strtod-tests (Makefile.am): Likewise.
48031 2010-07-11  Pádraig Brady  <P@draigBrady.com>
48032             Bruno Haible  <bruno@clisp.org>
48034         unistr/u8-strchr: Optimize ASCII argument case.
48035         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
48037 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
48039         (x)memcoll: minor tweaks
48040         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
48041         is after the type that it qualifies.
48042         (memcoll0): Likewise.
48043         * lib/memcoll.h (memcoll0): Likewise.
48044         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
48045         * lib/xmemcoll.h (xmemcoll0): Likewise.
48046         * lib/memcoll.c (memcoll0): Correct the comment.  This function
48047         differs from memcoll in that the NUL byte is part of the argument.
48048         Omit the abort-checks, as performance is a real issue here.  Plus,
48049         the checks were wrong anyway (an off-by-one error).  Omit local
48050         variable 'diff', as it's a bit clearer that way.
48051         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
48052         no longer needed.
48054 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
48056         (x)memcoll: speedup when input is known to be NUL delimited
48057         * lib/memcoll.c: Include stdlib.
48058         (memcoll0): New function.
48059         (strcoll_loop): New function, refactored for use in both memcoll
48060         and memcoll0.
48061         * lib/memcoll.h (memcoll0): Add prototype.
48062         * lib/xmemcoll.c (xmemcoll0): New function.
48063         (collate_error): New function, refactored for use in both xmemcoll
48064         and xmemcoll0.
48065         * lib/xmemcoll.h (xmemcoll0): Add prototype.
48066         * m4/memcoll.m4: add inline invocation.
48068 2010-07-06  Pádraig Brady  <P@draigBrady.com>
48070         * build-aux/bootstrap: Remove any local translations
48071         from the translation project synchronization directory,
48072         so that local only translations are not distributed.
48074 2010-07-04  Bruno Haible  <bruno@clisp.org>
48076         fsusage: Clarify which code applies to which platforms.
48077         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
48078         platform.
48079         * lib/fsusage.c (get_fs_usage): Likewise.
48081 2010-07-04  Bruno Haible  <bruno@clisp.org>
48083         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
48084         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
48085         Reported by Martin Lambers <marlam@marlam.de>.
48087 2010-07-04  Jim Meyering  <meyering@redhat.com>
48089         hash: once again explicitly disallow insertion of NULL
48090         * lib/hash.c (hash_insert0): Reinstate just-removed test:
48091         inserting a NULL pointer cannot work with these functions.
48092         Add a comment with details.
48093         This reverts part of the 2010-07-01 commit, 5bef1a35
48094         "hash: extend module to deal with non-pointer keys".
48096 2010-07-01  Bruno Haible  <bruno@clisp.org>
48098         stdbool: Update doc.
48099         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
48100         Info from Christian Weisgerber <naddy@mips.inka.de>.
48102 2010-07-01  Jim Meyering  <meyering@redhat.com>
48104         hash: extend module to deal with non-pointer keys
48105         * lib/hash.c (hash_insert0): New interface, much like hash_insert
48106         but that allows insertion of non-pointer entries.
48107         Do not disallow an ENTRY value of NULL.
48108         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
48109         * lib/hash.h (hash_insert0): Declare.
48111 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
48113         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
48114         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
48115         not present (i.e. with autoconf 2.59 and when using gettextize, not
48116         gnulib), require AC_GNU_SOURCE instead.
48118 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
48120         idpriv-drop: Fix tests.
48121         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
48122         not to the test-idpriv-droptemp program.
48124 2010-06-29  Bruno Haible  <bruno@clisp.org>
48126         string: Fix syntax error with g++ 2.96.
48127         * lib/string.in.h (__pure__): Remove definition.
48128         (_GL_ATTRIBUTE_PURE): New macro.
48129         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
48130         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
48131         Reported by Christian Weisgerber <naddy@mips.inka.de>.
48133 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
48135         unitypes: Fix bug introduced on 2010-05-18.
48136         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
48138 2010-06-22  Eric Blake  <eblake@redhat.com>
48140         memmem: slight optimization
48141         * lib/str-two-way.h (critical_factorization): Update comments.
48142         Reduce work during factorization phase.
48143         Reported by Carlos Bueno <carlos@bueno.org>.
48145 2010-06-21  Bruno Haible  <bruno@clisp.org>
48147         Fix HAVE_CALLOC_POSIX misnomer.
48148         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
48149         !HAVE_CALLOC_POSIX.
48150         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
48151         HAVE_CALLOC_POSIX.
48152         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
48153         instead of HAVE_CALLOC_POSIX.
48154         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
48155         HAVE_CALLOC_POSIX.
48157         Use modern idiom for calloc() replacement.
48158         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
48159         AC_FUNC_CALLOC.
48160         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
48161         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
48162         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48163         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
48164         (gl_REPLACE_CALLOC): New macro.
48166 2010-06-21  Bruno Haible  <bruno@clisp.org>
48168         Fix HAVE_REALLOC_POSIX misnomer.
48169         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
48170         !HAVE_REALLOC_POSIX.
48171         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
48172         HAVE_REALLOC_POSIX.
48173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
48174         instead of HAVE_REALLOC_POSIX.
48175         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
48176         HAVE_REALLOC_POSIX.
48178         Use modern idiom for realloc() replacement.
48179         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
48180         AC_FUNC_REALLOC.
48181         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
48182         Autoconf's AC_FUNC_REALLOC.
48183         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48184         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
48185         (gl_REPLACE_REALLOC): New macro.
48186         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
48188 2010-06-21  Bruno Haible  <bruno@clisp.org>
48190         Fix HAVE_MALLOC_POSIX misnomer.
48191         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
48192         !HAVE_MALLOC_POSIX.
48193         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
48194         HAVE_MALLOC_POSIX.
48195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
48196         instead of HAVE_MALLOC_POSIX.
48197         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
48198         HAVE_MALLOC_POSIX.
48200         Use modern idiom for malloc() replacement.
48201         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
48202         AC_FUNC_MALLOC.
48203         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
48204         Autoconf's AC_FUNC_MALLOC.
48205         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48206         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
48207         (gl_REPLACE_MALLOC): New macro.
48208         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
48210 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
48212         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
48213         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
48214         This macro takes 3 arguments, not 4.
48216 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
48218         ipv6: fix detection under mingw
48219         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
48220         in6_addr.
48222 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
48224         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
48225         that strtod() works when cross-compiling to a glibc version known
48226         to work.
48228 2010-06-15  Bruno Haible  <bruno@clisp.org>
48230         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
48232 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
48234         select: Correct timeout.
48235         * lib/select.c (rpl_select): Compute wait_timeout correctly.
48237 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48239         git-version-gen: init shell var to avoid env var influence
48240         * build-aux/git-version-gen (v): Init shell var to empty.
48242 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
48244         priv-set: Don't assume that priv.h exists merely because getppriv does.
48245         See Jan Andersen's bug report about AIX 5L in
48246         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
48247         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
48248         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
48249         * lib/priv-set.h: Likewise.
48250         * tests/test-priv-set.c: Likewise.
48252 2010-06-13  Bruno Haible  <bruno@clisp.org>
48254         relocatable: Make it easier to test whether to install wrappers.
48255         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
48256         RELOCATABLE_VIA_WRAPPER.
48258 2010-06-13  Bruno Haible  <bruno@clisp.org>
48260         gnulib-tool: Display specified modules and dependencies differently.
48261         * gnulib-tool (func_show_module_list): New function.
48262         (func_import, func_create_testdir): Invoke it.
48263         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48265 2010-06-13  Bruno Haible  <bruno@clisp.org>
48267         gnulib-tool: Align code of func_import and func_create_testdir.
48268         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
48269         specified_modules.
48271 2010-06-12  Jim Meyering  <meyering@redhat.com>
48273         test-inttostr: avoid spurious failure on Solaris 9
48274         * tests/test-inttostr.c (main): Skip the test when snprintf fails
48275         to accept "%ju".  Reported by Bruno Haible.
48277 2010-06-11  Jim Meyering  <meyering@redhat.com>
48279         test-sys_socket: mark variables as used more readably
48280         * tests/test-sys_socket.c (main): Mark otherwise unused variables
48281         as "used" explicitly via (void) statement casts.  This is more
48282         readable than using them in an artificial return expression.
48283         Suggestion from Bruno Haible.
48285 2010-06-11  Bruno Haible  <bruno@clisp.org>
48287         Avoid some more warnings from "gcc -Wwrite-strings".
48288         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
48289         to 'const char *'.
48290         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
48291         * tests/test-c-strcasestr.c (main): Likewise.
48292         * tests/test-mbscasestr1.c (main): Likewise.
48293         * tests/test-mbscasestr2.c (main): Likewise.
48294         * tests/test-memmem.c (main): Likewise.
48295         * tests/test-strstr.c (main): Likewise.
48296         * tests/test-strcasestr.c (main): Likewise.
48298 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48300         init.sh: change framework_failure_ to fail with status 99, not 1
48301         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
48302         automake's parallel-tests rule that this is an unexpected failure,
48303         even if the test is listed in XFAIL_TESTS.
48305 2010-06-11  Jim Meyering  <meyering@redhat.com>
48307         test-inttostr: avoid warnings about 4-6KB literal strings
48308         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
48309         Include "macros.h", for its definition of ASSERT.
48310         (CK): s/assert/ASSERT/
48311         * modules/inttostr-tests (Files): Add macros.h.
48313         init.sh: don't use $ME_ or skip_ before they are defined
48314         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
48315         their first uses.  Also hoist their companions: warn_, fail_,
48316         framework_failure_, $stderr_fileno.  Prompted by a patch from
48317         Stefano Lattarini.
48319         test-sys_socket: avoid set-but-not-used warnings from gcc
48320         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
48321         avoid warning about set-but-not-used variables.
48323         test-xvasprintf: avoid 'const' discard warnings
48324         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
48325         "const" when assigning from literal strings.
48326         (test_xasprintf): Add "void" in function argument list to placate
48327         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
48329         tests: avoid compilation warnings in argmatch and exclude tests...
48330         in packages that define ARGMATCH_DIE_DECL, like coreutils.
48331         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
48332         Since it always exits, declare with the "noreturn" attribute.
48333         * tests/test-argmatch.c: Likewise.
48335         tests: avoid 'const' discard warnings in mbsstr tests
48336         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
48337         * tests/test-mbsstr2.c (main): Likewise.
48339         test-verify: avoid warning from gcc's -Wmissing-declarations
48340         * tests/test-verify.c (function): Declare to be static.
48342         test-inttostr.c: include <string.h> for use of strcmp
48343         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
48345         test-linkat: avoid failed assertion on "other" architectures
48346         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
48347         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
48348         sparc: https://bugs.launchpad.net/bugs/591968
48350 2010-06-11  Jim Meyering  <meyering@redhat.com>
48352         printf.m4: avoid autoconf's "Expanded Before Required" warning
48353         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
48354         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
48355         autoconf warning.
48357 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
48359         Replacement header templates are now named with ".in", not "_".
48360         * doc/gnulib-intro.texi: Correct.
48362 2010-06-10  Jim Meyering  <meyering@redhat.com>
48364         inttostr-tests: depend on snprintf, not snprintf-posix
48365         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
48366         snprintf-posix, to avoid this aclocal failure:
48367           missing file gnulib-tests/vasnprintf.c
48368           configure.ac:45: error: expected source file, required through \
48369           AC_LIBSOURCES, not found
48371 2010-06-10  Jim Meyering  <meyering@redhat.com>
48373         inttostr: add a new function, inttostr, and tests
48374         The namesake function was not available.  The existence of the
48375         template file, inttostr.c makes its addition nontrivial.
48376         * lib/anytostr.c: Rename from inttostr.c.
48377         (anytostr): Rename from inttostr.
48378         * lib/inttostr.c: New file.
48379         * modules/inttostr (Files): Add anytostr.c.
48380         (Makefile.am): Set lib_SOURCES instead of ...
48381         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
48382         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
48383         * lib/offtostr.c: Likewise.
48384         * lib/uinttostr.c: Likewise.
48385         * lib/umaxtostr.c: Likewise.
48386         * modules/inttostr-tests: New file.
48387         * tests/test-inttostr.c: New file.  Test these functions.
48389 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
48390             Bruno Haible  <bruno@clisp.org>
48392         Add "Extending Gnulib" chapter to manual.
48393         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
48394         chapter.
48395         (Extending Gnulib): New chapter.
48396         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
48397         chapter.
48399 2010-06-09  Bruno Haible  <bruno@clisp.org>
48401         Avoid relocwrapper link errors due to gnulib replacement functions.
48402         * lib/areadlink.c: Use the system's malloc, realloc functions.
48403         (areadlink): Set errno to ENOMEM explicitly.
48404         * modules/areadlink (Depends-on): Remove malloc-posix.
48405         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48407 2010-06-09  Bruno Haible  <bruno@clisp.org>
48409         Avoid relocwrapper link errors due to gnulib replacement functions.
48410         * lib/canonicalize-lgpl.c: Use the system's malloc function.
48411         * lib/malloca.c: Likewise.
48412         * lib/relocatable.c: Likewise.
48413         * lib/progreloc.c: Use the system's malloc, sprintf functions.
48414         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
48415         * lib/setenv.c: Use the system's malloc, realloc functions.
48416         * lib/strerror.c: Use the system's sprintf function.
48417         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48419 2010-06-04  Bruno Haible  <bruno@clisp.org>
48421         Prefer documented low-level autoconf macro names.
48422         * m4/lib-link.m4: Use m4_translit instead of translit.
48423         * m4/environ.m4: Likewise.
48424         * m4/mathfunc.m4: Likewise.
48425         * m4/onceonly.m4: Likewise.
48426         * m4/stdint.m4: Likewise.
48427         Suggested by Eric Blake.
48429 2010-06-04  Martin Lambers  <marlam@marlam.de>
48430             Bruno Haible  <bruno@clisp.org>
48432         havelib: Allow library names with '+' characters.
48433         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48434         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
48436 2010-06-09  Bruno Haible  <bruno@clisp.org>
48438         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
48439         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
48440         realloc failed.
48442 2010-06-08  Peter Simons  <simons@cryp.to>
48444         maint.mk: make the news-check rule more configurable
48445         * top/maint.mk (news-check-lines-spec): New variable.
48446         (news-check): Use "sed -n 1,10p" in place of "head".
48448 2010-06-07  Jim Meyering  <meyering@redhat.com>
48450         do-release-commit-and-tag: fix typo in --help
48451         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
48453         regex: avoid new dead-code warning with gcc-4.6.0
48454         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
48455         if-block containing a while-loop.  It's been unused for at least
48456         5 years.
48458 2010-06-05  Bruno Haible  <bruno@clisp.org>
48460         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
48461         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
48463 2010-06-04  Bruno Haible  <bruno@clisp.org>
48465         Update to GNU gettext 0.18.1.
48466         * modules/gettext (configure.ac): Require gettext infrastructure from
48467         version 0.18.1.
48469 2010-06-03  Bruno Haible  <bruno@clisp.org>
48471         Don't use AC_LIBOBJ with file names in subdirectories.
48472         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
48473         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
48474         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
48475         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
48476         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
48477         gl_LIBUNISTRING_LIBSOURCE.
48478         (Makefile.am): Augment lib_SOURCES here, conditionally.
48479         * NEWS: Drop requirement for Automake option 'subdir-objects'.
48481 2010-06-03  Bruno Haible  <bruno@clisp.org>
48483         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
48484         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
48485         expansion does not end with a newline.
48486         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
48487         unnecessary newline.
48489 2010-06-03  Bruno Haible  <bruno@clisp.org>
48491         Reduce dependencies.
48492         * tests/test-quotearg.h: New file, extracted from
48493         tests/test-quotearg.c.
48494         * tests/test-quotearg-simple.c: New file, extracted from
48495         tests/test-quotearg.c.
48496         * tests/test-quotearg.c: Don't include <ctype.h>.
48497         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
48498         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
48499         use_quote_double_quotes, use_quotearg_colon): Moved to
48500         tests/test-quotearg.h.
48501         (results_g, flag_results, custom_quotes, custom_results): Moved
48502         to tests/test-quotearg-simple.c.
48503         (main): Moved the part that does not depend on gettext to
48504         tests/test-quotearg-simple.c. Return 77 if the test cannot be
48505         performed.
48506         * modules/quotearg-simple: New file.
48507         * modules/quotearg-simple-tests: New file.
48508         * modules/quotearg (Depends-on): Add quotearg-simple.
48509         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
48510         (Files): Add tests/test-quotearg.h.
48511         Reported by Paolo Bonzini.
48513 2010-06-03  Bruno Haible  <bruno@clisp.org>
48515         Reduce dependencies.
48516         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
48518 2010-06-03  Bruno Haible  <bruno@clisp.org>
48520         time: Undefine more broken macros.
48521         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
48522         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
48523         Reported by Eric Blake.
48525 2010-06-03  Bruno Haible  <bruno@clisp.org>
48527         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
48528         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
48529         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
48530         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
48531         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
48532         Reported by Ludovic Courtès <ludo@gnu.org>.
48534 2010-06-02  Eric Blake  <eblake@redhat.com>
48536         time: work with mingw + pthreads-win32 library
48537         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
48538         if timespec is defined only in pthread.h.
48539         * modules/time (Makefile.am): Substitute it.
48540         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
48541         <pthread.h>, when needed.
48542         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
48543         from the library.
48545 2010-05-31  Bruno Haible  <bruno@clisp.org>
48547         Avoid expanding two macros in the wrong order.
48548         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
48549         gl_LIBUNISTRING if it is defined.
48550         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
48551         autoconf >= 2.64.
48552         Reported by Ludovic Courtès <ludo@gnu.org>.
48554 2010-05-27  Jim Meyering  <meyering@redhat.com>
48556         maint.mk: also prohibit "#undef" of always-defined symbols
48557         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
48558         Allow more than one space before the symbol name.
48559         (sc_prohibit_always-defined_macros): Use grep's -E, now that
48560         the regexp uses alternation.
48562 2010-05-26  Eric Blake  <eblake@redhat.com>
48564         maint.mk: avoid echo -e
48565         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
48566         Convert all uses of echo -* to printf.
48567         Reported by Matthias Bolte.
48569 2010-05-25  Bruno Haible  <bruno@clisp.org>
48571         Update to GNU gettext 0.18, part 2.
48572         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
48573         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
48575 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48577         Add missing include in test-pwrite.c.
48578         * tests/test-pwrite.c: Include string.h, for strcmp.
48580 2010-05-24  Bruno Haible  <bruno@clisp.org>
48582         * NEWS: Mention requirement for Automake option 'subdir-objects'.
48584 2010-05-24  Bruno Haible  <bruno@clisp.org>
48586         Don't use conversion with transliteration in u{8,16,32}_strcoll.
48587         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
48588         iconveh_error argument.
48589         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
48590         U_STRCONV_TO_LOCALE.
48591         * lib/unistr/u16-strcoll.c: Likewise.
48592         * lib/unistr/u32-strcoll.c: Likewise.
48593         * modules/unistr/u8-strcoll (Depends-on): Add
48594         uniconv/u8-strconv-to-enc, localcharset. Remove
48595         uniconv/u8-strconv-to-locale.
48596         (configure.ac): Bump version number.
48597         * modules/unistr/u16-strcoll (Depends-on): Add
48598         uniconv/u16-strconv-to-enc, localcharset. Remove
48599         uniconv/u16-strconv-to-locale.
48600         (configure.ac): Bump version number.
48601         * modules/unistr/u32-strcoll (Depends-on): Add
48602         uniconv/u32-strconv-to-enc, localcharset. Remove
48603         uniconv/u32-strconv-to-locale.
48604         (configure.ac): Bump version number.
48606 2010-05-24  Bruno Haible  <bruno@clisp.org>
48608         Avoid a test failure on NetBSD 5.0.
48609         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
48610         an iconv() bug.
48612 2010-05-24  Bruno Haible  <bruno@clisp.org>
48614         Adjust #include directive style.
48615         * modules/regex (Includes): Recommend to write <regex.h>.
48617 2010-05-24  Bruno Haible  <bruno@clisp.org>
48619         regex: Don't require alloca.
48620         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
48621         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
48622         only inside if (0).
48624 2010-05-23  Jim Meyering  <meyering@redhat.com>
48626         test-renameat.c: include <sys/stat.h>
48627         * tests/test-renameat.c: Include <sys/stat.h>; required for
48628         definition of S_IS* macros.
48630 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
48632         Update maintainer documentation for 'relocatable-prog' module.
48633         * doc/relocatable-maint.texi: Update.
48634         Comments by Bruno Haible.
48636 2010-05-23  Bruno Haible  <bruno@clisp.org>
48638         git-merge-changelog: Enable --split-merged-entry by default.
48639         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
48640         (usage): Don't mention this option any more.
48641         Reported by Ralf Wildenhues.
48643 2010-05-23  Jim Meyering  <meyering@redhat.com>
48645         test-pwrite: do not leave behind a test file named "out"
48646         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
48647         The trivial-looking use of init.sh is really necessary.
48648         It ensures that the temporary file, "out", is created in
48649         a temporary directory, and removed upon termination.
48650         * tests/test-pwrite.sh: Re-add file.
48651         * modules/pwrite-tests: Reference it.
48653 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48655         Fix output redirection buglet in init.sh.
48656         * tests/init.sh: Fix redirection of stderr.
48658 2010-05-20  Simon Josefsson  <simon@josefsson.org>
48660         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
48662 2010-05-17  Simon Josefsson  <simon@josefsson.org>
48664         * modules/valgrind-tests: New file.
48665         * m4/valgrind-tests.m4: New file.
48666         * doc/valgrind-tests.texi: New file.
48667         * doc/gnulib.texi (Running self-tests under valgrind): New
48668         section.
48670 2010-05-19  Bruno Haible  <bruno@clisp.org>
48672         Clean up dead code in recent commit.
48673         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
48674         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
48675         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
48676         Suggested by Paolo Bonzini.
48678 2010-05-19  Bruno Haible  <bruno@clisp.org>
48680         Avoid valgrind error reports from libunistring.
48681         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
48682         * modules/libunistring (Files): Add it.
48683         * modules/libunistring-optional (Files): Likewise.
48685 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
48686             Bruno Haible  <bruno@clisp.org>
48688         New module 'libunistring-optional'.
48689         * modules/libunistring-optional: New file.
48690         * m4/libunistring-base.m4: New file.
48691         * m4/libunistring-optional.m4: New file.
48692         * lib/unicase.in.h: Renamed from lib/unicase.h.
48693         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
48694         * lib/unictype.in.h: Renamed from lib/unictype.h.
48695         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
48696         * lib/uniname.in.h: Renamed from lib/uniname.h.
48697         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
48698         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
48699         * lib/unistr.in.h: Renamed from lib/unistr.h.
48700         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
48701         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
48702         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
48703         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
48704         gl_LIBUNISTRING. If the library was found, determine the installed
48705         version and set LIBUNISTRING_VERSION.
48706         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
48707         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
48708         handle a configuration option --with-included-libunistring.
48709         * modules/libunistring (Files): Add m4/absolute-header.m4.
48710         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
48711         Add m4/libunistring-base.m4.
48712         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48713         (Makefile.am): Build unicase.h from unicase.in.h.
48714         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
48715         Add m4/libunistring-base.m4.
48716         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48717         (Makefile.am): Build uniconv.h from uniconv.in.h.
48718         * modules/unictype/base (Files): Use unictype.in.h instead of
48719         unictype.h. Add m4/libunistring-base.m4.
48720         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48721         (Makefile.am): Build unictype.h from unictype.in.h.
48722         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
48723         Add m4/libunistring-base.m4.
48724         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48725         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
48726         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
48727         Add m4/libunistring-base.m4.
48728         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48729         (Makefile.am): Build uniname.h from uniname.in.h.
48730         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
48731         Add m4/libunistring-base.m4.
48732         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48733         (Makefile.am): Build uninorm.h from uninorm.in.h.
48734         * modules/unistdio/base (Files): Use unistdio.in.h instead of
48735         unistdio.h. Add m4/libunistring-base.m4.
48736         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48737         (Makefile.am): Build unistdio.h from unistdio.in.h.
48738         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
48739         Add m4/libunistring-base.m4.
48740         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48741         (Makefile.am): Build unistr.h from unistr.in.h.
48742         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
48743         Add m4/libunistring-base.m4.
48744         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48745         (Makefile.am): Build unitypes.h from unitypes.in.h.
48746         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
48747         Add m4/libunistring-base.m4.
48748         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48749         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
48750         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
48751         uniwidth.h. Add m4/libunistring-base.m4.
48752         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48753         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
48754         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
48755         instead of augmenting lib_SOURCES.
48756         * modules/unicase/empty-suffix-context: Likewise.
48757         * modules/unicase/locale-language: Likewise.
48758         * modules/unicase/tolower: Likewise.
48759         * modules/unicase/totitle: Likewise.
48760         * modules/unicase/toupper: Likewise.
48761         * modules/unicase/u8-casecmp: Likewise.
48762         * modules/unicase/u8-casecoll: Likewise.
48763         * modules/unicase/u8-casefold: Likewise.
48764         * modules/unicase/u8-casexfrm: Likewise.
48765         * modules/unicase/u8-ct-casefold: Likewise.
48766         * modules/unicase/u8-ct-tolower: Likewise.
48767         * modules/unicase/u8-ct-totitle: Likewise.
48768         * modules/unicase/u8-ct-toupper: Likewise.
48769         * modules/unicase/u8-is-cased: Likewise.
48770         * modules/unicase/u8-is-casefolded: Likewise.
48771         * modules/unicase/u8-is-lowercase: Likewise.
48772         * modules/unicase/u8-is-titlecase: Likewise.
48773         * modules/unicase/u8-is-uppercase: Likewise.
48774         * modules/unicase/u8-prefix-context: Likewise.
48775         * modules/unicase/u8-suffix-context: Likewise.
48776         * modules/unicase/u8-tolower: Likewise.
48777         * modules/unicase/u8-totitle: Likewise.
48778         * modules/unicase/u8-toupper: Likewise.
48779         * modules/unicase/u16-casecmp: Likewise.
48780         * modules/unicase/u16-casecoll: Likewise.
48781         * modules/unicase/u16-casefold: Likewise.
48782         * modules/unicase/u16-casexfrm: Likewise.
48783         * modules/unicase/u16-ct-casefold: Likewise.
48784         * modules/unicase/u16-ct-tolower: Likewise.
48785         * modules/unicase/u16-ct-totitle: Likewise.
48786         * modules/unicase/u16-ct-toupper: Likewise.
48787         * modules/unicase/u16-is-cased: Likewise.
48788         * modules/unicase/u16-is-casefolded: Likewise.
48789         * modules/unicase/u16-is-lowercase: Likewise.
48790         * modules/unicase/u16-is-titlecase: Likewise.
48791         * modules/unicase/u16-is-uppercase: Likewise.
48792         * modules/unicase/u16-prefix-context: Likewise.
48793         * modules/unicase/u16-suffix-context: Likewise.
48794         * modules/unicase/u16-tolower: Likewise.
48795         * modules/unicase/u16-totitle: Likewise.
48796         * modules/unicase/u16-toupper: Likewise.
48797         * modules/unicase/u32-casecmp: Likewise.
48798         * modules/unicase/u32-casecoll: Likewise.
48799         * modules/unicase/u32-casefold: Likewise.
48800         * modules/unicase/u32-casexfrm: Likewise.
48801         * modules/unicase/u32-ct-casefold: Likewise.
48802         * modules/unicase/u32-ct-tolower: Likewise.
48803         * modules/unicase/u32-ct-totitle: Likewise.
48804         * modules/unicase/u32-ct-toupper: Likewise.
48805         * modules/unicase/u32-is-cased: Likewise.
48806         * modules/unicase/u32-is-casefolded: Likewise.
48807         * modules/unicase/u32-is-lowercase: Likewise.
48808         * modules/unicase/u32-is-titlecase: Likewise.
48809         * modules/unicase/u32-is-uppercase: Likewise.
48810         * modules/unicase/u32-prefix-context: Likewise.
48811         * modules/unicase/u32-suffix-context: Likewise.
48812         * modules/unicase/u32-tolower: Likewise.
48813         * modules/unicase/u32-totitle: Likewise.
48814         * modules/unicase/u32-toupper: Likewise.
48815         * modules/unicase/ulc-casecmp: Likewise.
48816         * modules/unicase/ulc-casecoll: Likewise.
48817         * modules/unicase/ulc-casexfrm: Likewise.
48818         * modules/uniconv/u8-conv-from-enc: Likewise.
48819         * modules/uniconv/u8-conv-to-enc: Likewise.
48820         * modules/uniconv/u8-strconv-from-enc: Likewise.
48821         * modules/uniconv/u8-strconv-from-locale: Likewise.
48822         * modules/uniconv/u8-strconv-to-enc: Likewise.
48823         * modules/uniconv/u8-strconv-to-locale: Likewise.
48824         * modules/uniconv/u16-conv-from-enc: Likewise.
48825         * modules/uniconv/u16-conv-to-enc: Likewise.
48826         * modules/uniconv/u16-strconv-from-enc: Likewise.
48827         * modules/uniconv/u16-strconv-from-locale: Likewise.
48828         * modules/uniconv/u16-strconv-to-enc: Likewise.
48829         * modules/uniconv/u16-strconv-to-locale: Likewise.
48830         * modules/uniconv/u32-conv-from-enc: Likewise.
48831         * modules/uniconv/u32-conv-to-enc: Likewise.
48832         * modules/uniconv/u32-strconv-from-enc: Likewise.
48833         * modules/uniconv/u32-strconv-from-locale: Likewise.
48834         * modules/uniconv/u32-strconv-to-enc: Likewise.
48835         * modules/uniconv/u32-strconv-to-locale: Likewise.
48836         * modules/unictype/bidicategory-byname: Likewise.
48837         * modules/unictype/bidicategory-name: Likewise.
48838         * modules/unictype/bidicategory-of: Likewise.
48839         * modules/unictype/bidicategory-test: Likewise.
48840         * modules/unictype/block-list: Likewise.
48841         * modules/unictype/block-test: Likewise.
48842         * modules/unictype/category-C: Likewise.
48843         * modules/unictype/category-Cc: Likewise.
48844         * modules/unictype/category-Cf: Likewise.
48845         * modules/unictype/category-Cn: Likewise.
48846         * modules/unictype/category-Co: Likewise.
48847         * modules/unictype/category-Cs: Likewise.
48848         * modules/unictype/category-L: Likewise.
48849         * modules/unictype/category-Ll: Likewise.
48850         * modules/unictype/category-Lm: Likewise.
48851         * modules/unictype/category-Lo: Likewise.
48852         * modules/unictype/category-Lt: Likewise.
48853         * modules/unictype/category-Lu: Likewise.
48854         * modules/unictype/category-M: Likewise.
48855         * modules/unictype/category-Mc: Likewise.
48856         * modules/unictype/category-Me: Likewise.
48857         * modules/unictype/category-Mn: Likewise.
48858         * modules/unictype/category-N: Likewise.
48859         * modules/unictype/category-Nd: Likewise.
48860         * modules/unictype/category-Nl: Likewise.
48861         * modules/unictype/category-No: Likewise.
48862         * modules/unictype/category-P: Likewise.
48863         * modules/unictype/category-Pc: Likewise.
48864         * modules/unictype/category-Pd: Likewise.
48865         * modules/unictype/category-Pe: Likewise.
48866         * modules/unictype/category-Pf: Likewise.
48867         * modules/unictype/category-Pi: Likewise.
48868         * modules/unictype/category-Po: Likewise.
48869         * modules/unictype/category-Ps: Likewise.
48870         * modules/unictype/category-S: Likewise.
48871         * modules/unictype/category-Sc: Likewise.
48872         * modules/unictype/category-Sk: Likewise.
48873         * modules/unictype/category-Sm: Likewise.
48874         * modules/unictype/category-So: Likewise.
48875         * modules/unictype/category-Z: Likewise.
48876         * modules/unictype/category-Zl: Likewise.
48877         * modules/unictype/category-Zp: Likewise.
48878         * modules/unictype/category-Zs: Likewise.
48879         * modules/unictype/category-and: Likewise.
48880         * modules/unictype/category-and-not: Likewise.
48881         * modules/unictype/category-byname: Likewise.
48882         * modules/unictype/category-name: Likewise.
48883         * modules/unictype/category-none: Likewise.
48884         * modules/unictype/category-of: Likewise.
48885         * modules/unictype/category-or: Likewise.
48886         * modules/unictype/category-test: Likewise.
48887         * modules/unictype/combining-class: Likewise.
48888         * modules/unictype/ctype-alnum: Likewise.
48889         * modules/unictype/ctype-alpha: Likewise.
48890         * modules/unictype/ctype-blank: Likewise.
48891         * modules/unictype/ctype-cntrl: Likewise.
48892         * modules/unictype/ctype-digit: Likewise.
48893         * modules/unictype/ctype-graph: Likewise.
48894         * modules/unictype/ctype-lower: Likewise.
48895         * modules/unictype/ctype-print: Likewise.
48896         * modules/unictype/ctype-punct: Likewise.
48897         * modules/unictype/ctype-space: Likewise.
48898         * modules/unictype/ctype-upper: Likewise.
48899         * modules/unictype/ctype-xdigit: Likewise.
48900         * modules/unictype/decimal-digit: Likewise.
48901         * modules/unictype/digit: Likewise.
48902         * modules/unictype/mirror: Likewise.
48903         * modules/unictype/numeric: Likewise.
48904         * modules/unictype/property-alphabetic: Likewise.
48905         * modules/unictype/property-ascii-hex-digit: Likewise.
48906         * modules/unictype/property-bidi-arabic-digit: Likewise.
48907         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
48908         * modules/unictype/property-bidi-block-separator: Likewise.
48909         * modules/unictype/property-bidi-boundary-neutral: Likewise.
48910         * modules/unictype/property-bidi-common-separator: Likewise.
48911         * modules/unictype/property-bidi-control: Likewise.
48912         * modules/unictype/property-bidi-embedding-or-override: Likewise.
48913         * modules/unictype/property-bidi-eur-num-separator: Likewise.
48914         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
48915         * modules/unictype/property-bidi-european-digit: Likewise.
48916         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
48917         * modules/unictype/property-bidi-left-to-right: Likewise.
48918         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
48919         * modules/unictype/property-bidi-other-neutral: Likewise.
48920         * modules/unictype/property-bidi-pdf: Likewise.
48921         * modules/unictype/property-bidi-segment-separator: Likewise.
48922         * modules/unictype/property-bidi-whitespace: Likewise.
48923         * modules/unictype/property-byname: Likewise.
48924         * modules/unictype/property-combining: Likewise.
48925         * modules/unictype/property-composite: Likewise.
48926         * modules/unictype/property-currency-symbol: Likewise.
48927         * modules/unictype/property-dash: Likewise.
48928         * modules/unictype/property-decimal-digit: Likewise.
48929         * modules/unictype/property-default-ignorable-code-point: Likewise.
48930         * modules/unictype/property-deprecated: Likewise.
48931         * modules/unictype/property-diacritic: Likewise.
48932         * modules/unictype/property-extender: Likewise.
48933         * modules/unictype/property-format-control: Likewise.
48934         * modules/unictype/property-grapheme-base: Likewise.
48935         * modules/unictype/property-grapheme-extend: Likewise.
48936         * modules/unictype/property-grapheme-link: Likewise.
48937         * modules/unictype/property-hex-digit: Likewise.
48938         * modules/unictype/property-hyphen: Likewise.
48939         * modules/unictype/property-id-continue: Likewise.
48940         * modules/unictype/property-id-start: Likewise.
48941         * modules/unictype/property-ideographic: Likewise.
48942         * modules/unictype/property-ids-binary-operator: Likewise.
48943         * modules/unictype/property-ids-trinary-operator: Likewise.
48944         * modules/unictype/property-ignorable-control: Likewise.
48945         * modules/unictype/property-iso-control: Likewise.
48946         * modules/unictype/property-join-control: Likewise.
48947         * modules/unictype/property-left-of-pair: Likewise.
48948         * modules/unictype/property-line-separator: Likewise.
48949         * modules/unictype/property-logical-order-exception: Likewise.
48950         * modules/unictype/property-lowercase: Likewise.
48951         * modules/unictype/property-math: Likewise.
48952         * modules/unictype/property-non-break: Likewise.
48953         * modules/unictype/property-not-a-character: Likewise.
48954         * modules/unictype/property-numeric: Likewise.
48955         * modules/unictype/property-other-alphabetic: Likewise.
48956         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
48957         * modules/unictype/property-other-grapheme-extend: Likewise.
48958         * modules/unictype/property-other-id-continue: Likewise.
48959         * modules/unictype/property-other-id-start: Likewise.
48960         * modules/unictype/property-other-lowercase: Likewise.
48961         * modules/unictype/property-other-math: Likewise.
48962         * modules/unictype/property-other-uppercase: Likewise.
48963         * modules/unictype/property-paired-punctuation: Likewise.
48964         * modules/unictype/property-paragraph-separator: Likewise.
48965         * modules/unictype/property-pattern-syntax: Likewise.
48966         * modules/unictype/property-pattern-white-space: Likewise.
48967         * modules/unictype/property-private-use: Likewise.
48968         * modules/unictype/property-punctuation: Likewise.
48969         * modules/unictype/property-quotation-mark: Likewise.
48970         * modules/unictype/property-radical: Likewise.
48971         * modules/unictype/property-sentence-terminal: Likewise.
48972         * modules/unictype/property-soft-dotted: Likewise.
48973         * modules/unictype/property-space: Likewise.
48974         * modules/unictype/property-terminal-punctuation: Likewise.
48975         * modules/unictype/property-test: Likewise.
48976         * modules/unictype/property-titlecase: Likewise.
48977         * modules/unictype/property-unassigned-code-value: Likewise.
48978         * modules/unictype/property-unified-ideograph: Likewise.
48979         * modules/unictype/property-uppercase: Likewise.
48980         * modules/unictype/property-variation-selector: Likewise.
48981         * modules/unictype/property-white-space: Likewise.
48982         * modules/unictype/property-xid-continue: Likewise.
48983         * modules/unictype/property-xid-start: Likewise.
48984         * modules/unictype/property-zero-width: Likewise.
48985         * modules/unictype/scripts: Likewise.
48986         * modules/unictype/syntax-c-ident: Likewise.
48987         * modules/unictype/syntax-c-whitespace: Likewise.
48988         * modules/unictype/syntax-java-ident: Likewise.
48989         * modules/unictype/syntax-java-whitespace: Likewise.
48990         * modules/unilbrk/u8-possible-linebreaks: Likewise.
48991         * modules/unilbrk/u8-width-linebreaks: Likewise.
48992         * modules/unilbrk/u16-possible-linebreaks: Likewise.
48993         * modules/unilbrk/u16-width-linebreaks: Likewise.
48994         * modules/unilbrk/u32-possible-linebreaks: Likewise.
48995         * modules/unilbrk/u32-width-linebreaks: Likewise.
48996         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
48997         * modules/unilbrk/ulc-width-linebreaks: Likewise.
48998         * modules/uniname/uniname: Likewise.
48999         * modules/uninorm/canonical-decomposition: Likewise.
49000         * modules/uninorm/composition: Likewise.
49001         * modules/uninorm/decomposing-form: Likewise.
49002         * modules/uninorm/decomposition: Likewise.
49003         * modules/uninorm/filter: Likewise.
49004         * modules/uninorm/nfc: Likewise.
49005         * modules/uninorm/nfd: Likewise.
49006         * modules/uninorm/nfkc: Likewise.
49007         * modules/uninorm/nfkd: Likewise.
49008         * modules/uninorm/u8-normalize: Likewise.
49009         * modules/uninorm/u8-normcmp: Likewise.
49010         * modules/uninorm/u8-normcoll: Likewise.
49011         * modules/uninorm/u8-normxfrm: Likewise.
49012         * modules/uninorm/u16-normalize: Likewise.
49013         * modules/uninorm/u16-normcmp: Likewise.
49014         * modules/uninorm/u16-normcoll: Likewise.
49015         * modules/uninorm/u16-normxfrm: Likewise.
49016         * modules/uninorm/u32-normalize: Likewise.
49017         * modules/uninorm/u32-normcmp: Likewise.
49018         * modules/uninorm/u32-normcoll: Likewise.
49019         * modules/uninorm/u32-normxfrm: Likewise.
49020         * modules/unistdio/u8-asnprintf: Likewise.
49021         * modules/unistdio/u8-asprintf: Likewise.
49022         * modules/unistdio/u8-snprintf: Likewise.
49023         * modules/unistdio/u8-sprintf: Likewise.
49024         * modules/unistdio/u8-u8-asnprintf: Likewise.
49025         * modules/unistdio/u8-u8-asprintf: Likewise.
49026         * modules/unistdio/u8-u8-snprintf: Likewise.
49027         * modules/unistdio/u8-u8-sprintf: Likewise.
49028         * modules/unistdio/u8-u8-vasnprintf: Likewise.
49029         * modules/unistdio/u8-u8-vasprintf: Likewise.
49030         * modules/unistdio/u8-u8-vsnprintf: Likewise.
49031         * modules/unistdio/u8-u8-vsprintf: Likewise.
49032         * modules/unistdio/u8-vasnprintf: Likewise.
49033         * modules/unistdio/u8-vasprintf: Likewise.
49034         * modules/unistdio/u8-vsnprintf: Likewise.
49035         * modules/unistdio/u8-vsprintf: Likewise.
49036         * modules/unistdio/u16-asnprintf: Likewise.
49037         * modules/unistdio/u16-asprintf: Likewise.
49038         * modules/unistdio/u16-snprintf: Likewise.
49039         * modules/unistdio/u16-sprintf: Likewise.
49040         * modules/unistdio/u16-u16-asnprintf: Likewise.
49041         * modules/unistdio/u16-u16-asprintf: Likewise.
49042         * modules/unistdio/u16-u16-snprintf: Likewise.
49043         * modules/unistdio/u16-u16-sprintf: Likewise.
49044         * modules/unistdio/u16-u16-vasnprintf: Likewise.
49045         * modules/unistdio/u16-u16-vasprintf: Likewise.
49046         * modules/unistdio/u16-u16-vsnprintf: Likewise.
49047         * modules/unistdio/u16-u16-vsprintf: Likewise.
49048         * modules/unistdio/u16-vasnprintf: Likewise.
49049         * modules/unistdio/u16-vasprintf: Likewise.
49050         * modules/unistdio/u16-vsnprintf: Likewise.
49051         * modules/unistdio/u16-vsprintf: Likewise.
49052         * modules/unistdio/u32-asnprintf: Likewise.
49053         * modules/unistdio/u32-asprintf: Likewise.
49054         * modules/unistdio/u32-snprintf: Likewise.
49055         * modules/unistdio/u32-sprintf: Likewise.
49056         * modules/unistdio/u32-u32-asnprintf: Likewise.
49057         * modules/unistdio/u32-u32-asprintf: Likewise.
49058         * modules/unistdio/u32-u32-snprintf: Likewise.
49059         * modules/unistdio/u32-u32-sprintf: Likewise.
49060         * modules/unistdio/u32-u32-vasnprintf: Likewise.
49061         * modules/unistdio/u32-u32-vasprintf: Likewise.
49062         * modules/unistdio/u32-u32-vsnprintf: Likewise.
49063         * modules/unistdio/u32-u32-vsprintf: Likewise.
49064         * modules/unistdio/u32-vasnprintf: Likewise.
49065         * modules/unistdio/u32-vasprintf: Likewise.
49066         * modules/unistdio/u32-vsnprintf: Likewise.
49067         * modules/unistdio/u32-vsprintf: Likewise.
49068         * modules/unistdio/ulc-asnprintf: Likewise.
49069         * modules/unistdio/ulc-asprintf: Likewise.
49070         * modules/unistdio/ulc-fprintf: Likewise.
49071         * modules/unistdio/ulc-snprintf: Likewise.
49072         * modules/unistdio/ulc-sprintf: Likewise.
49073         * modules/unistdio/ulc-vasnprintf: Likewise.
49074         * modules/unistdio/ulc-vasprintf: Likewise.
49075         * modules/unistdio/ulc-vfprintf: Likewise.
49076         * modules/unistdio/ulc-vsnprintf: Likewise.
49077         * modules/unistdio/ulc-vsprintf: Likewise.
49078         * modules/unistr/u8-check: Likewise.
49079         * modules/unistr/u8-chr: Likewise.
49080         * modules/unistr/u8-cmp: Likewise.
49081         * modules/unistr/u8-cmp2: Likewise.
49082         * modules/unistr/u8-cpy: Likewise.
49083         * modules/unistr/u8-cpy-alloc: Likewise.
49084         * modules/unistr/u8-endswith: Likewise.
49085         * modules/unistr/u8-mblen: Likewise.
49086         * modules/unistr/u8-mbsnlen: Likewise.
49087         * modules/unistr/u8-mbtouc: Likewise.
49088         * modules/unistr/u8-mbtouc-unsafe: Likewise.
49089         * modules/unistr/u8-mbtoucr: Likewise.
49090         * modules/unistr/u8-move: Likewise.
49091         * modules/unistr/u8-next: Likewise.
49092         * modules/unistr/u8-prev: Likewise.
49093         * modules/unistr/u8-set: Likewise.
49094         * modules/unistr/u8-startswith: Likewise.
49095         * modules/unistr/u8-stpcpy: Likewise.
49096         * modules/unistr/u8-stpncpy: Likewise.
49097         * modules/unistr/u8-strcat: Likewise.
49098         * modules/unistr/u8-strchr: Likewise.
49099         * modules/unistr/u8-strcmp: Likewise.
49100         * modules/unistr/u8-strcoll: Likewise.
49101         * modules/unistr/u8-strcpy: Likewise.
49102         * modules/unistr/u8-strcspn: Likewise.
49103         * modules/unistr/u8-strdup: Likewise.
49104         * modules/unistr/u8-strlen: Likewise.
49105         * modules/unistr/u8-strmblen: Likewise.
49106         * modules/unistr/u8-strmbtouc: Likewise.
49107         * modules/unistr/u8-strncat: Likewise.
49108         * modules/unistr/u8-strncmp: Likewise.
49109         * modules/unistr/u8-strncpy: Likewise.
49110         * modules/unistr/u8-strnlen: Likewise.
49111         * modules/unistr/u8-strpbrk: Likewise.
49112         * modules/unistr/u8-strrchr: Likewise.
49113         * modules/unistr/u8-strspn: Likewise.
49114         * modules/unistr/u8-strstr: Likewise.
49115         * modules/unistr/u8-strtok: Likewise.
49116         * modules/unistr/u8-to-u16: Likewise.
49117         * modules/unistr/u8-to-u32: Likewise.
49118         * modules/unistr/u8-uctomb: Likewise.
49119         * modules/unistr/u16-check: Likewise.
49120         * modules/unistr/u16-chr: Likewise.
49121         * modules/unistr/u16-cmp: Likewise.
49122         * modules/unistr/u16-cmp2: Likewise.
49123         * modules/unistr/u16-cpy: Likewise.
49124         * modules/unistr/u16-cpy-alloc: Likewise.
49125         * modules/unistr/u16-endswith: Likewise.
49126         * modules/unistr/u16-mblen: Likewise.
49127         * modules/unistr/u16-mbsnlen: Likewise.
49128         * modules/unistr/u16-mbtouc: Likewise.
49129         * modules/unistr/u16-mbtouc-unsafe: Likewise.
49130         * modules/unistr/u16-mbtoucr: Likewise.
49131         * modules/unistr/u16-move: Likewise.
49132         * modules/unistr/u16-next: Likewise.
49133         * modules/unistr/u16-prev: Likewise.
49134         * modules/unistr/u16-set: Likewise.
49135         * modules/unistr/u16-startswith: Likewise.
49136         * modules/unistr/u16-stpcpy: Likewise.
49137         * modules/unistr/u16-stpncpy: Likewise.
49138         * modules/unistr/u16-strcat: Likewise.
49139         * modules/unistr/u16-strchr: Likewise.
49140         * modules/unistr/u16-strcmp: Likewise.
49141         * modules/unistr/u16-strcoll: Likewise.
49142         * modules/unistr/u16-strcpy: Likewise.
49143         * modules/unistr/u16-strcspn: Likewise.
49144         * modules/unistr/u16-strdup: Likewise.
49145         * modules/unistr/u16-strlen: Likewise.
49146         * modules/unistr/u16-strmblen: Likewise.
49147         * modules/unistr/u16-strmbtouc: Likewise.
49148         * modules/unistr/u16-strncat: Likewise.
49149         * modules/unistr/u16-strncmp: Likewise.
49150         * modules/unistr/u16-strncpy: Likewise.
49151         * modules/unistr/u16-strnlen: Likewise.
49152         * modules/unistr/u16-strpbrk: Likewise.
49153         * modules/unistr/u16-strrchr: Likewise.
49154         * modules/unistr/u16-strspn: Likewise.
49155         * modules/unistr/u16-strstr: Likewise.
49156         * modules/unistr/u16-strtok: Likewise.
49157         * modules/unistr/u16-to-u32: Likewise.
49158         * modules/unistr/u16-to-u8: Likewise.
49159         * modules/unistr/u16-uctomb: Likewise.
49160         * modules/unistr/u32-check: Likewise.
49161         * modules/unistr/u32-chr: Likewise.
49162         * modules/unistr/u32-cmp: Likewise.
49163         * modules/unistr/u32-cmp2: Likewise.
49164         * modules/unistr/u32-cpy: Likewise.
49165         * modules/unistr/u32-cpy-alloc: Likewise.
49166         * modules/unistr/u32-endswith: Likewise.
49167         * modules/unistr/u32-mblen: Likewise.
49168         * modules/unistr/u32-mbsnlen: Likewise.
49169         * modules/unistr/u32-mbtouc: Likewise.
49170         * modules/unistr/u32-mbtouc-unsafe: Likewise.
49171         * modules/unistr/u32-mbtoucr: Likewise.
49172         * modules/unistr/u32-move: Likewise.
49173         * modules/unistr/u32-next: Likewise.
49174         * modules/unistr/u32-prev: Likewise.
49175         * modules/unistr/u32-set: Likewise.
49176         * modules/unistr/u32-startswith: Likewise.
49177         * modules/unistr/u32-stpcpy: Likewise.
49178         * modules/unistr/u32-stpncpy: Likewise.
49179         * modules/unistr/u32-strcat: Likewise.
49180         * modules/unistr/u32-strchr: Likewise.
49181         * modules/unistr/u32-strcmp: Likewise.
49182         * modules/unistr/u32-strcoll: Likewise.
49183         * modules/unistr/u32-strcpy: Likewise.
49184         * modules/unistr/u32-strcspn: Likewise.
49185         * modules/unistr/u32-strdup: Likewise.
49186         * modules/unistr/u32-strlen: Likewise.
49187         * modules/unistr/u32-strmblen: Likewise.
49188         * modules/unistr/u32-strmbtouc: Likewise.
49189         * modules/unistr/u32-strncat: Likewise.
49190         * modules/unistr/u32-strncmp: Likewise.
49191         * modules/unistr/u32-strncpy: Likewise.
49192         * modules/unistr/u32-strnlen: Likewise.
49193         * modules/unistr/u32-strpbrk: Likewise.
49194         * modules/unistr/u32-strrchr: Likewise.
49195         * modules/unistr/u32-strspn: Likewise.
49196         * modules/unistr/u32-strstr: Likewise.
49197         * modules/unistr/u32-strtok: Likewise.
49198         * modules/unistr/u32-to-u16: Likewise.
49199         * modules/unistr/u32-to-u8: Likewise.
49200         * modules/unistr/u32-uctomb: Likewise.
49201         * modules/uniwbrk/u8-wordbreaks: Likewise.
49202         * modules/uniwbrk/u16-wordbreaks: Likewise.
49203         * modules/uniwbrk/u32-wordbreaks: Likewise.
49204         * modules/uniwbrk/ulc-wordbreaks: Likewise.
49205         * modules/uniwbrk/wordbreak-property: Likewise.
49206         * modules/uniwidth/u8-strwidth: Likewise.
49207         * modules/uniwidth/u8-width: Likewise.
49208         * modules/uniwidth/u16-strwidth: Likewise.
49209         * modules/uniwidth/u16-width: Likewise.
49210         * modules/uniwidth/u32-strwidth: Likewise.
49211         * modules/uniwidth/u32-width: Likewise.
49212         * modules/uniwidth/width: Likewise.
49213         * modules/unicase/cased-tests (Makefile.am): Link all test programs
49214         with $(LIBUNISTRING).
49215         * modules/unicase/ignorable-tests: Likewise.
49216         * modules/unicase/locale-language-tests: Likewise.
49217         * modules/unicase/tolower-tests: Likewise.
49218         * modules/unicase/totitle-tests: Likewise.
49219         * modules/unicase/toupper-tests: Likewise.
49220         * modules/unicase/u8-casecmp-tests: Likewise.
49221         * modules/unicase/u8-casecoll-tests: Likewise.
49222         * modules/unicase/u8-casefold-tests: Likewise.
49223         * modules/unicase/u8-is-cased-tests: Likewise.
49224         * modules/unicase/u8-is-casefolded-tests: Likewise.
49225         * modules/unicase/u8-is-lowercase-tests: Likewise.
49226         * modules/unicase/u8-is-titlecase-tests: Likewise.
49227         * modules/unicase/u8-is-uppercase-tests: Likewise.
49228         * modules/unicase/u8-tolower-tests: Likewise.
49229         * modules/unicase/u8-totitle-tests: Likewise.
49230         * modules/unicase/u8-toupper-tests: Likewise.
49231         * modules/unicase/u16-casecmp-tests: Likewise.
49232         * modules/unicase/u16-casecoll-tests: Likewise.
49233         * modules/unicase/u16-casefold-tests: Likewise.
49234         * modules/unicase/u16-is-cased-tests: Likewise.
49235         * modules/unicase/u16-is-casefolded-tests: Likewise.
49236         * modules/unicase/u16-is-lowercase-tests: Likewise.
49237         * modules/unicase/u16-is-titlecase-tests: Likewise.
49238         * modules/unicase/u16-is-uppercase-tests: Likewise.
49239         * modules/unicase/u16-tolower-tests: Likewise.
49240         * modules/unicase/u16-totitle-tests: Likewise.
49241         * modules/unicase/u16-toupper-tests: Likewise.
49242         * modules/unicase/u32-casecmp-tests: Likewise.
49243         * modules/unicase/u32-casecoll-tests: Likewise.
49244         * modules/unicase/u32-casefold-tests: Likewise.
49245         * modules/unicase/u32-is-cased-tests: Likewise.
49246         * modules/unicase/u32-is-casefolded-tests: Likewise.
49247         * modules/unicase/u32-is-lowercase-tests: Likewise.
49248         * modules/unicase/u32-is-titlecase-tests: Likewise.
49249         * modules/unicase/u32-is-uppercase-tests: Likewise.
49250         * modules/unicase/u32-tolower-tests: Likewise.
49251         * modules/unicase/u32-totitle-tests: Likewise.
49252         * modules/unicase/u32-toupper-tests: Likewise.
49253         * modules/unicase/ulc-casecmp-tests: Likewise.
49254         * modules/unicase/ulc-casecoll-tests: Likewise.
49255         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
49256         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
49257         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
49258         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
49259         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
49260         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
49261         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
49262         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
49263         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
49264         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
49265         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
49266         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
49267         * modules/unictype/bidicategory-byname-tests: Likewise.
49268         * modules/unictype/bidicategory-name-tests: Likewise.
49269         * modules/unictype/bidicategory-of-tests: Likewise.
49270         * modules/unictype/bidicategory-test-tests: Likewise.
49271         * modules/unictype/block-list-tests: Likewise.
49272         * modules/unictype/block-of-tests: Likewise.
49273         * modules/unictype/block-test-tests: Likewise.
49274         * modules/unictype/category-C-tests: Likewise.
49275         * modules/unictype/category-Cc-tests: Likewise.
49276         * modules/unictype/category-Cf-tests: Likewise.
49277         * modules/unictype/category-Cn-tests: Likewise.
49278         * modules/unictype/category-Co-tests: Likewise.
49279         * modules/unictype/category-Cs-tests: Likewise.
49280         * modules/unictype/category-L-tests: Likewise.
49281         * modules/unictype/category-Ll-tests: Likewise.
49282         * modules/unictype/category-Lm-tests: Likewise.
49283         * modules/unictype/category-Lo-tests: Likewise.
49284         * modules/unictype/category-Lt-tests: Likewise.
49285         * modules/unictype/category-Lu-tests: Likewise.
49286         * modules/unictype/category-M-tests: Likewise.
49287         * modules/unictype/category-Mc-tests: Likewise.
49288         * modules/unictype/category-Me-tests: Likewise.
49289         * modules/unictype/category-Mn-tests: Likewise.
49290         * modules/unictype/category-N-tests: Likewise.
49291         * modules/unictype/category-Nd-tests: Likewise.
49292         * modules/unictype/category-Nl-tests: Likewise.
49293         * modules/unictype/category-No-tests: Likewise.
49294         * modules/unictype/category-P-tests: Likewise.
49295         * modules/unictype/category-Pc-tests: Likewise.
49296         * modules/unictype/category-Pd-tests: Likewise.
49297         * modules/unictype/category-Pe-tests: Likewise.
49298         * modules/unictype/category-Pf-tests: Likewise.
49299         * modules/unictype/category-Pi-tests: Likewise.
49300         * modules/unictype/category-Po-tests: Likewise.
49301         * modules/unictype/category-Ps-tests: Likewise.
49302         * modules/unictype/category-S-tests: Likewise.
49303         * modules/unictype/category-Sc-tests: Likewise.
49304         * modules/unictype/category-Sk-tests: Likewise.
49305         * modules/unictype/category-Sm-tests: Likewise.
49306         * modules/unictype/category-So-tests: Likewise.
49307         * modules/unictype/category-Z-tests: Likewise.
49308         * modules/unictype/category-Zl-tests: Likewise.
49309         * modules/unictype/category-Zp-tests: Likewise.
49310         * modules/unictype/category-Zs-tests: Likewise.
49311         * modules/unictype/category-and-not-tests: Likewise.
49312         * modules/unictype/category-and-tests: Likewise.
49313         * modules/unictype/category-byname-tests: Likewise.
49314         * modules/unictype/category-name-tests: Likewise.
49315         * modules/unictype/category-none-tests: Likewise.
49316         * modules/unictype/category-of-tests: Likewise.
49317         * modules/unictype/category-or-tests: Likewise.
49318         * modules/unictype/category-test-withtable-tests: Likewise.
49319         * modules/unictype/combining-class-tests: Likewise.
49320         * modules/unictype/ctype-alnum-tests: Likewise.
49321         * modules/unictype/ctype-alpha-tests: Likewise.
49322         * modules/unictype/ctype-blank-tests: Likewise.
49323         * modules/unictype/ctype-cntrl-tests: Likewise.
49324         * modules/unictype/ctype-digit-tests: Likewise.
49325         * modules/unictype/ctype-graph-tests: Likewise.
49326         * modules/unictype/ctype-lower-tests: Likewise.
49327         * modules/unictype/ctype-print-tests: Likewise.
49328         * modules/unictype/ctype-punct-tests: Likewise.
49329         * modules/unictype/ctype-space-tests: Likewise.
49330         * modules/unictype/ctype-upper-tests: Likewise.
49331         * modules/unictype/ctype-xdigit-tests: Likewise.
49332         * modules/unictype/decimal-digit-tests: Likewise.
49333         * modules/unictype/digit-tests: Likewise.
49334         * modules/unictype/mirror-tests: Likewise.
49335         * modules/unictype/numeric-tests: Likewise.
49336         * modules/unictype/property-alphabetic-tests: Likewise.
49337         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
49338         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
49339         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
49340         * modules/unictype/property-bidi-block-separator-tests: Likewise.
49341         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
49342         * modules/unictype/property-bidi-common-separator-tests: Likewise.
49343         * modules/unictype/property-bidi-control-tests: Likewise.
49344         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
49345         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
49346         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
49347         * modules/unictype/property-bidi-european-digit-tests: Likewise.
49348         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
49349         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
49350         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
49351         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
49352         * modules/unictype/property-bidi-pdf-tests: Likewise.
49353         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
49354         * modules/unictype/property-bidi-whitespace-tests: Likewise.
49355         * modules/unictype/property-byname-tests: Likewise.
49356         * modules/unictype/property-combining-tests: Likewise.
49357         * modules/unictype/property-composite-tests: Likewise.
49358         * modules/unictype/property-currency-symbol-tests: Likewise.
49359         * modules/unictype/property-dash-tests: Likewise.
49360         * modules/unictype/property-decimal-digit-tests: Likewise.
49361         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
49362         * modules/unictype/property-deprecated-tests: Likewise.
49363         * modules/unictype/property-diacritic-tests: Likewise.
49364         * modules/unictype/property-extender-tests: Likewise.
49365         * modules/unictype/property-format-control-tests: Likewise.
49366         * modules/unictype/property-grapheme-base-tests: Likewise.
49367         * modules/unictype/property-grapheme-extend-tests: Likewise.
49368         * modules/unictype/property-grapheme-link-tests: Likewise.
49369         * modules/unictype/property-hex-digit-tests: Likewise.
49370         * modules/unictype/property-hyphen-tests: Likewise.
49371         * modules/unictype/property-id-continue-tests: Likewise.
49372         * modules/unictype/property-id-start-tests: Likewise.
49373         * modules/unictype/property-ideographic-tests: Likewise.
49374         * modules/unictype/property-ids-binary-operator-tests: Likewise.
49375         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
49376         * modules/unictype/property-ignorable-control-tests: Likewise.
49377         * modules/unictype/property-iso-control-tests: Likewise.
49378         * modules/unictype/property-join-control-tests: Likewise.
49379         * modules/unictype/property-left-of-pair-tests: Likewise.
49380         * modules/unictype/property-line-separator-tests: Likewise.
49381         * modules/unictype/property-logical-order-exception-tests: Likewise.
49382         * modules/unictype/property-lowercase-tests: Likewise.
49383         * modules/unictype/property-math-tests: Likewise.
49384         * modules/unictype/property-non-break-tests: Likewise.
49385         * modules/unictype/property-not-a-character-tests: Likewise.
49386         * modules/unictype/property-numeric-tests: Likewise.
49387         * modules/unictype/property-other-alphabetic-tests: Likewise.
49388         * modules/unictype/property-other-default-ignorable-code-point-tests:
49389         Likewise.
49390         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
49391         * modules/unictype/property-other-id-continue-tests: Likewise.
49392         * modules/unictype/property-other-id-start-tests: Likewise.
49393         * modules/unictype/property-other-lowercase-tests: Likewise.
49394         * modules/unictype/property-other-math-tests: Likewise.
49395         * modules/unictype/property-other-uppercase-tests: Likewise.
49396         * modules/unictype/property-paired-punctuation-tests: Likewise.
49397         * modules/unictype/property-paragraph-separator-tests: Likewise.
49398         * modules/unictype/property-pattern-syntax-tests: Likewise.
49399         * modules/unictype/property-pattern-white-space-tests: Likewise.
49400         * modules/unictype/property-private-use-tests: Likewise.
49401         * modules/unictype/property-punctuation-tests: Likewise.
49402         * modules/unictype/property-quotation-mark-tests: Likewise.
49403         * modules/unictype/property-radical-tests: Likewise.
49404         * modules/unictype/property-sentence-terminal-tests: Likewise.
49405         * modules/unictype/property-soft-dotted-tests: Likewise.
49406         * modules/unictype/property-space-tests: Likewise.
49407         * modules/unictype/property-terminal-punctuation-tests: Likewise.
49408         * modules/unictype/property-test-tests: Likewise.
49409         * modules/unictype/property-titlecase-tests: Likewise.
49410         * modules/unictype/property-unassigned-code-value-tests: Likewise.
49411         * modules/unictype/property-unified-ideograph-tests: Likewise.
49412         * modules/unictype/property-uppercase-tests: Likewise.
49413         * modules/unictype/property-variation-selector-tests: Likewise.
49414         * modules/unictype/property-white-space-tests: Likewise.
49415         * modules/unictype/property-xid-continue-tests: Likewise.
49416         * modules/unictype/property-xid-start-tests: Likewise.
49417         * modules/unictype/property-zero-width-tests: Likewise.
49418         * modules/unictype/scripts-tests: Likewise.
49419         * modules/unictype/syntax-c-ident-tests: Likewise.
49420         * modules/unictype/syntax-c-whitespace-tests: Likewise.
49421         * modules/unictype/syntax-java-ident-tests: Likewise.
49422         * modules/unictype/syntax-java-whitespace-tests: Likewise.
49423         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
49424         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
49425         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
49426         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
49427         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
49428         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
49429         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
49430         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
49431         * modules/uniname/uniname-tests: Likewise.
49432         * modules/uninorm/canonical-decomposition-tests: Likewise.
49433         * modules/uninorm/compat-decomposition-tests: Likewise.
49434         * modules/uninorm/composition-tests: Likewise.
49435         * modules/uninorm/decomposing-form-tests: Likewise.
49436         * modules/uninorm/decomposition-tests: Likewise.
49437         * modules/uninorm/filter-tests: Likewise.
49438         * modules/uninorm/nfc-tests: Likewise.
49439         * modules/uninorm/nfd-tests: Likewise.
49440         * modules/uninorm/nfkc-tests: Likewise.
49441         * modules/uninorm/nfkd-tests: Likewise.
49442         * modules/uninorm/u8-normcmp-tests: Likewise.
49443         * modules/uninorm/u8-normcoll-tests: Likewise.
49444         * modules/uninorm/u16-normcmp-tests: Likewise.
49445         * modules/uninorm/u16-normcoll-tests: Likewise.
49446         * modules/uninorm/u32-normcmp-tests: Likewise.
49447         * modules/uninorm/u32-normcoll-tests: Likewise.
49448         * modules/unistdio/u8-asnprintf-tests: Likewise.
49449         * modules/unistdio/u8-vasnprintf-tests: Likewise.
49450         * modules/unistdio/u8-vasprintf-tests: Likewise.
49451         * modules/unistdio/u8-vsnprintf-tests: Likewise.
49452         * modules/unistdio/u8-vsprintf-tests: Likewise.
49453         * modules/unistdio/u16-asnprintf-tests: Likewise.
49454         * modules/unistdio/u16-vasnprintf-tests: Likewise.
49455         * modules/unistdio/u16-vasprintf-tests: Likewise.
49456         * modules/unistdio/u16-vsnprintf-tests: Likewise.
49457         * modules/unistdio/u16-vsprintf-tests: Likewise.
49458         * modules/unistdio/u32-asnprintf-tests: Likewise.
49459         * modules/unistdio/u32-vasnprintf-tests: Likewise.
49460         * modules/unistdio/u32-vasprintf-tests: Likewise.
49461         * modules/unistdio/u32-vsnprintf-tests: Likewise.
49462         * modules/unistdio/u32-vsprintf-tests: Likewise.
49463         * modules/unistdio/ulc-asnprintf-tests: Likewise.
49464         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
49465         * modules/unistdio/ulc-vasprintf-tests: Likewise.
49466         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
49467         * modules/unistdio/ulc-vsprintf-tests: Likewise.
49468         * modules/unistr/u8-check-tests: Likewise.
49469         * modules/unistr/u8-chr-tests: Likewise.
49470         * modules/unistr/u8-cmp-tests: Likewise.
49471         * modules/unistr/u8-cmp2-tests: Likewise.
49472         * modules/unistr/u8-cpy-alloc-tests: Likewise.
49473         * modules/unistr/u8-cpy-tests: Likewise.
49474         * modules/unistr/u8-mblen-tests: Likewise.
49475         * modules/unistr/u8-mbsnlen-tests: Likewise.
49476         * modules/unistr/u8-mbtouc-tests: Likewise.
49477         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
49478         * modules/unistr/u8-mbtoucr-tests: Likewise.
49479         * modules/unistr/u8-move-tests: Likewise.
49480         * modules/unistr/u8-next-tests: Likewise.
49481         * modules/unistr/u8-prev-tests: Likewise.
49482         * modules/unistr/u8-set-tests: Likewise.
49483         * modules/unistr/u8-stpcpy-tests: Likewise.
49484         * modules/unistr/u8-stpncpy-tests: Likewise.
49485         * modules/unistr/u8-strcat-tests: Likewise.
49486         * modules/unistr/u8-strcmp-tests: Likewise.
49487         * modules/unistr/u8-strcoll-tests: Likewise.
49488         * modules/unistr/u8-strcpy-tests: Likewise.
49489         * modules/unistr/u8-strdup-tests: Likewise.
49490         * modules/unistr/u8-strlen-tests: Likewise.
49491         * modules/unistr/u8-strmblen-tests: Likewise.
49492         * modules/unistr/u8-strmbtouc-tests: Likewise.
49493         * modules/unistr/u8-strncat-tests: Likewise.
49494         * modules/unistr/u8-strncmp-tests: Likewise.
49495         * modules/unistr/u8-strncpy-tests: Likewise.
49496         * modules/unistr/u8-strnlen-tests: Likewise.
49497         * modules/unistr/u8-to-u16-tests: Likewise.
49498         * modules/unistr/u8-to-u32-tests: Likewise.
49499         * modules/unistr/u8-uctomb-tests: Likewise.
49500         * modules/unistr/u16-check-tests: Likewise.
49501         * modules/unistr/u16-chr-tests: Likewise.
49502         * modules/unistr/u16-cmp-tests: Likewise.
49503         * modules/unistr/u16-cmp2-tests: Likewise.
49504         * modules/unistr/u16-cpy-alloc-tests: Likewise.
49505         * modules/unistr/u16-cpy-tests: Likewise.
49506         * modules/unistr/u16-mblen-tests: Likewise.
49507         * modules/unistr/u16-mbsnlen-tests: Likewise.
49508         * modules/unistr/u16-mbtouc-tests: Likewise.
49509         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
49510         * modules/unistr/u16-mbtoucr-tests: Likewise.
49511         * modules/unistr/u16-move-tests: Likewise.
49512         * modules/unistr/u16-next-tests: Likewise.
49513         * modules/unistr/u16-prev-tests: Likewise.
49514         * modules/unistr/u16-set-tests: Likewise.
49515         * modules/unistr/u16-stpcpy-tests: Likewise.
49516         * modules/unistr/u16-stpncpy-tests: Likewise.
49517         * modules/unistr/u16-strcat-tests: Likewise.
49518         * modules/unistr/u16-strcmp-tests: Likewise.
49519         * modules/unistr/u16-strcoll-tests: Likewise.
49520         * modules/unistr/u16-strcpy-tests: Likewise.
49521         * modules/unistr/u16-strdup-tests: Likewise.
49522         * modules/unistr/u16-strlen-tests: Likewise.
49523         * modules/unistr/u16-strmblen-tests: Likewise.
49524         * modules/unistr/u16-strmbtouc-tests: Likewise.
49525         * modules/unistr/u16-strncat-tests: Likewise.
49526         * modules/unistr/u16-strncmp-tests: Likewise.
49527         * modules/unistr/u16-strncpy-tests: Likewise.
49528         * modules/unistr/u16-strnlen-tests: Likewise.
49529         * modules/unistr/u16-to-u32-tests: Likewise.
49530         * modules/unistr/u16-to-u8-tests: Likewise.
49531         * modules/unistr/u16-uctomb-tests: Likewise.
49532         * modules/unistr/u32-check-tests: Likewise.
49533         * modules/unistr/u32-chr-tests: Likewise.
49534         * modules/unistr/u32-cmp-tests: Likewise.
49535         * modules/unistr/u32-cmp2-tests: Likewise.
49536         * modules/unistr/u32-cpy-alloc-tests: Likewise.
49537         * modules/unistr/u32-cpy-tests: Likewise.
49538         * modules/unistr/u32-mblen-tests: Likewise.
49539         * modules/unistr/u32-mbsnlen-tests: Likewise.
49540         * modules/unistr/u32-mbtouc-tests: Likewise.
49541         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
49542         * modules/unistr/u32-mbtoucr-tests: Likewise.
49543         * modules/unistr/u32-move-tests: Likewise.
49544         * modules/unistr/u32-next-tests: Likewise.
49545         * modules/unistr/u32-prev-tests: Likewise.
49546         * modules/unistr/u32-set-tests: Likewise.
49547         * modules/unistr/u32-stpcpy-tests: Likewise.
49548         * modules/unistr/u32-stpncpy-tests: Likewise.
49549         * modules/unistr/u32-strcat-tests: Likewise.
49550         * modules/unistr/u32-strcmp-tests: Likewise.
49551         * modules/unistr/u32-strcoll-tests: Likewise.
49552         * modules/unistr/u32-strcpy-tests: Likewise.
49553         * modules/unistr/u32-strdup-tests: Likewise.
49554         * modules/unistr/u32-strlen-tests: Likewise.
49555         * modules/unistr/u32-strmblen-tests: Likewise.
49556         * modules/unistr/u32-strmbtouc-tests: Likewise.
49557         * modules/unistr/u32-strncat-tests: Likewise.
49558         * modules/unistr/u32-strncmp-tests: Likewise.
49559         * modules/unistr/u32-strncpy-tests: Likewise.
49560         * modules/unistr/u32-strnlen-tests: Likewise.
49561         * modules/unistr/u32-to-u16-tests: Likewise.
49562         * modules/unistr/u32-to-u8-tests: Likewise.
49563         * modules/unistr/u32-uctomb-tests: Likewise.
49564         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
49565         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
49566         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
49567         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
49568         * modules/uniwidth/u8-strwidth-tests: Likewise.
49569         * modules/uniwidth/u8-width-tests: Likewise.
49570         * modules/uniwidth/u16-strwidth-tests: Likewise.
49571         * modules/uniwidth/u16-width-tests: Likewise.
49572         * modules/uniwidth/u32-strwidth-tests: Likewise.
49573         * modules/uniwidth/u32-width-tests: Likewise.
49574         * modules/uniwidth/width-tests: Likewise.
49576 2010-05-18  Richard Jones  <rjones@redhat.com>
49578         doc: users.txt: list hivex
49579         * users.txt: Add hivex.
49581 2010-05-18  Richard Jones  <rjones@redhat.com>
49583         doc: users.txt: list febootstrap
49584         * users.txt: Add febootstrap.
49586 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
49588         bootstrap: fix an error when gnulib is not used as a git submodule
49589         * build-aux/bootstrap (gnulib_path): If its length is zero then
49590         assign "gnulib" to it.
49591         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
49593 2010-05-16  Bruno Haible  <bruno@clisp.org>
49595         Avoid autoconf warnings about AM_ICONV.
49596         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
49597         2.64.
49599 2010-05-16  Bruno Haible  <bruno@clisp.org>
49601         absolute-header: Make the macro usable in more situations.
49602         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
49603         from gl_ABSOLUTE_HEADER.
49604         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
49606 2010-05-16  James Youngman  <jay@gnu.org>
49608         doc: update users.txt
49609         * users.txt: Add CSSC.
49611 2010-05-16  Jim Meyering  <meyering@redhat.com>
49613         init.sh: fix an error in the previous change; add more comments
49614         * tests/init.sh: Compare exit code in loop against 9, not 2.
49615         Patch by Bruno Haible.
49616         Make the two tests more similar by adding an empty "then" clause.
49617         Add comments.
49619         init.sh: avoid unnecessary shell re-exec
49620         * tests/init.sh: Improve the re-exec-required check to first test the
49621         current shell.  If it passes the test, do not search for a shell that
49622         does pass, and do not re-exec.  This test is particularly contorted to
49623         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
49624         of $(...) evokes a syntax error and causes immediate shell exit with
49625         status 2.  Bruno Haible reported that the re-exec made it impossible
49626         to single-step through any init.sh-using script.
49628 2010-05-16  Bruno Haible  <bruno@clisp.org>
49630         Fix collision between gnulib's and libintl's printf replacements.
49631         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
49632         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
49633         (printf): When using GNU C, map the __printf__ function to rpl_printf
49634         via __asm__. When not using GNU C, define rpl_printf instead of
49635         __printf__.
49636         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
49637         commit.
49638         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
49639         commit.
49640         * m4/asm-underscore.m4: New file.
49641         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
49642         * modules/stdio (Files): Add m4/asm-underscore.m4.
49643         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
49644         Reported by Ben Pfaff.
49646 2010-05-16  Bruno Haible  <bruno@clisp.org>
49648         verify: Avoid skipping the test on openSUSE 11.0.
49649         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
49651 2010-05-13  Bruno Haible  <bruno@clisp.org>
49653         Avoid useless warnings from G++.
49654         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
49655         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
49656         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49658 2010-05-11  Jim Meyering  <meyering@redhat.com>
49660         maint.mk: tweak preceding change
49661         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
49662         regexps tighter by anchoring at EOL, and make the new group "shy"
49663         for slightly decreased overhead.
49665 2010-05-11  Eric Blake  <eblake@redhat.com>
49667         maint.mk: gnulib doesn't guarantee NSIG
49668         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
49670 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
49672         test-pwrite.c: Remove unused variable declaration.
49673         * tests/test-pwrite.c (main): Remove read_buf declaration.
49675         Remove useless test-pwrite.sh file.
49676         * tests/test-pwrite.sh: Delete file.
49677         * modules/pwrite-tests: Remove references.
49678         Reported by Bruno Haible.
49680 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
49682         init.sh: fix a typo
49683         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
49685 2010-05-10  Jim Meyering  <meyering@redhat.com>
49687         maint.mk: avoid using a temporary file in the always-defined-macros check
49688         * top/maint.mk (.re-defmac): Remove rule.
49689         (gl_trap_): Remove definition.
49690         (sc_prohibit_always-defined_macros): Rewrite not to create and
49691         depend on a temporary file.  Instead, depend on GNU grep's ability
49692         to read a list of regular expressions from stdin when given "-f -".
49694 2010-05-09  Bruno Haible  <bruno@clisp.org>
49696         Update to GNU gettext 0.18, part 1.
49697         * m4/gettext.m4: Update to GNU gettext 0.18.
49698         * m4/intl.m4: Likewise.
49699         * m4/po.m4: Likewise.
49700         * modules/gettext (Files): Add m4/fcntl-o.m4.
49701         (configure.ac): Require gettext infrastructure from version 0.18.
49703 2010-05-09  Jim Meyering  <meyering@redhat.com>
49705         init.sh: enable MALLOC_PERTURB_
49706         * tests/init.sh: Enable glibc's malloc-perturbing option.
49708         maint.mk: improve sc_cross_check_PATH_usage_in_tests
49709         With my recent change in init.sh from the two-line form:
49710             -#   : ${srcdir=.}
49711             -#   . "$srcdir/init.sh"; path_prepend_ .
49712             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
49713         I noticed that using the one-line form would cause this test
49714         to fail with a false-positive, or to stop working altogether,
49715         depending on whether help-version changed or all the tests did.
49716         * top/maint.mk (_hv_regex): Remove this definition.
49717         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
49718         (_hv_regex_strong): Use a stronger regex to check for conformance.
49719         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
49720         Give a separate diagnostic for lack of conforming use.
49722         maint.mk: prohibit definition of symbols defined by gnulib
49723         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
49724         definition of symbols defined by gnulib.
49726 2010-05-09  Bruno Haible  <bruno@clisp.org>
49728         acl: Avoid test failure on Cygwin-hosted mingw.
49729         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
49731 2010-05-09  Bruno Haible  <bruno@clisp.org>
49733         error: Use system's fcntl function.
49734         * lib/error.c (fcntl): Undefine.
49736 2010-05-09  Jim Meyering  <meyering@redhat.com>
49738         verify: adjust formatting to be more consistent
49739         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
49740         argument-list '('s, and after one comma.
49742 2010-05-09  Bruno Haible  <bruno@clisp.org>
49744         error: More reliable output on mingw.
49745         * lib/error.c: Include <windows.h>.
49746         (is_open): New function.
49747         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
49748         defined.
49750 2010-05-09  Bruno Haible  <bruno@clisp.org>
49752         vasnprintf: Fix syntax errors in libintl build on mingw.
49753         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
49754         pad_ourselves and prec_ourselves after use.
49756 2010-05-08  Bruno Haible  <bruno@clisp.org>
49758         * lib/config.charset: Update comments for Cygwin 1.7.
49759         * lib/localcharset.c: Likewise.
49761 2010-05-07  Jim Meyering  <meyering@redhat.com>
49763         init.sh: improve comments
49764         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
49765         . "${srcdir=.}/init.sh"; path_prepend_ .
49766         Add a note about path_prepend_ and the alternative of using
49767         TESTS_ENVIRONMENT.
49769 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
49771         exclude: Unescape hashed patterns in wildcard mode.
49772         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
49773         to the hash list.
49774         * tests/test-exclude8.sh: New test case.
49775         * modules/exclude-tests: Add new test.
49777 2010-05-05  Eric Blake  <eblake@redhat.com>
49779         verify: automate tests
49780         * modules/verify-tests: New module.
49781         * tests/test-verify.sh: New file.
49782         * tests/test-verify.c: Guard each negative test with a unique id.
49783         Also avoid warning about unused left hand of comma expressions.
49785 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
49787         Further improvements to verify.h, suggested by Eric Blake.
49788         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
49789         the GL_* versions, to avoid collision with OpenGL.
49790         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
49791         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
49792         than testing merely whether it's defined.
49794         Modify verify.h to pacify gcc -Wredundant_decls.
49795         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
49796         These use the prefix "GL_" since they're likely to be useful elsewhere.
49797         We may need to break them out into a different .h file.
49798         (__COUNTER__): Define to 0 if the compiler doesn't support it.
49799         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
49800         of verify_function__.
49802 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
49804         Tests for module pwrite.
49805         * modules/pwrite-tests: New file.
49806         * tests/test-pwrite.sh: New file.
49807         * tests/test-pwrite.c: New file.
49809         New module pwrite.
49810         * lib/unistd.in.h (pwrite): New declaration.
49811         * lib/pwrite.c: New file, from glibc with modifications.
49812         * m4/pwrite.m4: New file.
49813         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
49814         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
49815         REPLACE_PWRITE.
49816         * modules/pwrite: New file.
49817         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
49818         REPLACE_PWRITE.
49819         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
49820         * doc/posix-functions/pwrite.texi: Mention the new module.
49822 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
49824         pread: Update documentation.
49825         * doc/posix-functions/pread.texi: Mention the 'pread' module.
49827 2010-05-04  Eric Blake  <eblake@redhat.com>
49829         docs: update cygwin progress
49830         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
49831         this bug.
49832         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
49833         Added in cygwin 1.7.2.
49834         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
49835         Likewise.
49836         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
49837         Likewise.
49838         * doc/glibc-functions/dup3.texi (dup3): Likewise.
49839         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
49840         * doc/glibc-functions/accept4.texi (accept4): Likewise.
49841         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
49842         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
49843         Mention nproc module.
49844         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
49845         bug in cygwin 1.7.5 addition.
49846         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
49847         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
49848         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
49849         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
49850         1.7.5.
49851         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
49852         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
49853         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
49854         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
49855         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
49856         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
49857         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
49858         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
49859         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
49860         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
49861         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
49862         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
49863         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
49864         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
49865         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
49866         Likewise.
49867         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
49868         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
49869         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
49870         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
49871         Likewise.
49872         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
49873         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
49874         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
49875         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
49876         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
49877         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
49878         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
49879         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
49880         Likewise.
49881         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
49882         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
49883         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
49884         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
49885         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
49886         Likewise.
49887         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
49888         Likewise.
49889         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
49890         Likewise.
49891         * doc/glibc-functions/xdrrec_endofrecord.texi
49892         (xdrrec_endofrecord): Likewise.
49893         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
49894         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
49895         Likewise.
49896         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
49897         Likewise.
49899 2010-05-04  Jim Meyering  <meyering@redhat.com>
49901         gendocs.sh: make its "-s FILE" option more useful
49902         * build-aux/gendocs.sh: When honoring the -s FILE option, update
49903         $PACKAGE to reflect the probably-different basename of "FILE".
49905 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49907         bootstrap: don't ignore download_po_files failure
49908         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
49909         failure.
49911 2010-05-03  Jim Meyering  <meyering@redhat.com>
49913         maint.mk: allow to pass options to gendocs.sh
49914         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
49915         (gendocs_options_): New overridable variable.
49917         gnu-web-doc-update: don't ignore configure or build failure
49918         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
49920         announce-gen: backslash-escape '@'s in --help output
49921         * build-aux/announce-gen: Fix syntax errors.
49923         maint.mk, announce-gen: allow project-specific announcement mail headers
49924         * top/maint.mk (translation_project_): Define default.
49925         (announcement_Cc_, announcement_mail_headers_): Likewise.
49926         (announcement): Invoke announce-gen with new --mail-headers option.
49927         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
49929         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
49930         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
49931         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
49932         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
49933         line in the "err2" output file when running "make check" in verbose
49934         mode (i.e., with set -x enabled).
49936 2010-05-03  Bruno Haible  <bruno@clisp.org>
49938         wctob: Fix for weird platforms.
49939         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
49940         argument value.
49942 2010-05-03  Jim Meyering  <meyering@redhat.com>
49944         maint.mk: prohibit unwarranted use of <strings.h>
49945         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
49946         strings.h in a file that does not also use strcasecmp, strncasecmp,
49947         ffs or ffsll.
49949         maint.mk: remove obsolete comments
49950         * top/maint.mk: Remove stale, commented-out rules.
49952 2010-05-02  Bruno Haible  <bruno@clisp.org>
49954         wcwidth: Declare also when it's aliased.
49955         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
49956         macro.
49958 2010-05-02  Bruno Haible  <bruno@clisp.org>
49960         Fix regression from 2010-04-25.
49961         * gnulib-tool (func_modules_transitive_closure): Check the status of
49962         all modules, not only of the tests that are of the form foo-tests where
49963         foo is a module.
49965 2010-05-02  Bruno Haible  <bruno@clisp.org>
49967         wctob: Work around nasty Cygwin 1.7.2 bug.
49968         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
49969         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
49971 2010-05-01  Bruno Haible  <bruno@clisp.org>
49973         fpurge: Sharper test.
49974         * tests/test-fpurge.c (main): Add one more ftell check.
49975         * modules/fpurge-tests (Depends-on): Add ftell.
49976         Suggested by Eric Blake.
49978 2010-05-01  Bruno Haible  <bruno@clisp.org>
49980         ftello: Another test.
49981         * tests/test-ftello3.c: New file.
49982         * modules/ftello-tests (Files): Add it.
49983         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
49984         MOSTLYCLEANFILES.
49986         ftell: Another test.
49987         * tests/test-ftell3.c: New file.
49988         * modules/ftell-tests (Files): Add it.
49989         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
49990         MOSTLYCLEANFILES.
49992 2010-05-01  Bruno Haible  <bruno@clisp.org>
49994         ftell, ftello: Work around Solaris bug.
49995         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
49996         * lib/ftello.c: Include stdio-impl.h.
49997         (ftello): On Solaris, when _IOWRT is set, compute the result without
49998         looking at _IOREAD.
49999         * modules/ftello (Files): Add lib/stdio-impl.h.
50000         * doc/posix-functions/ftell.texi: Mention Solaris bug.
50001         * doc/posix-functions/ftello.texi: Likewise.
50002         Reported by Eric Blake.
50004 2010-05-01  Bruno Haible  <bruno@clisp.org>
50006         freading: Adapt to special meaning of _IOREAD flag on Solaris.
50007         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
50008         the _IOWRT flag is also set.
50010 2010-05-01  Bruno Haible  <bruno@clisp.org>
50012         Fix doc about a HP-UX stdio bug.
50013         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
50014         * doc/posix-functions/ftello.texi: Likewise.
50016 2010-05-01  Bruno Haible  <bruno@clisp.org>
50018         lseek test: Fix failure on Solaris.
50019         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
50020         output.
50022 2010-04-30  Jim Meyering  <meyering@redhat.com>
50024         bootstrap: don't ignore failure to generate po*/Makevars
50025         * build-aux/bootstrap (with_gettext): Don't ignore failure
50026         to create po/Makevars or runtime-po/Makevars.
50028 2010-04-29  Eric Blake  <eblake@redhat.com>
50030         headers: relax license to LGPLv2+
50031         * modules/fcntl-h (License): Relax license.
50032         * modules/getopt-posix (License): Likewise.
50033         * modules/locale (License): Likewise.
50034         * modules/math (License): Likewise.
50035         * modules/pty (License): Likewise.
50036         * modules/sched (License): Likewise.
50037         * modules/search (License): Likewise.
50038         * modules/spawn (License): Likewise.
50039         * modules/stdarg (License): Likewise.
50040         * modules/sysexits (License): Likewise.
50042 2010-04-29  Jim Meyering  <meyering@redhat.com>
50044         inttypes: relax license to LGPLv2+
50045         * modules/inttypes (License): Relax license.
50047 2010-04-29  Simon Josefsson  <simon@josefsson.org>
50049         * top/maint.mk (indent): Run twice to produce idempotent results.
50051 2010-04-28  Bruno Haible  <bruno@clisp.org>
50053         getdate: Generate getdate.c in the source directory.
50054         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
50055         MOSTLYCLEANFILES.
50056         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
50058 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
50060         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
50061         is not declared as a const *; avoid warnings in that case.
50063 2010-04-28  Eric Blake  <eblake@redhat.com>
50065         canonicalize-lgpl: avoid compiler warning
50066         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
50067         declaration' / 'extraneous semicolon' warning with some compilers.
50068         Reported by Andreas Gruenbacher.
50070 2010-04-28  Jim Meyering  <meyering@redhat.com>
50072         init.sh: ensure a more reliable exit status when exiting via trap
50073         * tests/init.sh (setup_): Don't rely on $? in signal handler.
50074         Inspired by patches from Dmitry V. Levin.
50075         Also trap on signal 3 (SIGQUIT).
50077 2010-04-27  Bruno Haible  <bruno@clisp.org>
50079         Update doc about utimes().
50080         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
50081         'utimens' module.
50082         Reported by Andreas Gruenbacher <agruen@suse.de>.
50084 2010-04-27  Eric Blake  <eblake@redhat.com>
50086         full-read, full-write: relax license
50087         * modules/full-read (License): Drop to LGPLv2+.
50088         * modules/full-write (License): Likewise.
50089         * modules/safe-read (License): Likewise.
50090         * modules/safe-write (License): Likewise.
50092         pthread: mention library for linking
50093         * modules/pthread (Link): Mention $(LIB_PTHREAD).
50095 2010-04-27  Jim Meyering  <meyering@redhat.com>
50097         maint.mk: fix a bug introduced in last change
50098         * top/maint.mk (gl_assured_headers_): Now that all names are on
50099         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
50100         is not anchored to end of word, it should be adequate.
50102         maint.mk: avoid side-effect in latest syntax-check
50103         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
50104         to run commands via $(shell...), and hence to incur cost only when
50105         the new rule is actually run.
50107         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
50108         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
50109         and use that to create a regexp used to detect all #if HAVE_..._H uses.
50110         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
50111         (gl_assured_headers_, az_, AZ_): Define.
50112         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
50114 2010-04-26  Jim Meyering  <jim@meyering.net>
50115             Bruno Haible  <bruno@clisp.org>
50117         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
50118         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
50119         Prompted by an exchange with Gilles Espinasse.
50121 2010-04-26  Jim Meyering  <meyering@redhat.com>
50123         git-version-gen: aesthetic tweak
50124         * build-aux/git-version-gen: Use "$nl" rather than a literal,
50125         so that the command remains on a single line.
50127 2010-04-26  Eric Blake  <eblake@redhat.com>
50129         git-version-gen: allow use on EBCDIC hosts
50130         * build-aux/git-version-gen (dirty): Use literal rather than tying
50131         ourselves to ascii.
50132         Reported by Steve Goetze.
50134 2010-04-25  Bruno Haible  <bruno@clisp.org>
50136         netdb: Add support for GNULIB_POSIXCHECK.
50137         * lib/netdb.in.h: Include warn-on-use.h.
50138         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
50139         functions are used when GNULIB_POSIXCHECK is defined and the
50140         getaddrinfo module is not in use.
50141         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
50142         freeaddrinfo, gai_strerror, getnameinfo are declared.
50143         * modules/netdb (Depends-on): Add warn-on-use.
50144         (Makefile.am): Include warn-on-use.h in netdb.h.
50146 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
50148         build: avoid "make check" failure without .git/ directory
50149         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
50150         there is no .git/ directory.
50152 2010-04-25  Bruno Haible  <bruno@clisp.org>
50154         ptsname: Fix misuse of ttyname_r.
50155         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
50156         of errno.
50158 2010-04-25  Bruno Haible  <bruno@clisp.org>
50160         ttyname_r: Make it work on Solaris 10.
50161         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
50162         if the system function has the POSIX declaration. Test whether the
50163         function fails if the buffer is less than 128 bytes large.
50164         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
50165         system's ttyname_r function. Provide a reasonably large buffer.
50166         * modules/ttyname_r (Depends-on): Add extensions.
50167         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
50169 2010-04-25  Bruno Haible  <bruno@clisp.org>
50171         Use the 'extensions' module for some more functions on Solaris.
50172         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
50173         module.
50174         * doc/posix-functions/ctime_r.texi: Likewise.
50175         * doc/posix-functions/getgrgid_r.texi: Likewise.
50176         * doc/posix-functions/getgrnam_r.texi: Likewise.
50177         * doc/posix-functions/getpwnam_r.texi: Likewise.
50178         * doc/posix-functions/getpwuid_r.texi: Likewise.
50179         * doc/posix-functions/readdir_r.texi: Likewise.
50180         * doc/posix-functions/sigwait.texi: Likewise.
50181         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
50182         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
50184 2010-04-25  Bruno Haible  <bruno@clisp.org>
50186         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
50187         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
50188         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
50189         * lib/ttyname_r.c: Include <limits.h>.
50190         (ttyname_r): Define using the system's ttyname_r function, if it exists
50191         and not on Solaris.
50192         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
50193         set.
50194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
50195         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
50196         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
50197         Reported by Simon Josefsson.
50199 2010-04-25  Bruno Haible  <bruno@clisp.org>
50201         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
50202         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
50203         * doc/posix-functions/ctime_r.texi: Likewise.
50204         * doc/posix-functions/getgrgid_r.texi: Likewise.
50205         * doc/posix-functions/getgrnam_r.texi: Likewise.
50206         * doc/posix-functions/getlogin_r.texi: Likewise.
50207         * doc/posix-functions/getpwnam_r.texi: Likewise.
50208         * doc/posix-functions/getpwuid_r.texi: Likewise.
50209         * doc/posix-functions/readdir_r.texi: Likewise.
50210         * doc/posix-functions/sigwait.texi: Likewise.
50211         * doc/posix-functions/ttyname_r.texi: Likewise.
50212         Reported by Simon Josefsson.
50214 2010-04-25  Bruno Haible  <bruno@clisp.org>
50216         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
50217         * gnulib-tool (func_usage): Document that --with-*-tests options apply
50218         also to --create-testdir.
50219         (func_acceptable): Don't consider the status of *-tests modules here.
50220         (func_modules_transitive_closure): Consider it here, before including a
50221         test module.
50222         (func_import, func_create_testdir): Set inc_all_direct_tests,
50223         inc_all_indirect_tests.
50224         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
50225         --create-testdir and --create-megatestdir.
50227 2010-04-25  Bruno Haible  <bruno@clisp.org>
50229         gnulib-tool: Add --without-*-tests options.
50230         * gnulib-tool (func_usage): Document the --without-*-tests options.
50231         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
50232         excl_unportable_tests): New variables.
50233         Fail if they are specified with --import or --update.
50234         (func_acceptable): Respect the excl_*_tests variables.
50235         (func_import): Set the excl_*_tests variables to empty.
50237 2010-04-25  Simon Josefsson  <simon@josefsson.org>
50238             Bruno Haible  <bruno@clisp.org>
50240         Work around a MacOS X 10.4 bug with openpty.
50241         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
50242         * tests/test-openpty.c (main): Close the master side explicitly.
50244 2010-04-25  Bruno Haible  <bruno@clisp.org>
50246         strnlen: Fix a C++ test error on MacOS X and Solaris.
50247         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
50248         the function is not declared.
50249         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
50250         Simon Josefsson.
50252 2010-04-24  Bruno Haible  <bruno@clisp.org>
50254         Avoid a gcc warning.
50255         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
50256         of correct type for %08lx directive.
50257         Reported by Eric Blake.
50259 2010-04-24  Bruno Haible  <bruno@clisp.org>
50261         vasnprintf: Correct errno value in case of out-of-memory.
50262         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
50263         or sprintf. Use the errno value from SNPRINTF or sprintf.
50264         Reported by Ian Beckwith <ianb@erislabs.net>.
50266 2010-04-24  Bruno Haible  <bruno@clisp.org>
50268         ansi-c++-opt: Find correct compiler when cross-compiling.
50269         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
50270         AC_CHECK_PROGS.
50271         Reported by Simon Josefsson.
50273 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
50275         vc-list-files: Add support for subversion
50276         * build-aux/vc-list-files: Use "svn list" to generate the list of
50277         files controlled by subversion.
50279 2010-04-23  Jim Meyering  <meyering@redhat.com>
50281         vc-list-files tests: convert to use init.sh
50282         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
50283         path_prepend_.
50284         Use Exit, not exit.
50285         Use skip_ rather than open coding it.
50286         Remove trap set-up and compare definitions.
50287         * tests/test-vc-list-files-git.sh: Likewise.
50288         * modules/vc-list-files-tests (Files): Add tests/init.sh.
50290 2010-04-22  Simon Josefsson  <simon@josefsson.org>
50292         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
50293         backup files.
50295 2010-04-21  Simon Josefsson  <simon@josefsson.org>
50297         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
50299 2010-04-20  Eric Blake  <eblake@redhat.com>
50301         tests: be robust to ignored SIGPIPE
50302         * tests/test-select-in.sh: Consume all output.
50303         * tests/test-lseek.sh: Check correct exit status, while avoiding
50304         EPIPE.
50306 2010-04-20  Simon Josefsson  <simon@josefsson.org>
50307             Bruno Haible  <bruno@clisp.org>
50309         visibility: Don't use -fvisibility if it leads to a warning.
50310         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
50311         yes, don't pretend that visibility works if it leads to a warning.
50312         Reported by Mike Gran <spk121@yahoo.com>.
50314 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
50316         * build-aux/bootstrap: Use "git -h" for testing for supported options
50317         instead of "git --help".  The short-form option only shows a summary,
50318         and doesn't layout the full man page.  Grep for the full option name
50319         in the summary, too.
50321 2010-04-19  Bruno Haible  <bruno@clisp.org>
50323         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
50324         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
50325         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
50326         mention of RELOCATABLE_STRIP.
50327         Reported by Sylvain Beucler <beuc@beuc.net>.
50329 2010-04-19  Bruno Haible  <bruno@clisp.org>
50331         * lib/diffseq.h: Fix typo in comment.
50332         Reported by Eric Blake.
50334 2010-04-19  Bruno Haible  <bruno@clisp.org>
50336         ioctl: Move autoconf macro to a .m4 file.
50337         * m4/ioctl.m4: New file, extracted from modules/ioctl.
50338         * modules/ioctl (Files): Add it.
50339         (configure.ac): Simply invoke gl_FUNC_IOCTL.
50340         Reported by Ian Beckwith <ianb@erislabs.net>.
50342 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
50343             Bruno Haible  <bruno@clisp.org>
50345         diffseq: Accommodate use-case with abstract arrays.
50346         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
50347         is not defined.
50348         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
50349         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
50351 2010-04-18  Bruno Haible  <bruno@clisp.org>
50353         * doc/posix-headers/stdbool.texi: More precise wording.
50355 2010-04-17  Jim Meyering  <meyering@redhat.com>
50357         maint.mk: use gnu-style indentation in an embedded perl script
50358         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
50359         Rename variable: s/two/last_two_bytes/
50361 2010-04-16  Eric Blake  <eblake@redhat.com>
50363         test-stdbool: skip test that fails with Solaris CC
50364         * tests/test-stdbool.c (f): Skip test that causes compilation
50365         error under buggy C++ compiler.
50366         * lib/stdbool.in.h: Document the limitation.
50367         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
50369         setenv: allow compilation with C++
50370         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
50371         register keyword.
50373         stdint: allow test to pass with C++
50374         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
50376         getopt: allow compilation with C++
50377         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
50378         struct.
50379         * lib/getopt.c (_getopt_internal_r): Use correct type.
50380         Reported by Dagobert Michelson, via Joel E. Denny.
50382 2010-04-16  Bruno Haible  <bruno@clisp.org>
50384         Override netdb.h always.
50385         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
50386         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
50387         Reported by Ludovic Courtès <ludo@gnu.org>.
50389 2010-04-15  Bruno Haible  <bruno@clisp.org>
50391         openpty: Fix mistake from 2010-03-21.
50392         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
50393         Reported by Simon Josefsson.
50395 2010-04-15  Eric Blake  <eblake@redhat.com>
50397         test-forkpty: fix expected signature
50398         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
50399         Reported by Simon Josefsson.
50401 2010-04-15  Jim Meyering  <meyering@redhat.com>
50403         maint.mk: texinfo_suffix_re_: correct the default regexp
50404         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
50406         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
50407         make it configurable via texinfo_suffix_re_.
50409 2010-04-14  Eric Blake  <eblake@redhat.com>
50411         strtok_r: relax license to LGPLv2+
50412         * modules/strtok_r (License): Relax license.
50413         Reported by Matthias Bolte.
50415 2010-04-14  Simon Josefsson  <simon@josefsson.org>
50417         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
50418         version 1.4.4 by default instead of requiring the libgcrypt
50419         version used during build.  This makes it possible to use the
50420         application with older but still binary compatible libgcrypt
50421         versions.
50423 2010-04-13  Eric Blake  <eblake@redhat.com>
50425         getopt-gnu: match recent glibc fixes and posix ruling
50426         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
50427         '+' handling, when requesting extensions.
50428         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
50429         'W;' handling.
50430         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
50431         * doc/posix-functions/getopt.texi (getopt): Document this.
50432         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50433         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50434         Likewise.
50436         getopt: merge bug fixes from glibc
50437         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
50438         diagnostics.  Honor '+:' correctly.  Reject ';'.
50440         getopt-posix: detect MacOS bug
50441         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
50442         optind when missing a required argument.
50443         * doc/posix-functions/getopt.texi (getopt): Document the bug.
50444         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50445         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50446         Likewise.
50448         getopt-posix: avoid spurious failure on Solaris
50449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
50450         an indicator that setting optind=1 is sufficient for reset.
50452         getopt-posix: avoid spurious failure on FreeBSD
50453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
50454         in POSIX mode, since the m4 test uses it.
50456         gnulib-tool: silence warning on BSD sh
50457         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
50459 2010-04-13  Jim Meyering  <meyering@redhat.com>
50461         doc: users.txt: GNU patch now uses gnulib
50462         * users.txt: Add patch.
50464 2010-04-12  Jim Meyering  <meyering@redhat.com>
50466         maint.mk: generate more concise timing data for syntax-check rules
50467         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
50468         " done" from each line that reports a syntax-check test duration.
50470 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
50472         git-version-gen: use "git update-index..." rather than "git status"
50473         * build-aux/git-version-gen: Use git update-index --refresh, not
50474         "git status".  With some versions of git, "git status" would fail
50475         to update the index and result in an unwarranted "-dirty" suffix.
50477 2010-04-11  Jim Meyering  <meyering@redhat.com>
50479         openat: correct formatting (no semantic change)
50480         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
50481         Suggested by Bruno Haible.
50483 2010-04-11  Bruno Haible  <bruno@clisp.org>
50485         Stricter declaration checking in testdirs.
50486         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50487         If for_tests is true, augment AM_CPPFLAGS to define
50488         GNULIB_STRICT_CHECKING.
50489         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
50490         GNULIB_STRICT_CHECKING is defined, verify that the function is
50491         declared.
50493 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
50494             Bruno Haible  <bruno@clisp.org>
50496         libunistring: Improve configure output.
50497         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
50498         Don't say "consider installing GNU libunistring" when checking again
50499         with libiconv.
50501 2010-04-11  Bruno Haible  <bruno@clisp.org>
50503         libunistring: Correct value of $LTLIBUNISTRING.
50504         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
50505         correct the value of $LTLIBUNISTRING.
50507 2010-04-11  Bruno Haible  <bruno@clisp.org>
50509         havelib: Add static libraries to LIBS in the right order.
50510         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
50511         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
50513 2010-04-11  Bruno Haible  <bruno@clisp.org>
50515         libunistring: Detect libunistring also when it depends on libiconv.
50516         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
50517         the second AC_LIB_HAVE_LINKFLAGS invocation.
50519 2010-04-11  James Youngman  <jay@gnu.org>
50521         close-stream: declare local scalars to be "const"
50522         * lib/close-stream.c (close_stream): Make boolean variables const
50523         to document the fact that we set but do not change them.
50525 2010-04-11  Bruno Haible  <bruno@clisp.org>
50527         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
50529 2010-04-11  Jim Meyering  <meyering@redhat.com>
50531         maint.mk: don't include dist-check.mk
50532         * top/maint.mk: Remove bogus include directive.
50534         maint.mk: improve empty-line-at-EOF check
50535         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
50536         solution, rather than tail+Perl-based one.  The latter would read
50537         a few kilobytes from the end of each file, and did not handle empty
50538         files properly.
50540         maint.mk: print the elapsed time for each syntax-check rule
50541         * top/maint.mk (sc_m_rules_): Save start time in a file.
50542         (sc_z_rules_): New rules: remove temp file and print elapsed time.
50543         (local-check): Interpose the .z rules
50545 2010-04-11  Jim Meyering  <meyering@redhat.com>
50547         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
50548         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
50549         empty file with one that ends in an empty line.
50551 2010-04-10  Bruno Haible  <bruno@clisp.org>
50553         mkdir: Make it work on mingw64.
50554         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
50555         * lib/mkdir.c: Update comment.
50556         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
50558 2010-04-10  Bruno Haible  <bruno@clisp.org>
50560         Don't override improved macro from newer autoconf.
50561         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
50562         autoconf >= 2.62.
50563         Reported by Joel E. Denny <jdenny@clemson.edu>.
50565 2010-04-10  Jim Meyering  <meyering@redhat.com>
50567         maint.mk: new syntax-check rule: prohibit empty lines at end of file
50568         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
50570         maint.mk: correct a diagnostic
50571         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
50572         in diagnostic; now use $prohibit.
50574 2010-04-10  Bruno Haible  <address@hidden>
50576         fchownat: Fix a C++ test error on Solaris 8.
50577         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
50578         the function does not exist.
50580 2010-04-10  Bruno Haible  <bruno@clisp.org>
50582         vasnprintf: Add more tests.
50583         * tests/test-vasnprintf-posix.c: Include <errno.h>.
50584         (test_function): Test converting an invalid wide string.
50586         vasnprintf: Correct handling of unconvertible wide string arguments.
50587         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
50588         VASNPRINTF.
50589         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
50590         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
50591         smaller than the expected maximum need for the directive. Set errno to
50592         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
50593         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
50594         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
50595         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
50596         * modules/vasnprintf (Files): Add m4/printf.m4.
50597         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50599 2010-04-10  Bruno Haible  <bruno@clisp.org>
50601         vasnprintf: Fix crash in %ls directive.
50602         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
50603         string is passed as argument to %ls, with no precision and no width.
50604         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50606 2010-04-10  Bruno Haible  <bruno@clisp.org>
50608         vasnprintf: Fix multiple test failures on mingw.
50609         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
50610         _snprintf, or snwprintf, not _snwprintf.
50612 2010-04-10  Bruno Haible  <bruno@clisp.org>
50614         write: Fix a C++ test error on mingw.
50615         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
50617 2010-04-10  Bruno Haible  <bruno@clisp.org>
50619         vasnprintf test: Reduce code duplication.
50620         * tests/test-vasnprintf.c (test_function): New function, extracted from
50621         test_vasnprintf.
50622         (test_vasnprintf, test_asnprintf): Invoke it.
50624 2010-04-10  Bruno Haible  <bruno@clisp.org>
50626         strnlen: Fix warning in C++ mode on MacOS X.
50627         * lib/string.in.h (strnlen): Use the modern idiom.
50628         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
50629         defining strnlen as a macro already in <config.h>.
50630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50631         REPLACE_STRNLEN.
50632         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
50633         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50635 2010-04-08  James Youngman  <jay@gnu.org>
50637         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
50638         the example.
50640 2010-04-09  Jim Meyering  <meyering@redhat.com>
50642         maint.mk: print better diagnostic when there is no $(_hv_file)
50643         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
50644         announce that when $(_hv_file) (aka help-version) does not exist.
50646         init.sh: run tr in the "C" locale to avoid multibyte interpretation
50647         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
50648         not try to interpret its random input bytes.  Jarno Rajahalme reported
50649         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
50650         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
50651         (mktempd_): Likewise, just in case.
50653         ftruncate: add two years to projected module removal date: 2012
50654         * m4/ftruncate.m4: Adjust comments.
50656         ftruncate: mark module as obsolete; even MinGW provides it, now
50657         * modules/ftruncate (Status): Obsolete.
50658         (Notice): Say that.
50659         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
50660         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
50662 2010-04-08  Bruno Haible  <bruno@clisp.org>
50664         Fix side effects from tests-related modules.
50665         * modules/dprintf-posix (Comment): New section.
50666         * modules/fprintf-posix (Comment): Likewise.
50667         * modules/obstack-printf-posix (Comment): Likewise.
50668         * modules/printf-posix (Comment): Likewise.
50669         * modules/snprintf-posix (Comment): Likewise.
50670         * modules/sprintf-posix (Comment): Likewise.
50671         * modules/vasnprintf-posix (Comment): Likewise.
50672         * modules/vasprintf-posix (Comment): Likewise.
50673         * modules/vdprintf-posix (Comment): Likewise.
50674         * modules/vfprintf-posix (Comment): Likewise.
50675         * modules/vprintf-posix (Comment): Likewise.
50676         * modules/vsnprintf-posix (Comment): Likewise.
50677         * modules/vsprintf-posix (Comment): Likewise.
50678         * modules/xprintf-posix (Comment): Likewise.
50679         * modules/xvasprintf-posix (Comment): Likewise.
50680         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
50681         * modules/floorf-tests (Depends-on): Likewise.
50682         * modules/round-tests (Depends-on): Likewise.
50683         * modules/roundf-tests (Depends-on): Likewise.
50684         * modules/trunc-tests (Depends-on): Likewise.
50685         * modules/truncf-tests (Depends-on): Likewise.
50686         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
50687         'fprintf-posix' module is not present.
50688         * tests/test-floorf2.c (check): Likewise.
50689         * tests/test-trunc2.c (check): Likewise.
50690         * tests/test-truncf2.c (check): Likewise.
50691         * tests/test-round2.c (equal): Likewise.
50692         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50694 2010-04-07  Karl Berry  <karl@gnu.org>
50696         * config/srclist.txt,
50697         * config/srclistvars.sh,
50698         * config/srclist-update: doc fixes.
50700 2010-04-07  Jim Meyering  <meyering@redhat.com>
50702         maint.mk: add a PATH crosschecking syntax-check rule
50703         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
50704         Useful if you use a test like the one in help-version (coreutils,
50705         diffutils, grep, gzip) that ensures $(VERSION) matches what is
50706         printed by prog --version.
50708 2010-04-06  Bruno Haible  <bruno@clisp.org>
50710         Fix link error on mingw.
50711         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
50712         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
50714 2010-04-06  Bruno Haible  <bruno@clisp.org>
50716         Assume rmdir exists.
50717         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
50719 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
50721         doc: update users.txt
50722         * users.txt: Add gcal.
50724 2010-04-06  Jim Meyering  <meyering@redhat.com>
50726         init.sh: simply unset TMPDIR rather than risking env -i
50727         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
50728         although it probably works fine on all Unix-based systems, some
50729         systems (Cygwin?) cannot tolerate a totally cleared environment.
50730         Suggestion from Eric Blake.
50732 2010-04-06  Jim Meyering  <meyering@redhat.com>
50734         init.sh: portability fix: use env's POSIX-specified -i option not -u
50735         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
50736         than unportable env -u.  Solaris 5.11's env lacks support for -u.
50738 2010-04-05  Bruno Haible  <bruno@clisp.org>
50740         btowc: Work around Cygwin 1.7.2 bug.
50741         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
50742         does not map NUL to 0.
50743         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
50745 2010-04-05  Bruno Haible  <bruno@clisp.org>
50747         Make the multithread modules work on Cygwin 1.7.2.
50748         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
50749         imported symbols can be declared weak, so that it returns "no" on
50750         Cygwin 1.7.2.
50752 2010-04-05  Bruno Haible  <bruno@clisp.org>
50754         Use the module 'strncat'.
50755         * modules/unistr/u8-strncat (Depends-on): Add strncat.
50757         Tests for module 'strncat'.
50758         * modules/strncat-tests: New file.
50759         * tests/test-strncat.c: New file.
50761         New module 'strncat'.
50762         * lib/string.in.h (strncat): New declaration.
50763         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
50764         * m4/strncat.m4: New file, based on m4/memchr.m4.
50765         * modules/strncat: New file.
50766         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
50767         is declared.
50768         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
50769         REPLACE_STRNCAT.
50770         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
50771         REPLACE_STRNCAT.
50772         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
50773         module.
50774         * tests/test-string-c++.cc: Check signature of strncat.
50776 2010-04-05  Jim Meyering  <meyering@redhat.com>
50778         xstrtoumax-tests: convert to use init.sh
50779         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
50780         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50781         Use Exit, not exit.
50782         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50784         xstrtoimax-tests: convert to use init.sh
50785         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
50786         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50787         Use Exit, not exit.
50788         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50790 2010-04-05  Bruno Haible  <bruno@clisp.org>
50792         sys_socket: Avoid #define replacements in C++ mode.
50793         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
50794         warning to the function if possible, rather than #defining the symbol
50795         to a dysfunctional alias.
50797 2010-04-05  Bruno Haible  <bruno@clisp.org>
50799         fseeko: Fix C++ test error on mingw.
50800         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
50801         gl_FUNC_FSEEKO.
50802         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
50803         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
50804         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
50805         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
50807 2010-04-05  Bruno Haible  <bruno@clisp.org>
50809         duplocale: Improve test output.
50810         * tests/test-duplocale.c (main): Print reason for skipped test.
50812 2010-04-05  Bruno Haible  <bruno@clisp.org>
50814         Assume rmdir exists.
50815         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
50816         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
50818 2010-04-05  Bruno Haible  <bruno@clisp.org>
50820         Fix link error on Solaris 8 with cc.
50821         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
50823 2010-04-05  Bruno Haible  <bruno@clisp.org>
50825         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
50826         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
50828 2010-04-05  Bruno Haible  <bruno@clisp.org>
50830         vasprintf: Update documentation.
50831         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
50833 2010-04-05  Bruno Haible  <bruno@clisp.org>
50835         ptsname: Improve test.
50836         * tests/test-ptsname.c (main): Also try the various master names of BSD
50837         systems.
50839 2010-04-05  Bruno Haible  <bruno@clisp.org>
50841         memchr: Avoid a possible C++ test error.
50842         * lib/string.in.h (memchr): Provide declaration if function is missing.
50843         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
50844         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
50845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
50846         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
50848 2010-04-05  Bruno Haible  <bruno@clisp.org>
50850         strtok_r: Improve idiom.
50851         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
50852         AC_LIBOBJ is used.
50854 2010-04-05  Bruno Haible  <bruno@clisp.org>
50856         strdup: Improve idiom.
50857         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
50858         AC_LIBOBJ is used.
50859         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
50860         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
50861         when AC_LIBOBJ is used.
50863 2010-04-05  Bruno Haible  <bruno@clisp.org>
50865         mbsinit, mbrtowc, wcrtomb: Improve idioms.
50866         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
50867         don't set REPLACE_MBSINIT to 1.
50868         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
50869         don't set REPLACE_MBRTOWC to 1.
50870         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
50871         exist, don't set REPLACE_MBSRTOWCS to 1.
50872         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
50873         exist, don't set REPLACE_MBSNRTOWCS to 1.
50874         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
50875         don't set REPLACE_WCRTOMB to 1.
50876         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
50877         exist, don't set REPLACE_WCSRTOMBS to 1.
50878         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
50879         exist, don't set REPLACE_WCSNRTOMBS to 1.
50881 2010-04-05  Bruno Haible  <bruno@clisp.org>
50883         ldexpl: Improve idiom.
50884         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
50885         make sure to set HAVE_DECL_LDEXPL to 0.
50887 2010-04-05  Jim Meyering  <meyering@redhat.com>
50889         xstrtol-tests: convert to use init.sh
50890         * modules/xstrtol-tests (Files): Add tests/init.sh.
50891         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50892         Use Exit, not exit.
50893         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50895         atexit-tests: convert to use init.sh
50896         * modules/atexit-tests (Files): Add tests/init.sh.
50897         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50898         Use Exit, not exit.
50899         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50901         init.sh: fix typo
50902         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
50904         init.sh: make it easier for a test script to write to the tty, ...
50905         when using automake's parallel-tests mode.
50906         * tests/init.sh (stderr_fileno_): Define overridable variable.
50907         (warn_): New function, to use it.
50908         (fail_, skip_, framework_failure_): Use warn_.
50910 2010-04-04  Bruno Haible  <bruno@clisp.org>
50912         btowc: Avoid warning.
50913         * lib/btowc.c: Include <stdlib.h>.
50914         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
50916 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
50917             Bruno Haible  <bruno@clisp.org>
50919         wchar: Port to NetBSD 1.5.
50920         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
50921         * lib/wctype.in.h (WEOF): Likewise.
50923 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
50924             Bruno Haible  <bruno@clisp.org>
50926         Port extended stdio to NetBSD 1.5.
50927         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
50928         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
50929         older.
50931 2010-04-04  Bruno Haible  <bruno@clisp.org>
50933         string: Remove unused substitution.
50934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
50935         HAVE_DECL_STRERROR.
50936         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
50938 2010-04-04  Bruno Haible  <bruno@clisp.org>
50940         strtod: Avoid a possible C++ test error.
50941         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
50942         set REPLACE_STRTOD.
50944 2010-04-04  Bruno Haible  <bruno@clisp.org>
50946         strerror: Update documentation.
50947         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
50949 2010-04-04  Bruno Haible  <bruno@clisp.org>
50951         stdio: Fix some C++ test errors on Solaris 8 with GCC.
50952         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
50953         _GL_CXXALIAS_SYS_CAST.
50955 2010-04-04  Bruno Haible  <bruno@clisp.org>
50957         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
50958         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
50959         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
50960         REPLACE_FREXPL to 1.
50961         * doc/posix-functions/frexpl.texi: Update documentation.
50963 2010-04-04  Bruno Haible  <bruno@clisp.org>
50965         math: Fix some C++ test errors on Solaris 8 and Cygwin.
50966         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
50968 2010-04-04  Bruno Haible  <bruno@clisp.org>
50970         Implement nanosleep for native Windows.
50971         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
50973 2010-04-04  Bruno Haible  <bruno@clisp.org>
50975         math: Fix some C++ test errors on Solaris 8.
50976         * lib/math.in.h (truncf, trunc): Use simpler idiom.
50978 2010-04-04  Bruno Haible  <bruno@clisp.org>
50980         math: Fix some C++ test errors on Cygwin.
50981         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
50982         truncl): Provide declaration if the system does not have it.
50983         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
50984         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
50985         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
50986         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
50987         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
50988         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
50989         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
50990         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
50991         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
50992         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
50993         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
50994         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
50995         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
50996         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
50997         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
50998         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
50999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
51000         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
51001         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
51002         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
51003         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
51004         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
51006 2010-04-04  Bruno Haible  <bruno@clisp.org>
51008         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
51009         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
51010         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
51011         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51012         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51013         * m4/isinf.m4 (gl_ISINF): Likewise.
51014         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
51016 2010-04-04  Bruno Haible  <bruno@clisp.org>
51018         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
51019         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
51021 2010-04-04  Bruno Haible  <bruno@clisp.org>
51023         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
51024         * modules/tmpfile (configure.ac): Update.
51026         tmpfile: Fix C++ test error on mingw.
51027         * lib/stdio.in.h (tmpfile): New declaration.
51028         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
51029         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
51030         * modules/tmpfile (Depends-on): Add stdio.
51031         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51032         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
51033         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
51034         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
51035         REPLACE_TMPFILE.
51036         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
51038 2010-04-04  Bruno Haible  <bruno@clisp.org>
51040         ioctl: Fix C++ test error on mingw.
51041         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
51042         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
51043         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
51045 2010-04-03  Bruno Haible  <bruno@clisp.org>
51047         wcwidth: Fix C++ test error on mingw.
51048         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
51049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
51050         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
51052 2010-04-03  Bruno Haible  <bruno@clisp.org>
51054         nanosleep: Fix C++ test error on mingw.
51055         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
51056         * lib/time.in.h (nanosleep): Use modern idiom.
51057         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
51058         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
51059         REPLACE_NANOSLEEP to 1.
51060         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
51061         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
51063 2010-04-03  Bruno Haible  <bruno@clisp.org>
51065         strptime: Fix C++ test error on mingw.
51066         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
51067         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
51068         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
51069         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
51070         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
51071         not REPLACE_STRPTIME.
51072         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
51073         REPLACE_STRPTIME.
51075 2010-04-03  Bruno Haible  <bruno@clisp.org>
51077         timegm: Fix C++ test error on mingw.
51078         * lib/time.in.h (timegm): Use modern idiom.
51079         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
51080         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
51081         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
51082         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
51084 2010-04-03  Bruno Haible  <bruno@clisp.org>
51086         timegm: Assume declaration if function exists.
51087         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
51088         if it exists. Don't clobber ac_cv_func_timegm.
51090 2010-04-03  Bruno Haible  <bruno@clisp.org>
51092         time_r: Fix C++ test error on mingw.
51093         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
51094         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
51095         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
51096         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
51097         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
51099 2010-04-03  Bruno Haible  <bruno@clisp.org>
51101         time_r: Minor updates.
51102         * modules/time_r (Description): Mention the provided functions.
51103         * lib/time_r.c: Don't include <string.h>.
51104         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
51105         * doc/posix-functions/localtime_r.texi: Likewise.
51107 2010-04-03  Bruno Haible  <bruno@clisp.org>
51109         time: Fix regression introduced on 2010-03-08.
51110         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
51111         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
51113 2010-04-03  Jim Meyering  <meyering@redhat.com>
51115         maint.mk: don't silently disable project-specific syntax-check rules
51116         * top/maint.mk (_prohibit_regexp): Define, to help people realize
51117         that they need to convert their project-specific syntax-check rules
51118         to use the new _sc_search_regexp.
51120 2010-04-03  Bruno Haible  <bruno@clisp.org>
51122         fchdir: Fix regression introduced on 2010-03-08.
51123         * lib/unistd.in.h (fchdir): Fix declaration.
51124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
51125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
51126         REPLACE_FCHDIR.
51127         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
51128         REPLACE_FCHDIR.
51130 2010-04-03  Bruno Haible  <bruno@clisp.org>
51132         getpagesize: Fix C++ test error on mingw.
51133         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
51134         system does not declare the function.
51135         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
51136         declared.
51137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51138         HAVE_DECL_GETPAGESIZE.
51139         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
51141 2010-04-03  Bruno Haible  <bruno@clisp.org>
51143         stdio: Make C++ tests work on mingw.
51144         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
51145         does not declare the function.
51147 2010-04-03  Bruno Haible  <bruno@clisp.org>
51149         ftello: Fix C++ test error on mingw.
51150         * lib/stdio.in.h (ftello): Use modern idiom.
51151         * lib/ftello.c (ftello): Renamed from rpl_ftello.
51152         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
51153         is missing and that it needs to be replaced.
51154         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
51155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
51156         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
51158 2010-04-03  Bruno Haible  <bruno@clisp.org>
51160         fseeko: Fix C++ test error on mingw.
51161         * lib/stdio.in.h (fseeko): Use modern idiom.
51162         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
51163         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
51164         is missing and that it needs to be replaced.
51165         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
51166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
51167         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
51169 2010-04-03  Bruno Haible  <bruno@clisp.org>
51171         mkstemp: Fix C++ test error on mingw.
51172         * lib/stdlib.in.h (mkstemp): Use modern idiom.
51173         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
51174         function is missing and that it needs to be replaced.
51175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
51176         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
51178 2010-04-03  Bruno Haible  <bruno@clisp.org>
51180         stpncpy: Fix C++ test error on mingw.
51181         * lib/string.in.h (stpncpy): Use modern idiom.
51182         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
51183         function is missing and that it needs to be replaced.
51184         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51185         REPLACE_STPNCPY.
51186         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
51188 2010-04-03  Bruno Haible  <bruno@clisp.org>
51190         sys_stat: Fix C++ test error on mingw.
51191         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
51192         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
51194 2010-04-03  Bruno Haible  <bruno@clisp.org>
51196         pty: Update doc.
51197         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
51199 2010-04-03  Bruno Haible  <bruno@clisp.org>
51201         unistd: Fix C++ test error on mingw.
51202         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
51204 2010-04-03  Bruno Haible  <bruno@clisp.org>
51206         Update doc regarding mingw.
51207         * doc/glibc-functions/openpty.texi: Update regarding mingw.
51208         * doc/glibc-functions/login_tty.texi: Likewise.
51209         * doc/glibc-functions/forkpty.texi: Likewise.
51211 2010-04-03  Bruno Haible  <bruno@clisp.org>
51213         stdlib: Avoid compilation failure of c-strtold on mingw.
51214         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
51216 2010-04-03  Bruno Haible  <bruno@clisp.org>
51218         locale: Make C++ tests work on Cygwin and mingw.
51219         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
51220         cannot provide the function.
51221         Reported by Simon Josefsson.
51223 2010-04-03  Bruno Haible  <bruno@clisp.org>
51225         localename: Port to MacOS X 10.6.
51226         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
51227         memory layout of the locales in MacOS X 10.6 as well.
51228         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
51230 2010-04-02  Bruno Haible  <bruno@clisp.org>
51232         gnulib-tool: Ensure that long-running tests are executed last.
51233         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
51234         running tests after the one for the other tests.
51236 2010-04-02  Bruno Haible  <bruno@clisp.org>
51238         gnulib-tool: Ensure the tests in the main directory are executed first.
51239         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
51240         start with the current directory.
51242 2010-04-02  Bruno Haible  <bruno@clisp.org>
51244         Tests for module 'havelib', moved here from GNU gettext.
51245         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
51246         modifications.
51247         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
51248         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
51249         with modifications.
51250         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
51251         modifications.
51252         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
51253         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
51254         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
51255         with modifications.
51256         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
51257         with modifications.
51258         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
51259         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
51260         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
51261         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
51262         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
51263         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
51264         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
51265         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
51266         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
51267         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
51268         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
51269         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
51270         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
51271         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
51272         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
51273         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
51274         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
51275         with modifications.
51276         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
51277         with modifications.
51278         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
51279         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
51280         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
51281         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
51282         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
51283         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
51284         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
51285         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
51286         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
51287         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
51288         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
51289         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
51290         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
51291         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
51292         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
51293         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
51294         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
51295         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
51296         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
51297         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
51298         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
51299         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
51300         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
51301         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
51302         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
51303         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
51304         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
51305         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
51306         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
51307         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
51308         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
51309         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
51310         * tests/havelib/rpathx/rpathx.c: New file, from
51311         gettext/autoconf-lib-link.
51312         * tests/havelib/rpathx/Makefile.am: New file, from
51313         gettext/autoconf-lib-link.
51314         * tests/havelib/rpathx/configure.ac: New file, from
51315         gettext/autoconf-lib-link with modifications.
51316         * tests/havelib/rpathy/rpathy.c: New file, from
51317         gettext/autoconf-lib-link.
51318         * tests/havelib/rpathy/Makefile.am: New file, from
51319         gettext/autoconf-lib-link.
51320         * tests/havelib/rpathy/configure.ac: New file, from
51321         gettext/autoconf-lib-link with modifications.
51322         * tests/havelib/rpathz/rpathz.c: New file, from
51323         gettext/autoconf-lib-link.
51324         * tests/havelib/rpathz/Makefile.am: New file, from
51325         gettext/autoconf-lib-link.
51326         * tests/havelib/rpathz/configure.ac: New file, from
51327         gettext/autoconf-lib-link with modifications.
51328         * tests/havelib/rpathlx/usex.c: New file, from
51329         gettext/autoconf-lib-link.
51330         * tests/havelib/rpathlx/Makefile.am: New file, from
51331         gettext/autoconf-lib-link.
51332         * tests/havelib/rpathlx/configure.ac: New file, from
51333         gettext/autoconf-lib-link with modifications.
51334         * tests/havelib/rpathly/usey.c: New file, from
51335         gettext/autoconf-lib-link.
51336         * tests/havelib/rpathly/Makefile.am: New file, from
51337         gettext/autoconf-lib-link.
51338         * tests/havelib/rpathly/configure.ac: New file, from
51339         gettext/autoconf-lib-link with modifications.
51340         * tests/havelib/rpathlz/usez.c: New file, from
51341         gettext/autoconf-lib-link.
51342         * tests/havelib/rpathlz/Makefile.am: New file, from
51343         gettext/autoconf-lib-link.
51344         * tests/havelib/rpathlz/configure.ac: New file, from
51345         gettext/autoconf-lib-link with modifications.
51346         * tests/havelib/rpathlyx/usey.c: New file, from
51347         gettext/autoconf-lib-link.
51348         * tests/havelib/rpathlyx/Makefile.am: New file, from
51349         gettext/autoconf-lib-link.
51350         * tests/havelib/rpathlyx/configure.ac: New file, from
51351         gettext/autoconf-lib-link with modifications.
51352         * tests/havelib/rpathlzyx/usez.c: New file, from
51353         gettext/autoconf-lib-link.
51354         * tests/havelib/rpathlzyx/Makefile.am: New file, from
51355         gettext/autoconf-lib-link.
51356         * tests/havelib/rpathlzyx/configure.ac: New file, from
51357         gettext/autoconf-lib-link with modifications.
51358         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
51359         with modifications.
51361 2010-04-02  Bruno Haible  <bruno@clisp.org>
51363         gnulib-tool: Create distributed built sources also for the tests.
51364         * gnulib-tool (func_create_testdir): Also generate distributed built
51365         sources in the tests directory.
51367 2010-04-02  Bruno Haible  <bruno@clisp.org>
51369         gnulib-tool: Obey user's environment variables.
51370         * gnulib-tool (func_create_testdir): When creating built sources,
51371         respect the environment variables for autoconf, automake, etc. given by
51372         the user.
51374 2010-04-02  Bruno Haible  <bruno@clisp.org>
51376         gnulib-tool: Provide the value of --m4-base to modules.
51377         * gnulib-tool (func_import, func_create_testdir): Emit a definition
51378         of gl_m4_base.
51380 2010-04-02  Eric Blake  <eblake@redhat.com>
51382         maint.mk: fix some fallout
51383         * NEWS: Document the incompatible change, and its effect on cfg.mk.
51384         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
51386 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
51388         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
51389         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
51390         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
51391         (sc_cast_of_x_alloc_return_value): Likewise.
51392         (sc_cast_of_alloca_return_value): Likewise.
51393         (sc_space_tab): Likewise.
51394         (sc_prohibit_atoi_atof): Likewise.
51395         (sc_prohibit_magic_number_exit): Likewise.
51396         (sc_error_exit_success): Likewise.
51397         (sc_file_system): Likewise.
51398         (sc_prohibit_have_config_h): Likewise.
51399         (sc_require_config_h): Likewise.
51400         (sc_prohibit_HAVE_MBRTOWC): Likewise.
51401         (sc_obsolete_symbols): Likewise.
51402         (sc_changelog): Likewise.
51403         (sc_program_name): Likewise.
51404         (sc_the_the): Likewise.
51405         (sc_trailing_blank): Likewise.
51406         (sc_two_space_separator_in_usage): Likewise.
51407         (sc_useless_cpp_parens): Likewise.
51408         (sc_GPL_version): Likewise.
51409         (sc_GFDL_version): Likewise.
51410         (sc_texinfo_acronym): Likewise.
51411         (sc_prohibit_cvs_keyword): Likewise.
51412         (sc_prohibit_stat_st_blocks): Likewise.
51413         (sc_prohibit_S_IS_definition): Likewise.
51414         (sc_redundant_const): Likewise.
51415         (sc_makefile_TAB_only_indentation): Likewise.
51416         (sc_m4_quote_check): Likewise.
51417         (sc_makefile_path_separator_check): Likewise.
51418         (sc_copyright_check): Likewise.
51419         (sc_Wundef_boolean): Likewise.
51420         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
51422         maint.mk: match 0 or more whitespace-before-function-call '('
51423         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
51424         that have zero or two-and-more spaces between the function name
51425         and the open parenthesis.
51426         (sc_error_message_warn_fatal): Likewise.
51427         (sc_error_message_uppercase): Likewise.
51428         (sc_error_message_period): Likewise.
51430 2010-03-31  Eric Blake  <eblake@redhat.com>
51432         maint.mk: check for [ as well as test
51433         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
51434         Based on a libvirt report by Matthias Bolte.
51436         gnumakefile: don't squelch _version output
51437         * top/GNUmakefile (_version): Create one-shot dependency rather
51438         than using $(shell) when version must be regenerated.
51439         (_autoreconf): Run verbosely, by default.
51441         sys_time: avoid compiler warnings
51442         * lib/sys_time.in.h (includes): Ensure gcc pragma is
51443         unconditional, fixing regression from 2010-03-29.
51444         Reported by Simon Josefsson.
51446 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
51448         maint.mk: s/_header_without_use/_sc_header_without_use/
51449         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
51450         (sc_prohibit_assert_without_use): Use the new name.
51451         (sc_prohibit_close_stream_without_use): Likewise.
51452         (sc_prohibit_getopt_without_use): Likewise.
51453         (sc_prohibit_quotearg_without_use): Likewise.
51454         (sc_prohibit_quote_without_use): Likewise.
51455         (sc_prohibit_long_options_without_use): Likewise.
51456         (sc_prohibit_inttostr_without_use): Likewise.
51457         (sc_prohibit_ignore_value_without_use): Likewise.
51458         (sc_prohibit_error_without_use): Likewise.
51459         (sc_prohibit_xalloc_without_use): Likewise.
51460         (sc_prohibit_hash_without_use): Likewise.
51461         (sc_prohibit_hash_pjw_without_use): Likewise.
51462         (sc_prohibit_safe_read_without_use): Likewise.
51463         (sc_prohibit_argmatch_without_use): Likewise.
51464         (sc_prohibit_canonicalize_without_use): Likewise.
51465         (sc_prohibit_root_dev_ino_without_use): Likewise.
51466         (sc_prohibit_openat_without_use): Likewise.
51467         (sc_prohibit_c_ctype_without_use): Likewise.
51468         (sc_prohibit_signal_without_use): Likewise.
51469         (sc_prohibit_intprops_without_use): Likewise.
51471 2010-03-30  Eric Blake  <eblake@redhat.com>
51473         maint: improve module indicators
51474         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
51475         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
51476         columns, and avoid extra macro expansion.
51478         fdopendir: work around FreeBSD bug
51479         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
51480         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
51481         * modules/dirent (Makefile.am): Substitute it.
51482         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
51483         declaration.
51484         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
51485         fix.
51486         Reported by Christian Weisgerber <naddy@mips.inka.de>.
51488 2010-03-29  Bruno Haible  <bruno@clisp.org>
51490         Emit #pragma system_header after the inclusion guard, not before.
51491         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
51492         guard that spans the entire file, not before. This enables an
51493         optimization in GCC's preprocessor.
51494         * lib/ctype.in.h: Likewise.
51495         * lib/dirent.in.h: Likewise.
51496         * lib/errno.in.h: Likewise.
51497         * lib/float.in.h: Likewise.
51498         * lib/getopt.in.h: Likewise.
51499         * lib/iconv.in.h: Likewise.
51500         * lib/langinfo.in.h: Likewise.
51501         * lib/locale.in.h: Likewise.
51502         * lib/math.in.h: Likewise.
51503         * lib/netdb.in.h: Likewise.
51504         * lib/netinet_in.in.h: Likewise.
51505         * lib/pty.in.h: Likewise.
51506         * lib/sched.in.h: Likewise.
51507         * lib/se-selinux.in.h: Likewise.
51508         * lib/search.in.h: Likewise.
51509         * lib/spawn.in.h: Likewise.
51510         * lib/stdarg.in.h: Likewise.
51511         * lib/stdint.in.h: Likewise.
51512         * lib/string.in.h: Likewise.
51513         * lib/strings.in.h: Likewise.
51514         * lib/sys_file.in.h: Likewise.
51515         * lib/sys_ioctl.in.h: Likewise.
51516         * lib/sys_time.in.h: Likewise.
51517         * lib/sys_times.in.h: Likewise.
51518         * lib/sys_utsname.in.h: Likewise.
51519         * lib/sys_wait.in.h: Likewise.
51520         * lib/sysexits.in.h: Likewise.
51521         * lib/wctype.in.h: Likewise.
51523 2010-03-28  James Youngman  <jay@gnu.org>
51525         save-cwd: don't leak a file descriptor when the caller execs.
51526         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
51527         saved file descriptor.
51528         * modules/save-cwd (Depends-on): Depend on cloexec.
51530 2010-03-29  Bruno Haible  <bruno@clisp.org>
51532         Remove vestiges of fts-lgpl module.
51533         * lib/fts_.h: Assume GNULIB_FTS is 1.
51534         * lib/fts.c: Likewise.
51535         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
51537 2010-03-28  Bruno Haible  <bruno@clisp.org>
51539         Fix definition of tests witness macro.
51540         * gnulib-tool (func_import): Fix definition of witness macro.
51542 2010-03-28  Bruno Haible  <bruno@clisp.org>
51544         Fix ioctl's protoype on glibc systems.
51545         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
51546         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
51547         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
51548         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
51549         signature. If not, arrange to replace the ioctl function.
51550         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
51551         REPLACE_IOCTL.
51552         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
51553         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
51554         Reported by Ludovic Courtès <ludo@gnu.org>.
51556 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
51558         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
51559         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
51560         made it so grep -r --include=GLOB* ... did not work.
51562 2010-03-26  Jim Meyering  <meyering@redhat.com>
51563             Eric Blake  <eblake@redhat.com>
51565         maint.mk: prohibit use of test's -o and -a operators
51566         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
51568 2010-03-28  Bruno Haible  <bruno@clisp.org>
51570         Remove unused GNULIB_XYZ macro definitions.
51571         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
51572         invocation.
51574 2010-03-28  Bruno Haible  <bruno@clisp.org>
51576         Mark privileged tests modules.
51577         * modules/idpriv-drop-tests (Status): New section.
51578         * modules/idpriv-droptemp-tests (Status): New section.
51580 2010-03-28  Bruno Haible  <bruno@clisp.org>
51582         Split C++ tests into separate tests modules.
51583         * modules/dirent-c++-tests: New file, extracted from
51584         modules/dirent-tests.
51585         * modules/dirent-tests: Depend on it.
51586         * modules/fcntl-h-c++-tests: New file, extracted from
51587         modules/fcntl-h-tests.
51588         * modules/fcntl-h-tests: Depend on it.
51589         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
51590         * modules/glob-tests: Depend on it.
51591         * modules/iconv-h-c++-tests: New file, extracted from
51592         modules/iconv-h-tests.
51593         * modules/iconv-h-tests: Depend on it.
51594         * modules/langinfo-c++-tests: New file, extracted from
51595         modules/langinfo-tests.
51596         * modules/langinfo-tests: Depend on it.
51597         * modules/locale-c++-tests: New file, extracted from
51598         modules/locale-tests.
51599         * modules/locale-tests: Depend on it.
51600         * modules/math-c++-tests: New file, extracted from modules/math-tests.
51601         * modules/math-tests: Depend on it.
51602         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
51603         * modules/pty-tests: Depend on it.
51604         * modules/search-c++-tests: New file, extracted from
51605         modules/search-tests.
51606         * modules/search-tests: Depend on it.
51607         * modules/signal-c++-tests: New file, extracted from
51608         modules/signal-tests.
51609         * modules/signal-tests: Depend on it.
51610         * modules/spawn-c++-tests: New file, extracted from
51611         modules/spawn-tests.
51612         * modules/spawn-tests: Depend on it.
51613         * modules/stdio-c++-tests: New file, extracted from
51614         modules/stdio-tests.
51615         * modules/stdio-tests: Depend on it.
51616         * modules/stdlib-c++-tests: New file, extracted from
51617         modules/stdlib-tests.
51618         * modules/stdlib-tests: Depend on it.
51619         * modules/string-c++-tests: New file, extracted from
51620         modules/string-tests.
51621         * modules/string-tests: Depend on it.
51622         * modules/sys_ioctl-c++-tests: New file, extracted from
51623         modules/sys_ioctl-tests.
51624         * modules/sys_ioctl-tests: Depend on it.
51625         * modules/sys_select-c++-tests: New file, extracted from
51626         modules/sys_select-tests.
51627         * modules/sys_select-tests: Depend on it.
51628         * modules/sys_socket-c++-tests: New file, extracted from
51629         modules/sys_socket-tests.
51630         * modules/sys_socket-tests: Depend on it.
51631         * modules/sys_stat-c++-tests: New file, extracted from
51632         modules/sys_stat-tests.
51633         * modules/sys_stat-tests: Depend on it.
51634         * modules/sys_time-c++-tests: New file, extracted from
51635         modules/sys_time-tests.
51636         * modules/sys_time-tests: Depend on it.
51637         * modules/time-c++-tests: New file, extracted from modules/time-tests.
51638         * modules/time-tests: Depend on it.
51639         * modules/unistd-c++-tests: New file, extracted from
51640         modules/unistd-tests.
51641         * modules/unistd-tests: Depend on it.
51642         * modules/wchar-c++-tests: New file, extracted from
51643         modules/wchar-tests.
51644         * modules/wchar-tests: Depend on it.
51645         * modules/wctype-c++-tests: New file, extracted from
51646         modules/wctype-tests.
51647         * modules/wctype-tests: Depend on it.
51648         Reported by Simon Josefsson.
51650 2010-03-28  Bruno Haible  <bruno@clisp.org>
51652         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
51653         * gnulib-tool (func_exists_module): New function, extracted from
51654         func_verify_module.
51655         (func_verify_module): Use it.
51656         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
51657         'foo' only if 'foo' exists.
51658         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
51659         module.
51661 2010-03-28  Bruno Haible  <bruno@clisp.org>
51663         gnulib-tool: Add support for special categories of tests.
51664         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
51665         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
51666         (func_usage): Document them.
51667         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
51668         inc_unportable_tests, inc_all_tests): New variables.
51669         (func_acceptable): Consider these variables.
51670         (func_modules_transitive_closure): Make it work when the 'Status' field
51671         consists of multiple words.
51672         (func_import): Store and restore the values of inc_cxx_tests,
51673         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
51674         inc_all_tests in gnulib-comp.m4.
51675         (func_create_testdir): Set inc_all_tests to true.
51676         * doc/gnulib.texi (Extra tests modules): New section.
51677         Suggested by Jim Meyering.
51679 2010-03-28  Bruno Haible  <bruno@clisp.org>
51681         ansi-c++-opt: Allow turning off the C++ build by default.
51682         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
51683         gl_CXX_CHOICE_DEFAULT_NO is defined.
51684         Requested by Eric Blake.
51686 2010-03-28  Bruno Haible  <bruno@clisp.org>
51688         unistd: Avoid #define replacements in C++ mode.
51689         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
51690         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
51691         setsockopt, shutdown, select): In C++, attach a warning to the function
51692         if possible, rather than #defining the symbol to a dysfunctional alias.
51693         Reported by John W. Eaton <jwe@gnu.org>.
51695 2010-03-28  Bruno Haible  <bruno@clisp.org>
51697         Fix link errors on mingw.
51698         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
51699         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
51700         $(LIBSOCKET).
51701         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
51702         $(LIBSOCKET).
51704 2010-03-28  Bruno Haible  <bruno@clisp.org>
51705             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51707         lib-ignore: Determine different options for different compilers.
51708         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
51709         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
51710         Add comments.
51711         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
51712         * NEWS: Mention the change.
51714 2010-03-27  Bruno Haible  <bruno@clisp.org>
51716         Remove unused GNULIB_XYZ macro definitions.
51717         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
51718         * modules/fseek (configure.ac): Likewise.
51719         * modules/ioctl (configure.ac): Likewise.
51720         * modules/open (configure.ac): Likewise.
51721         * modules/stdlib-safer (configure.ac): Likewise.
51723 2010-03-27  Bruno Haible  <bruno@clisp.org>
51725         Add a remark about certain modules.
51726         * modules/malloc (Comment): New section.
51727         * modules/realloc (Comment): Likewise.
51728         * modules/sigpipe (Comment): Likewise.
51730 2010-03-27  Bruno Haible  <bruno@clisp.org>
51732         Resolve conflict between the two kinds of module indicators.
51733         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
51734         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
51735         * modules/canonicalize (configure.ac): Invoke
51736         gl_MODULE_INDICATOR_FOR_TESTS.
51737         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
51738         GNULIB_XYZ.
51739         * tests/test-dirent-c++.cc: Likewise.
51740         * tests/test-dirent-safer.c: Likewise.
51741         * tests/test-dup2.c: Likewise.
51742         * tests/test-fchdir.c: Likewise.
51743         * tests/test-fcntl-h-c++.cc: Likewise.
51744         * tests/test-getopt.c: Likewise.
51745         * tests/test-getopt.h: Likewise.
51746         * tests/test-langinfo-c++.cc: Likewise.
51747         * tests/test-locale-c++.cc: Likewise.
51748         * tests/test-math-c++.cc: Likewise.
51749         * tests/test-pty-c++.cc: Likewise.
51750         * tests/test-search-c++.cc: Likewise.
51751         * tests/test-signal-c++.cc: Likewise.
51752         * tests/test-spawn-c++.cc: Likewise.
51753         * tests/test-stdio-c++.cc: Likewise.
51754         * tests/test-stdlib-c++.cc: Likewise.
51755         * tests/test-string-c++.cc: Likewise.
51756         * tests/test-sys_ioctl-c++.cc: Likewise.
51757         * tests/test-sys_select-c++.cc: Likewise.
51758         * tests/test-sys_socket-c++.cc: Likewise.
51759         * tests/test-sys_stat-c++.cc: Likewise.
51760         * tests/test-sys_time-c++.cc: Likewise.
51761         * tests/test-time-c++.cc: Likewise.
51762         * tests/test-unistd-c++.cc: Likewise.
51763         * tests/test-wchar-c++.cc: Likewise.
51764         * tests/uninorm/test-u8-nfc.c: Likewise.
51765         * tests/uninorm/test-u8-nfd.c: Likewise.
51766         * tests/uninorm/test-u8-nfkc.c: Likewise.
51767         * tests/uninorm/test-u8-nfkd.c: Likewise.
51768         * tests/uninorm/test-u16-nfc.c: Likewise.
51769         * tests/uninorm/test-u16-nfd.c: Likewise.
51770         * tests/uninorm/test-u16-nfkc.c: Likewise.
51771         * tests/uninorm/test-u16-nfkd.c: Likewise.
51772         * tests/uninorm/test-u32-nfc.c: Likewise.
51773         * tests/uninorm/test-u32-nfc-big.c: Likewise.
51774         * tests/uninorm/test-u32-nfd.c: Likewise.
51775         * tests/uninorm/test-u32-nfd-big.c: Likewise.
51776         * tests/uninorm/test-u32-nfkc.c: Likewise.
51777         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
51778         * tests/uninorm/test-u32-nfkd.c: Likewise.
51779         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
51780         * tests/uninorm/test-u32-normalize-big.c: Likewise.
51782 2010-03-27  Bruno Haible  <bruno@clisp.org>
51784         Distinguish two kinds of module indicators.
51785         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
51786         gl_MODULE_INDICATOR.
51787         (gl_MODULE_INDICATOR): New macro.
51788         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
51789         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
51790         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
51791         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
51792         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
51793         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
51794         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
51795         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
51796         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
51797         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
51798         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
51799         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
51800         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
51801         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
51802         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
51803         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
51804         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
51805         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
51806         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
51807         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
51808         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
51809         * modules/cloexec (configure.ac): Likewise.
51810         * modules/getopt-gnu (configure.ac): Likewise.
51811         * modules/uninorm/u8-normalize (configure.ac): Likewise.
51812         * modules/uninorm/u16-normalize (configure.ac): Likewise.
51813         * modules/uninorm/u32-normalize (configure.ac): Likewise.
51814         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
51816 2010-03-27  Bruno Haible  <bruno@clisp.org>
51818         New module description field 'Comment'.
51819         * gnulib-tool: New option --extract-comment.
51820         (func_usage): Document it.
51821         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
51822         (func_get_comment): New function.
51823         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
51825 2010-03-27  Bruno Haible  <bruno@clisp.org>
51827         Addendum to 2010-02-07 commit.
51828         * gnulib-tool (func_usage): Document --extract-applicability option.
51830 2010-03-27  Bruno Haible  <bruno@clisp.org>
51832         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
51833         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
51834         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
51835         rather than link errors.
51837 2010-03-27  Bruno Haible  <bruno@clisp.org>
51839         Avoid side effects from tests-related modules on the compilation of lib.
51840         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
51841         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
51842         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
51843         parameter. Emit into AM_CPPFLAGS a definition of the designated C
51844         macro.
51845         (func_import): Define a witness macro. Assign it a value that depends
51846         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
51847         tests-related modules.
51848         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
51849         Reported by Jim Meyering.
51851 2010-03-27  Bruno Haible  <bruno@clisp.org>
51853         Factorize common .m4 code.
51854         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
51855         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
51856         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
51857         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
51858         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
51859         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
51860         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
51861         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
51862         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
51863         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
51864         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
51865         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
51866         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
51867         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
51868         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
51869         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
51870         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
51871         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
51872         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
51873         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
51874         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
51875         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
51876         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
51877         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
51878         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
51879         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
51880         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
51881         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
51882         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
51883         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
51884         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
51885         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
51887 2010-03-27  Bruno Haible  <bruno@clisp.org>
51889         Fix a compilation error on Cygwin with g++ >= 4.3.
51890         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
51891         if it is undefined or if we alias it to chmod.
51892         (lstat): Don't warn about the use of this function if it is undefined
51893         or if we alias it to stat.
51894         Reported by Simon Josefsson.
51896 2010-03-27  Bruno Haible  <bruno@clisp.org>
51898         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
51899         * modules/getlogin (configure.ac): Update.
51901         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
51902         * modules/getlogin_r (configure.ac): Update.
51904         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
51905         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
51906         * modules/inet_ntop (configure.ac): Update.
51908         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
51909         * modules/inet_pton (configure.ac): Update.
51911         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
51912         * modules/mbslen (configure.ac): Update.
51914         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
51915         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
51916         * modules/forkpty (configure.ac): Update.
51917         * modules/openpty (configure.ac): Update.
51919 2010-03-26  Simon Josefsson  <simon@josefsson.org>
51921         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
51922         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
51924 2010-03-25  Eric Blake  <eblake@redhat.com>
51926         maint: use pragma consistently across replacement headers
51927         * lib/ctype.in.h (system_header): Hoist for consistent placement.
51928         * lib/dirent.in.h (system_header): Likewise.
51929         * lib/errno.in.h (system_header): Likewise.
51930         * lib/float.in.h (system_header): Likewise.
51931         * lib/getopt.in.h (system_header): Likewise.
51932         * lib/iconv.in.h (system_header): Likewise.
51933         * lib/inttypes.in.h (system_header): Likewise.
51934         * lib/langinfo.in.h (system_header): Likewise.
51935         * lib/locale.in.h (system_header): Likewise.
51936         * lib/math.in.h (system_header): Likewise.
51937         * lib/netdb.in.h (system_header): Likewise.
51938         * lib/netinet_in.in.h (system_header): Likewise.
51939         * lib/pty.in.h (system_header): Likewise.
51940         * lib/sched.in.h (system_header): Likewise.
51941         * lib/se-selinux.in.h (system_header): Likewise.
51942         * lib/search.in.h (system_header): Likewise.
51943         * lib/spawn.in.h (system_header): Likewise.
51944         * lib/stdarg.in.h (system_header): Likewise.
51945         * lib/stdint.in.h (system_header): Likewise.
51946         * lib/string.in.h (system_header): Likewise.
51947         * lib/strings.in.h (system_header): Likewise.
51948         * lib/sys_file.in.h (system_header): Likewise.
51949         * lib/sys_ioctl.in.h (system_header): Likewise.
51950         * lib/sys_socket.in.h (system_header): Likewise.
51951         * lib/sys_times.in.h (system_header): Likewise.
51952         * lib/sys_utsname.in.h (system_header): Likewise.
51953         * lib/sys_wait.in.h (system_header): Likewise.
51954         * lib/sysexits.in.h (system_header): Likewise.
51955         * lib/unistd.in.h (system_header): Likewise.
51956         * lib/wctype.in.h (system_header): Likewise.
51958         arpa/inet: fix mingw compilation warning
51959         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
51960         Reported by Matthew Bolte.
51962 2010-03-25  Bruno Haible  <bruno@clisp.org>
51964         Avoid collision between gnulib wrapper and libintl wrapper.
51965         * lib/printf.c (printf): Don't define if a printf wrapper is already
51966         defined in intl/printf.c.
51967         Reported by Michel Boaventura <michel@michelboaventura.com>.
51969 2010-03-25  Bruno Haible  <bruno@clisp.org>
51971         Use ANSI C.
51972         * lib/readutmp.h (getutent): Provide ANSI C prototype.
51974 2010-03-25  Bruno Haible  <bruno@clisp.org>
51976         Minor formatting changes.
51977         * lib/acosl.c: Insert space before function argument list.
51978         * lib/argz.c: Likewise.
51979         * lib/asinl.c: Likewise.
51980         * lib/expl.c: Likewise.
51981         * lib/gen-uni-tables.c: Likewise.
51982         * lib/gettext.h: Likewise.
51983         * lib/glthread/lock.h: Likewise.
51984         * lib/tanl.c: Likewise.
51985         * lib/uniname/uniname.c: Likewise.
51986         * tests/test-idpriv-drop.c: Likewise.
51987         * tests/test-idpriv-droptemp.c: Likewise.
51988         * tests/test-lock.c: Likewise.
51989         * tests/test-tls.c: Likewise.
51990         * lib/argp-help.c: Insert space before function-like macro argument
51991         list.
51992         * lib/memcmp.c: Likewise.
51993         * tests/test-base64.c: Likewise.
51994         * lib/localename.c: Insert space before sizeof's argument list.
51995         * lib/safe-alloc.h: Likewise.
51996         * lib/file-set.h: Insert space before macro argument list.
51997         * tests/test-argp.c: Likewise.
51998         * lib/argp-namefrob.h: Insert space before function parameter list.
51999         * lib/getaddrinfo.c: Likewise.
52000         * lib/netdb.in.h: Likewise.
52001         * lib/parse-duration.h: Likewise.
52002         * lib/parse-duration.c: Likewise.
52003         * lib/poll.c: Likewise.
52004         * lib/select.c: Likewise.
52005         * lib/trim.h: Likewise.
52006         * tests/test-usleep.c: Likewise.
52007         * lib/ldexpl.c: Insert space before function parameter list and before
52008         function argument list.
52009         * lib/logl.c: Likewise.
52010         * lib/sqrtl.c: Likewise.
52011         * lib/trim.c: Likewise.
52012         * lib/cosl.c: Use GNU style indentation. Insert space before function
52013         argument list.
52014         * lib/sinl.c: Likewise.
52015         * lib/tsearch.c: Insert space after 'for'.
52016         Reported by Jim Meyering.
52018 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
52020         * maint.mk (sc_Wundef_boolean): Check for the presence of the
52021         config header before grepping, as it's not present before
52022         autoreconf/configure are run.  Reported by Simon Josefsson.
52024 2010-03-23  Bruno Haible  <bruno@clisp.org>
52026         pt_chown: Make it work with automake < 1.11.
52027         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
52028         Reported by Simon Josefsson.
52030 2010-03-23  Bruno Haible  <bruno@clisp.org>
52032         pt_chown: Don't depend on GPLed modules.
52033         * lib/pt_chown.c: Don't include idpriv.h.
52034         (main): Don't drop privileges.
52035         * modules/pt_chown (Depends-on): Remove idpriv-drop.
52036         Reported by Simon Josefsson.
52038 2010-03-24  Simon Josefsson  <simon@josefsson.org>
52040         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
52041         suggestions from karl@freefriends.org (Karl Berry).
52043 2010-03-22  Eric Blake  <eblake@redhat.com>
52045         gethostname: further tweaks
52046         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
52047         are overriding gethostname.
52048         Suggested by Bruno Haible.
52050 2010-03-21  Bruno Haible  <bruno@clisp.org>
52052         Fix comments.
52053         * lib/forkpty.c (rpl_forkpty): Fix comment.
52054         * lib/openpty.c (rpl_openpty): Likewise.
52055         Reported by Eric Blake.
52057 2010-03-22  Eric Blake  <eblake@redhat.com>
52059         gethostname: fix build on mingw
52060         * lib/unistd.in.h (includes): Work around fact that mingw
52061         <winsock2.h> re-includes <unistd.h>, by avoiding any
52062         redeclarations if we are being included by <winsock2.h>.
52063         Reported by Matthias Bolte.
52065 2010-03-21  Bruno Haible  <bruno@clisp.org>
52067         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
52068         * lib/forkpty.c (forkpty): New replacement function, from glibc with
52069         modifications.
52070         * lib/pty.in.h (forkpty): Update declaration. Add comments.
52071         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
52072         provide the replacement.
52073         * modules/forkpty (Depends-on): Add openpty, login_tty.
52074         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
52075         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
52076         * doc/glibc-functions/forkpty.texi: More supported platforms.
52077         * config/srclist.txt: Add forkpty.c (commented).
52079 2010-03-21  Bruno Haible  <bruno@clisp.org>
52081         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
52082         (Makefile.am): Verify that PTY_LIB is defined.
52084         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
52086 2010-03-21  Bruno Haible  <bruno@clisp.org>
52088         Tests for module 'login_tty'.
52089         * modules/login_tty-tests: New file.
52090         * tests/test-login_tty.c: New file.
52092         New module 'login_tty'.
52093         * lib/login_tty.c: New file.
52094         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
52095         * modules/login_tty: New file.
52096         * doc/glibc-functions/login_tty.texi: Mention the new module.
52098 2010-03-21  Bruno Haible  <bruno@clisp.org>
52100         login_tty: Documentation.
52101         * doc/glibc-functions/login_tty.texi: New file.
52102         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
52104 2010-03-21  Bruno Haible  <bruno@clisp.org>
52106         pty: Consistent macro naming.
52107         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
52108         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
52109         * modules/pty (configure.ac): Update.
52111 2010-03-21  Bruno Haible  <bruno@clisp.org>
52113         Tests for openpty: Make stricter.
52114         * tests/test-openpty.c (main): Add test of canonical processing and
52115         erase.
52116         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
52118         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
52119         * lib/openpty.c (openpty): New replacement function.
52120         * lib/pty.in.h: Include <termios.h>.
52121         (openpty): Update declaration. Add comments.
52122         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
52123         is not declared, arrange to provide the replacement. Check for _getpty
52124         and posix_openpt.
52125         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
52126         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
52127         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
52128         * modules/pty-tests (test_pty_c___LDADD): New variable.
52129         * doc/glibc-functions/openpty.texi: More supported platforms.
52131 2010-03-21  Bruno Haible  <bruno@clisp.org>
52133         setenv: Tweaks.
52134         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
52135         the test program.
52136         * doc/posix-functions/setenv.texi: Update platforms list.
52138 2010-03-21  Bruno Haible  <bruno@clisp.org>
52140         New module 'unlockpt'.
52141         * lib/unlockpt.c: New file, from glibc with modifications.
52142         * m4/unlockpt.m4: New file.
52143         * modules/unlockpt: New file.
52144         * lib/stdlib.in.h (unlockpt): New declaration.
52145         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
52146         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
52147         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
52148         HAVE_UNLOCKPT.
52149         * doc/posix-functions/unlockpt.texi: Mention the new module.
52150         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
52151         * config/srclist.txt: Add unlockpt.c (commented).
52153 2010-03-21  Jim Meyering  <meyering@redhat.com>
52155         maint.mk: prohibit inclusion of "intprops.h" without use
52156         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
52158 2010-03-21  Bruno Haible  <bruno@clisp.org>
52160         New module 'grantpt'.
52161         * lib/grantpt.c: New file, from glibc with modifications.
52162         * m4/grantpt.m4: New file.
52163         * modules/grantpt: New file.
52164         * lib/stdlib.in.h (grantpt): New declaration.
52165         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
52166         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
52167         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
52168         HAVE_GRANTPT.
52169         * doc/posix-functions/grantpt.texi: Mention the new module.
52170         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
52171         * config/srclist.txt: Add grantpt.c (commented).
52173 2010-03-21  Bruno Haible  <bruno@clisp.org>
52175         New module 'pt_chown'.
52176         * lib/pt_chown.c: New file, from glibc with modifications.
52177         * lib/pty-private.h: New file, from glibc with modifications.
52178         * modules/pt_chown: New file.
52179         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
52181 2010-03-21  Bruno Haible  <bruno@clisp.org>
52183         Tests for module 'ptsname'.
52184         * modules/ptsname-tests: New file.
52185         * tests/test-ptsname.c: New file.
52187         New module 'ptsname'.
52188         * lib/ptsname.c: New file, from glibc with modifications.
52189         * m4/ptsname.m4: New file.
52190         * modules/ptsname: New file.
52191         * lib/stdlib.in.h (ptsname): New declaration.
52192         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
52193         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
52194         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
52195         HAVE_PTSNAME.
52196         * doc/posix-functions/ptsname.texi: Mention the new module.
52197         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
52198         * config/srclist.txt: Add ptsname.c (commented).
52200 2010-03-21  Bruno Haible  <bruno@clisp.org>
52202         Tests for module 'ttyname_r'.
52203         * modules/ttyname_r-tests: New file.
52204         * tests/test-ttyname_r.c: New file.
52206         New module 'ttyname_r'.
52207         * lib/ttyname_r.c: New file.
52208         * m4/ttyname_r.m4: New file.
52209         * modules/ttyname_r: New file.
52210         * lib/unistd.in.h (ttyname_r): New declaration.
52211         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
52212         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
52213         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
52214         HAVE_TTYNAME_R.
52215         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
52216         * doc/posix-functions/ttyname_r.texi: Mention the new module.
52218 2010-03-20  Bruno Haible  <bruno@clisp.org>
52220         signal: Undefine macro definitions in C++ mode.
52221         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
52222         sigfillset): Undefine macro definitions from the system header in C++
52223         mode.
52224         Reported by John W. Eaton <jwe@gnu.org>.
52226 2010-03-20  Bruno Haible  <bruno@clisp.org>
52228         Ensure no #include statements inside extern "C" { ... }.
52229         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
52230         contain #include statements.
52231         * lib/time.in.h: Likewise.
52233 2010-03-20  Bruno Haible  <bruno@clisp.org>
52235         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
52236         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
52237         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
52238         Reported by John W. Eaton <jwe@gnu.org>.
52240 2010-03-20  Bruno Haible  <bruno@clisp.org>
52242         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
52243         Reported by Jim Meyering.
52245 2010-03-20  Bruno Haible  <bruno@clisp.org>
52247         pipe: Set errno upon failure.
52248         * lib/pipe.h: Specify that when -1 is returned, errno is set.
52249         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
52250         errno value in error message.
52252 2010-03-20  Bruno Haible  <bruno@clisp.org>
52253             Jim Meyering  <meyering@redhat.com>
52255         lchown: Avoid "unused variable" warning.
52256         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
52258 2010-03-20  Bruno Haible  <bruno@clisp.org>
52260         Work around unlink() bug on MacOS X 10.5.6.
52261         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
52262         attempting to unlink a parent directory.
52263         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
52264         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
52265         activate for the replacement function.
52266         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
52268 2010-03-20  Bruno Haible  <bruno@clisp.org>
52270         Fix link errors on Solaris 8.
52271         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
52272         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
52274 2010-03-19  Jim Meyering  <meyering@redhat.com>
52276         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
52277         The _LIBC implementation of build_range_exp correctly honors the
52278         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
52279         However, the non-_LIBC implementation would ignore that syntax-bit
52280         flag and return REG_ERANGE unconditionally.
52281         This change makes it honor that flag.
52282         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
52283         Make two pointer parameters "const".
52284         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
52285         (parse_bracket_exp): Update caller.
52287         regex.m4: correct the reversed range endpoint ([b-a]) test
52288         * m4/regex.m4: When requiring that [b-a] evoke failure,
52289         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
52290         test pass once again for x86-based systems.
52292 2010-03-19  Bruno Haible  <bruno@clisp.org>
52294         scandir: Fix link error on Solaris 8.
52295         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
52296         macros.
52298 2010-03-19  Bruno Haible  <bruno@clisp.org>
52300         getusershell: Fix documentation.
52301         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
52302         module.
52303         * doc/glibc-functions/setusershell.texi: Likewise.
52305         getusershell: Provide declaration, missing on Solaris 9.
52306         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
52307         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
52308         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
52309         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
52310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52311         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
52312         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
52313         HAVE_GETUSERSHELL.
52314         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
52316 2010-03-19  Bruno Haible  <bruno@clisp.org>
52318         wctype: Provide iswblank function.
52319         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
52320         exists and is fine.
52321         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
52322         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
52323         * tests/test-wctype.c (main): Re-enable the iswblank tests.
52324         * doc/posix-functions/iswblank.texi: Update.
52326 2010-03-19  Bruno Haible  <bruno@clisp.org>
52328         Tests of module 'pty' in C++ mode.
52329         * modules/pty-tests: New file.
52330         * tests/test-pty-c++.cc: New file.
52331         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
52333 2010-03-19  Eric Blake  <eblake@redhat.com>
52335         logb: fix documentation
52336         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
52337         1.5 declaration bug.
52339         forkpty, openpty: prefer glibc's const-safe prototype
52340         * lib/forkpty.c (rpl_forkpty): New file.
52341         * lib/openpty.c (rpl_openpty): Likewise.
52342         * modules/forkpty (Files): Distribute it.
52343         * modules/openpty (Files): Likewise.
52344         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
52345         check...
52346         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
52347         replacement for non-const BSD signature.
52348         * modules/pty (Makefile.am): Substitute witnesses.
52349         * lib/pty.in.h (forkpty, openpty): Declare replacements.
52350         * tests/test-forkpty.c: Update signature check.
52351         * tests/test-openpty.c: Likewise.
52352         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
52353         * doc/glibc-functions/openpty.texi (openpty): Likewise.
52355         forkpty, openpty: split functions into new modules
52356         * modules/pty (Makefile.am): Substitute new witnesses.
52357         (Libraries): Move library detection...
52358         * modules/forkpty: ...into new module.
52359         * modules/openpty: Another new module.
52360         * modules/pty-tests: Rename and split...
52361         * modules/forkpty-tests: ...to this...
52362         * modules/openpty-tests: ...and this.
52363         * tests/test-pty.c: Rename and split...
52364         * tests/test-forkpty.c: ...to this...
52365         * tests/test-openpty.c: ...and this.
52366         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
52367         (gl_PTY): Split library searching...
52368         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
52369         (gl_FORKPTY, gl_OPENPTY): New macros.
52370         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
52371         * NEWS: Mention the split.
52372         * MODULES.html.sh (Misc): Document the modules.
52373         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
52374         * doc/glibc-functions/openpty.texi (openpty): Likewise.
52376         pty: improve replacement header
52377         * lib/pty.in.h: New file.
52378         * modules/pty (Files): Ship it.
52379         (Makefile.am): Always build replacement.
52380         * m4/pty.m4: Rename...
52381         * m4/pty_h.m4: ...to this.
52382         (gl_PTY): Modernize setting of witness macros; update check of
52383         forkpty to take proper advantage of cache.
52384         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
52386         getopt: avoid compiler warning
52387         * lib/getopt.c (attribute_hidden): Remove unused macro.
52389 2010-03-18  Bruno Haible  <bruno@clisp.org>
52391         Fix link errors on Solaris 8.
52392         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
52393         * modules/search-tests (test_search_c___LDADD): Likewise.
52394         * modules/signal-tests (test_signal_c___LDADD): Likewise.
52395         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
52396         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
52397         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
52398         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
52399         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
52400         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
52402 2010-03-18  Bruno Haible  <bruno@clisp.org>
52404         Fix bug introduced on 2010-03-14.
52405         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
52406         (gl_SPAWN_H): Require it.
52407         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
52408         Reported by Simon Josefsson.
52410 2010-03-18  Bruno Haible  <bruno@clisp.org>
52412         Fix typo introduced on 2009-12-31.
52413         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
52414         posix_spawn_file_actions_adddup2.
52416 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
52417         and Eric Blake  <eblake@redhat.com>
52419         test-vc-list-files-git: make more robust
52420         * tests/test-vc-list-files-git.sh: Unset problematic environment
52421         variables.  Chain commands together.
52423 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
52425         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
52426         `AC_CHECK_DECL' invocation.
52428 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
52430         * lib/inttostr.c (inttostr): Make sure the invocation of verify
52431         appears before executable statements. Suggested by Petr Sumbera
52432         <Petr.Sumbera@Sun.COM>.
52434 2010-03-14  Bruno Haible  <bruno@clisp.org>
52436         * tests/test-flock.c (test_exclusive): Comment out a test that causes
52437         portability problems. Instead use a simpler test.
52438         (main): Check that invalid arguments are rejected only on Linux.
52440 2010-03-14  Bruno Haible  <bruno@clisp.org>
52442         Fix bug introduced on 2009-12-31.
52443         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
52444         gl_PREREQ_SYS_H_WINSOCK2 always.
52445         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
52446         SYS_SOCKET_H variable.
52447         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
52448         Update comments.
52449         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
52450         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
52451         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52452         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
52453         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
52455 2010-03-14  Bruno Haible  <bruno@clisp.org>
52457         Fix values returned by sinl, cosl.
52458         * lib/trigl.h: Add specification comments.
52459         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
52460         that combines the values from the precomputed table with the values of
52461         the Chebyshev polynomials.
52463 2010-03-14  Bruno Haible  <bruno@clisp.org>
52465         Fix compilation error when modules 'posix_spawn[p]' are not used.
52466         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
52467         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
52469 2010-03-14  Bruno Haible  <bruno@clisp.org>
52471         Fix compilation error on mingw when module 'time_r' is not used.
52472         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
52473         is 1.
52474         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
52475         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
52476         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
52477         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
52479 2010-03-14  Bruno Haible  <bruno@clisp.org>
52481         Fix compilation error with Sun C.
52482         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
52483         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
52484         instead of GCC specific ULONG_LONG_MAX.
52485         * lib/xstrtoll.c: Likewise.
52486         * lib/xstrtoull.c: Likewise.
52488 2010-03-13  Bruno Haible  <bruno@clisp.org>
52490         Allow the user to disable C++ code and tests.
52491         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
52492         (gl_PROG_ANSI_CXX): Require it.
52494 2010-03-13  Bruno Haible  <bruno@clisp.org>
52496         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
52497         cases.
52499 2010-03-13  Bruno Haible  <bruno@clisp.org>
52501         Test that gnulib does not break the standard C++ headers.
52502         * tests/test-locale-c++2.cc: New file.
52503         * modules/locale-tests (Files): Add it.
52504         (Makefile.am): Compile it for test-locale-c++.
52505         * tests/test-math-c++2.cc: New file.
52506         * modules/math-tests (Files): Add it.
52507         (Makefile.am): Compile it for test-math-c++.
52508         * tests/test-signal-c++2.cc: New file.
52509         * modules/signal-tests (Files): Add it.
52510         (Makefile.am): Compile it for test-signal-c++.
52511         * tests/test-stdio-c++2.cc: New file.
52512         * modules/stdio-tests (Files): Add it.
52513         (Makefile.am): Compile it for test-stdio-c++.
52514         * tests/test-stdlib-c++2.cc: New file.
52515         * modules/stdlib-tests (Files): Add it.
52516         (Makefile.am): Compile it for test-stdlib-c++.
52517         * tests/test-string-c++2.cc: New file.
52518         * modules/string-tests (Files): Add it.
52519         (Makefile.am): Compile it for test-string-c++.
52520         * tests/test-time-c++2.cc: New file.
52521         * modules/time-tests (Files): Add it.
52522         (Makefile.am): Compile it for test-time-c++.
52523         Reported by John W. Eaton <jwe@gnu.org>.
52525 2010-03-13  Bruno Haible  <bruno@clisp.org>
52527         * gnulib-tool (func_usage): Clarify which options are available for
52528         --create-testdir and --create-megatestdir.
52530 2010-03-13  Bruno Haible  <bruno@clisp.org>
52532         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
52533         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
52534         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
52535         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
52536         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
52537         when appropriate.
52538         Reported by Jim Meyering.
52540 2010-03-12  Simon Josefsson  <simon@josefsson.org>
52542         * gnulib-tool (func_import): Explain origin of code.
52544 2010-03-12  Bruno Haible  <bruno@clisp.org>
52546         Fix problem with automake's definition of CXXLINK.
52547         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
52548         Reported by Simon Josefsson and Ludovic Courtès.
52550 2010-03-12  Bruno Haible  <bruno@clisp.org>
52552         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
52553         stable releases.
52555 2010-03-11  Bruno Haible  <bruno@clisp.org>
52557         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
52558         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
52559         whether the system provides one variant or multiple variants of the
52560         function.
52561         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
52562         C++ compilers.
52563         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
52564         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
52565         Reported by Jim Meyering.
52567 2010-03-09  Simon Josefsson  <simon@josefsson.org>
52569         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
52571 2010-03-08  Bruno Haible  <bruno@clisp.org>
52573         gnulib-tool: Add support for --libtool in --create-testdir.
52574         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
52575         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
52577 2010-03-08  Eric Blake  <eblake@redhat.com>
52579         gnulib-tool.texi: mention possibility of git submodule
52580         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
52581         submodules.
52582         * doc/.gitignore: Ignore another generated file.
52584 2010-03-08  Karl Berry  <karl@gnu.org>
52586         * doc/gnulib-tool.texi (VCS Issues): Mention third option
52587         of committing gnulib files while skipping others.
52589 2010-03-07  Bruno Haible  <bruno@clisp.org>
52591         Tests of module 'wctype' in C++ mode.
52592         * tests/test-wctype-c++.cc: New file.
52593         * modules/wctype-tests (Files): Add it and tests/signature.h.
52594         (Depends-on): Add ansi-c++-opt.
52595         (Makefile.am): Arrange to compile and run test-wctype-c++.
52597         Tests of module 'wchar' in C++ mode.
52598         * tests/test-wchar-c++.cc: New file.
52599         * modules/wchar-tests (Files): Add it and tests/signature.h.
52600         (Depends-on): Add ansi-c++-opt.
52601         (Makefile.am): Arrange to compile and run test-wchar-c++.
52602         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
52603         gl_MODULE_INDICATOR.
52605         Tests of module 'unistd' in C++ mode.
52606         * tests/test-unistd-c++.cc: New file.
52607         * modules/unistd-tests (Files): Add it and tests/signature.h.
52608         (Depends-on): Add ansi-c++-opt.
52609         (Makefile.am): Arrange to compile and run test-unistd-c++.
52610         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
52611         gl_MODULE_INDICATOR.
52613         Tests of module 'time' in C++ mode.
52614         * tests/test-time-c++.cc: New file.
52615         * modules/time-tests (Files): Add it and tests/signature.h.
52616         (Depends-on): Add ansi-c++-opt.
52617         (Makefile.am): Arrange to compile and run test-time-c++.
52618         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
52620         Tests of module 'sys_time' in C++ mode.
52621         * tests/test-sys_time-c++.cc: New file.
52622         * modules/sys_time-tests (Files): Add it and tests/signature.h.
52623         (Depends-on): Add ansi-c++-opt.
52624         (Makefile.am): Arrange to compile and run test-sys_time-c++.
52625         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
52626         gl_MODULE_INDICATOR.
52628         Tests of module 'sys_stat' in C++ mode.
52629         * tests/test-sys_stat-c++.cc: New file.
52630         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
52631         (Depends-on): Add ansi-c++-opt.
52632         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
52633         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
52634         gl_MODULE_INDICATOR.
52636         Tests of module 'sys_socket' in C++ mode.
52637         * tests/test-sys_socket-c++.cc: New file.
52638         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
52639         (Depends-on): Add ansi-c++-opt.
52640         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
52641         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
52642         gl_MODULE_INDICATOR.
52644         Tests of module 'sys_select' in C++ mode.
52645         * tests/test-sys_select-c++.cc: New file.
52646         * modules/sys_select-tests (Files): Add it and tests/signature.h.
52647         (Depends-on): Add ansi-c++-opt.
52648         (Makefile.am): Arrange to compile and run test-sys_select-c++.
52649         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
52650         gl_MODULE_INDICATOR.
52652         Tests of module 'sys_ioctl' in C++ mode.
52653         * tests/test-sys_ioctl-c++.cc: New file.
52654         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
52655         (Depends-on): Add ansi-c++-opt.
52656         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
52657         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
52658         gl_MODULE_INDICATOR.
52660         Tests of module 'string' in C++ mode.
52661         * tests/test-string-c++.cc: New file.
52662         * modules/string-tests (Files): Add it and tests/signature.h.
52663         (Depends-on): Add ansi-c++-opt.
52664         (Makefile.am): Arrange to compile and run test-string-c++.
52665         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
52666         gl_MODULE_INDICATOR.
52668         Tests of module 'stdlib' in C++ mode.
52669         * tests/test-stdlib-c++.cc: New file.
52670         * modules/stdlib-tests (Files): Add it and tests/signature.h.
52671         (Depends-on): Add ansi-c++-opt.
52672         (Makefile.am): Arrange to compile and run test-stdlib-c++.
52673         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
52674         gl_MODULE_INDICATOR.
52676         Tests of module 'stdio' in C++ mode.
52677         * tests/test-stdio-c++.cc: New file.
52678         * modules/stdio-tests (Files): Add it and tests/signature.h.
52679         (Depends-on): Add ansi-c++-opt.
52680         (Makefile.am): Arrange to compile and run test-stdio-c++.
52681         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
52682         gl_MODULE_INDICATOR.
52684         Tests of module 'spawn' in C++ mode.
52685         * tests/test-spawn-c++.cc: New file.
52686         * modules/spawn-tests (Files): Add it and tests/signature.h.
52687         (Depends-on): Add ansi-c++-opt.
52688         (Makefile.am): Arrange to compile and run test-spawn-c++.
52689         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
52690         gl_MODULE_INDICATOR.
52692         Tests of module 'signal' in C++ mode.
52693         * tests/test-signal-c++.cc: New file.
52694         * modules/signal-tests (Files): Add it and tests/signature.h.
52695         (Depends-on): Add ansi-c++-opt.
52696         (Makefile.am): Arrange to compile and run test-signal-c++.
52697         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
52698         gl_MODULE_INDICATOR.
52700         Tests of module 'search' in C++ mode.
52701         * tests/test-search-c++.cc: New file.
52702         * modules/search-tests (Files): Add it and tests/signature.h.
52703         (Depends-on): Add ansi-c++-opt.
52704         (Makefile.am): Arrange to compile and run test-search-c++.
52705         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
52706         gl_MODULE_INDICATOR.
52708         Tests of module 'math' in C++ mode.
52709         * tests/test-math-c++.cc: New file.
52710         * modules/math-tests (Files): Add it and tests/signature.h.
52711         (Depends-on): Add ansi-c++-opt.
52712         (Makefile.am): Arrange to compile and run test-math-c++.
52713         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
52715         Tests of module 'locale' in C++ mode.
52716         * tests/test-locale-c++.cc: New file.
52717         * modules/locale-tests (Files): Add it and tests/signature.h.
52718         (Depends-on): Add ansi-c++-opt.
52719         (Makefile.am): Arrange to compile and run test-locale-c++.
52720         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
52721         gl_MODULE_INDICATOR.
52723         Tests of module 'langinfo' in C++ mode.
52724         * tests/test-langinfo-c++.cc: New file.
52725         * modules/langinfo-tests (Files): Add it and tests/signature.h.
52726         (Depends-on): Add ansi-c++-opt.
52727         (Makefile.am): Arrange to compile and run test-langinfo-c++.
52728         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
52729         gl_MODULE_INDICATOR.
52731         Tests of module 'iconv-h' in C++ mode.
52732         * tests/test-iconv-h-c++.cc: New file.
52733         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
52734         (Depends-on): Add ansi-c++-opt.
52735         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
52737         Tests of module 'glob' in C++ mode.
52738         * tests/test-glob-c++.cc: New file.
52739         * modules/glob-tests (Files): Add it.
52740         (Depends-on): Add ansi-c++-opt.
52741         (Makefile.am): Arrange to compile and run test-glob-c++.
52743         Tests of module 'fcntl-h' in C++ mode.
52744         * tests/test-fcntl-h-c++.cc: New file.
52745         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
52746         (Depends-on): Add ansi-c++-opt.
52747         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
52748         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
52749         gl_MODULE_INDICATOR.
52751         Tests of module 'dirent' in C++ mode.
52752         * tests/test-dirent-c++.cc: New file.
52753         * modules/dirent-tests (Files): Add it and tests/signature.h.
52754         (Depends-on): Add ansi-c++-opt.
52755         (Makefile.am): Arrange to compile and run test-dirent-c++.
52756         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
52757         gl_MODULE_INDICATOR.
52759         New module 'ansi-c++-opt'.
52760         * modules/ansi-c++-opt: New file.
52761         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
52763         Document C++ namespace mode.
52764         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
52766         wctype: Avoid #define replacements in C++ mode.
52767         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
52768         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
52769         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
52770         In C++, define a namespaced alias symbol.
52771         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
52772         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
52773         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
52774         rule.
52776         wchar: Avoid #define replacements in C++ mode.
52777         * lib/wchar.in.h: Include c++defs.h.
52778         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
52779         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
52780         symbol.
52781         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
52782         * modules/wchar (Depends-on): Add c++defs.
52783         (Makefile.am): Update wchar.h rule.
52785         unistd: Avoid #define replacements in C++ mode.
52786         * lib/unistd.in.h: Include c++defs.h.
52787         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
52788         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
52789         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
52790         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
52791         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
52792         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
52793         symbol.
52794         (environ): Update.
52795         * modules/unistd (Depends-on): Add c++defs.
52796         (Makefile.am): Update unistd.h rule.
52798         time: Avoid #define replacements in C++ mode.
52799         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
52800         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
52801         define a namespaced alias symbol.
52802         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
52803         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
52804         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
52805         * modules/time (Depends-on): Add c++defs, warn-on-use.
52806         (Makefile.am): Update time.h rule.
52807         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
52808         * modules/nanosleep (configure.ac): Likewise.
52809         * modules/strptime (configure.ac): Likewise.
52810         * modules/timegm (configure.ac): Likewise.
52812         sys_time: Avoid #define replacements in C++ mode.
52813         * lib/sys_time.in.h: Include c++defs.h.
52814         (gettimeofday): In C++, define a namespaced alias symbol.
52815         * modules/sys_time (Depends-on): Add c++defs.
52816         (Makefile.am): Update sys/time.h rule.
52818         sys_stat: Avoid #define replacements in C++ mode.
52819         * lib/sys_stat.in.h: Include c++defs.h.
52820         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
52821         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
52822         namespaced alias symbol.
52823         In C++, define a namespaced alias symbol.
52824         * modules/sys_stat (Depends-on): Add c++defs.
52825         (Makefile.am): Update sys/stat.h rule.
52827         sys_socket: Avoid #define replacements in C++ mode.
52828         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
52829         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
52830         definitions also when the system has a <sys/socket.h>.
52831         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52832         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
52833         In C++, define a namespaced alias symbol.
52834         * modules/sys_socket (Depends-on): Add c++defs.
52835         (Makefile.am): Update sys/socket.h rule.
52837         sys_select: Avoid #define replacements in C++ mode.
52838         * lib/sys_select.in.h: Include c++defs.h. Enable the function
52839         definitions also when the system has a <sys/select.h>.
52840         (select): In C++, define a namespaced alias symbol.
52841         * modules/sys_select (Depends-on): Add c++defs.
52842         (Makefile.am): Update sys/select.h rule.
52844         sys_ioctl: Avoid #define replacements in C++ mode.
52845         * lib/sys_ioctl.in.h: Include c++defs.h.
52846         (ioctl): In C++, define a namespaced alias symbol.
52847         * modules/sys_ioctl (Depends-on): Add c++defs.
52848         (Makefile.am): Update sys/ioctl.h rule.
52850         string: Avoid #define replacements in C++ mode.
52851         * lib/string.in.h: Include c++defs.h.
52852         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
52853         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
52854         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
52855         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
52856         strsignal, strverscmp): In C++, define a namespaced alias symbol.
52857         * modules/string (Depends-on): Add c++defs.
52858         (Makefile.am): Update string.h rule.
52860         stdlib: Avoid #define replacements in C++ mode.
52861         * lib/stdlib.in.h: Include c++defs.h.
52862         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
52863         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
52864         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
52865         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
52866         symbol.
52867         * modules/stdlib (Depends-on): Add c++defs.
52868         (Makefile.am): Update stdlib.h rule.
52870         stdio: Avoid #define replacements in C++ mode.
52871         * lib/stdio.in.h: Include c++defs.h.
52872         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
52873         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
52874         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
52875         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
52876         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
52877         namespaced alias symbol.
52878         * modules/stdio (Depends-on): Add c++defs.
52879         (Makefile.am): Update stdio.h rule.
52881         spawn: Avoid #define replacements in C++ mode.
52882         * lib/spawn.in.h: Include c++defs.h.
52883         (posix_spawn, posix_spawnp, posix_spawnattr_init,
52884         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
52885         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
52886         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
52887         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
52888         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
52889         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
52890         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
52891         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
52892         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
52893         In C++, define a namespaced alias symbol.
52894         * modules/spawn (Depends-on): Add c++defs.
52895         (Makefile.am): Update spawn.h rule.
52897         signal: Avoid #define replacements in C++ mode.
52898         * lib/signal.in.h: Include c++defs.h.
52899         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
52900         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
52901         namespaced alias symbol.
52902         * modules/signal (Depends-on): Add c++defs.
52903         (Makefile.am): Update signal.h rule.
52905         search: Avoid #define replacements in C++ mode.
52906         * lib/search.in.h: Include c++defs.h.
52907         (_gl_search_compar_fn, _gl_search_action_fn): New types.
52908         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
52909         symbol.
52910         * modules/search (Depends-on): Add c++defs.
52911         (Makefile.am): Update search.h rule.
52913         math: Avoid #define replacements in C++ mode.
52914         * lib/math.in.h: Include c++defs.h.
52915         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
52916         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
52917         trunc, truncl): In C++, define a namespaced alias symbol.
52918         * modules/math (Depends-on): Add c++defs.
52919         (Makefile.am): Update math.h rule.
52921         locale: Avoid #define replacements in C++ mode.
52922         * lib/locale.in.h: Include c++defs.h.
52923         (duplocale): In C++, define a namespaced alias symbol.
52924         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
52925         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
52926         * modules/locale (Depends-on): Add c++defs.
52927         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
52929         langinfo: Avoid #define replacements in C++ mode.
52930         * lib/langinfo.in.h: Include c++defs.h.
52931         (nl_langinfo): In C++, define a namespaced alias symbol.
52932         * modules/langinfo (Depends-on): Add c++defs.
52933         (Makefile.am): Update langinfo.h rule.
52935         iconv-h: Avoid #define replacements in C++ mode.
52936         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
52937         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
52938         symbol.
52939         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52940         whenever iconv is present.
52941         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
52942         (Makefile.am): Update iconv.h rule.
52944         glob: Avoid #define replacements in C++ mode.
52945         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
52946         (_gl_glob_errfunc_fn): New type.
52947         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
52948         symbol.
52949         * modules/glob (Depends-on): Add c++defs, warn-on-use.
52950         (Makefile.am): Update glob.h rule.
52952         fcntl-h: Avoid #define replacements in C++ mode.
52953         * lib/fcntl.in.h: Include c++defs.h.
52954         (fcntl, open, openat): In C++, define a namespaced alias symbol.
52955         * modules/fcntl-h (Depends-on): Add c++defs.
52956         (Makefile.am): Update fcntl.h rule.
52958         dirent: Avoid #define replacements in C++ mode.
52959         * lib/dirent.in.h: Include c++defs.h.
52960         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
52961         namespaced alias symbol.
52962         (dirfd): Update declaration.
52963         * modules/dirent (Depends-on): Add c++defs.
52964         (Makefile.am): Update dirent.h rule.
52966         ctype: Make it usable in C++ code.
52967         * lib/ctype.in.h: Include c++defs.h.
52968         (isblank): Declare as extern "C".
52969         * modules/ctype (Depends-on): Add c++defs.
52970         (Makefile.am): Update ctype.h rule.
52972         New module 'c++defs'.
52973         * modules/c++defs: New file.
52974         * build-aux/c++defs.h: New file.
52975         Reported by John W. Eaton <jwe@gnu.org>.
52977 2010-03-07  Bruno Haible  <bruno@clisp.org>
52979         logb: Provide missing declaration for Cygwin.
52980         * lib/math.in.h (logb): New declaration.
52981         * m4/logb.m4: New file.
52982         * modules/logb (Files): Add m4/logb.m4.
52983         (Depends-on): Add math.
52984         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
52985         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
52986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
52987         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
52988         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
52990 2010-03-07  Bruno Haible  <bruno@clisp.org>
52992         Fix test-cond link error.
52993         * tests/test-cond.c: Include <stdio.h>.
52995 2010-03-07  Bruno Haible  <bruno@clisp.org>
52997         Fix test-dirent-safer link error.
52998         * modules/dirent-safer-tests (Makefile.am): Define
52999         test_dirent_safer_LDADD.
53001 2010-03-07  Bruno Haible  <bruno@clisp.org>
53003         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
53004         among default module list.
53006 2010-03-07  Bruno Haible  <bruno@clisp.org>
53008         Fix link error on platforms with GNU libiconv.
53009         * modules/unistr/u8-strcoll-tests (Makefile): Define
53010         test_u8_strcoll_LDADD.
53011         * modules/unistr/u16-strcoll-tests (Makefile): Define
53012         test_u16_strcoll_LDADD.
53013         * modules/unistr/u32-strcoll-tests (Makefile): Define
53014         test_u32_strcoll_LDADD.
53016 2010-03-07  Bruno Haible  <bruno@clisp.org>
53018         Use POSIX declarations for socket functions.
53019         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
53020         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
53021         rpl_sendto): Change declaration to match POSIX.
53022         * lib/connect.c (rpl_connect): Likewise.
53023         * lib/accept.c (rpl_accept): Likewise.
53024         * lib/bind.c (rpl_bind): Likewise.
53025         * lib/getpeername.c (rpl_getpeername): Likewise.
53026         * lib/getsockname.c (rpl_getsockname): Likewise.
53027         * lib/recv.c (rpl_recv): Likewise.
53028         * lib/send.c (rpl_send): Likewise.
53029         * lib/recvfrom.c (rpl_recvfrom): Likewise.
53030         * lib/sendto.c (rpl_sendto): Likewise.
53032 2010-03-06  Bruno Haible  <bruno@clisp.org>
53034         Clarify access, euidaccess, faccessat.
53035         * doc/posix-functions/faccessat.texi: Mention security problem under
53036         "Other problems", not "Portability problems".
53037         * doc/posix-functions/access.texi: Likewise. Mention a related security
53038         problem.
53039         * doc/glibc-functions/euidaccess.texi: Mention security problems.
53040         * lib/euidaccess.c: Add comments about platforms.
53041         * lib/unistd.in.h (access, euidaccess): Add warnings.
53043 2010-03-07  Bruno Haible  <bruno@clisp.org>
53045         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
53046         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
53047         (POSIX_SPAWN_SETSCHEDULER): Likewise.
53048         (POSIX_SPAWN_USEVFORK): Define in a way that works when
53049         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
53050         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
53051         declare when POSIX_SPAWN_SETSCHEDULER is zero.
53052         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
53053         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
53054         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
53055         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
53056         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
53057         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
53058         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
53059         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
53060         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
53061         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
53062         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
53063         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
53064         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
53065         Likewise.
53066         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
53067         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
53068         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
53069         Likewise.
53070         * tests/test-spawn.c (main): Make it work when
53071         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
53073 2010-03-07  Bruno Haible  <bruno@clisp.org>
53075         Fix incorrect Makefile.am generation in German locale.
53076         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53077         Execute sed command with character range in C locale.
53079 2010-03-06  Bruno Haible  <bruno@clisp.org>
53081         Tests for module 'iconv-h'.
53082         * modules/iconv-h-tests: New file.
53083         * tests/test-iconv-h.c: New file.
53085         New module 'iconv-h'.
53086         * modules/iconv-h: New file.
53087         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
53088         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
53089         (configure.ac): Remove gl_ICONV_H.
53090         (Makefile.am): Remove rule for iconv.h.
53092 2010-03-06  Bruno Haible  <bruno@clisp.org>
53094         More consistent naming of *.m4 files.
53095         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
53096         * modules/wctype (Files): Update.
53098         More consistent naming of *.m4 files.
53099         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
53100         * modules/wchar (Files): Update.
53102 2010-03-06  Jim Meyering  <meyering@redhat.com>
53104         euidaccess: relax license to LGPLv2+
53105         * modules/euidaccess (License): Relax to LGPLv2+.
53107 2010-03-06  Bruno Haible  <bruno@clisp.org>
53109         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
53110         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
53111         (Makefile.am): Augment lib_SOURCES instead.
53113 2010-03-04  Jim Meyering  <meyering@redhat.com>
53115         utime: remove obsolete module
53116         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
53117         unnecessary for years, and has been marked as obsolete for 10 months.
53118         * modules/utime: Remove file.
53119         * lib/utime.c: Remove file.
53120         * m4/utime.m4: Remove file.
53121         * m4/utimes-null.m4: Remove file.
53122         * doc/posix-functions/utime.texi (utime): Remove reference to
53123         the module.  Move the sole "fixed by gnulib" item into the
53124         "problems not fixed by Gnulib" list.
53125         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
53127 2010-03-05  Simon Josefsson  <simon@josefsson.org>
53129         * modules/exit (License): Relax license to LGPLv2+.
53130         (Status): Mark as obsolete.
53131         * NEWS: Mention deprecated 'exit' module.
53132         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
53133         of now obsolete 'exit'.
53135 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53137         fts-lgpl: remove unused module
53138         * modules/fts-lgpl: Remove.
53139         * MODULES.html.sh (func_all_modules): Adjust.
53140         * check-module (find_included_lib_files): Adjust.
53141         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
53143 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
53145         copy-acl: enhance Solaris ACL error handling
53146         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
53147         * lib/set-mode-acl.c (qset_acl): Likewise.
53149 2010-03-02  Bruno Haible  <bruno@clisp.org>
53151         spawn: Don't override the system defined values on FreeBSD 8.
53152         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
53153         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
53154         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
53155         if HAVE_POSIX_SPAWN is 1.
53156         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
53158 2010-03-01  Bruno Haible  <bruno@clisp.org>
53160         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
53161         regarding Automake.
53163 2010-02-25  Bruno Haible  <bruno@clisp.org>
53165         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
53166         * gnulib-tool: Define 'echo' as a function only before the ksh alias
53167         setting, not afterwards.
53168         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
53170 2010-02-24  Eric Blake  <eblake@redhat.com>
53172         bootstrap, git-version-gen: use timestamp
53173         * build-aux/git-version-gen (scriptversion): Force UTC.
53174         * build-aux/bootstrap (scriptversion): New variable.
53176         bootstrap: allow older git
53177         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
53178         older than 1.6.4.  Requested by the libvirt project.
53180 2010-02-23  Eric Blake  <eblake@redhat.com>
53182         warn-on-use: work with old autoconf
53183         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
53184         AS_VAR semantics of autoconf 2.60.
53185         Reported by Bruno Haible.
53187         bootstrap: improve some comments
53188         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
53189         clarification comments.
53191         gettimeofday: provide correct function
53192         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
53193         when replacement is declared, otherwise provide gettimeofday.
53194         Reported by Michael Goffioul.
53196 2010-02-23  Jim Meyering  <meyering@redhat.com>
53198         lib-ignore: relax license to "unlimited", not LGPLv2+
53199         * modules/lib-ignore (License): Relax to "unlimited".
53201 2010-02-23  Jim Meyering  <meyering@redhat.com>
53203         lib-ignore: relax license to LGPLv2+
53204         * modules/lib-ignore (License): Relax to LGPLv2+.
53206 2010-02-22  Eric Blake  <eblake@redhat.com>
53208         lseek: avoid bash 3.2 broken pipe bug
53209         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
53210         warning from bash 3.2.
53211         Reported by Ben Pfaff, with analysis from Bruno Haible.
53213         bootstrap: support non-FSF copyright holder
53214         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
53215         bootstrap.conf override of COPYRIGHT_HOLDER.
53216         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
53218         bootstrap: interoperate with gettext 0.14.1
53219         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
53221         bootstrap: allow for alternate submodule location
53222         * build-aux/bootstrap (gnulib_path): New variable; use instead of
53223         hardcoding submodule location.
53224         (gnulib_mk): Allow direct use of Makefile.am.
53226         bootstrap: use GNULIB_SRCDIR to reduce disk usage
53227         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
53228         rather than reconfiguring where the submodule points.
53230         gettimeofday: restore support for platforms that lack function
53231         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
53232         replacement if function is missing.
53233         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
53234         * modules/sys_time (Makefile.am): Substitute it.
53235         * lib/sys_time.in.h (gettimeofday): Check it.
53236         Reported by Michael Goffioul.
53238 2010-02-21  Bruno Haible  <bruno@clisp.org>
53240         * lib/stdio.in.h (obstack_printf): Fix typo.
53242 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
53244         vc-list-files: use bzr ls's -R option
53245         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
53246         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
53248 2010-02-21  Jim Meyering  <meyering@redhat.com>
53250         init.sh: fix EXEEXT shims to work also for names like test-prog
53251         * tests/init.sh: Re-exec a better shell, when needed.
53252         If the current shell lacks support for posix $(...), an init.sh-using
53253         test will now try to find a shell that supports that.  If EXEEXT is
53254         nonempty, we also require support for hyphen-in-alias-name and shell
53255         substitutions like ${var#glob}.  Failure to find such a shell results
53256         in a skipped test.
53258 2010-02-21  Bruno Haible  <bruno@clisp.org>
53260         Really work around "broken pipe" error message from bash 3.2.
53261         * gnulib-tool (func_reset_sigpipe): Remove function.
53262         (echo): In bash 3.2, define to a function that uses printf.
53263         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
53265 2010-02-20  Bruno Haible  <bruno@clisp.org>
53267         Restore support for automake 1.9.6 with autoconf 2.61.
53268         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
53269         Reported by James Youngman <jay@gnu.org>.
53271 2010-02-20  Bruno Haible  <bruno@clisp.org>
53273         Improve *printf warning condition.
53274         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
53275         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
53276         and the function is overridden due to SIGPIPE emulation.
53278 2010-02-20  Bruno Haible  <bruno@clisp.org>
53280         * lib/stdio.in.h: Tweak comments.
53282 2010-02-19  Bruno Haible  <bruno@clisp.org>
53284         Make it easier to find modules. New gnulib-tool option '--find'.
53285         * gnulib-tool: New option --find.
53286         (func_usage): Document it.
53287         (func_sanitize_modulelist): New function, extracted from
53288         func_all_modules.
53289         (func_all_modules): Invoke it.
53290         * doc/gnulib-tool.texi (Which modules?): New node.
53292 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
53294         * lib/sys_select.in.h: Provide select replacement even if
53295         sys/select.h exists on a system, for Interix.
53297 2010-02-18  Jim Meyering  <meyering@redhat.com>
53299         init.sh: don't use $(...) just yet
53300         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
53301         to accommodate e.g., Solaris' /bin/sh.
53303 2010-02-17  Bruno Haible  <bruno@clisp.org>
53305         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
53306         Reported by Ludovic Courtès <ludo@gnu.org>.
53308 2010-02-16  Simon Josefsson  <simon@josefsson.org>
53310         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
53311         linking with -lintl.
53313 2010-02-17  Simon Josefsson  <simon@josefsson.org>
53315         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
53316         if not provided by the system's netdb.h.  Reported by
53317         ludo@gnu.org (Ludovic Courtès).
53319 2010-02-15  Jim Meyering  <meyering@redhat.com>
53321         init.sh: improve portability and efficiency
53322         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
53323         "dummy" in a for loop.
53324         Use '!', not '^' to select the complement of a character set used
53325         in a "case" statement.
53326         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
53327         Suggestions from Eric Blake.
53329         init.sh: automatically accommodate programs with the .exe suffix
53330         Automatically arrange for an invocation of "prog" to execute the
53331         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
53332         may use the simpler "prog", yet still work when built on a system
53333         that requires specifying the added suffix.
53334         Do this by constructing a function named "prog" that invokes
53335         "prog.exe" for each .exe file in selected directories.
53336         * tests/init.sh (find_exe_basenames_): New function.
53337         (create_exe_shim_functions_): New function.
53338         (path_prepend_): Use it.
53340         maint.mk: mark syntax-check sc_*.m rules as .PHONY
53341         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
53342         "make -t syntax-check" doesn't create a ton of sc_*.m files.
53344 2010-02-14  Jim Meyering  <meyering@redhat.com>
53346         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
53347         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
53348         (sc_prohibit_hash_pjw_without_use): New rule.
53350         maint.mk: allow the default upload destination dir to be overridden
53351         * top/maint.mk (upload_dest_dir_): Define with a default that
53352         preserves the status quo.
53353         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
53354         Reported by Peter Simons.
53356         maint.mk: prohibit inclusion of "hash.h" without_use
53357         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
53359 2010-02-10  Jim Meyering  <meyering@redhat.com>
53361         maint.mk: prohibit inclusion of "ignore-value.h" without_use
53362         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
53364 2010-02-09  Eric Blake  <ebb9@byu.net>
53365         and Bruno Haible  <bruno@clisp.org>
53367         obstack-printf-posix: ensure declaration
53368         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
53369         extracted from gl_FUNC_OBSTACK_PRINTF.
53370         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
53371         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53372         Likewise.
53373         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
53374         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
53375         0.
53377 2010-02-08  Bruno Haible  <bruno@clisp.org>
53379         gnulib-tool: Fix typo in 2010-02-07 commit.
53380         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
53381         Reported by Eric Blake.
53383 2010-02-07  Bruno Haible  <bruno@clisp.org>
53385         gnulib-tool: Fix up caching patches.
53386         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
53387         option --no-cache. Use associative arrays when supported by the shell.
53388         (sed_comments): New variable.
53389         (modcache): Renamed from do_cache.
53390         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
53391         abbreviate unnecessarily.
53392         (have_associative): New variable.
53393         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
53394         way also for ksh and zsh.
53395         (func_init_sed_convert_to_cache_statements): New function, extracted
53396         from func_cache_lookup_module. Add support for associative arrays.
53397         Don't set the c_MODULE_cached variable here. Ignore all lines before
53398         the first field header. Remove only the final newline, not all trailing
53399         newlines. Support empty fields correctly. Limit the use of 'eval' to
53400         assignments.
53401         (func_get_description, func_get_status, func_get_notice,
53402         func_get_applicability, func_get_filelist, func_get_dependencies,
53403         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
53404         func_get_automake_snippet, func_get_include_directive,
53405         func_get_link_directive, func_get_license, func_get_maintainer):
53406         Update documentation. List the unoptimized code first. Add support for
53407         associative arrays. Limit the use of 'eval' to assignments.
53408         (func_get_applicability): Undo stylistic pessimisations.
53409         (func_get_automake_snippet, func_get_include_directive): Reduce code
53410         duplication.
53411         (func_modules_transitive_closure, func_modules_add_dummy,
53412         func_modules_notice, func_modules_to_filelist, func_add_file,
53413         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
53414         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
53415         func_create_testdir, func_create_megatestdir): Update documentation.
53417 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53419         * gnulib-tool (func_cache_lookup_module): Store the module name
53420         belonging to the cache variable; error out if two different
53421         module names map to the same cache variable name.
53423 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53425         gnulib-tool: Make caching optional.
53426         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
53427         Update matching short versions of --no-changelog.
53428         (func_usage): Update.
53429         (sed_extract_cache_prog): Renamed from ...
53430         (sed_extract_prog): ... this; revert to old extraction script.
53431         (func_get_description, func_get_status)
53432         (func_get_notice, func_get_applicability, func_get_filelist)
53433         (func_get_dependencies, func_get_autoconf_early_snippet)
53434         (func_get_autoconf_snippet, func_get_automake_snippet)
53435         (func_get_include_directive, func_get_link_directive)
53436         (func_get_license, func_get_maintainer): If $do_cache is false,
53437         use old, non-caching extraction scripts.
53438         Suggestion by Bruno Haible.
53440 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53442         gnulib-tool: cache module metainformation.
53443         * gnulib-tool (sed_extract_prog): Match newline before each
53444         header, and rewrite header to a shell variable suffix.
53445         (func_cache_var, func_cache_lookup_module): New functions,
53446         to turn a module name into a cache variable prefix, and to
53447         look up and cache module metainformation.
53448         (func_get_description, func_get_status)
53449         (func_get_notice, func_get_applicability, func_get_filelist)
53450         (func_get_dependencies, func_get_autoconf_early_snippet)
53451         (func_get_autoconf_snippet, func_get_automake_snippet)
53452         (func_get_include_directive, func_get_link_directive)
53453         (func_get_license, func_get_maintainer): Use
53454         func_cache_lookup_module.
53456 2010-02-07  Bruno Haible  <bruno@clisp.org>
53458         fnctl: Fix missing dependency.
53459         * modules/fcntl (Depends-on): Add getdtablesize.
53460         Reported by John W. Eaton <jwe@gnu.org>.
53462 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53464         Argp: fix recognition of short alias options.
53466         * lib/argp-parse.c (convert_options): Fix improper use of
53467         `|' between character values.
53468         * tests/test-argp.c (group1_option): New alias option
53469         --read (-r).
53470         (group1_parser): Special handling for 'r'.
53471         (test15): New test case.
53472         (test_fun): Add test15.
53473         * tests/test-argp-2.sh: Update expected --help and --usage
53474         outputs.
53476 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53478         * tests/test-argp.c: Fix indentation.
53480 2010-02-04  Eric Blake  <ebb9@byu.net>
53482         gettimeofday: expose type of second argument
53483         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
53484         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
53485         * tests/test-gettimeofday.c: Use it to silence warning.
53486         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
53487         the issue.
53489 2010-02-03  Jim Meyering  <meyering@redhat.com>
53491         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
53492         * lib/regcomp.c (TYPE_SIGNED): Define.
53493         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
53495         regcomp.c: avoid a new -Wshadow warning
53496         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
53498 2010-02-01  Jim Meyering  <meyering@redhat.com>
53500         removing useless parentheses in cpp #define directives
53501         For motivation, see commit c0221df4, "define STREQ(a,b)
53502         consistently, removing useless parentheses"
53503         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
53504         * lib/mountlist.c (MNT_IGNORE): Likewise.
53505         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
53507 2010-02-01  Eric Blake  <ebb9@byu.net>
53509         sys_time: use link-warning
53510         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
53511         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
53512         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
53513         * modules/sys_time (Depends-on): Add warn-on-use.
53514         (Makefile.am): Always build replacement.
53515         (configure.ac): Update substitutions.
53516         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
53517         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
53518         bother with SYS_TIME_H.
53519         * modules/gettimeofday (configure.ac): Declare indicator.
53520         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
53521         in use.
53523         closein-tests: silence compiler warning
53524         * tests/test-closein.c (main): Ignore fread result.
53525         * modules/closein-tests (Depends-on): Add ignore-value.
53527         tests: silence warning about system return
53528         * tests/test-areadlink-with-size.c (main): Ignore system result.
53529         * tests/test-areadlink.c (main): Likewise.
53530         * tests/test-areadlinkat-with-size.c (main): Likewise.
53531         * tests/test-areadlinkat.c (main): Likewise.
53532         * tests/test-canonicalize-lgpl.c (main): Likewise.
53533         * tests/test-canonicalize.c (main): Likewise.
53534         * tests/test-chown.c (main): Likewise.
53535         * tests/test-fchownat.c (main): Likewise.
53536         * tests/test-fdutimensat.c (main): Likewise.
53537         * tests/test-fstatat.c (main): Likewise.
53538         * tests/test-futimens.c (main): Likewise.
53539         * tests/test-lchown.c (main): Likewise.
53540         * tests/test-link.c (main): Likewise.
53541         * tests/test-linkat.c (main): Likewise.
53542         * tests/test-lstat.c (main): Likewise.
53543         * tests/test-mkdir.c (main): Likewise.
53544         * tests/test-mkdirat.c (main): Likewise.
53545         * tests/test-mkfifo.c (main): Likewise.
53546         * tests/test-mkfifoat.c (main): Likewise.
53547         * tests/test-mknod.c (main): Likewise.
53548         * tests/test-readlink.c (main): Likewise.
53549         * tests/test-remove.c (main): Likewise.
53550         * tests/test-rename.c (main): Likewise.
53551         * tests/test-renameat.c (main): Likewise.
53552         * tests/test-rmdir.c (main): Likewise.
53553         * tests/test-symlink.c (main): Likewise.
53554         * tests/test-symlinkat.c (main): Likewise.
53555         * tests/test-unlink.c (main): Likewise.
53556         * tests/test-unlinkat.c (main): Likewise.
53557         * tests/test-utimens.c (main): Likewise.
53558         * tests/test-utimensat.c (main): Likewise.
53559         * modules/areadlink-tests (Depends-on): Add ignore-value.
53560         * modules/areadlink-with-size-tests (Depends-on): Likewise.
53561         * modules/areadlinkat-tests (Depends-on): Likewise.
53562         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
53563         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
53564         * modules/canonicalize-tests (Depends-on): Likewise.
53565         * modules/chown-tests (Depends-on): Likewise.
53566         * modules/fdutimensat-tests (Depends-on): Likewise.
53567         * modules/futimens-tests (Depends-on): Likewise.
53568         * modules/lchown-tests (Depends-on): Likewise.
53569         * modules/link-tests (Depends-on): Likewise.
53570         * modules/linkat-tests (Depends-on): Likewise.
53571         * modules/lstat-tests (Depends-on): Likewise.
53572         * modules/mkdir-tests (Depends-on): Likewise.
53573         * modules/mkfifo-tests (Depends-on): Likewise.
53574         * modules/mkfifoat-tests (Depends-on): Likewise.
53575         * modules/mknod-tests (Depends-on): Likewise.
53576         * modules/openat-tests (Depends-on): Likewise.
53577         * modules/readlink-tests (Depends-on): Likewise.
53578         * modules/remove-tests (Depends-on): Likewise.
53579         * modules/rename-tests (Depends-on): Likewise.
53580         * modules/renameat-tests (Depends-on): Likewise.
53581         * modules/rmdir-tests (Depends-on): Likewise.
53582         * modules/symlink-tests (Depends-on): Likewise.
53583         * modules/symlinkat-tests (Depends-on): Likewise.
53584         * modules/unlink-tests (Depends-on): Likewise.
53585         * modules/utimens-tests (Depends-on): Likewise.
53586         * modules/utimensat-tests (Depends-on): Likewise.
53588 2010-01-31  Bruno Haible  <bruno@clisp.org>
53590         Perform the same test for many <math.h> functions.
53591         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
53592         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
53593         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
53594         of gl_MATHFUNC.
53595         * modules/acos (configure.ac): Likewise.
53596         * modules/asin (configure.ac): Likewise.
53597         * modules/atan (configure.ac): Likewise.
53598         * modules/atan2 (configure.ac): Likewise.
53599         * modules/cbrt (configure.ac): Likewise.
53600         * modules/copysign (configure.ac): Likewise.
53601         * modules/cos (configure.ac): Likewise.
53602         * modules/cosh (configure.ac): Likewise.
53603         * modules/erf (configure.ac): Likewise.
53604         * modules/erfc (configure.ac): Likewise.
53605         * modules/exp (configure.ac): Likewise.
53606         * modules/fmod (configure.ac): Likewise.
53607         * modules/hypot (configure.ac): Likewise.
53608         * modules/j0 (configure.ac): Likewise.
53609         * modules/j1 (configure.ac): Likewise.
53610         * modules/jn (configure.ac): Likewise.
53611         * modules/lgamma (configure.ac): Likewise.
53612         * modules/log (configure.ac): Likewise.
53613         * modules/log10 (configure.ac): Likewise.
53614         * modules/log1p (configure.ac): Likewise.
53615         * modules/pow (configure.ac): Likewise.
53616         * modules/remainder (configure.ac): Likewise.
53617         * modules/sin (configure.ac): Likewise.
53618         * modules/sinh (configure.ac): Likewise.
53619         * modules/tan (configure.ac): Likewise.
53620         * modules/tanh (configure.ac): Likewise.
53621         * modules/y0 (configure.ac): Likewise.
53622         * modules/y1 (configure.ac): Likewise.
53623         * modules/yn (configure.ac): Likewise.
53624         Suggested by Paolo Bonzini.
53626 2010-01-31  Bruno Haible  <bruno@clisp.org>
53628         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
53630 2010-01-31  Bruno Haible  <bruno@clisp.org>
53632         Work around getdelim() bug on FreeBSD 8.0.
53633         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
53634         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
53635         not work.
53636         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
53637         is 1.
53638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
53639         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
53640         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
53641         a non-zero size.
53642         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
53644 2010-01-31  Bruno Haible  <bruno@clisp.org>
53646         Work around getline() bug on FreeBSD 8.0.
53647         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
53648         and a non-zero size.
53649         * tests/test-getline.c (main): Likewise.
53650         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
53651         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
53653 2010-01-28  Eric Blake  <ebb9@byu.net>
53655         regex: fix build failure
53656         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
53657         platforms.
53659 2010-01-28  Jim Meyering  <meyering@redhat.com>
53661         regex: do not ignore memory allocation failure
53662         * lib/regex_internal.c (create_cd_newstate): Detect
53663         re_node_set_init_copy failure.   Extracted from glibc commit
53664         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
53666         regex: sync more white-space changes from libc
53667         * lib/regex_internal.c: White-space only changes.
53668         * lib/regexec.c: Likewise.
53670         regex: add many uses of __attribute_warn_unused_result__
53671         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
53672         * lib/regexec.c: Likewise.
53673         Extracted from a messy glibc commit.
53675         regcomp.c: spelling and merge-artifact from glibc
53676         * lib/regcomp.c: Merge remainder of glibc's
53677         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
53679         regcomp.c: sync white-space changes from glibc
53680         * lib/regcomp.c: Merge to accommodate white space
53681         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
53683         regcomp.c: do not ignore internal return values
53684         * lib/regcomp.c: Do not ignore internal return values.
53685         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
53686         but without its white-space changes and spelling fixes.
53688         regex_internal.h: define __attribute_warn_unused_result__
53689         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
53691         maint: add a syntax-check rule to check for vulnerable Makefile.in
53692         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
53694 2010-01-27  Jim Meyering  <meyering@redhat.com>
53696         ncftpput-ftp: clean up spaces
53697         * build-aux/ncftpput-ftp: Make Copyright line consistent.
53698         Remove trailing blanks.
53700 2010-01-27  Simon Josefsson  <simon@josefsson.org>
53702         * build-aux/git-version-gen: Fix copyright statement.
53703         * build-aux/gnupload: Likewise.
53704         * tests/test-arcfour.c: Likewise.
53705         * tests/test-arctwo.c: Likewise.
53706         * tests/test-count-one-bits.c: Likewise.
53707         * tests/test-crc.c: Likewise.
53708         * tests/test-des.c: Likewise.
53709         * tests/test-gc-arcfour.c: Likewise.
53710         * tests/test-gc-arctwo.c: Likewise.
53711         * tests/test-gc-des.c: Likewise.
53712         * tests/test-gc-hmac-md5.c: Likewise.
53713         * tests/test-gc-hmac-sha1.c: Likewise.
53714         * tests/test-gc-md2.c: Likewise.
53715         * tests/test-gc-md4.c: Likewise.
53716         * tests/test-gc-md5.c: Likewise.
53717         * tests/test-gc-pbkdf2-sha1.c: Likewise.
53718         * tests/test-gc-rijndael.c: Likewise.
53719         * tests/test-gc-sha1.c: Likewise.
53720         * tests/test-gc.c: Likewise.
53721         * tests/test-gethostname.c: Likewise.
53722         * tests/test-gettimeofday.c: Likewise.
53723         * tests/test-hash.c: Likewise.
53724         * tests/test-hmac-md5.c: Likewise.
53725         * tests/test-hmac-sha1.c: Likewise.
53726         * tests/test-md2.c: Likewise.
53727         * tests/test-md4.c: Likewise.
53728         * tests/test-md5.c: Likewise.
53729         * tests/test-memchr.c: Likewise.
53730         * tests/test-memchr2.c: Likewise.
53731         * tests/test-memcmp.c: Likewise.
53732         * tests/test-memmem.c: Likewise.
53733         * tests/test-memrchr.c: Likewise.
53734         * tests/test-rawmemchr.c: Likewise.
53735         * tests/test-read-file.c: Likewise.
53736         * tests/test-rijndael.c: Likewise.
53737         * tests/test-sockets.c: Likewise.
53738         * tests/test-strchrnul.c: Likewise.
53739         * tests/test-strstr.c: Likewise.
53740         * tests/test-strtod.c: Likewise.
53741         * build-aux/ncftpput-ftp: Likewise.
53743 2010-01-26  Eric Blake  <ebb9@byu.net>
53745         ignore-value: update recommended header name
53746         * modules/ignore-value (Include): Only use <> for headers that
53747         exist in glibc.
53749 2010-01-26  Jim Meyering  <meyering@redhat.com>
53751         test-userspec.c: avoid compiler warnings
53752         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
53753         and "initialization discards qualifiers..." warnings.
53754         Put the first "uid" in its own scope, and make char* members "const".
53756 2010-01-25  Bruno Haible  <bruno@clisp.org>
53758         gnulib-tool: Make warning diagnostics consistent.
53759         * gnulib-tool (func_warning): New function.
53760         Use it everywhere where gnulib-tool produces output to stderr and it is
53761         not a fatal error.
53763 2010-01-25  Bruno Haible  <bruno@clisp.org>
53765         Fix test dependencies.
53766         * modules/xstrtol-tests (Depends-on): Add inttypes.
53767         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
53769 2010-01-25  Pádraig Brady  <P@draigBrady.com>
53771         syntax-check: detect incorrect boolean macro values in config.h
53772         * modules/maintainer-makefile (configure.ac): Parameterize the location
53773         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
53774         The logic is from Eric Blake and the location indicated by Jim Meyering.
53775         Note the more natural CONFIG_HEADER name is prohibited by automake
53776         for backwards compatibility reasons.
53777         * top/maint.mk (sc_Wundef_boolean): New rule.
53779 2010-01-25  Jim Meyering  <meyering@redhat.com>
53781         bootstrap: detect MacOS 10.6's shasum, too
53782         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
53783         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
53785 2010-01-23  Jim Meyering  <meyering@redhat.com>
53787         xstrtoll: new module
53788         * modules/xstrtoll: New file.
53789         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
53790         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
53791         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
53792         ./configure fails if you use this module and lack "long long".
53793         * modules/xstrtoll-tests: New module.
53794         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
53795         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
53796         new init.sh-based test framework.
53798 2010-01-24  Bruno Haible  <bruno@clisp.org>
53800         Tests for module 'yn'.
53801         * modules/yn-tests: New file.
53802         * tests/test-yn.c: New file.
53804         Tests for module 'y1'.
53805         * modules/y1-tests: New file.
53806         * tests/test-y1.c: New file.
53808         Tests for module 'y0'.
53809         * modules/y0-tests: New file.
53810         * tests/test-y0.c: New file.
53812         Tests for module 'tanh'.
53813         * modules/tanh-tests: New file.
53814         * tests/test-tanh.c: New file.
53816         Tests for module 'tan'.
53817         * modules/tan-tests: New file.
53818         * tests/test-tan.c: New file.
53820         Tests for module 'sqrt'.
53821         * modules/sqrt-tests: New file.
53822         * tests/test-sqrt.c: New file.
53824         Tests for module 'sinh'.
53825         * modules/sinh-tests: New file.
53826         * tests/test-sinh.c: New file.
53828         Tests for module 'sin'.
53829         * modules/sin-tests: New file.
53830         * tests/test-sin.c: New file.
53832         Tests for module 'rint'.
53833         * modules/rint-tests: New file.
53834         * tests/test-rint.c: New file.
53836         Tests for module 'remainder'.
53837         * modules/remainder-tests: New file.
53838         * tests/test-remainder.c: New file.
53840         Tests for module 'pow'.
53841         * modules/pow-tests: New file.
53842         * tests/test-pow.c: New file.
53844         Tests for module 'nextafter'.
53845         * modules/nextafter-tests: New file.
53846         * tests/test-nextafter.c: New file.
53848         Tests for module 'modf'.
53849         * modules/modf-tests: New file.
53850         * tests/test-modf.c: New file.
53852         Tests for module 'logb'.
53853         * modules/logb-tests: New file.
53854         * tests/test-logb.c: New file.
53856         Tests for module 'log1p'.
53857         * modules/log1p-tests: New file.
53858         * tests/test-log1p.c: New file.
53860         Tests for module 'log10'.
53861         * modules/log10-tests: New file.
53862         * tests/test-log10.c: New file.
53864         Tests for module 'log'.
53865         * modules/log-tests: New file.
53866         * tests/test-log.c: New file.
53868         Tests for module 'lgamma'.
53869         * modules/lgamma-tests: New file.
53870         * tests/test-lgamma.c: New file.
53872         Tests for module 'ldexp'.
53873         * modules/ldexp-tests: New file.
53874         * tests/test-ldexp.c: New file.
53876         Tests for module 'jn'.
53877         * modules/jn-tests: New file.
53878         * tests/test-jn.c: New file.
53880         Tests for module 'j1'.
53881         * modules/j1-tests: New file.
53882         * tests/test-j1.c: New file.
53884         Tests for module 'j0'.
53885         * modules/j0-tests: New file.
53886         * tests/test-j0.c: New file.
53888         Tests for module 'hypot'.
53889         * modules/hypot-tests: New file.
53890         * tests/test-hypot.c: New file.
53892         Tests for module 'fmod'.
53893         * modules/fmod-tests: New file.
53894         * tests/test-fmod.c: New file.
53896         Tests for module 'fabs'.
53897         * modules/fabs-tests: New file.
53898         * tests/test-fabs.c: New file.
53900         Tests for module 'exp'.
53901         * modules/exp-tests: New file.
53902         * tests/test-exp.c: New file.
53904         Tests for module 'erfc'.
53905         * modules/erfc-tests: New file.
53906         * tests/test-erfc.c: New file.
53908         Tests for module 'erf'.
53909         * modules/erf-tests: New file.
53910         * tests/test-erf.c: New file.
53912         Tests for module 'cosh'.
53913         * modules/cosh-tests: New file.
53914         * tests/test-cosh.c: New file.
53916         Tests for module 'cos'.
53917         * modules/cos-tests: New file.
53918         * tests/test-cos.c: New file.
53920         Tests for module 'copysign'.
53921         * modules/copysign-tests: New file.
53922         * tests/test-copysign.c: New file.
53924         Tests for module 'cbrt'.
53925         * modules/cbrt-tests: New file.
53926         * tests/test-cbrt.c: New file.
53928         Tests for module 'atan2'.
53929         * modules/atan2-tests: New file.
53930         * tests/test-atan2.c: New file.
53932         Tests for module 'atan'.
53933         * modules/atan-tests: New file.
53934         * tests/test-atan.c: New file.
53936         Tests for module 'asin'.
53937         * modules/asin-tests: New file.
53938         * tests/test-asin.c: New file.
53940         Tests for module 'acos'.
53941         * modules/acos-tests: New file.
53942         * tests/test-acos.c: New file.
53944 2010-01-24  Bruno Haible  <bruno@clisp.org>
53946         Fix tests for common <math.h> functions.
53947         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
53948         code snippet that references the function pointer, rather than merely
53949         calling the function. Substitute the FUNC_LIBM variable.
53950         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
53951         * modules/acos (configure.ac): Likewise.
53952         * modules/asin (configure.ac): Likewise.
53953         * modules/atan (configure.ac): Likewise.
53954         * modules/atan2 (configure.ac): Likewise.
53955         * modules/cbrt (configure.ac): Likewise.
53956         * modules/copysign (configure.ac): Likewise.
53957         * modules/cos (configure.ac): Likewise.
53958         * modules/cosh (configure.ac): Likewise.
53959         * modules/erf (configure.ac): Likewise.
53960         * modules/erfc (configure.ac): Likewise.
53961         * modules/exp (configure.ac): Likewise.
53962         * modules/fabs (configure.ac): Likewise.
53963         * modules/fmod (configure.ac): Likewise.
53964         * modules/hypot (configure.ac): Likewise.
53965         * modules/j0 (configure.ac): Likewise.
53966         * modules/j1 (configure.ac): Likewise.
53967         * modules/jn (configure.ac): Likewise.
53968         * modules/ldexp (configure.ac): Likewise.
53969         * modules/lgamma (configure.ac): Likewise.
53970         * modules/log (configure.ac): Likewise.
53971         * modules/log10 (configure.ac): Likewise.
53972         * modules/log1p (configure.ac): Likewise.
53973         * modules/logb (configure.ac): Likewise.
53974         * modules/modf (configure.ac): Likewise.
53975         * modules/nextafter (configure.ac): Likewise.
53976         * modules/pow (configure.ac): Likewise.
53977         * modules/remainder (configure.ac): Likewise.
53978         * modules/rint (configure.ac): Likewise.
53979         * modules/sin (configure.ac): Likewise.
53980         * modules/sinh (configure.ac): Likewise.
53981         * modules/tan (configure.ac): Likewise.
53982         * modules/tanh (configure.ac): Likewise.
53983         * modules/y0 (configure.ac): Likewise.
53984         * modules/y1 (configure.ac): Likewise.
53985         * modules/yn (configure.ac): Likewise.
53987 2010-01-24  Bruno Haible  <bruno@clisp.org>
53989         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
53990         * tests/test-acosl.c (x): New variable.
53991         (main): Store argument in x and fetch it from x.
53992         * tests/test-asinl.c (x): New variable.
53993         (main): Store argument in x and fetch it from x.
53994         * tests/test-atanl.c (x): New variable.
53995         (main): Store argument in x and fetch it from x.
53996         * tests/test-cosl.c (x): New variable.
53997         (main): Store argument in x and fetch it from x.
53998         * tests/test-expl.c (x): New variable.
53999         (main): Store argument in x and fetch it from x.
54000         * tests/test-logl.c (x): New variable.
54001         (main): Store argument in x and fetch it from x.
54002         * tests/test-sinl.c (x): New variable.
54003         (main): Store argument in x and fetch it from x.
54004         * tests/test-sqrtl.c (x): New variable.
54005         (main): Store argument in x and fetch it from x.
54006         * tests/test-tanl.c (x): New variable.
54007         (main): Store argument in x and fetch it from x.
54009 2010-01-24  Bruno Haible  <bruno@clisp.org>
54011         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
54012         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
54013         assignments to the initial TESTS_ENVIRONMENT.
54014         * doc/gnulib.texi (Unit test modules): Document it.
54015         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
54016         TESTS_ENVIRONMENT.
54017         * modules/btowc-tests (Makefile.am): Likewise.
54018         * modules/c-stack-tests (Makefile.am): Likewise.
54019         * modules/c-strcase-tests (Makefile.am): Likewise.
54020         * modules/copy-file-tests (Makefile.am): Likewise.
54021         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
54022         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
54023         * modules/mbrtowc-tests (Makefile.am): Likewise.
54024         * modules/mbscasecmp-tests (Makefile.am): Likewise.
54025         * modules/mbscasestr-tests (Makefile.am): Likewise.
54026         * modules/mbschr-tests (Makefile.am): Likewise.
54027         * modules/mbscspn-tests (Makefile.am): Likewise.
54028         * modules/mbsinit-tests (Makefile.am): Likewise.
54029         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
54030         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
54031         * modules/mbspbrk-tests (Makefile.am): Likewise.
54032         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
54033         * modules/mbsrchr-tests (Makefile.am): Likewise.
54034         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
54035         * modules/mbsspn-tests (Makefile.am): Likewise.
54036         * modules/mbsstr-tests (Makefile.am): Likewise.
54037         * modules/nl_langinfo-tests (Makefile.am): Likewise.
54038         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
54039         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
54040         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
54041         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
54042         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
54043         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
54044         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
54045         * modules/wcrtomb-tests (Makefile.am): Likewise.
54046         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
54047         * modules/wcsrtombs-tests (Makefile.am): Likewise.
54048         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
54049         assignments from TESTS_ENVIRONMENT.
54050         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
54051         augmentation.
54052         * modules/argp-version-etc-tests (Makefile.am): Likewise.
54053         * modules/atexit-tests (Makefile.am): Likewise.
54054         * modules/binary-io-tests (Makefile.am): Likewise.
54055         * modules/closein-tests (Makefile.am): Likewise.
54056         * modules/dprintf-posix-tests (Makefile.am): Likewise.
54057         * modules/exclude-tests (Makefile.am): Likewise.
54058         * modules/fflush-tests (Makefile.am): Likewise.
54059         * modules/fpending-tests (Makefile.am): Likewise.
54060         * modules/fprintf-posix-tests (Makefile.am): Likewise.
54061         * modules/freadahead-tests (Makefile.am): Likewise.
54062         * modules/freadptr-tests (Makefile.am): Likewise.
54063         * modules/freadseek-tests (Makefile.am): Likewise.
54064         * modules/fseek-tests (Makefile.am): Likewise.
54065         * modules/fseeko-tests (Makefile.am): Likewise.
54066         * modules/ftell-tests (Makefile.am): Likewise.
54067         * modules/ftello-tests (Makefile.am): Likewise.
54068         * modules/idpriv-drop-tests (Makefile.am): Likewise.
54069         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
54070         * modules/lseek-tests (Makefile.am): Likewise.
54071         * modules/parse-duration-tests (Makefile.am): Likewise.
54072         * modules/perror-tests (Makefile.am): Likewise.
54073         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
54074         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
54075         * modules/pipe-tests (Makefile.am): Likewise.
54076         * modules/pread-tests (Makefile.am): Likewise.
54077         * modules/printf-posix-tests (Makefile.am): Likewise.
54078         * modules/select-tests (Makefile.am): Likewise.
54079         * modules/sigpipe-tests (Makefile.am): Likewise.
54080         * modules/tsearch-tests (Makefile.am): Likewise.
54081         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
54082         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
54083         * modules/uniname/uniname-tests (Makefile.am): Likewise.
54084         * modules/uniwidth/width-tests (Makefile.am): Likewise.
54085         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
54086         * modules/version-etc-tests (Makefile.am): Likewise.
54087         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
54088         * modules/vprintf-posix-tests (Makefile.am): Likewise.
54089         * modules/xalloc-die-tests (Makefile.am): Likewise.
54090         * modules/xprintf-posix-tests (Makefile.am): Likewise.
54091         * modules/xstrtoimax-tests (Makefile.am): Likewise.
54092         * modules/xstrtol-tests (Makefile.am): Likewise.
54093         * modules/xstrtoumax-tests (Makefile.am): Likewise.
54094         * modules/yesno-tests (Makefile.am): Likewise.
54095         Suggested by Jim Meyering.
54097 2010-01-24  Bruno Haible  <bruno@clisp.org>
54099         More documentation.
54100         * doc/gnulib.texi (Writing modules): New chapter.
54101         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
54102         the new chapter.
54104 2010-01-24  Jim Meyering  <meyering@redhat.com>
54106         maint.mk: do not prepend "./" after filtering
54107         * top/maint.mk (_prepend_srcdir_prefix): New variable
54108         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
54109         "./" when $(srcdir) is ".".
54111         define STREQ(a,b) consistently, removing useless parentheses
54112         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
54113         since the only risk is that "a" or "b" contains an unparenthesized
54114         comma, but if either did that, STREQ would have 3 or more arguments.
54115         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
54116         * lib/fts.c (STREQ): Remove unnecessary parentheses.
54117         * lib/hash-triple.c (STREQ): Likewise.
54118         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
54119         * lib/getugroups.c (STREQ): Likewise.
54121 2010-01-23  Jim Meyering  <meyering@redhat.com>
54123         maint.mk: fix syntax-check in a non-srcdir build directory
54124         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
54125         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
54127 2010-01-22  Jim Meyering  <meyering@redhat.com>
54129         userspec: add unit tests
54130         * tests/test-userspec.c: New file.
54131         * modules/userspec-tests: Likewise.
54133 2010-01-21  Jim Meyering  <meyering@redhat.com>
54135         maint.mk: handle source file names containing "." robustly
54136         * top/maint.mk (_dot_escaped_srcdir): Define.
54137         (VC_LIST): Use it in LHS of sed substitution.
54139 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
54141         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
54142         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
54143         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
54144         from a non-srcdir build.
54146 2010-01-20  Eric Blake  <ebb9@byu.net>
54148         warn-on-use: use instead of link-warning
54149         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
54150         * modules/unistd (Depends-on, Makefile.am): Likewise.
54151         * modules/arpa_inet (Depends-on): Replace link-warning with
54152         warn-on-use.
54153         (Makefile.am): Update rules accordingly.
54154         * modules/ctype (Depends-on, Makefile.am): Likewise.
54155         * modules/dirent (Depends-on, Makefile.am): Likewise.
54156         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
54157         * modules/inttypes (Depends-on, Makefile.am): Likewise.
54158         * modules/langinfo (Depends-on, Makefile.am): Likewise.
54159         * modules/locale (Depends-on, Makefile.am): Likewise.
54160         * modules/math (Depends-on, Makefile.am): Likewise.
54161         * modules/search (Depends-on, Makefile.am): Likewise.
54162         * modules/signal (Depends-on, Makefile.am): Likewise.
54163         * modules/spawn (Depends-on, Makefile.am): Likewise.
54164         * modules/stdlib (Depends-on, Makefile.am): Likewise.
54165         * modules/string (Depends-on, Makefile.am): Likewise.
54166         * modules/strings (Depends-on, Makefile.am): Likewise.
54167         * modules/sys_file (Depends-on, Makefile.am): Likewise.
54168         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
54169         * modules/sys_select (Depends-on, Makefile.am): Likewise.
54170         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
54171         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
54172         * modules/sys_times (Depends-on, Makefile.am): Likewise.
54173         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
54174         * modules/wchar (Depends-on, Makefile.am): Likewise.
54175         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
54176         should be poisoned.
54177         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
54178         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
54179         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
54180         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54181         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
54182         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54183         * m4/math_h.m4 (gl_MATH_H): Likewise.
54184         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54185         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54186         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
54187         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54188         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54189         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54190         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
54191         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
54192         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
54193         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54194         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54195         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54196         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54197         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
54198         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54199         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54200         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
54201         GL_LINK_WARNING.
54202         * lib/ctype.in.h: Likewise.
54203         * lib/dirent.in.h: Likewise.
54204         * lib/fcntl.in.h: Likewise.
54205         * lib/inttypes.in.h: Likewise.
54206         * lib/langinfo.in.h: Likewise.
54207         * lib/locale.in.h: Likewise.
54208         * lib/math.in.h: Likewise.
54209         * lib/search.in.h: Likewise.
54210         * lib/signal.in.h: Likewise.
54211         * lib/spawn.in.h: Likewise.
54212         * lib/stdio.in.h: Likewise.
54213         * lib/stdlib.in.h: Likewise.
54214         * lib/string.in.h: Likewise.
54215         * lib/strings.in.h: Likewise.
54216         * lib/sys_file.in.h: Likewise.
54217         * lib/sys_ioctl.in.h: Likewise.
54218         * lib/sys_select.in.h: Likewise.
54219         * lib/sys_socket.in.h: Likewise.
54220         * lib/sys_stat.in.h: Likewise.
54221         * lib/sys_times.in.h: Likewise.
54222         * lib/sys_utsname.in.h: Likewise.
54223         * lib/unistd.in.h: Likewise.
54224         * lib/wchar.in.h: Likewise.
54226 2010-01-20  Bruno Haible  <bruno@clisp.org>
54228         Avoid duplicate -lm.
54229         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
54230         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
54231         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
54232         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
54233         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
54234         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
54235         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
54236         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
54237         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
54238         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
54239         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
54240         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
54241         Reported by Paolo Bonzini.
54243 2010-01-19  Bruno Haible  <bruno@clisp.org>
54245         langinfo, nl_langinfo: Relicense under LGPLv2+.
54246         * modules/langinfo (License): Change to LGPLv2+.
54247         * modules/nl_langinfo (License): Likewise.
54248         Patch by David Lutterkort <lutter@redhat.com>.
54250 2010-01-19  Bruno Haible  <bruno@clisp.org>
54252         Avoid compilation error with cc on OSF/1 5.1.
54253         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
54254         statement, not before.
54255         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54257 2010-01-18  Bruno Haible  <bruno@clisp.org>
54259         Avoid a link error due to the __printf__ symbol.
54260         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
54261         and 2.6.x.
54262         (__format__, __printf__): Remove definitions.
54263         * lib/argp-fmtstream.h: Likewise.
54264         * lib/argp.h: Likewise.
54265         * lib/error.h: Likewise.
54266         * lib/vasnprintf.h: Likewise.
54267         * lib/xprintf.h: Likewise.
54268         * lib/xvasprintf.h: Likewise.
54269         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54271 2010-01-18  Bruno Haible  <bruno@clisp.org>
54273         Tests for module 'tanl'.
54274         * modules/tanl-tests: New file.
54275         * tests/test-tanl.c: New file.
54277         Tests for module 'sqrtl'.
54278         * modules/sqrtl-tests: New file.
54279         * tests/test-sqrtl.c: New file.
54281         Tests for module 'sinl'.
54282         * modules/sinl-tests: New file.
54283         * tests/test-sinl.c: New file.
54285         Tests for module 'logl'.
54286         * modules/logl-tests: New file.
54287         * tests/test-logl.c: New file.
54289         Tests for module 'expl'.
54290         * modules/expl-tests: New file.
54291         * tests/test-expl.c: New file.
54293         Tests for module 'cosl'.
54294         * modules/cosl-tests: New file.
54295         * tests/test-cosl.c: New file.
54297         Tests for module 'atanl'.
54298         * modules/atanl-tests: New file.
54299         * tests/test-atanl.c: New file.
54301         Tests for module 'asinl'.
54302         * modules/asinl-tests: New file.
54303         * tests/test-asinl.c: New file.
54305         Tests for module 'acosl'.
54306         * modules/acosl-tests: New file.
54307         * tests/test-acosl.c: New file.
54309         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
54310         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
54311         tanl): Use the standard gnulib idiom.
54312         * lib/cosl.c: Don't include trigl.c and sincosl.c.
54313         * lib/sinl.c: Likewise.
54314         * lib/tanl.c: Don't include trigl.c.
54315         (kernel_tanl): Make static.
54316         * lib/sincosl.c: Include trigl.h first.
54317         * lib/trigl.c: Likewise.
54318         * m4/acosl.m4: New file.
54319         * m4/asinl.m4: New file.
54320         * m4/atanl.m4: New file.
54321         * m4/cosl.m4: New file.
54322         * m4/expl.m4: New file.
54323         * m4/logl.m4: New file.
54324         * m4/sinl.m4: New file.
54325         * m4/sqrtl.m4: New file.
54326         * m4/tanl.m4: New file.
54327         * m4/mathl.m4: Remove file.
54328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
54329         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
54330         Don't initialize GNULIB_MATHL.
54331         * modules/acosl: New file.
54332         * modules/asinl: New file.
54333         * modules/atanl: New file.
54334         * modules/cosl: New file.
54335         * modules/expl: New file.
54336         * modules/logl: New file.
54337         * modules/sinl: New file.
54338         * modules/sqrtl: New file.
54339         * modules/tanl: New file.
54340         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
54341         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
54342         substitute GNULIB_MATHL.
54343         * modules/mathl: Rewritten.
54344         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
54345         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
54346         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
54347         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
54348         * doc/posix-functions/expl.texi: Mention the 'expl' module.
54349         * doc/posix-functions/logl.texi: Mention the 'logl' module.
54350         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
54351         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
54352         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
54354 2010-01-18  Bruno Haible  <bruno@clisp.org>
54356         sqrt: Make gl_FUNC_SQRT requirable.
54357         * m4/sqrt.m4: New file.
54358         * modules/sqrt (Files): Add it.
54359         (configure.ac): Invoke gl_FUNC_SQRT.
54361 2010-01-18  Bruno Haible  <bruno@clisp.org>
54363         New modules for common <math.h> functions.
54364         * m4/mathfunc.m4: New file.
54365         * modules/acos: New file.
54366         * modules/asin: New file.
54367         * modules/atan: New file.
54368         * modules/atan2: New file.
54369         * modules/cbrt: New file.
54370         * modules/copysign: New file.
54371         * modules/cos: New file.
54372         * modules/cosh: New file.
54373         * modules/erf: New file.
54374         * modules/erfc: New file.
54375         * modules/exp: New file.
54376         * modules/fabs: New file.
54377         * modules/fmod: New file.
54378         * modules/hypot: New file.
54379         * modules/j0: New file.
54380         * modules/j1: New file.
54381         * modules/jn: New file.
54382         * modules/ldexp: New file.
54383         * modules/lgamma: New file.
54384         * modules/log: New file.
54385         * modules/log10: New file.
54386         * modules/log1p: New file.
54387         * modules/logb: New file.
54388         * modules/modf: New file.
54389         * modules/nextafter: New file.
54390         * modules/pow: New file.
54391         * modules/remainder: New file.
54392         * modules/rint: New file.
54393         * modules/sin: New file.
54394         * modules/sinh: New file.
54395         * modules/sqrt: New file.
54396         * modules/tan: New file.
54397         * modules/tanh: New file.
54398         * modules/y0: New file.
54399         * modules/y1: New file.
54400         * modules/yn: New file.
54401         * doc/posix-functions/acos.texi: Mention the 'acos' module.
54402         * doc/posix-functions/asin.texi: Mention the 'asin' module.
54403         * doc/posix-functions/atan.texi: Mention the 'atan' module.
54404         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
54405         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
54406         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
54407         * doc/posix-functions/cos.texi: Mention the 'cos' module.
54408         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
54409         * doc/posix-functions/erf.texi: Mention the 'erf' module.
54410         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
54411         * doc/posix-functions/exp.texi: Mention the 'exp' module.
54412         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
54413         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
54414         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
54415         * doc/posix-functions/j0.texi: Mention the 'j0' module.
54416         * doc/posix-functions/j1.texi: Mention the 'j1' module.
54417         * doc/posix-functions/jn.texi: Mention the 'jn' module.
54418         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
54419         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
54420         * doc/posix-functions/log.texi: Mention the 'log' module.
54421         * doc/posix-functions/log10.texi: Mention the 'log10' module.
54422         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
54423         * doc/posix-functions/logb.texi: Mention the 'logb' module.
54424         * doc/posix-functions/modf.texi: Mention the 'modf' module.
54425         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
54426         * doc/posix-functions/pow.texi: Mention the 'pow' module.
54427         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
54428         * doc/posix-functions/rint.texi: Mention the 'rint' module.
54429         * doc/posix-functions/sin.texi: Mention the 'sin' module.
54430         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
54431         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
54432         * doc/posix-functions/tan.texi: Mention the 'tan' module.
54433         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
54434         * doc/posix-functions/y0.texi: Mention the 'y0' module.
54435         * doc/posix-functions/y1.texi: Mention the 'y1' module.
54436         * doc/posix-functions/yn.texi: Mention the 'yn' module.
54438 2010-01-18  Jim Meyering  <meyering@redhat.com>
54440         ignore-value: relax license to LGPLv2+
54441         * modules/ignore-value (License): Relax to LGPLv2+.
54443         getdate: don't leak when TZ contains two or more '"'s
54444         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
54445         double quote in TZ after the first one.
54447         readtokens: do not leak internal token_lengths buffer
54448         * lib/readtokens.c (readtokens): Free the local, lengths,
54449         when the supplied "token_lengths" parameter is NULL.
54451 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54453         Fix a couple of missing LIBTHREAD link failures on AIX.
54454         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
54455         $(LIBTHREAD).
54456         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
54458         Link test-poll against INET_PTON_LIB.
54459         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
54460         for inet_pton on Solaris 10.
54462 2010-01-17  Bruno Haible  <bruno@clisp.org>
54464         unistdio/*-sprintf: Fix typo in module description.
54465         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
54466         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
54467         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
54468         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
54469         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
54470         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
54471         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
54472         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54474 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54476         gnulib-tool: fix filelist for AIX, HP-UX ksh.
54477         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
54478         variables in shell case patterns, for AIX and HP-UX ksh.
54480         Split large sed scripts, for HP-UX sed.
54481         * modules/stdio: Split sed scripts around 50 sed commands,
54482         to avoid HP-UX limit of 99 commands, in the near future.
54483         * modules/string: Likewise.
54484         * modules/unistd: Likewise.
54486         gnulib-tool: avoid writing in the current directory.
54487         * gnulib-tool (func_emit_lib_Makefile_am)
54488         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
54489         not in the current directory, so concurrent gnulib-tool
54490         instances do not interfere.
54492 2010-01-16  Jim Meyering  <meyering@redhat.com>
54494         doc: update users.txt
54495         * users.txt: Add grep.
54496         (diffutils, gzip): Update URLs.
54498 2010-01-12  Bruno Haible  <bruno@clisp.org>
54500         posix_spawn: Avoid test failure on Cygwin.
54501         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
54502         characters.
54503         Reported by Simon Josefsson.
54505 2010-01-12  Bruno Haible  <bruno@clisp.org>
54507         * tests/test-cond.c (main): When skipping the test, show the reason.
54509 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54511         * lib/striconv.c (str_cd_iconv): Avoid if before free.
54513 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54515         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
54516         VC_LIST_ALWAYS_EXCLUDE_REGEX.
54518 2010-01-12  Eric Blake  <ebb9@byu.net>
54520         build: guarantee AS_VAR_IF
54521         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
54522         (gl_AS_VAR_IF): Move...
54523         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
54524         Reported by Simon Josefsson.
54526 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54528         * lib/stdio.in.h: Fix typo.
54530 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54532         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
54533         libgpg-error.
54535 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54537         * tests/test-xalloc-die.sh: Use $EXEEXT.
54539 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54540             Bruno Haible  <bruno@clisp.org>
54542         getlogin, getlogin_r: Avoid test failure.
54543         * tests/test-getlogin.c: Include <stdio.h>.
54544         (main): Skip the test when the function fails because stdin is not a
54545         tty.
54546         * tests/test-getlogin_r.c: Include <stdio.h>.
54547         (main): Skip the test when the function fails because stdin is not a
54548         tty.
54550 2010-01-11  Eric Blake  <ebb9@byu.net>
54552         tests: avoid more large file warnings
54553         * tests/test-fflush.c: Avoid warning about ftell use.
54554         * tests/test-fseek.c: Avoid warning about fseek use.
54556 2010-01-10  Bruno Haible  <bruno@clisp.org>
54558         nproc: Work better on Linux when /proc and /sys are not mounted.
54559         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
54560         as lower bound when, on glibc/Linux systems,
54561         sysconf (_SC_NPROCESSORS_CONF) returns 1.
54562         Suggested by Pádraig Brady <P@draigbrady.com>.
54563         Reported by Dmitry V. Levin <ldv@altlinux.org>.
54565         nproc: Refactor.
54566         * lib/nproc.c (num_processors_via_affinity_mask): New function,
54567         extracted from num_processors.
54568         (num_processors): Call it.
54570 2010-01-11  Jim Meyering  <meyering@redhat.com>
54572         utimecmp: avoid new warning from upcoming gcc-4.5.0
54573         * lib/utimecmp.c (BILLION): Define using #define rather than an
54574         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
54576 2010-01-11  Eric Blake  <ebb9@byu.net>
54578         math: add portability warnings for classification macros
54579         * modules/math (Depends-on): Add warn-on-use.
54580         (Makefile.am): Provide new substitutions.
54581         * m4/math_h.m4 (gl_MATH_H): Require inline.
54582         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
54583         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
54584         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
54585         implement warnings.
54587         unistd: warn on use of environ without module
54588         * modules/unistd (Depends-on): Add warn-on-use.
54589         (Makefile.am): Provide new substitutions.
54590         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
54591         * lib/unistd.in.h (environ): Wrap with a warning helper function.
54593         stdio: warn on suspicious uses
54594         * modules/stdio (Depends-on): Add warn-on-use.
54595         (Makefile.am): Provide new substitutions.
54596         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
54597         fseeko.
54598         * lib/stdio.in.h (gets): Always warn on use.
54599         (fseek, ftell): Adjust when warnings are issued, and honor
54600         _GL_NO_LARGE_FILES as a way to silence the warning.
54601         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
54602         any warning about large file offsets.
54603         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
54604         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
54605         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
54606         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
54607         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
54608         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
54609         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
54610         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
54612         warn-on-use: new module
54613         * modules/warn-on-use: New file.
54614         * build-aux/warn-on-use.h: Likewise.
54615         * m4/warn-on-use.m4: Likewise.
54616         * MODULES.html.sh (Support for building): Mention it.
54618 2010-01-10  Bruno Haible  <bruno@clisp.org>
54620         Tests for module 'unistr/u32-strdup'.
54621         * modules/unistr/u32-strdup-tests: New file.
54622         * tests/unistr/test-u32-strdup.c: New file.
54624         Tests for module 'unistr/u16-strdup'.
54625         * modules/unistr/u16-strdup-tests: New file.
54626         * tests/unistr/test-u16-strdup.c: New file.
54628         Tests for module 'unistr/u8-strdup'.
54629         * modules/unistr/u8-strdup-tests: New file.
54630         * tests/unistr/test-u8-strdup.c: New file.
54631         * tests/unistr/test-strdup.h: New file.
54633         Tests for module 'unistr/u32-strncmp'.
54634         * modules/unistr/u32-strncmp-tests: New file.
54635         * tests/unistr/test-u32-strncmp.c: New file.
54637         Tests for module 'unistr/u16-strncmp'.
54638         * modules/unistr/u16-strncmp-tests: New file.
54639         * tests/unistr/test-u16-strncmp.c: New file.
54641         Tests for module 'unistr/u8-strncmp'.
54642         * modules/unistr/u8-strncmp-tests: New file.
54643         * tests/unistr/test-u8-strncmp.c: New file.
54644         * tests/unistr/test-strncmp.h: New file.
54646         Tests for module 'unistr/u32-strcoll'.
54647         * modules/unistr/u32-strcoll-tests: New file.
54648         * tests/unistr/test-u32-strcoll.c: New file.
54650         Tests for module 'unistr/u16-strcoll'.
54651         * modules/unistr/u16-strcoll-tests: New file.
54652         * tests/unistr/test-u16-strcoll.c: New file.
54654         Tests for module 'unistr/u8-strcoll'.
54655         * modules/unistr/u8-strcoll-tests: New file.
54656         * tests/unistr/test-u8-strcoll.c: New file.
54658         Tests for module 'unistr/u32-strcmp'.
54659         * modules/unistr/u32-strcmp-tests: New file.
54660         * tests/unistr/test-u32-strcmp.c: New file.
54661         * tests/unistr/test-u32-strcmp.h: New file.
54663         Tests for module 'unistr/u16-strcmp'.
54664         * modules/unistr/u16-strcmp-tests: New file.
54665         * tests/unistr/test-u16-strcmp.c: New file.
54666         * tests/unistr/test-u16-strcmp.h: New file.
54668         Tests for module 'unistr/u8-strcmp'.
54669         * modules/unistr/u8-strcmp-tests: New file.
54670         * tests/unistr/test-u8-strcmp.c: New file.
54671         * tests/unistr/test-u8-strcmp.h: New file.
54672         * tests/unistr/test-strcmp.h: New file.
54674         Tests for module 'unistr/u32-strncat'.
54675         * modules/unistr/u32-strncat-tests: New file.
54676         * tests/unistr/test-u32-strncat.c: New file.
54678         Tests for module 'unistr/u16-strncat'.
54679         * modules/unistr/u16-strncat-tests: New file.
54680         * tests/unistr/test-u16-strncat.c: New file.
54682         Tests for module 'unistr/u8-strncat'.
54683         * modules/unistr/u8-strncat-tests: New file.
54684         * tests/unistr/test-u8-strncat.c: New file.
54685         * tests/unistr/test-strncat.h: New file.
54687         Tests for module 'unistr/u32-strcat'.
54688         * modules/unistr/u32-strcat-tests: New file.
54689         * tests/unistr/test-u32-strcat.c: New file.
54691         Tests for module 'unistr/u16-strcat'.
54692         * modules/unistr/u16-strcat-tests: New file.
54693         * tests/unistr/test-u16-strcat.c: New file.
54695         Tests for module 'unistr/u8-strcat'.
54696         * modules/unistr/u8-strcat-tests: New file.
54697         * tests/unistr/test-u8-strcat.c: New file.
54698         * tests/unistr/test-strcat.h: New file.
54700         Tests for module 'unistr/u32-stpncpy'.
54701         * modules/unistr/u32-stpncpy-tests: New file.
54702         * tests/unistr/test-u32-stpncpy.c: New file.
54704         Tests for module 'unistr/u16-stpncpy'.
54705         * modules/unistr/u16-stpncpy-tests: New file.
54706         * tests/unistr/test-u16-stpncpy.c: New file.
54708         Tests for module 'unistr/u8-stpncpy'.
54709         * modules/unistr/u8-stpncpy-tests: New file.
54710         * tests/unistr/test-u8-stpncpy.c: New file.
54711         * tests/unistr/test-stpncpy.h: New file.
54713         Tests for module 'unistr/u32-strncpy'.
54714         * modules/unistr/u32-strncpy-tests: New file.
54715         * tests/unistr/test-u32-strncpy.c: New file.
54717         Tests for module 'unistr/u16-strncpy'.
54718         * modules/unistr/u16-strncpy-tests: New file.
54719         * tests/unistr/test-u16-strncpy.c: New file.
54721         Tests for module 'unistr/u8-strncpy'.
54722         * modules/unistr/u8-strncpy-tests: New file.
54723         * tests/unistr/test-u8-strncpy.c: New file.
54724         * tests/unistr/test-strncpy.h: New file.
54726         Tests for module 'unistr/u32-stpcpy'.
54727         * modules/unistr/u32-stpcpy-tests: New file.
54728         * tests/unistr/test-u32-stpcpy.c: New file.
54730         Tests for module 'unistr/u16-stpcpy'.
54731         * modules/unistr/u16-stpcpy-tests: New file.
54732         * tests/unistr/test-u16-stpcpy.c: New file.
54734         Tests for module 'unistr/u8-stpcpy'.
54735         * modules/unistr/u8-stpcpy-tests: New file.
54736         * tests/unistr/test-u8-stpcpy.c: New file.
54737         * tests/unistr/test-stpcpy.h: New file.
54739         Tests for module 'unistr/u32-strcpy'.
54740         * modules/unistr/u32-strcpy-tests: New file.
54741         * tests/unistr/test-u32-strcpy.c: New file.
54743         Tests for module 'unistr/u16-strcpy'.
54744         * modules/unistr/u16-strcpy-tests: New file.
54745         * tests/unistr/test-u16-strcpy.c: New file.
54747         Tests for module 'unistr/u8-strcpy'.
54748         * modules/unistr/u8-strcpy-tests: New file.
54749         * tests/unistr/test-u8-strcpy.c: New file.
54750         * tests/unistr/test-strcpy.h: New file.
54752         Tests for module 'unistr/u32-strnlen'.
54753         * modules/unistr/u32-strnlen-tests: New file.
54754         * tests/unistr/test-u32-strnlen.c: New file.
54756         Tests for module 'unistr/u16-strnlen'.
54757         * modules/unistr/u16-strnlen-tests: New file.
54758         * tests/unistr/test-u16-strnlen.c: New file.
54760         Tests for module 'unistr/u8-strnlen'.
54761         * modules/unistr/u8-strnlen-tests: New file.
54762         * tests/unistr/test-u8-strnlen.c: New file.
54763         * tests/unistr/test-strnlen.h: New file.
54765         Tests for module 'unistr/u32-strlen'.
54766         * modules/unistr/u32-strlen-tests: New file.
54767         * tests/unistr/test-u32-strlen.c: New file.
54769         Tests for module 'unistr/u16-strlen'.
54770         * modules/unistr/u16-strlen-tests: New file.
54771         * tests/unistr/test-u16-strlen.c: New file.
54773         Tests for module 'unistr/u8-strlen'.
54774         * modules/unistr/u8-strlen-tests: New file.
54775         * tests/unistr/test-u8-strlen.c: New file.
54777         Tests for module 'unistr/u32-prev'.
54778         * modules/unistr/u32-prev-tests: New file.
54779         * tests/unistr/test-u32-prev.c: New file.
54781         Tests for module 'unistr/u16-prev'.
54782         * modules/unistr/u16-prev-tests: New file.
54783         * tests/unistr/test-u16-prev.c: New file.
54785         Tests for module 'unistr/u8-prev'.
54786         * modules/unistr/u8-prev-tests: New file.
54787         * tests/unistr/test-u8-prev.c: New file.
54789         Tests for module 'unistr/u32-next'.
54790         * modules/unistr/u32-next-tests: New file.
54791         * tests/unistr/test-u32-next.c: New file.
54793         Tests for module 'unistr/u16-next'.
54794         * modules/unistr/u16-next-tests: New file.
54795         * tests/unistr/test-u16-next.c: New file.
54797         Tests for module 'unistr/u8-next'.
54798         * modules/unistr/u8-next-tests: New file.
54799         * tests/unistr/test-u8-next.c: New file.
54801         Tests for module 'unistr/u32-strmbtouc'.
54802         * modules/unistr/u32-strmbtouc-tests: New file.
54803         * tests/unistr/test-u32-strmbtouc.c: New file.
54805         Tests for module 'unistr/u16-strmbtouc'.
54806         * modules/unistr/u16-strmbtouc-tests: New file.
54807         * tests/unistr/test-u16-strmbtouc.c: New file.
54809         Tests for module 'unistr/u8-strmbtouc'.
54810         * modules/unistr/u8-strmbtouc-tests: New file.
54811         * tests/unistr/test-u8-strmbtouc.c: New file.
54813         Tests for module 'unistr/u32-strmblen'.
54814         * modules/unistr/u32-strmblen-tests: New file.
54815         * tests/unistr/test-u32-strmblen.c: New file.
54817         Tests for module 'unistr/u16-strmblen'.
54818         * modules/unistr/u16-strmblen-tests: New file.
54819         * tests/unistr/test-u16-strmblen.c: New file.
54821         Tests for module 'unistr/u8-strmblen'.
54822         * modules/unistr/u8-strmblen-tests: New file.
54823         * tests/unistr/test-u8-strmblen.c: New file.
54825         Tests for module 'unistr/u32-cpy-alloc'.
54826         * modules/unistr/u32-cpy-alloc-tests: New file.
54827         * tests/unistr/test-u32-cpy-alloc.c: New file.
54829         Tests for module 'unistr/u16-cpy-alloc'.
54830         * modules/unistr/u16-cpy-alloc-tests: New file.
54831         * tests/unistr/test-u16-cpy-alloc.c: New file.
54833         Tests for module 'unistr/u8-cpy-alloc'.
54834         * modules/unistr/u8-cpy-alloc-tests: New file.
54835         * tests/unistr/test-u8-cpy-alloc.c: New file.
54836         * tests/unistr/test-cpy-alloc.h: New file.
54838         Tests for module 'unistr/u32-mbsnlen'.
54839         * modules/unistr/u32-mbsnlen-tests: New file.
54840         * tests/unistr/test-u32-mbsnlen.c: New file.
54842         Tests for module 'unistr/u16-mbsnlen'.
54843         * modules/unistr/u16-mbsnlen-tests: New file.
54844         * tests/unistr/test-u16-mbsnlen.c: New file.
54846         Tests for module 'unistr/u8-mbsnlen'.
54847         * modules/unistr/u8-mbsnlen-tests: New file.
54848         * tests/unistr/test-u8-mbsnlen.c: New file.
54850         Tests for module 'unistr/u32-chr'.
54851         * modules/unistr/u32-chr-tests: New file.
54852         * tests/unistr/test-u32-chr.c: New file.
54854         Tests for module 'unistr/u16-chr'.
54855         * modules/unistr/u16-chr-tests: New file.
54856         * tests/unistr/test-u16-chr.c: New file.
54858         Tests for module 'unistr/u8-chr'.
54859         * modules/unistr/u8-chr-tests: New file.
54860         * tests/unistr/test-u8-chr.c: New file.
54861         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
54863         Tests for module 'unistr/u32-cmp2'.
54864         * modules/unistr/u32-cmp2-tests: New file.
54865         * tests/unistr/test-u32-cmp2.c: New file.
54867         Tests for module 'unistr/u16-cmp2'.
54868         * modules/unistr/u16-cmp2-tests: New file.
54869         * tests/unistr/test-u16-cmp2.c: New file.
54871         Tests for module 'unistr/u8-cmp2'.
54872         * modules/unistr/u8-cmp2-tests: New file.
54873         * tests/unistr/test-u8-cmp2.c: New file.
54874         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
54876         Tests for module 'unistr/u32-cmp'.
54877         * modules/unistr/u32-cmp-tests: New file.
54878         * tests/unistr/test-u32-cmp.c: New file.
54880         Tests for module 'unistr/u16-cmp'.
54881         * modules/unistr/u16-cmp-tests: New file.
54882         * tests/unistr/test-u16-cmp.c: New file.
54884         Tests for module 'unistr/u8-cmp'.
54885         * modules/unistr/u8-cmp-tests: New file.
54886         * tests/unistr/test-u8-cmp.c: New file.
54887         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
54889         Tests for module 'unistr/u32-set'.
54890         * modules/unistr/u32-set-tests: New file.
54891         * tests/unistr/test-u32-set.c: New file.
54893         Tests for module 'unistr/u16-set'.
54894         * modules/unistr/u16-set-tests: New file.
54895         * tests/unistr/test-u16-set.c: New file.
54897         Tests for module 'unistr/u8-set'.
54898         * modules/unistr/u8-set-tests: New file.
54899         * tests/unistr/test-u8-set.c: New file.
54900         * tests/unistr/test-set.h: New file.
54902         Tests for module 'unistr/u32-move'.
54903         * modules/unistr/u32-move-tests: New file.
54904         * tests/unistr/test-u32-move.c: New file.
54906         Tests for module 'unistr/u16-move'.
54907         * modules/unistr/u16-move-tests: New file.
54908         * tests/unistr/test-u16-move.c: New file.
54910         Tests for module 'unistr/u8-move'.
54911         * modules/unistr/u8-move-tests: New file.
54912         * tests/unistr/test-u8-move.c: New file.
54913         * tests/unistr/test-move.h: New file.
54915         Tests for module 'unistr/u32-cpy'.
54916         * modules/unistr/u32-cpy-tests: New file.
54917         * tests/unistr/test-u32-cpy.c: New file.
54919         Tests for module 'unistr/u16-cpy'.
54920         * modules/unistr/u16-cpy-tests: New file.
54921         * tests/unistr/test-u16-cpy.c: New file.
54923         Tests for module 'unistr/u8-cpy'.
54924         * modules/unistr/u8-cpy-tests: New file.
54925         * tests/unistr/test-u8-cpy.c: New file.
54926         * tests/unistr/test-cpy.h: New file.
54928 2010-01-09  Bruno Haible  <bruno@clisp.org>
54930         Tests for module 'unistr/u32-uctomb'.
54931         * modules/unistr/u32-uctomb-tests: New file.
54932         * tests/unistr/test-u32-uctomb.c: New file.
54934         Tests for module 'unistr/u16-uctomb'.
54935         * modules/unistr/u16-uctomb-tests: New file.
54936         * tests/unistr/test-u16-uctomb.c: New file.
54938         Tests for module 'unistr/u8-uctomb'.
54939         * modules/unistr/u8-uctomb-tests: New file.
54940         * tests/unistr/test-u8-uctomb.c: New file.
54942         Tests for module 'unistr/u32-mbtoucr'.
54943         * modules/unistr/u32-mbtoucr-tests: New file.
54944         * tests/unistr/test-u32-mbtoucr.c: New file.
54946         Tests for module 'unistr/u16-mbtoucr'.
54947         * modules/unistr/u16-mbtoucr-tests: New file.
54948         * tests/unistr/test-u16-mbtoucr.c: New file.
54950         Tests for module 'unistr/u8-mbtoucr'.
54951         * modules/unistr/u8-mbtoucr-tests: New file.
54952         * tests/unistr/test-u8-mbtoucr.c: New file.
54954         Tests for module 'unistr/u32-mbtouc'.
54955         * modules/unistr/u32-mbtouc-tests: New file.
54956         * tests/unistr/test-u32-mbtouc.c: New file.
54958         Tests for module 'unistr/u16-mbtouc'.
54959         * modules/unistr/u16-mbtouc-tests: New file.
54960         * tests/unistr/test-u16-mbtouc.c: New file.
54962         Tests for module 'unistr/u8-mbtouc'.
54963         * modules/unistr/u8-mbtouc-tests: New file.
54964         * tests/unistr/test-u8-mbtouc.c: New file.
54966         Tests for module 'unistr/u32-mbtouc-unsafe'.
54967         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
54968         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
54969         * tests/unistr/test-u32-mbtouc.h: New file.
54971         Tests for module 'unistr/u16-mbtouc-unsafe'.
54972         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
54973         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
54974         * tests/unistr/test-u16-mbtouc.h: New file.
54976         Tests for module 'unistr/u8-mbtouc-unsafe'.
54977         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
54978         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
54979         * tests/unistr/test-u8-mbtouc.h: New file.
54981         Tests for module 'unistr/u32-mblen'.
54982         * modules/unistr/u32-mblen-tests: New file.
54983         * tests/unistr/test-u32-mblen.c: New file.
54985         Tests for module 'unistr/u16-mblen'.
54986         * modules/unistr/u16-mblen-tests: New file.
54987         * tests/unistr/test-u16-mblen.c: New file.
54989         Tests for module 'unistr/u8-mblen'.
54990         * modules/unistr/u8-mblen-tests: New file.
54991         * tests/unistr/test-u8-mblen.c: New file.
54993         Tests for module 'unistr/u32-to-u16'.
54994         * modules/unistr/u32-to-u16-tests: New file.
54995         * tests/unistr/test-u32-to-u16.c: New file.
54997         Tests for module 'unistr/u32-to-u8'.
54998         * modules/unistr/u32-to-u8-tests: New file.
54999         * tests/unistr/test-u32-to-u8.c: New file.
55001         Tests for module 'unistr/u16-to-u32'.
55002         * modules/unistr/u16-to-u32-tests: New file.
55003         * tests/unistr/test-u16-to-u32.c: New file.
55005         Tests for module 'unistr/u16-to-u8'.
55006         * modules/unistr/u16-to-u8-tests: New file.
55007         * tests/unistr/test-u16-to-u8.c: New file.
55009         Tests for module 'unistr/u8-to-u32'.
55010         * modules/unistr/u8-to-u32-tests: New file.
55011         * tests/unistr/test-u8-to-u32.c: New file.
55013         Tests for module 'unistr/u8-to-u16'.
55014         * modules/unistr/u8-to-u16-tests: New file.
55015         * tests/unistr/test-u8-to-u16.c: New file.
55017         Tests for module 'unistr/u32-check'.
55018         * modules/unistr/u32-check-tests: New file.
55019         * tests/unistr/test-u32-check.c: New file.
55021         Tests for module 'unistr/u16-check'.
55022         * modules/unistr/u16-check-tests: New file.
55023         * tests/unistr/test-u16-check.c: New file.
55025         Tests for module 'unistr/u8-check'.
55026         * modules/unistr/u8-check-tests: New file.
55027         * tests/unistr/test-u8-check.c: New file.
55029         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
55030         (category_equals): New function.
55031         (main): Add more tests.
55032         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
55034         * tests/unictype/test-bidi_byname.c (main): Add more tests.
55036 2010-01-10  Bruno Haible  <bruno@clisp.org>
55038         unistr/u*-strcoll: Try harder to distinguish different strings.
55039         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
55040         compare s1 and s2 to see if they are different.
55042 2010-01-10  Bruno Haible  <bruno@clisp.org>
55044         unistr/u*-stpncpy: Fix the return value.
55045         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
55046         description of the return value consistent with stpncpy in glibc.
55047         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
55048         written non-NUL unit.
55050 2010-01-10  Bruno Haible  <bruno@clisp.org>
55052         unistr/u*-next: Add missing dependencies.
55053         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
55054         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
55055         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
55057 2010-01-10  Bruno Haible  <bruno@clisp.org>
55059         unistr/u8-mbsnlen: Fix return value for incomplete character.
55060         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
55061         u8_mblen.
55062         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
55063         Remove unistr/u8-mblen.
55064         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
55065         u16_mblen.
55066         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
55067         Remove unistr/u16-mblen.
55069 2010-01-10  Bruno Haible  <bruno@clisp.org>
55071         wchar: Fix compilation error when <wchar.h> is used from coreutils.
55072         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
55073         Reported by Brian Gough <bjg@gnu.org> and
55074         Chris Clayton <chris2553@googlemail.com> via
55075         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
55077 2010-01-09  Bruno Haible  <bruno@clisp.org>
55079         unistr/u16-to-u32: Reject invalid input.
55080         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
55081         u16_mbtouc.
55082         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
55083         Remove unistr/u16-mbtouc.
55085         unistr/u16-to-u8: Reject invalid input.
55086         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
55087         u16_mbtouc.
55088         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
55089         Remove unistr/u16-mbtouc.
55091         unistr/u8-to-u32: Reject invalid input.
55092         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
55093         u8_mbtouc.
55094         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
55095         Remove unistr/u8-mbtouc.
55097         unistr/u8-to-u16: Reject invalid input.
55098         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
55099         u8_mbtouc.
55100         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
55101         Remove unistr/u8-mbtouc.
55103 2010-01-09  Bruno Haible  <bruno@clisp.org>
55105         Tests for module 'getlogin'.
55106         * modules/getlogin-tests: New file.
55107         * tests/test-getlogin.c: New file.
55109         New module 'getlogin'.
55110         * lib/unistd.in.h (getlogin): New declaration.
55111         * lib/getlogin.c: New file.
55112         * m4/getlogin.m4: New file.
55113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
55114         HAVE_GETLOGIN.
55115         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
55116         HAVE_GETLOGIN.
55117         * modules/getlogin: New file.
55118         * doc/posix-functions/getlogin.texi: Mention the new module.
55119         Reported by John W. Eaton <jwe@gnu.org>.
55121 2010-01-09  Bruno Haible  <bruno@clisp.org>
55123         getlogin_r: Support for native Windows.
55124         * lib/getlogin_r.c: Include <windows.h>
55125         (getlogin_r): Implement for native Windows.
55126         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
55127         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
55128         via John W. Eaton <jwe@gnu.org>.
55130 2010-01-09  Bruno Haible  <bruno@clisp.org>
55132         getlogin_r: Small fixes.
55133         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
55134         succeeds.
55135         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
55136         before testing whether getlogin_r is declared. No need to set
55137         HAVE_DECL_GETLOGIN_R to 1.
55138         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
55140 2010-01-09  Bruno Haible  <bruno@clisp.org>
55142         * lib/unistd.in.h (getlogin_r): Add comment.
55144 2010-01-09  Bruno Haible  <bruno@clisp.org>
55146         Tests for module 'getlogin_r'.
55147         * modules/getlogin_r-tests: New file.
55148         * tests/test-getlogin_r.c: New file.
55150 2010-01-09  Jim Meyering  <meyering@redhat.com>
55152         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
55153         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
55154         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
55156 2010-01-08  Simon Josefsson  <simon@josefsson.org>
55158         * lib/dup2.c (rpl_dup2): Improve comment.
55160 2010-01-08  Eric Blake  <ebb9@byu.net>
55162         maint.mk: allow packages to add makefile @@ exceptions
55163         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
55164         (sc_makefile_check): Rename...
55165         (sc_makefile_at_at_check): ...to this, and use hook.
55167         dup2: work around mingw bug
55168         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
55169         Reported by Simon Josefsson.
55171 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
55173         glob: Fix C++ compilation.
55174         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
55175         C++.
55177 2010-01-07  Bruno Haible  <bruno@clisp.org>
55179         Fix indentation of wctype.in.h, broken since 2007-01-06.
55180         * lib/wctype.in.h: Fix indentation of preprocessor directives.
55182 2010-01-07  Bruno Haible  <bruno@clisp.org>
55184         mbslen: Avoid collision with system function.
55185         * lib/string.in.h [MirBSD]: Include <wchar.h>.
55186         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
55187         * m4/mbslen.m4: New file.
55188         * modules/mbslen (Files): Add it.
55189         (configure.ac): Invoke gl_MBSLEN.
55190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
55191         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
55192         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
55193         via Ian Beckwith <ianb@erislabs.net>.
55195 2010-01-07  Bruno Haible  <bruno@clisp.org>
55197         dirent: Document the last fix.
55198         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
55200 2010-01-07  Bruno Haible  <bruno@clisp.org>
55202         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
55203         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
55204         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
55205         va_list are defined.
55206         * doc/posix-headers/stdio.texi: Document the bug of missing types.
55207         Reported by Eric Blake.
55209 2010-01-07  Bruno Haible  <bruno@clisp.org>
55211         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
55212         * modules/xlist (Depends-on): Add 'list',
55213         * modules/xoset (Depends-on): Add 'oset'.
55214         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55216 2010-01-07  Bruno Haible  <bruno@clisp.org>
55218         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
55219         * doc/posix-functions/strncasecmp.texi: Likewise.
55221 2010-01-07  Bruno Haible  <bruno@clisp.org>
55223         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
55225 2010-01-07  John W. Eaton  <jwe@octave.org>
55227         wctype: allow C++ use
55228         * lib/wctype.in.h: Add extern "C" block for C++.
55230 2010-01-06  Eric Blake  <ebb9@byu.net>
55232         maint.mk: detect incorrect GFDL usage
55233         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
55235 2010-01-06  Jim Meyering  <meyering@redhat.com>
55236         and Eric Blake  <ebb9@byu.net>
55238         maint.mk: ignore multi-line copyright in NEWS
55239         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
55241 2010-01-06  Eric Blake  <ebb9@byu.net>
55243         select: add missing dependency
55244         * modules/select-tests (Depends-on): Move sockets dependency...
55245         * modules/select (Depends-on): ...here.
55246         Reported by Ian Beckwith.
55248         doc: regenerate INSTALL
55249         * doc/INSTALL: Reflect recent autoconf update.
55250         * doc/INSTALL.ISO: Likewise.
55251         * doc/INSTALL.UTF-8: Likewise.
55253         pread: fix compilation on glibc
55254         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
55255         Reported by Ralf Wildenhues.
55257         dirent: fix test failure
55258         * lib/dirent.in.h (includes): Guarantee ino_t.
55259         Reported by Ralf Wildenhues.
55261 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
55263         linkat, renameat: avoid bad free
55264         * lib/at-func2.c (at_func2): Fix typo.
55265         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
55267 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55269         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
55270         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
55271         to avoid failure of symlink test later.
55273 2010-01-06  Eric Blake  <ebb9@byu.net>
55275         stdio, unistd: guarantee ssize_t
55276         * lib/unistd.in.h (includes): Ensure that types required by POSIX
55277         2008 are exposed when needed.
55278         * lib/stdio.in.h (includes): Likewise.
55279         Reported by Ralf Wildenhues.
55281 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
55283         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
55284         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
55285         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
55287 2010-01-06  Jim Meyering  <meyering@redhat.com>
55289         readtokens: this module *does* require xalloc.h
55290         It uses only functions that were omitted by the old syntax-check rule.
55291         * lib/readtokens.c: Include "xalloc.h" once again.
55292         * modules/readtokens (Depends-on): Add xalloc.
55293         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
55295 2010-01-05  Eric Blake  <ebb9@byu.net>
55297         maint: support 'make announcement' from a VPATH build
55298         * top/maint.mk (announcement): Look for correct NEWS file.
55300 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
55302         utimens (fdutimens): ignore a negative FD, per contract
55303         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
55304         when we have a valid file descriptor.  Otherwise, using a brand
55305         new glibc (with just-patched futimens that now fails with EBADF)
55306         would cause this function to fail with ENOSYS.
55307         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
55308         See also http://bugzilla.redhat.com/552320.
55310 2010-01-05  Eric Blake  <ebb9@byu.net>
55312         strcase: document what it provides
55313         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
55314         gnulib module.
55315         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
55316         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
55318 2010-01-05  Jim Meyering  <meyering@redhat.com>
55320         maint: remove useless inclusions of "xalloc.h"
55321         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
55322         * lib/readtokens.c: Likewise.
55323         * lib/same.c: Likewise.
55324         * modules/getloadavg (Depends-on): Remove xalloc.
55325         * modules/readtokens: Likewise.
55326         * modules/same: Likewise.
55328         maint.mk: include 4 more function names in alloca.h-checking regexp
55329         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
55330         regexp.  Before, we would give a false-positive (saying alloca.h
55331         is included unnecessarily) when the only uses involved omitted symbols.
55333         xalloc.h: use consistent formatting
55334         * lib/xalloc.h: Move declarations to start in the first column.
55336 2010-01-05  Eric Blake  <ebb9@byu.net>
55338         mkdir: avoid xalloc
55339         * lib/mkdir.c (includes): Drop unused header.
55340         Reported by John W. Eaton.
55342 2010-01-04  Jim Meyering  <meyering@redhat.com>
55344         nl_langinfo: avoid configure-time syntax error
55345         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
55346         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
55347         the empty string.  Don't let that provoke a shell syntax error.
55349         regcomp, regexec, fnmatch: avoid array bounds read error
55350         * lib/regcomp.c (build_equiv_class): From glibc:
55351         Use only the low 24 bits of a findidx return value as an index
55352         into the weights array.  Patch by Ulrich Drepper:
55353         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
55354         * lib/regexec.c (check_node_accept_bytes): Likewise.
55355         * lib/fnmatch_loop.c (FCT): Likewise.
55357         regcomp: skip collseq lookup when there are no rules
55358         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
55359         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
55361         regcomp: recognize ill-formed { } expressions
55362         * lib/regcomp.c (parse_dup_op): From glibc:
55363         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
55365         regcomp: fix typo in comment
55366         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
55367         s/satisfy/satisfies/.
55369         regcomp: sync from glibc: remove dead store
55370         * lib/regcomp.c (duplicate_node_closure): Remove useless
55371         search_duplicated_node call and dead store.
55373         regcomp: sync from glibc; always use nl_langinfo
55374         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
55375         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
55376         * modules/regex (Depends-on): Add nl_langinfo.
55378 2010-01-04  Eric Blake  <ebb9@byu.net>
55380         fdopendir: fix configure test
55381         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
55383 2010-01-01  Bruno Haible  <bruno@clisp.org>
55385         wchar: Remove unused configure check.
55386         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
55388 2010-01-01  Eric Blake  <ebb9@byu.net>
55390         headers: make check of system header explicit
55391         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
55392         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
55393         ourselves.
55394         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55395         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55396         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55397         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
55398         internals.
55399         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
55400         missing.
55401         Suggested by Bruno Haible.
55403 2010-01-01  Jim Meyering  <meyering@redhat.com>
55405         ChangeLog: tweak to eliminate unnecessary copyright line
55406         * ChangeLog: Remove a copyright line that was mistakenly updated
55407         by today's update-copyright run.  Reported by Eric Blake.
55409         test-update-copyright: don't let envvar setting cause test failure
55410         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
55412 2010-01-01  Bruno Haible  <bruno@clisp.org>
55414         localename: Avoid gcc warning.
55415         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
55416         function if it is not used.
55418 2010-01-01  Jim Meyering  <meyering@redhat.com>
55420         update nearly all FSF copyright year lists to include 2010
55421         Use the same procedure as for 2009, outlined in
55422         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
55424         version-etc: set COPYRIGHT_YEAR to 2010
55425         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
55427 2009-12-31  Eric Blake  <ebb9@byu.net>
55429         doc: correct availability of cygwin 1.5.x getopt
55430         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
55431         variables.
55432         * doc/posix-functions/opterr.texi (opterr): Likewise.
55433         * doc/posix-functions/optind.texi (optind): Likewise.
55434         * doc/posix-functions/optopt.texi (optopt): Likewise.
55435         * doc/posix-functions/tzname.texi (tzname): Likewise.
55437         openat: update maintainer
55438         * modules/openat (Maintainer): Add myself.
55440         utimens: avoid shadowing warning
55441         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
55442         buffers into one, to avoid shadowing, as well as avoiding a
55443         redundant stat.
55444         Reported by Jim Meyering.
55446         test-dup2: avoid compiler warning
55447         * tests/test-dup2.c (is_inheritable): Only define if used.
55449 2010-01-01  Bruno Haible  <bruno@clisp.org>
55451         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
55452         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
55453         defined, use wctomb instead of wcrtomb.
55455 2010-01-01  Bruno Haible  <bruno@clisp.org>
55457         iconv: Reject native Solaris iconv.
55458         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
55459         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
55461 2009-12-31  Bruno Haible  <bruno@clisp.org>
55463         * tests/test-signal.c (main): Remove test of 'SIG'.
55465 2009-12-31  Bruno Haible  <bruno@clisp.org>
55467         spawn: Fix incomplete fix.
55468         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
55469         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
55470         warnings for GNULIB_POSIXCHECK again.
55471         Reported by Eric Blake.
55473 2009-12-31  Bruno Haible  <bruno@clisp.org>
55475         Avoid namespace pollution on glibc systems.
55476         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
55477         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
55478         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
55479         glibc systems.
55481 2009-12-31  Bruno Haible  <bruno@clisp.org>
55483         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
55484         (gl_REPLACE_WCHAR_H): Turn into a no-op.
55485         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
55486         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
55487         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
55488         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
55489         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
55491 2009-12-31  Bruno Haible  <bruno@clisp.org>
55493         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
55494         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
55495         afterwards.
55497 2009-12-31  Bruno Haible  <bruno@clisp.org>
55499         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
55500         SYS_UTSNAME_H.
55502 2009-12-31  Bruno Haible  <bruno@clisp.org>
55504         spawn: Fix misapplied patch.
55505         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
55506         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
55507         warnings for GNULIB_POSIXCHECK.
55509 2009-12-31  Bruno Haible  <bruno@clisp.org>
55511         times: Update after sys_times changed.
55512         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
55513         * modules/times (Files): Add it.
55514         (configure.ac): Invoke gl_FUNC_TIMES.
55516 2009-12-31  Bruno Haible  <bruno@clisp.org>
55518         Use AC_C_INLINE where necessary.
55519         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
55520         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55521         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55522         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55523         * m4/mbfile.m4 (gl_MBFILE): Likewise.
55524         * m4/mbiter.m4 (gl_MBITER): Likewise.
55525         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55526         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
55527         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
55528         * modules/u64 (configure.ac): Likewise.
55530 2009-12-31  Bruno Haible  <bruno@clisp.org>
55532         Use AC_C_INLINE instead of module 'inline' where possible.
55533         * modules/inline (Description): Clarify purpose.
55534         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
55535         * modules/count-one-bits (Depends-on): Remove inline.
55536         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
55537         * modules/openat (Depends-on): Remove inline.
55538         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
55539         instead of depending on module 'inline'.
55540         * modules/filevercmp (Depends-on, configure.ac): Likewise.
55541         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
55542         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
55543         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
55544         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
55545         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
55546         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
55547         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
55548         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
55549         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
55550         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
55551         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
55552         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
55553         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
55554         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
55555         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
55556         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
55557         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
55558         Likewise.
55559         * modules/unictype/property-ascii-hex-digit (Depends-on,
55560         configure.ac): Likewise.
55561         * modules/unictype/property-bidi-arabic-digit (Depends-on,
55562         configure.ac): Likewise.
55563         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
55564         configure.ac): Likewise.
55565         * modules/unictype/property-bidi-block-separator (Depends-on,
55566         configure.ac): Likewise.
55567         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
55568         configure.ac): Likewise.
55569         * modules/unictype/property-bidi-common-separator (Depends-on,
55570         configure.ac): Likewise.
55571         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
55572         Likewise.
55573         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
55574         configure.ac): Likewise.
55575         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
55576         configure.ac): Likewise.
55577         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
55578         configure.ac): Likewise.
55579         * modules/unictype/property-bidi-european-digit (Depends-on,
55580         configure.ac): Likewise.
55581         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
55582         configure.ac): Likewise.
55583         * modules/unictype/property-bidi-left-to-right (Depends-on,
55584         configure.ac): Likewise.
55585         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
55586         configure.ac): Likewise.
55587         * modules/unictype/property-bidi-other-neutral (Depends-on,
55588         configure.ac): Likewise.
55589         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
55590         Likewise.
55591         * modules/unictype/property-bidi-segment-separator (Depends-on,
55592         configure.ac): Likewise.
55593         * modules/unictype/property-bidi-whitespace (Depends-on,
55594         configure.ac): Likewise.
55595         * modules/unictype/property-combining (Depends-on, configure.ac):
55596         Likewise.
55597         * modules/unictype/property-composite (Depends-on, configure.ac):
55598         Likewise.
55599         * modules/unictype/property-currency-symbol (Depends-on,
55600         configure.ac): Likewise.
55601         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
55602         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
55603         Likewise.
55604         * modules/unictype/property-default-ignorable-code-point (Depends-on,
55605         configure.ac): Likewise.
55606         * modules/unictype/property-deprecated (Depends-on, configure.ac):
55607         Likewise.
55608         * modules/unictype/property-diacritic (Depends-on, configure.ac):
55609         Likewise.
55610         * modules/unictype/property-extender (Depends-on, configure.ac):
55611         Likewise.
55612         * modules/unictype/property-format-control (Depends-on, configure.ac):
55613         Likewise.
55614         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
55615         Likewise.
55616         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
55617         Likewise.
55618         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
55619         Likewise.
55620         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
55621         Likewise.
55622         * modules/unictype/property-hyphen (Depends-on, configure.ac):
55623         Likewise.
55624         * modules/unictype/property-id-continue (Depends-on, configure.ac):
55625         Likewise.
55626         * modules/unictype/property-id-start (Depends-on, configure.ac):
55627         Likewise.
55628         * modules/unictype/property-ideographic (Depends-on, configure.ac):
55629         Likewise.
55630         * modules/unictype/property-ids-binary-operator (Depends-on,
55631         configure.ac): Likewise.
55632         * modules/unictype/property-ids-trinary-operator (Depends-on,
55633         configure.ac): Likewise.
55634         * modules/unictype/property-ignorable-control (Depends-on,
55635         configure.ac): Likewise.
55636         * modules/unictype/property-iso-control (Depends-on, configure.ac):
55637         Likewise.
55638         * modules/unictype/property-join-control (Depends-on, configure.ac):
55639         Likewise.
55640         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
55641         Likewise.
55642         * modules/unictype/property-line-separator (Depends-on, configure.ac):
55643         Likewise.
55644         * modules/unictype/property-logical-order-exception (Depends-on,
55645         configure.ac): Likewise.
55646         * modules/unictype/property-lowercase (Depends-on, configure.ac):
55647         Likewise.
55648         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
55649         * modules/unictype/property-non-break (Depends-on, configure.ac):
55650         Likewise.
55651         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
55652         Likewise.
55653         * modules/unictype/property-numeric (Depends-on, configure.ac):
55654         Likewise.
55655         * modules/unictype/property-other-alphabetic (Depends-on,
55656         configure.ac): Likewise.
55657         * modules/unictype/property-other-default-ignorable-code-point
55658         (Depends-on, configure.ac): Likewise.
55659         * modules/unictype/property-other-grapheme-extend (Depends-on,
55660         configure.ac): Likewise.
55661         * modules/unictype/property-other-id-continue (Depends-on,
55662         configure.ac): Likewise.
55663         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
55664         Likewise.
55665         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
55666         Likewise.
55667         * modules/unictype/property-other-math (Depends-on, configure.ac):
55668         Likewise.
55669         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
55670         Likewise.
55671         * modules/unictype/property-paired-punctuation (Depends-on,
55672         configure.ac): Likewise.
55673         * modules/unictype/property-paragraph-separator (Depends-on,
55674         configure.ac): Likewise.
55675         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
55676         Likewise.
55677         * modules/unictype/property-pattern-white-space (Depends-on,
55678         configure.ac): Likewise.
55679         * modules/unictype/property-private-use (Depends-on, configure.ac):
55680         Likewise.
55681         * modules/unictype/property-punctuation (Depends-on, configure.ac):
55682         Likewise.
55683         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
55684         Likewise.
55685         * modules/unictype/property-radical (Depends-on, configure.ac):
55686         Likewise.
55687         * modules/unictype/property-sentence-terminal (Depends-on,
55688         configure.ac): Likewise.
55689         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
55690         Likewise.
55691         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
55692         * modules/unictype/property-terminal-punctuation (Depends-on,
55693         configure.ac): Likewise.
55694         * modules/unictype/property-titlecase (Depends-on, configure.ac):
55695         Likewise.
55696         * modules/unictype/property-unassigned-code-value (Depends-on,
55697         configure.ac): Likewise.
55698         * modules/unictype/property-unified-ideograph (Depends-on,
55699         configure.ac): Likewise.
55700         * modules/unictype/property-uppercase (Depends-on, configure.ac):
55701         Likewise.
55702         * modules/unictype/property-variation-selector (Depends-on,
55703         configure.ac): Likewise.
55704         * modules/unictype/property-white-space (Depends-on, configure.ac):
55705         Likewise.
55706         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
55707         Likewise.
55708         * modules/unictype/property-xid-start (Depends-on, configure.ac):
55709         Likewise.
55710         * modules/unictype/property-zero-width (Depends-on, configure.ac):
55711         Likewise.
55712         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
55713         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
55714         Likewise.
55716 2009-12-31  Bruno Haible  <bruno@clisp.org>
55718         Remove unnecessary AC_C_INLINE invocation.
55719         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
55720         since 2009-08-21.
55722 2009-12-31  Jim Meyering  <meyering@redhat.com>
55724         maint.mk: don't require explicit gpg_key_ID in cfg.mk
55725         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
55726         With this change, we can all remove the gpg_key_ID = ... definition
55727         from our respective cfg.mk files.
55729         maint.mk: create announcement template in ~/, not in /tmp
55730         * top/maint.mk (emit_upload_commands): Adjust.
55731         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
55732         Remove temporary file, .ci-msg.
55734 2009-12-31  Eric Blake  <ebb9@byu.net>
55736         link-warning: always build headers with link warnings
55737         * modules/arpa_inet (Makefile.am): Always build replacement
55738         header.
55739         * modules/ctype (Makefile.am): Likewise.
55740         * modules/dirent (Makefile.am): Likewise.
55741         * modules/inttypes (Makefile.am): Likewise.
55742         * modules/langinfo (Makefile.am): Likewise.
55743         * modules/locale (Makefile.am): Likewise.
55744         * modules/spawn (Makefile.am): Likewise.
55745         * modules/sys_file (Makefile.am): Likewise.
55746         * modules/sys_ioctl (Makefile.am): Likewise.
55747         * modules/sys_select (Makefile.am): Likewise.
55748         * modules/sys_socket (Makefile.am): Likewise.
55749         * modules/sys_times (Makefile.am): Likewise.
55750         * modules/sys_utsname (Makefile.am): Likewise.
55751         * modules/sys_wait (Makefile.am): Likewise.
55752         * modules/wchar (Makefile.am): Likewise.
55753         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
55754         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
55755         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
55756         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
55757         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
55758         Likewise.
55759         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55760         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
55761         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
55762         Likewise.
55763         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
55764         Likewise.
55765         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
55766         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
55767         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
55768         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55769         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55770         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
55771         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
55772         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
55773         (gl_WCHAR_H_DEFAULTS): Likewise.
55775 2009-12-31  Eric Blake  <ebb9@byu.net>
55777         signal, spawn: use link warnings
55778         * lib/signal.in.h (sigset_t): Make unconditional.
55779         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
55780         (sigpending, sigprocmask, sigaction): Add link warnings.
55781         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
55782         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
55783         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
55784         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
55785         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
55786         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
55787         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
55788         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
55789         (posix_spawn_file_actions_destroy)
55790         (posix_spawn_file_actions_addopen)
55791         (posix_spawn_file_actions_addclose)
55792         (posix_spawn_file_actions_adddup2): Likewise.
55793         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
55794         * tests/test-signal.c (main): Enhance test.
55796         spawn: improve wrapper support
55797         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
55798         (gl_SPAWN_H_DEFAULTS): New defaults.
55799         * modules/spawn (Makefile.am): Substitute them.
55800         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
55801         Only declare if missing or broken.
55803         sys_times, sys_utsname: use include_next
55804         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
55805         header.
55806         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
55807         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
55808         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
55809         * modules/sys_times (Depends-on): Add include_next.
55810         (Makefile.am): Substitute additional values.
55811         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
55812         * lib/sys_times.in.h (includes): Include native header, if
55813         available.
55814         * lib/sys_utsname.in.h (includes): Likewise.
55815         * tests/test-sys_times.c (main): Enhance test.
55817         fdutimensat: revert prior patch
55818         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
55819         utimens.h.
55820         Reported by Bruno Haible.
55822 2009-12-30  Eric Blake  <ebb9@byu.net>
55824         sys_wait: drop link-warning dependency
55825         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
55826         link-warning efforts.
55827         * lib/sys_wait.in.h: Likewise.
55829         fdutimensat: remove bogus dependency
55830         * modules/fdutimensat (Depends-on): Drop inline.
55832         unistd: fix typo
55833         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
55835 2009-12-30  Bruno Haible  <bruno@clisp.org>
55837         Fix compilation error with Solaris cc.
55838         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
55839         * lib/unicase/u16-is-invariant.c: Likewise.
55840         * lib/unicase/u32-is-invariant.c: Likewise.
55841         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55843 2009-12-30  Bruno Haible  <bruno@clisp.org>
55845         Fix test crash.
55846         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
55847         locales.
55848         Reported by Simon Josefsson <simon@josefsson.org>.
55850 2009-12-30  Bruno Haible  <bruno@clisp.org>
55852         Fix compilation error on most platforms.
55853         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
55854         Reported by Simon Josefsson <simon@josefsson.org>
55855         and Nelson H. F. Beebe <beebe@math.utah.edu>.
55857 2009-12-30  Eric Blake  <ebb9@byu.net>
55859         futimens, utimensat: work around ntfs-3g bug
55860         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
55861         a ctime bug is present, and expand workaround to cover ntfs-3g.
55862         * lib/utimens.c (fdutimens, lutimens): Likewise.
55863         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
55864         (validate_timespec): Adjust return value.
55865         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
55866         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
55867         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
55869 2009-12-29  Eric Blake  <ebb9@byu.net>
55871         link-warning: make usage consistent
55872         * modules/ctype (Depends-on): Add link-warning.
55873         (Makefile.am): Update rules accordingly.
55874         * modules/langinfo (Depends-on, Makefile.am): Likewise.
55875         * modules/locale (Depends-on, Makefile.am): Likewise.
55876         * modules/sys_file (Makefile.am): Likewise.
55877         * modules/getopt-posix (Makefile.am): Delete unused link warning
55878         efforts.
55879         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
55880         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
55881         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
55882         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
55884         stdio: remove unused variables
55885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
55886         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
55887         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
55889         tests: test more substitute headers
55890         * modules/ctype-tests: New file.
55891         * modules/dirent-tests: Likewise.
55892         * modules/spawn-tests: Likewise.
55893         * modules/sys_file-tests: Likewise.
55894         * modules/sys_ioctl-tests: Likewise.
55895         * modules/sys_wait-tests: Likewise.
55896         * tests/test-ctype.c: Likewise.
55897         * tests/test-dirent.c: Likewise.
55898         * tests/test-spawn.c: Likewise.
55899         * tests/test-sys_file.c: Likewise.
55900         * tests/test-sys_ioctl.c: Likewise.
55901         * tests/test-sys_wait.c: Likewise.
55902         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
55903         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
55904         whether or not flock is in use.
55906         tests: remove License section from module
55907         * modules/arpa_inet-tests: Remove unneeded section.
55908         * modules/byteswap-tests: Likewise.
55909         * modules/ceilf-tests: Likewise.
55910         * modules/ceill-tests: Likewise.
55911         * modules/crypto/des-tests: Likewise.
55912         * modules/crypto/gc-arcfour-tests: Likewise.
55913         * modules/crypto/gc-arctwo-tests: Likewise.
55914         * modules/crypto/gc-des-tests: Likewise.
55915         * modules/crypto/gc-hmac-md5-tests: Likewise.
55916         * modules/crypto/gc-hmac-sha1-tests: Likewise.
55917         * modules/crypto/gc-md2-tests: Likewise.
55918         * modules/crypto/gc-md4-tests: Likewise.
55919         * modules/crypto/gc-md5-tests: Likewise.
55920         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
55921         * modules/crypto/gc-rijndael-tests: Likewise.
55922         * modules/crypto/gc-sha1-tests: Likewise.
55923         * modules/crypto/gc-tests: Likewise.
55924         * modules/crypto/md2-tests: Likewise.
55925         * modules/crypto/md4-tests: Likewise.
55926         * modules/fcntl-h-tests: Likewise.
55927         * modules/floorf-tests: Likewise.
55928         * modules/floorl-tests: Likewise.
55929         * modules/frexp-nolibm-tests: Likewise.
55930         * modules/frexp-tests: Likewise.
55931         * modules/frexpl-nolibm-tests: Likewise.
55932         * modules/frexpl-tests: Likewise.
55933         * modules/getaddrinfo-tests: Likewise.
55934         * modules/inttypes-tests: Likewise.
55935         * modules/isfinite-tests: Likewise.
55936         * modules/isinf-tests: Likewise.
55937         * modules/ldexpl-tests: Likewise.
55938         * modules/locale-tests: Likewise.
55939         * modules/math-tests: Likewise.
55940         * modules/netdb-tests: Likewise.
55941         * modules/netinet_in-tests: Likewise.
55942         * modules/printf-frexp-tests: Likewise.
55943         * modules/printf-frexpl-tests: Likewise.
55944         * modules/priv-set-tests: Likewise.
55945         * modules/random_r-tests: Likewise.
55946         * modules/round-tests: Likewise.
55947         * modules/roundf-tests: Likewise.
55948         * modules/roundl-tests: Likewise.
55949         * modules/search-tests: Likewise.
55950         * modules/select-tests: Likewise.
55951         * modules/signal-tests: Likewise.
55952         * modules/stdbool-tests: Likewise.
55953         * modules/stddef-tests: Likewise.
55954         * modules/stdint-tests: Likewise.
55955         * modules/stdio-tests: Likewise.
55956         * modules/stdlib-tests: Likewise.
55957         * modules/string-tests: Likewise.
55958         * modules/strings-tests: Likewise.
55959         * modules/sys_select-tests: Likewise.
55960         * modules/sys_socket-tests: Likewise.
55961         * modules/sys_stat-tests: Likewise.
55962         * modules/sys_time-tests: Likewise.
55963         * modules/sys_utsname-tests: Likewise.
55964         * modules/sysexits-tests: Likewise.
55965         * modules/time-tests: Likewise.
55966         * modules/trunc-tests: Likewise.
55967         * modules/truncf-tests: Likewise.
55968         * modules/truncl-tests: Likewise.
55969         * modules/tsearch-tests: Likewise.
55970         * modules/unistd-tests: Likewise.
55971         * modules/wchar-tests: Likewise.
55972         * modules/wctype-tests: Likewise.
55974         tests: fix license on several tests
55975         * tests/test-des.c: Update to GPLv3+.
55976         * tests/test-flock.c: Likewise.
55977         * tests/test-fsync.c: Likewise.
55978         * tests/test-futimens.h: Likewise.
55979         * tests/test-gc-arcfour.c: Likewise.
55980         * tests/test-gc-arctwo.c: Likewise.
55981         * tests/test-gc-des.c: Likewise.
55982         * tests/test-gc-hmac-md5.c: Likewise.
55983         * tests/test-gc-hmac-sha1.c: Likewise.
55984         * tests/test-gc-md2.c: Likewise.
55985         * tests/test-gc-md4.c: Likewise.
55986         * tests/test-gc-md5.c: Likewise.
55987         * tests/test-gc-pbkdf2-sha1.c: Likewise.
55988         * tests/test-gc-rijndael.c: Likewise.
55989         * tests/test-gc-sha1.c: Likewise.
55990         * tests/test-gc.c: Likewise.
55991         * tests/test-getcwd.c: Likewise.
55992         * tests/test-link.c: Likewise.
55993         * tests/test-link.h: Likewise.
55994         * tests/test-lutimens.h: Likewise.
55995         * tests/test-md2.c: Likewise.
55996         * tests/test-md4.c: Likewise.
55997         * tests/test-mkdir.h: Likewise.
55998         * tests/test-rename.c: Likewise.
55999         * tests/test-rename.h: Likewise.
56000         * tests/test-safe-alloc.c: Likewise.
56001         * tests/test-utimens-common.h: Likewise.
56002         * tests/test-utimens.h: Likewise.
56004         maint: sync license texts
56005         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
56006         * doc/gpl-3.0.texi: Revert copyright year update.
56007         * doc/lgpl-3.0.texi: Likewise.
56009 2009-12-29  Jim Meyering  <meyering@redhat.com>
56011         update nearly all FSF copyright year lists to include 2009
56012         The files named by the following are exempted:
56013             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
56014               test -f "$dst" && { echo "$dst"; continue; }
56015               test -d "$dst" || continue
56016               echo "$dst"/$(basename "$src")
56017             done > exempt
56018             git ls-files tests/unictype >> exempt
56019         In the remaining files, convert to all-interval notation if
56020         - there is already at least one year interval like 2000-2003
56021         - the file is maintained by me
56022         - the file is in lib/uni*/, where that style already prevails
56023         Otherwise, use update-copyright's default.
56025 2009-12-29  Simon Josefsson  <simon@josefsson.org>
56026         and Eric Blake  <ebb9@byu.net>
56028         tests: don't require debug system() to pass
56029         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
56030         * tests/test-rmdir.h (test_rmdir_func): Likewise.
56031         * tests/test-unlink.h (test_unlink_func): Likewise.
56032         * tests/test-fstatat.c (main): ...into callers.
56033         * tests/test-lstat.c (main): Likewise.
56034         * tests/test-rmdir.c (main): Likewise.
56035         * tests/test-unlink.c (main): Likewise.
56036         * tests/test-unlinkat.c (main): Likewise.
56037         * tests/test-areadlink-with-size.c (main): Don't require a
56038         debug-only system call to pass, aiding cross-testing to mingw.
56039         * tests/test-areadlink.c (main): Likewise.
56040         * tests/test-areadlinkat-with-size.c (main): Likewise.
56041         * tests/test-areadlinkat.c (main): Likewise.
56042         * tests/test-canonicalize-lgpl.c (main): Likewise.
56043         * tests/test-canonicalize.c (main): Likewise.
56044         * tests/test-chown.c (main): Likewise.
56045         * tests/test-fchownat.c (main): Likewise.
56046         * tests/test-lchown.c (main): Likewise.
56047         * tests/test-fdutimensat.c (main): Likewise.
56048         * tests/test-futimens.c (main): Likewise.
56049         * tests/test-link.c (main): Likewise.
56050         * tests/test-linkat.c (main): Likewise.
56051         * tests/test-mkdir.c (main): Likewise.
56052         * tests/test-mkdirat.c (main): Likewise.
56053         * tests/test-mkfifo.c (main): Likewise.
56054         * tests/test-mkfifoat.c (main): Likewise.
56055         * tests/test-mknod.c (main): Likewise.
56056         * tests/test-readlink.c (main): Likewise.
56057         * tests/test-remove.c (main): Likewise.
56058         * tests/test-rename.c (main): Likewise.
56059         * tests/test-renameat.c (main): Likewise.
56060         * tests/test-symlink.c (main): Likewise.
56061         * tests/test-symlinkat.c (main): Likewise.
56062         * tests/test-utimens.c (main): Likewise.
56063         * tests/test-utimensat.c (main): Likewise.
56065 2009-12-29  Simon Josefsson  <simon@josefsson.org>
56067         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
56068         on $(UNUSED_PARAMETER_H) to avoid build failure.
56070 2009-12-28  Jim Meyering  <meyering@redhat.com>
56072         update-copyright: you may specify a max. line length other than 72
56073         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
56075         maint: use consistent FSF copyright line syntax
56076         * lib/posixtm.c: Add missing comma in FSF copyright line.
56077         * lib/posixtm.h: Likewise.
56078         * lib/getugroups.c: Add missing ", Inc.".
56080         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
56081         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
56082         FSF copyright line.  Remove trailing blanks.
56084 2009-12-28  Eric Blake  <ebb9@byu.net>
56086         test-dup2: reduce dependencies
56087         * modules/cloexec (Configure.ac): Set witness.
56088         * modules/dup2-tests (Depends-on): Drop cloexec.
56089         * tests/test-dup2.c (main): Skip portion of test if cloexec module
56090         not present.
56091         Suggested by Bruno Haible.
56093 2009-12-26  Bruno Haible  <bruno@clisp.org>
56095         Remove an unneeded dependency.
56096         * modules/fseterr (Depends-on): Remove dup2.
56098 2009-12-26  Eric Blake  <ebb9@byu.net>
56100         tests: use macros.h in more places
56101         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
56102         (ASSERT_STREAM): Provide default of stderr.
56103         * tests/test-dirent-safer.c: Include macros.h, using alternate
56104         stream for assertions.
56105         * tests/test-dup-safer.c: Likewise.
56106         * tests/test-freopen-safer.c: Likewise.
56107         * tests/test-getopt.c: Likewise.
56108         * tests/test-openat-safer.c: Likewise.
56109         * tests/test-pipe.c: Likewise.
56110         * tests/test-popen-safer.c: Likewise.
56111         * modules/dirent-safer-tests (Files): Include macros.h.
56112         * modules/unistd-safer-tests (Files): Likewise.
56113         * modules/freopen-safer-tests (Files): Likewise.
56114         * modules/getopt-posix-tests (Files): Likewise.
56115         * modules/openat-safer-tests (Files): Likewise.
56116         * modules/pipe-tests (Files): Likewise.
56118 2009-12-26  Bruno Haible  <bruno@clisp.org>
56120         javacomp-script: Portability fix.
56121         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
56122         that it also works on Solaris.
56124 2009-12-26  Bruno Haible  <bruno@clisp.org>
56126         localename: Fix storage allocation of gl_locale_name_thread's result.
56127         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
56128         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
56129         all platforms that have 'uselocale'.
56130         (gl_locale_name_thread_unsafe): New function, extracted from
56131         gl_locale_name_thread.
56132         (gl_locale_name_thread): Call struniq on all platforms that have
56133         'uselocale'.
56134         * tests/test-localename.c (test_locale_name_thread): Check that the
56135         resulting strings are permanently allocated.
56136         * modules/localename-tests (Depends-on): Add strdup.
56138 2009-12-26  Bruno Haible  <bruno@clisp.org>
56140         * tests/test-localename.c (categories): Fill in the strings.
56142 2009-12-26  Jim Meyering  <meyering@redhat.com>
56144         isdir: complete the removal of m4/isdir.m4
56145         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
56147         isdir: clean up, since at least grep still uses it
56148         * lib/isdir.c: Include "isdir.h".
56149         (S_ISDIR): Remove now-unneeded definition.
56150         * modules/isdir (Files): Add lib/isdir.h.
56151         * lib/isdir.h: New file, with declaration.
56152         * m4/isdir.m4: Remove file -- unneeded.
56154 2009-12-25  Bruno Haible  <bruno@clisp.org>
56156         selinux-h: Make generated .h files standalone.
56157         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
56158         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
56159         * lib/se-selinux.in.h: Likewise.
56160         * modules/selinux-h (Depends-on): Add unused-parameter.
56161         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
56162         selinux/selinux.h and selinux/context.h.
56163         Suggested by Eric Blake.
56165 2009-12-25  Bruno Haible  <bruno@clisp.org>
56167         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
56168         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
56169         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
56170         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
56171         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
56173 2009-12-24  Bruno Haible  <bruno@clisp.org>
56175         openat: Fix warning.
56176         * lib/openat-proc.c: Include <unistd.h>.
56178 2009-12-24  Bruno Haible  <bruno@clisp.org>
56180         New module 'unused-parameter'.
56181         * build-aux/unused-parameter.h: New file, extracted from earlier
56182         gnulib-common.m4.
56183         * modules/unused-parameter: New file.
56184         * lib/unistr.h: Include unused-parameter.h.
56185         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
56186         _GL_UNUSED.
56187         * modules/unistr/base (Depends-on): Add unused-parameter.
56189 2009-12-24  Bruno Haible  <bruno@clisp.org>
56191         Add missing dependencies to 'extensions' module.
56192         * m4/extensions.m4: Add comment.
56193         * modules/accept4 (Depends-on): Add extensions.
56194         * modules/dup3 (Depends-on): Likewise.
56195         * modules/fcntl (Depends-on): Likewise.
56196         * modules/futimens (Depends-on): Likewise.
56197         * modules/mknod (Depends-on): Likewise.
56198         * modules/pipe2 (Depends-on): Likewise.
56199         * modules/stat-time (Depends-on): Likewise.
56200         * modules/strcasestr-simple (Depends-on): Likewise.
56201         * modules/strsignal (Depends-on): Likewise.
56202         * modules/utimensat (Depends-on): Likewise.
56203         * modules/localcharset (Depends-on): Likewise. Needed because of
56204         gl_FCNTL_O_FLAGS.
56205         * modules/wcrtomb (Depends-on): Likewise. Needed because of
56206         AC_TYPE_MBSTATE_T.
56207         * modules/wcsnrtombs (Depends-on): Likewise.
56208         * modules/wcsrtombs (Depends-on): Likewise.
56210 2009-12-24  Bruno Haible  <bruno@clisp.org>
56212         binary-io: Avoid gcc warning due to SET_BINARY.
56213         * lib/binary-io.h (SET_BINARY): Cast the result to void.
56214         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
56216 2009-12-24  Bruno Haible  <bruno@clisp.org>
56218         Avoid future namespace pollution on glibc systems.
56219         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
56220         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
56221         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
56222         glibc systems.
56224 2009-12-24  Bruno Haible  <bruno@clisp.org>
56226         Refactor common macros used in tests.
56227         * tests/macros.h: New file.
56228         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
56229         and/or <stdlib.h>, if appropriate.
56230         (ASSERT, SIZEOF): Remove macros.
56231         * tests/test-areadlink-with-size.c: Likewise.
56232         * tests/test-areadlinkat.c: Likewise.
56233         * tests/test-areadlinkat-with-size.c: Likewise.
56234         * tests/test-argmatch.c: Likewise.
56235         * tests/test-argv-iter.c: Likewise.
56236         * tests/test-array-mergesort.c: Likewise.
56237         * tests/test-array_list.c: Likewise.
56238         * tests/test-array_oset.c: Likewise.
56239         * tests/test-avltree_list.c: Likewise.
56240         * tests/test-avltree_oset.c: Likewise.
56241         * tests/test-avltreehash_list.c: Likewise.
56242         * tests/test-base64.c: Likewise.
56243         * tests/test-binary-io.c: Likewise.
56244         * tests/test-bitrotate.c: Likewise.
56245         * tests/test-btowc.c: Likewise.
56246         * tests/test-byteswap.c: Likewise.
56247         * tests/test-c-ctype.c: Likewise.
56248         * tests/test-c-stack.c: Likewise.
56249         * tests/test-c-strcasecmp.c: Likewise.
56250         * tests/test-c-strcasestr.c: Likewise.
56251         * tests/test-c-strncasecmp.c: Likewise.
56252         * tests/test-c-strstr.c: Likewise.
56253         * tests/test-canonicalize-lgpl.c: Likewise.
56254         * tests/test-canonicalize.c: Likewise.
56255         * tests/test-carray_list.c: Likewise.
56256         * tests/test-ceilf1.c: Likewise.
56257         * tests/test-ceilf2.c: Likewise.
56258         * tests/test-ceill.c: Likewise.
56259         * tests/test-chown.c: Likewise.
56260         * tests/test-cloexec.c: Likewise.
56261         * tests/test-copy-acl.c: Likewise.
56262         * tests/test-copy-file.c: Likewise.
56263         * tests/test-count-one-bits.c: Likewise.
56264         * tests/test-dprintf-posix.c: Likewise.
56265         * tests/test-dup2.c: Likewise.
56266         * tests/test-dup3.c: Likewise.
56267         * tests/test-duplocale.c: Likewise.
56268         * tests/test-fbufmode.c: Likewise.
56269         * tests/test-fchdir.c: Likewise.
56270         * tests/test-fchownat.c: Likewise.
56271         * tests/test-fcntl-safer.c: Likewise.
56272         * tests/test-fcntl.c: Likewise.
56273         * tests/test-fdopendir.c: Likewise.
56274         * tests/test-fdutimensat.c: Likewise.
56275         * tests/test-fflush2.c: Likewise.
56276         * tests/test-file-has-acl.c: Likewise.
56277         * tests/test-filevercmp.c: Likewise.
56278         * tests/test-flock.c: Likewise.
56279         * tests/test-floorf1.c: Likewise.
56280         * tests/test-floorf2.c: Likewise.
56281         * tests/test-floorl.c: Likewise.
56282         * tests/test-fnmatch.c: Likewise.
56283         * tests/test-fopen.h: Likewise.
56284         * tests/test-fpending.c: Likewise.
56285         * tests/test-fprintf-posix.c: Likewise.
56286         * tests/test-fpurge.c: Likewise.
56287         * tests/test-freadable.c: Likewise.
56288         * tests/test-freadahead.c: Likewise.
56289         * tests/test-freading.c: Likewise.
56290         * tests/test-freadptr.c: Likewise.
56291         * tests/test-freadptr2.c: Likewise.
56292         * tests/test-freadseek.c: Likewise.
56293         * tests/test-freopen.c: Likewise.
56294         * tests/test-frexp.c: Likewise.
56295         * tests/test-frexpl.c: Likewise.
56296         * tests/test-fseek.c: Likewise.
56297         * tests/test-fseeko.c: Likewise.
56298         * tests/test-fstatat.c: Likewise.
56299         * tests/test-fstrcmp.c: Likewise.
56300         * tests/test-fsync.c: Likewise.
56301         * tests/test-ftell.c: Likewise.
56302         * tests/test-ftello.c: Likewise.
56303         * tests/test-func.c: Likewise.
56304         * tests/test-futimens.c: Likewise.
56305         * tests/test-fwritable.c: Likewise.
56306         * tests/test-fwriting.c: Likewise.
56307         * tests/test-getcwd.c: Likewise.
56308         * tests/test-getdate.c: Likewise.
56309         * tests/test-getdelim.c: Likewise.
56310         * tests/test-getdtablesize.c: Likewise.
56311         * tests/test-getgroups.c: Likewise.
56312         * tests/test-getline.c: Likewise.
56313         * tests/test-getndelim2.c: Likewise.
56314         * tests/test-glob.c: Likewise.
56315         * tests/test-hash.c: Likewise.
56316         * tests/test-i-ring.c: Likewise.
56317         * tests/test-iconv-utf.c: Likewise.
56318         * tests/test-iconv.c: Likewise.
56319         * tests/test-idpriv-drop.c: Likewise.
56320         * tests/test-idpriv-droptemp.c: Likewise.
56321         * tests/test-inet_ntop.c: Likewise.
56322         * tests/test-inet_pton.c: Likewise.
56323         * tests/test-isblank.c: Likewise.
56324         * tests/test-isfinite.c: Likewise.
56325         * tests/test-isinf.c: Likewise.
56326         * tests/test-isnan.c: Likewise.
56327         * tests/test-isnand.h: Likewise.
56328         * tests/test-isnanf.h: Likewise.
56329         * tests/test-isnanl.h: Likewise.
56330         * tests/test-lchown.c: Likewise.
56331         * tests/test-ldexpl.c: Likewise.
56332         * tests/test-link.c: Likewise.
56333         * tests/test-linkat.c: Likewise.
56334         * tests/test-linked_list.c: Likewise.
56335         * tests/test-linkedhash_list.c: Likewise.
56336         * tests/test-localename.c: Likewise.
56337         * tests/test-lseek.c: Likewise.
56338         * tests/test-lstat.c: Likewise.
56339         * tests/test-mbmemcasecmp.c: Likewise.
56340         * tests/test-mbmemcasecoll.c: Likewise.
56341         * tests/test-mbrtowc.c: Likewise.
56342         * tests/test-mbscasecmp.c: Likewise.
56343         * tests/test-mbscasestr1.c: Likewise.
56344         * tests/test-mbscasestr2.c: Likewise.
56345         * tests/test-mbscasestr3.c: Likewise.
56346         * tests/test-mbscasestr4.c: Likewise.
56347         * tests/test-mbschr.c: Likewise.
56348         * tests/test-mbscspn.c: Likewise.
56349         * tests/test-mbsinit.c: Likewise.
56350         * tests/test-mbsncasecmp.c: Likewise.
56351         * tests/test-mbsnrtowcs.c: Likewise.
56352         * tests/test-mbspbrk.c: Likewise.
56353         * tests/test-mbspcasecmp.c: Likewise.
56354         * tests/test-mbsrchr.c: Likewise.
56355         * tests/test-mbsrtowcs.c: Likewise.
56356         * tests/test-mbsspn.c: Likewise.
56357         * tests/test-mbsstr1.c: Likewise.
56358         * tests/test-mbsstr2.c: Likewise.
56359         * tests/test-mbsstr3.c: Likewise.
56360         * tests/test-memchr.c: Likewise.
56361         * tests/test-memchr2.c: Likewise.
56362         * tests/test-memcmp.c: Likewise.
56363         * tests/test-memmem.c: Likewise.
56364         * tests/test-memrchr.c: Likewise.
56365         * tests/test-mkdir.c: Likewise.
56366         * tests/test-mkdirat.c: Likewise.
56367         * tests/test-mkfifo.c: Likewise.
56368         * tests/test-mkfifoat.c: Likewise.
56369         * tests/test-mknod.c: Likewise.
56370         * tests/test-nanosleep.c: Likewise.
56371         * tests/test-nl_langinfo.c: Likewise.
56372         * tests/test-obstack-printf.c: Likewise.
56373         * tests/test-open.c: Likewise.
56374         * tests/test-openat.c: Likewise.
56375         * tests/test-pipe-filter-gi1.c: Likewise.
56376         * tests/test-pipe-filter-gi2-main.c: Likewise.
56377         * tests/test-pipe-filter-ii1.c: Likewise.
56378         * tests/test-pipe-filter-ii2-main.c: Likewise.
56379         * tests/test-pipe2.c: Likewise.
56380         * tests/test-popen.h: Likewise.
56381         * tests/test-posixtm.c: Likewise.
56382         * tests/test-pread.c: Likewise.
56383         * tests/test-printf-frexp.c: Likewise.
56384         * tests/test-printf-frexpl.c: Likewise.
56385         * tests/test-printf-posix.c: Likewise.
56386         * tests/test-priv-set.c: Likewise.
56387         * tests/test-quotearg.c: Likewise.
56388         * tests/test-random_r.c: Likewise.
56389         * tests/test-rawmemchr.c: Likewise.
56390         * tests/test-rbtree_list.c: Likewise.
56391         * tests/test-rbtree_oset.c: Likewise.
56392         * tests/test-rbtreehash_list.c: Likewise.
56393         * tests/test-readlink.c: Likewise.
56394         * tests/test-remove.c: Likewise.
56395         * tests/test-rename.c: Likewise.
56396         * tests/test-renameat.c: Likewise.
56397         * tests/test-rmdir.c: Likewise.
56398         * tests/test-round1.c: Likewise.
56399         * tests/test-roundf1.c: Likewise.
56400         * tests/test-roundl.c: Likewise.
56401         * tests/test-safe-alloc.c: Likewise.
56402         * tests/test-sameacls.c: Likewise.
56403         * tests/test-set-mode-acl.c: Likewise.
56404         * tests/test-setenv.c: Likewise.
56405         * tests/test-sigaction.c: Likewise.
56406         * tests/test-signbit.c: Likewise.
56407         * tests/test-sleep.c: Likewise.
56408         * tests/test-snprintf-posix.c: Likewise.
56409         * tests/test-snprintf.c: Likewise.
56410         * tests/test-sprintf-posix.c: Likewise.
56411         * tests/test-stat-time.c: Likewise.
56412         * tests/test-stat.c: Likewise.
56413         * tests/test-strcasestr.c: Likewise.
56414         * tests/test-strchrnul.c: Likewise.
56415         * tests/test-strerror.c: Likewise.
56416         * tests/test-striconv.c: Likewise.
56417         * tests/test-striconveh.c: Likewise.
56418         * tests/test-striconveha.c: Likewise.
56419         * tests/test-strsignal.c: Likewise.
56420         * tests/test-strstr.c: Likewise.
56421         * tests/test-strtod.c: Likewise.
56422         * tests/test-strverscmp.c: Likewise.
56423         * tests/test-symlink.c: Likewise.
56424         * tests/test-symlinkat.c: Likewise.
56425         * tests/test-trunc1.c: Likewise.
56426         * tests/test-trunc2.c: Likewise.
56427         * tests/test-truncf1.c: Likewise.
56428         * tests/test-truncf2.c: Likewise.
56429         * tests/test-truncl.c: Likewise.
56430         * tests/test-uname.c: Likewise.
56431         * tests/test-unlink.c: Likewise.
56432         * tests/test-unlinkat.c: Likewise.
56433         * tests/test-unsetenv.c: Likewise.
56434         * tests/test-usleep.c: Likewise.
56435         * tests/test-utimens.c: Likewise.
56436         * tests/test-utimensat.c: Likewise.
56437         * tests/test-vasnprintf-posix.c: Likewise.
56438         * tests/test-vasnprintf-posix2.c: Likewise.
56439         * tests/test-vasnprintf.c: Likewise.
56440         * tests/test-vasprintf-posix.c: Likewise.
56441         * tests/test-vasprintf.c: Likewise.
56442         * tests/test-vdprintf-posix.c: Likewise.
56443         * tests/test-vfprintf-posix.c: Likewise.
56444         * tests/test-vprintf-posix.c: Likewise.
56445         * tests/test-vsnprintf-posix.c: Likewise.
56446         * tests/test-vsnprintf.c: Likewise.
56447         * tests/test-vsprintf-posix.c: Likewise.
56448         * tests/test-wcrtomb.c: Likewise.
56449         * tests/test-wcsnrtombs.c: Likewise.
56450         * tests/test-wcsrtombs.c: Likewise.
56451         * tests/test-wctype.c: Likewise.
56452         * tests/test-wcwidth.c: Likewise.
56453         * tests/test-xfprintf-posix.c: Likewise.
56454         * tests/test-xmemdup0.c: Likewise.
56455         * tests/test-xprintf-posix.c: Likewise.
56456         * tests/test-xvasprintf.c: Likewise.
56457         * tests/unicase/test-locale-language.c: Likewise.
56458         * tests/unicase/test-mapping-part1.h: Likewise.
56459         * tests/unicase/test-predicate-part1.h: Likewise.
56460         * tests/unicase/test-u8-casecmp.c: Likewise.
56461         * tests/unicase/test-u8-casecoll.c: Likewise.
56462         * tests/unicase/test-u8-casefold.c: Likewise.
56463         * tests/unicase/test-u8-is-cased.c: Likewise.
56464         * tests/unicase/test-u8-is-casefolded.c: Likewise.
56465         * tests/unicase/test-u8-is-lowercase.c: Likewise.
56466         * tests/unicase/test-u8-is-titlecase.c: Likewise.
56467         * tests/unicase/test-u8-is-uppercase.c: Likewise.
56468         * tests/unicase/test-u8-tolower.c: Likewise.
56469         * tests/unicase/test-u8-totitle.c: Likewise.
56470         * tests/unicase/test-u8-toupper.c: Likewise.
56471         * tests/unicase/test-u16-casecmp.c: Likewise.
56472         * tests/unicase/test-u16-casecoll.c: Likewise.
56473         * tests/unicase/test-u16-casefold.c: Likewise.
56474         * tests/unicase/test-u16-is-cased.c: Likewise.
56475         * tests/unicase/test-u16-is-casefolded.c: Likewise.
56476         * tests/unicase/test-u16-is-lowercase.c: Likewise.
56477         * tests/unicase/test-u16-is-titlecase.c: Likewise.
56478         * tests/unicase/test-u16-is-uppercase.c: Likewise.
56479         * tests/unicase/test-u16-tolower.c: Likewise.
56480         * tests/unicase/test-u16-totitle.c: Likewise.
56481         * tests/unicase/test-u16-toupper.c: Likewise.
56482         * tests/unicase/test-u32-casecmp.c: Likewise.
56483         * tests/unicase/test-u32-casecoll.c: Likewise.
56484         * tests/unicase/test-u32-casefold.c: Likewise.
56485         * tests/unicase/test-u32-is-cased.c: Likewise.
56486         * tests/unicase/test-u32-is-casefolded.c: Likewise.
56487         * tests/unicase/test-u32-is-lowercase.c: Likewise.
56488         * tests/unicase/test-u32-is-titlecase.c: Likewise.
56489         * tests/unicase/test-u32-is-uppercase.c: Likewise.
56490         * tests/unicase/test-u32-tolower.c: Likewise.
56491         * tests/unicase/test-u32-totitle.c: Likewise.
56492         * tests/unicase/test-u32-toupper.c: Likewise.
56493         * tests/unicase/test-ulc-casecmp.c: Likewise.
56494         * tests/unicase/test-ulc-casecoll.c: Likewise.
56495         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56496         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56497         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56498         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56499         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56500         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56501         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56502         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56503         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56504         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56505         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56506         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56507         * tests/unictype/test-bidi_byname.c: Likewise.
56508         * tests/unictype/test-bidi_name.c: Likewise.
56509         * tests/unictype/test-bidi_of.c: Likewise.
56510         * tests/unictype/test-bidi_test.c: Likewise.
56511         * tests/unictype/test-block_list.c: Likewise.
56512         * tests/unictype/test-block_of.c: Likewise.
56513         * tests/unictype/test-block_test.c: Likewise.
56514         * tests/unictype/test-categ_and.c: Likewise.
56515         * tests/unictype/test-categ_and_not.c: Likewise.
56516         * tests/unictype/test-categ_byname.c: Likewise.
56517         * tests/unictype/test-categ_name.c: Likewise.
56518         * tests/unictype/test-categ_none.c: Likewise.
56519         * tests/unictype/test-categ_of.c: Likewise.
56520         * tests/unictype/test-categ_or.c: Likewise.
56521         * tests/unictype/test-categ_test_withtable.c: Likewise.
56522         * tests/unictype/test-combining.c: Likewise.
56523         * tests/unictype/test-decdigit.c: Likewise.
56524         * tests/unictype/test-digit.c: Likewise.
56525         * tests/unictype/test-mirror.c: Likewise.
56526         * tests/unictype/test-numeric.c: Likewise.
56527         * tests/unictype/test-pr_byname.c: Likewise.
56528         * tests/unictype/test-pr_test.c: Likewise.
56529         * tests/unictype/test-predicate-part1.h: Likewise.
56530         * tests/unictype/test-scripts.c: Likewise.
56531         * tests/unictype/test-sy_c_ident.c: Likewise.
56532         * tests/unictype/test-sy_java_ident.c: Likewise.
56533         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
56534         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
56535         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
56536         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
56537         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
56538         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
56539         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
56540         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
56541         * tests/uninorm/test-canonical-decomposition.c: Likewise.
56542         * tests/uninorm/test-compat-decomposition.c: Likewise.
56543         * tests/uninorm/test-composition.c: Likewise.
56544         * tests/uninorm/test-decomposing-form.c: Likewise.
56545         * tests/uninorm/test-decomposition.c: Likewise.
56546         * tests/uninorm/test-u8-nfc.c: Likewise.
56547         * tests/uninorm/test-u8-nfd.c: Likewise.
56548         * tests/uninorm/test-u8-nfkc.c: Likewise.
56549         * tests/uninorm/test-u8-nfkd.c: Likewise.
56550         * tests/uninorm/test-u8-normcmp.c: Likewise.
56551         * tests/uninorm/test-u8-normcoll.c: Likewise.
56552         * tests/uninorm/test-u16-nfc.c: Likewise.
56553         * tests/uninorm/test-u16-nfd.c: Likewise.
56554         * tests/uninorm/test-u16-nfkc.c: Likewise.
56555         * tests/uninorm/test-u16-nfkd.c: Likewise.
56556         * tests/uninorm/test-u16-normcmp.c: Likewise.
56557         * tests/uninorm/test-u16-normcoll.c: Likewise.
56558         * tests/uninorm/test-u32-nfc.c: Likewise.
56559         * tests/uninorm/test-u32-nfd.c: Likewise.
56560         * tests/uninorm/test-u32-nfkc.c: Likewise.
56561         * tests/uninorm/test-u32-nfkd.c: Likewise.
56562         * tests/uninorm/test-u32-normalize-big.c: Likewise.
56563         * tests/uninorm/test-u32-normcmp.c: Likewise.
56564         * tests/uninorm/test-u32-normcoll.c: Likewise.
56565         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
56566         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56567         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56568         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56569         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56570         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56571         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56572         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56573         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56574         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56575         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56576         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56577         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56578         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56579         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56580         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56581         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56582         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56583         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56584         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56585         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56586         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56587         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56588         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56589         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56590         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56591         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56592         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56593         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56594         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
56595         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
56596         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
56597         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
56598         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56599         * tests/uniwidth/test-u8-width.c: Likewise.
56600         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56601         * tests/uniwidth/test-u16-width.c: Likewise.
56602         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56603         * tests/uniwidth/test-u32-width.c: Likewise.
56604         * tests/uniwidth/test-uc_width.c: Likewise.
56605         * tests/uniwidth/test-uc_width2.c: Likewise.
56606         * modules/acl-tests (Files): Add tests/macros.h.
56607         * modules/areadlink-tests (Files): Likewise.
56608         * modules/areadlink-with-size-tests (Files): Likewise.
56609         * modules/areadlinkat-tests (Files): Likewise.
56610         * modules/areadlinkat-with-size-tests (Files): Likewise.
56611         * modules/argmatch-tests (Files): Likewise.
56612         * modules/argv-iter-tests (Files): Likewise.
56613         * modules/array-list-tests (Files): Likewise.
56614         * modules/array-mergesort-tests (Files): Likewise.
56615         * modules/array-oset-tests (Files): Likewise.
56616         * modules/avltree-list-tests (Files): Likewise.
56617         * modules/avltree-oset-tests (Files): Likewise.
56618         * modules/avltreehash-list-tests (Files): Likewise.
56619         * modules/base64-tests (Files): Likewise.
56620         * modules/binary-io-tests (Files): Likewise.
56621         * modules/bitrotate-tests (Files): Likewise.
56622         * modules/btowc-tests (Files): Likewise.
56623         * modules/byteswap-tests (Files): Likewise.
56624         * modules/c-ctype-tests (Files): Likewise.
56625         * modules/c-stack-tests (Files): Likewise.
56626         * modules/c-strcase-tests (Files): Likewise.
56627         * modules/c-strcasestr-tests (Files): Likewise.
56628         * modules/c-strstr-tests (Files): Likewise.
56629         * modules/canonicalize-lgpl-tests (Files): Likewise.
56630         * modules/canonicalize-tests (Files): Likewise.
56631         * modules/carray-list-tests (Files): Likewise.
56632         * modules/ceilf-tests (Files): Likewise.
56633         * modules/ceill-tests (Files): Likewise.
56634         * modules/chown-tests (Files): Likewise.
56635         * modules/cloexec-tests (Files): Likewise.
56636         * modules/copy-file-tests (Files): Likewise.
56637         * modules/count-one-bits-tests (Files): Likewise.
56638         * modules/dprintf-posix-tests (Files): Likewise.
56639         * modules/dup2-tests (Files): Likewise.
56640         * modules/dup3-tests (Files): Likewise.
56641         * modules/duplocale-tests (Files): Likewise.
56642         * modules/fbufmode-tests (Files): Likewise.
56643         * modules/fchdir-tests (Files): Likewise.
56644         * modules/fcntl-safer-tests (Files): Likewise.
56645         * modules/fcntl-tests (Files): Likewise.
56646         * modules/fdopendir-tests (Files): Likewise.
56647         * modules/fdutimensat-tests (Files): Likewise.
56648         * modules/fflush-tests (Files): Likewise.
56649         * modules/filevercmp-tests (Files): Likewise.
56650         * modules/flock-tests (Files): Likewise.
56651         * modules/floorf-tests (Files): Likewise.
56652         * modules/floorl-tests (Files): Likewise.
56653         * modules/fnmatch-tests (Files): Likewise.
56654         * modules/fopen-safer-tests (Files): Likewise.
56655         * modules/fopen-tests (Files): Likewise.
56656         * modules/fpending-tests (Files): Likewise.
56657         * modules/fprintf-posix-tests (Files): Likewise.
56658         * modules/fpurge-tests (Files): Likewise.
56659         * modules/freadable-tests (Files): Likewise.
56660         * modules/freadahead-tests (Files): Likewise.
56661         * modules/freading-tests (Files): Likewise.
56662         * modules/freadptr-tests (Files): Likewise.
56663         * modules/freadseek-tests (Files): Likewise.
56664         * modules/freopen-tests (Files): Likewise.
56665         * modules/frexp-nolibm-tests (Files): Likewise.
56666         * modules/frexp-tests (Files): Likewise.
56667         * modules/frexpl-nolibm-tests (Files): Likewise.
56668         * modules/frexpl-tests (Files): Likewise.
56669         * modules/fseek-tests (Files): Likewise.
56670         * modules/fseeko-tests (Files): Likewise.
56671         * modules/fstrcmp-tests (Files): Likewise.
56672         * modules/fsync-tests (Files): Likewise.
56673         * modules/ftell-tests (Files): Likewise.
56674         * modules/ftello-tests (Files): Likewise.
56675         * modules/func-tests (Files): Likewise.
56676         * modules/futimens-tests (Files): Likewise.
56677         * modules/fwritable-tests (Files): Likewise.
56678         * modules/fwriting-tests (Files): Likewise.
56679         * modules/getcwd-tests (Files): Likewise.
56680         * modules/getdate-tests (Files): Likewise.
56681         * modules/getdelim-tests (Files): Likewise.
56682         * modules/getdtablesize-tests (Files): Likewise.
56683         * modules/getgroups-tests (Files): Likewise.
56684         * modules/getline-tests (Files): Likewise.
56685         * modules/getndelim2-tests (Files): Likewise.
56686         * modules/glob-tests (Files): Likewise.
56687         * modules/hash-tests (Files): Likewise.
56688         * modules/i-ring-tests (Files): Likewise.
56689         * modules/iconv-tests (Files): Likewise.
56690         * modules/iconv_open-utf-tests (Files): Likewise.
56691         * modules/idpriv-drop-tests (Files): Likewise.
56692         * modules/idpriv-droptemp-tests (Files): Likewise.
56693         * modules/inet_ntop-tests (Files): Likewise.
56694         * modules/inet_pton-tests (Files): Likewise.
56695         * modules/isblank-tests (Files): Likewise.
56696         * modules/isfinite-tests (Files): Likewise.
56697         * modules/isinf-tests (Files): Likewise.
56698         * modules/isnan-tests (Files): Likewise.
56699         * modules/isnand-nolibm-tests (Files): Likewise.
56700         * modules/isnand-tests (Files): Likewise.
56701         * modules/isnanf-nolibm-tests (Files): Likewise.
56702         * modules/isnanf-tests (Files): Likewise.
56703         * modules/isnanl-nolibm-tests (Files): Likewise.
56704         * modules/isnanl-tests (Files): Likewise.
56705         * modules/lchown-tests (Files): Likewise.
56706         * modules/ldexpl-tests (Files): Likewise.
56707         * modules/link-tests (Files): Likewise.
56708         * modules/linkat-tests (Files): Likewise.
56709         * modules/linked-list-tests (Files): Likewise.
56710         * modules/linkedhash-list-tests (Files): Likewise.
56711         * modules/localename-tests (Files): Likewise.
56712         * modules/lseek-tests (Files): Likewise.
56713         * modules/lstat-tests (Files): Likewise.
56714         * modules/mbmemcasecmp-tests (Files): Likewise.
56715         * modules/mbmemcasecoll-tests (Files): Likewise.
56716         * modules/mbrtowc-tests (Files): Likewise.
56717         * modules/mbscasecmp-tests (Files): Likewise.
56718         * modules/mbscasestr-tests (Files): Likewise.
56719         * modules/mbschr-tests (Files): Likewise.
56720         * modules/mbscspn-tests (Files): Likewise.
56721         * modules/mbsinit-tests (Files): Likewise.
56722         * modules/mbsncasecmp-tests (Files): Likewise.
56723         * modules/mbsnrtowcs-tests (Files): Likewise.
56724         * modules/mbspbrk-tests (Files): Likewise.
56725         * modules/mbspcasecmp-tests (Files): Likewise.
56726         * modules/mbsrchr-tests (Files): Likewise.
56727         * modules/mbsrtowcs-tests (Files): Likewise.
56728         * modules/mbsspn-tests (Files): Likewise.
56729         * modules/mbsstr-tests (Files): Likewise.
56730         * modules/memchr-tests (Files): Likewise.
56731         * modules/memchr2-tests (Files): Likewise.
56732         * modules/memcmp-tests (Files): Likewise.
56733         * modules/memmem-tests (Files): Likewise.
56734         * modules/memrchr-tests (Files): Likewise.
56735         * modules/mkdir-tests (Files): Likewise.
56736         * modules/mkfifo-tests (Files): Likewise.
56737         * modules/mkfifoat-tests (Files): Likewise.
56738         * modules/mknod-tests (Files): Likewise.
56739         * modules/nanosleep-tests (Files): Likewise.
56740         * modules/nl_langinfo-tests (Files): Likewise.
56741         * modules/obstack-printf-tests (Files): Likewise.
56742         * modules/open-tests (Files): Likewise.
56743         * modules/openat-tests (Files): Likewise.
56744         * modules/pipe-filter-gi-tests (Files): Likewise.
56745         * modules/pipe-filter-ii-tests (Files): Likewise.
56746         * modules/pipe2-tests (Files): Likewise.
56747         * modules/popen-safer-tests (Files): Likewise.
56748         * modules/popen-tests (Files): Likewise.
56749         * modules/posixtm-tests (Files): Likewise.
56750         * modules/pread-tests (Files): Likewise.
56751         * modules/printf-frexp-tests (Files): Likewise.
56752         * modules/printf-frexpl-tests (Files): Likewise.
56753         * modules/printf-posix-tests (Files): Likewise.
56754         * modules/priv-set-tests (Files): Likewise.
56755         * modules/quotearg-tests (Files): Likewise.
56756         * modules/random_r-tests (Files): Likewise.
56757         * modules/rawmemchr-tests (Files): Likewise.
56758         * modules/rbtree-list-tests (Files): Likewise.
56759         * modules/rbtree-oset-tests (Files): Likewise.
56760         * modules/rbtreehash-list-tests (Files): Likewise.
56761         * modules/readlink-tests (Files): Likewise.
56762         * modules/remove-tests (Files): Likewise.
56763         * modules/rename-tests (Files): Likewise.
56764         * modules/renameat-tests (Files): Likewise.
56765         * modules/rmdir-tests (Files): Likewise.
56766         * modules/round-tests (Files): Likewise.
56767         * modules/roundf-tests (Files): Likewise.
56768         * modules/roundl-tests (Files): Likewise.
56769         * modules/safe-alloc-tests (Files): Likewise.
56770         * modules/setenv-tests (Files): Likewise.
56771         * modules/sigaction-tests (Files): Likewise.
56772         * modules/signbit-tests (Files): Likewise.
56773         * modules/sleep-tests (Files): Likewise.
56774         * modules/snprintf-posix-tests (Files): Likewise.
56775         * modules/snprintf-tests (Files): Likewise.
56776         * modules/sprintf-posix-tests (Files): Likewise.
56777         * modules/stat-tests (Files): Likewise.
56778         * modules/stat-time-tests (Files): Likewise.
56779         * modules/strcasestr-tests (Files): Likewise.
56780         * modules/strchrnul-tests (Files): Likewise.
56781         * modules/strerror-tests (Files): Likewise.
56782         * modules/striconv-tests (Files): Likewise.
56783         * modules/striconveh-tests (Files): Likewise.
56784         * modules/striconveha-tests (Files): Likewise.
56785         * modules/strsignal-tests (Files): Likewise.
56786         * modules/strstr-tests (Files): Likewise.
56787         * modules/strtod-tests (Files): Likewise.
56788         * modules/strverscmp-tests (Files): Likewise.
56789         * modules/symlink-tests (Files): Likewise.
56790         * modules/symlinkat-tests (Files): Likewise.
56791         * modules/trunc-tests (Files): Likewise.
56792         * modules/truncf-tests (Files): Likewise.
56793         * modules/truncl-tests (Files): Likewise.
56794         * modules/uname-tests (Files): Likewise.
56795         * modules/unicase/cased-tests (Files): Likewise.
56796         * modules/unicase/ignorable-tests (Files): Likewise.
56797         * modules/unicase/locale-language-tests (Files): Likewise.
56798         * modules/unicase/tolower-tests (Files): Likewise.
56799         * modules/unicase/totitle-tests (Files): Likewise.
56800         * modules/unicase/toupper-tests (Files): Likewise.
56801         * modules/unicase/u8-casecmp-tests (Files): Likewise.
56802         * modules/unicase/u8-casecoll-tests (Files): Likewise.
56803         * modules/unicase/u8-casefold-tests (Files): Likewise.
56804         * modules/unicase/u8-is-cased-tests (Files): Likewise.
56805         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
56806         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
56807         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
56808         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
56809         * modules/unicase/u8-tolower-tests (Files): Likewise.
56810         * modules/unicase/u8-totitle-tests (Files): Likewise.
56811         * modules/unicase/u8-toupper-tests (Files): Likewise.
56812         * modules/unicase/u16-casecmp-tests (Files): Likewise.
56813         * modules/unicase/u16-casecoll-tests (Files): Likewise.
56814         * modules/unicase/u16-casefold-tests (Files): Likewise.
56815         * modules/unicase/u16-is-cased-tests (Files): Likewise.
56816         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
56817         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
56818         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
56819         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
56820         * modules/unicase/u16-tolower-tests (Files): Likewise.
56821         * modules/unicase/u16-totitle-tests (Files): Likewise.
56822         * modules/unicase/u16-toupper-tests (Files): Likewise.
56823         * modules/unicase/u32-casecmp-tests (Files): Likewise.
56824         * modules/unicase/u32-casecoll-tests (Files): Likewise.
56825         * modules/unicase/u32-casefold-tests (Files): Likewise.
56826         * modules/unicase/u32-is-cased-tests (Files): Likewise.
56827         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
56828         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
56829         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
56830         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
56831         * modules/unicase/u32-tolower-tests (Files): Likewise.
56832         * modules/unicase/u32-totitle-tests (Files): Likewise.
56833         * modules/unicase/u32-toupper-tests (Files): Likewise.
56834         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
56835         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
56836         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
56837         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
56838         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
56839         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
56840         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
56841         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
56842         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
56843         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
56844         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
56845         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
56846         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
56847         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
56848         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
56849         * modules/unictype/bidicategory-name-tests (Files): Likewise.
56850         * modules/unictype/bidicategory-of-tests (Files): Likewise.
56851         * modules/unictype/bidicategory-test-tests (Files): Likewise.
56852         * modules/unictype/block-list-tests (Files): Likewise.
56853         * modules/unictype/block-of-tests (Files): Likewise.
56854         * modules/unictype/block-test-tests (Files): Likewise.
56855         * modules/unictype/category-C-tests (Files): Likewise.
56856         * modules/unictype/category-Cc-tests (Files): Likewise.
56857         * modules/unictype/category-Cf-tests (Files): Likewise.
56858         * modules/unictype/category-Cn-tests (Files): Likewise.
56859         * modules/unictype/category-Co-tests (Files): Likewise.
56860         * modules/unictype/category-Cs-tests (Files): Likewise.
56861         * modules/unictype/category-L-tests (Files): Likewise.
56862         * modules/unictype/category-Ll-tests (Files): Likewise.
56863         * modules/unictype/category-Lm-tests (Files): Likewise.
56864         * modules/unictype/category-Lo-tests (Files): Likewise.
56865         * modules/unictype/category-Lt-tests (Files): Likewise.
56866         * modules/unictype/category-Lu-tests (Files): Likewise.
56867         * modules/unictype/category-M-tests (Files): Likewise.
56868         * modules/unictype/category-Mc-tests (Files): Likewise.
56869         * modules/unictype/category-Me-tests (Files): Likewise.
56870         * modules/unictype/category-Mn-tests (Files): Likewise.
56871         * modules/unictype/category-N-tests (Files): Likewise.
56872         * modules/unictype/category-Nd-tests (Files): Likewise.
56873         * modules/unictype/category-Nl-tests (Files): Likewise.
56874         * modules/unictype/category-No-tests (Files): Likewise.
56875         * modules/unictype/category-P-tests (Files): Likewise.
56876         * modules/unictype/category-Pc-tests (Files): Likewise.
56877         * modules/unictype/category-Pd-tests (Files): Likewise.
56878         * modules/unictype/category-Pe-tests (Files): Likewise.
56879         * modules/unictype/category-Pf-tests (Files): Likewise.
56880         * modules/unictype/category-Pi-tests (Files): Likewise.
56881         * modules/unictype/category-Po-tests (Files): Likewise.
56882         * modules/unictype/category-Ps-tests (Files): Likewise.
56883         * modules/unictype/category-S-tests (Files): Likewise.
56884         * modules/unictype/category-Sc-tests (Files): Likewise.
56885         * modules/unictype/category-Sk-tests (Files): Likewise.
56886         * modules/unictype/category-Sm-tests (Files): Likewise.
56887         * modules/unictype/category-So-tests (Files): Likewise.
56888         * modules/unictype/category-Z-tests (Files): Likewise.
56889         * modules/unictype/category-Zl-tests (Files): Likewise.
56890         * modules/unictype/category-Zp-tests (Files): Likewise.
56891         * modules/unictype/category-Zs-tests (Files): Likewise.
56892         * modules/unictype/category-and-not-tests (Files): Likewise.
56893         * modules/unictype/category-and-tests (Files): Likewise.
56894         * modules/unictype/category-byname-tests (Files): Likewise.
56895         * modules/unictype/category-name-tests (Files): Likewise.
56896         * modules/unictype/category-none-tests (Files): Likewise.
56897         * modules/unictype/category-of-tests (Files): Likewise.
56898         * modules/unictype/category-or-tests (Files): Likewise.
56899         * modules/unictype/category-test-withtable-tests (Files): Likewise.
56900         * modules/unictype/combining-class-tests (Files): Likewise.
56901         * modules/unictype/ctype-alnum-tests (Files): Likewise.
56902         * modules/unictype/ctype-alpha-tests (Files): Likewise.
56903         * modules/unictype/ctype-blank-tests (Files): Likewise.
56904         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
56905         * modules/unictype/ctype-digit-tests (Files): Likewise.
56906         * modules/unictype/ctype-graph-tests (Files): Likewise.
56907         * modules/unictype/ctype-lower-tests (Files): Likewise.
56908         * modules/unictype/ctype-print-tests (Files): Likewise.
56909         * modules/unictype/ctype-punct-tests (Files): Likewise.
56910         * modules/unictype/ctype-space-tests (Files): Likewise.
56911         * modules/unictype/ctype-upper-tests (Files): Likewise.
56912         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
56913         * modules/unictype/decimal-digit-tests (Files): Likewise.
56914         * modules/unictype/digit-tests (Files): Likewise.
56915         * modules/unictype/mirror-tests (Files): Likewise.
56916         * modules/unictype/numeric-tests (Files): Likewise.
56917         * modules/unictype/property-alphabetic-tests (Files): Likewise.
56918         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
56919         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
56920         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
56921         Likewise.
56922         * modules/unictype/property-bidi-block-separator-tests (Files):
56923         Likewise.
56924         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
56925         Likewise.
56926         * modules/unictype/property-bidi-common-separator-tests (Files):
56927         Likewise.
56928         * modules/unictype/property-bidi-control-tests (Files): Likewise.
56929         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
56930         Likewise.
56931         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
56932         Likewise.
56933         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
56934         Likewise.
56935         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
56936         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
56937         Likewise.
56938         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
56939         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
56940         Likewise.
56941         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
56942         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
56943         * modules/unictype/property-bidi-segment-separator-tests (Files):
56944         Likewise.
56945         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
56946         * modules/unictype/property-byname-tests (Files): Likewise.
56947         * modules/unictype/property-combining-tests (Files): Likewise.
56948         * modules/unictype/property-composite-tests (Files): Likewise.
56949         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
56950         * modules/unictype/property-dash-tests (Files): Likewise.
56951         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
56952         * modules/unictype/property-default-ignorable-code-point-tests (Files):
56953         Likewise.
56954         * modules/unictype/property-deprecated-tests (Files): Likewise.
56955         * modules/unictype/property-diacritic-tests (Files): Likewise.
56956         * modules/unictype/property-extender-tests (Files): Likewise.
56957         * modules/unictype/property-format-control-tests (Files): Likewise.
56958         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
56959         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
56960         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
56961         * modules/unictype/property-hex-digit-tests (Files): Likewise.
56962         * modules/unictype/property-hyphen-tests (Files): Likewise.
56963         * modules/unictype/property-id-continue-tests (Files): Likewise.
56964         * modules/unictype/property-id-start-tests (Files): Likewise.
56965         * modules/unictype/property-ideographic-tests (Files): Likewise.
56966         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
56967         * modules/unictype/property-ids-trinary-operator-tests (Files):
56968         Likewise.
56969         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
56970         * modules/unictype/property-iso-control-tests (Files): Likewise.
56971         * modules/unictype/property-join-control-tests (Files): Likewise.
56972         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
56973         * modules/unictype/property-line-separator-tests (Files): Likewise.
56974         * modules/unictype/property-logical-order-exception-tests (Files):
56975         Likewise.
56976         * modules/unictype/property-lowercase-tests (Files): Likewise.
56977         * modules/unictype/property-math-tests (Files): Likewise.
56978         * modules/unictype/property-non-break-tests (Files): Likewise.
56979         * modules/unictype/property-not-a-character-tests (Files): Likewise.
56980         * modules/unictype/property-numeric-tests (Files): Likewise.
56981         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
56982         * modules/unictype/property-other-default-ignorable-code-point-tests
56983         (Files): Likewise.
56984         * modules/unictype/property-other-grapheme-extend-tests (Files):
56985         Likewise.
56986         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
56987         * modules/unictype/property-other-id-start-tests (Files): Likewise.
56988         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
56989         * modules/unictype/property-other-math-tests (Files): Likewise.
56990         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
56991         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
56992         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
56993         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
56994         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
56995         * modules/unictype/property-private-use-tests (Files): Likewise.
56996         * modules/unictype/property-punctuation-tests (Files): Likewise.
56997         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
56998         * modules/unictype/property-radical-tests (Files): Likewise.
56999         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
57000         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
57001         * modules/unictype/property-space-tests (Files): Likewise.
57002         * modules/unictype/property-terminal-punctuation-tests (Files):
57003         Likewise.
57004         * modules/unictype/property-test-tests (Files): Likewise.
57005         * modules/unictype/property-titlecase-tests (Files): Likewise.
57006         * modules/unictype/property-unassigned-code-value-tests (Files):
57007         Likewise.
57008         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
57009         * modules/unictype/property-uppercase-tests (Files): Likewise.
57010         * modules/unictype/property-variation-selector-tests (Files): Likewise.
57011         * modules/unictype/property-white-space-tests (Files): Likewise.
57012         * modules/unictype/property-xid-continue-tests (Files): Likewise.
57013         * modules/unictype/property-xid-start-tests (Files): Likewise.
57014         * modules/unictype/property-zero-width-tests (Files): Likewise.
57015         * modules/unictype/scripts-tests (Files): Likewise.
57016         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
57017         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
57018         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
57019         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
57020         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
57021         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
57022         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
57023         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
57024         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
57025         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
57026         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
57027         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
57028         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
57029         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
57030         * modules/uninorm/composition-tests (Files): Likewise.
57031         * modules/uninorm/decomposing-form-tests (Files): Likewise.
57032         * modules/uninorm/decomposition-tests (Files): Likewise.
57033         * modules/uninorm/filter-tests (Files): Likewise.
57034         * modules/uninorm/nfc-tests (Files): Likewise.
57035         * modules/uninorm/nfd-tests (Files): Likewise.
57036         * modules/uninorm/nfkc-tests (Files): Likewise.
57037         * modules/uninorm/nfkd-tests (Files): Likewise.
57038         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
57039         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
57040         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
57041         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
57042         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
57043         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
57044         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
57045         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
57046         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
57047         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
57048         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
57049         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
57050         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
57051         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
57052         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
57053         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
57054         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
57055         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
57056         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
57057         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
57058         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
57059         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
57060         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
57061         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
57062         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
57063         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
57064         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
57065         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
57066         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
57067         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
57068         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
57069         * modules/uniwidth/u8-width-tests (Files): Likewise.
57070         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
57071         * modules/uniwidth/u16-width-tests (Files): Likewise.
57072         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
57073         * modules/uniwidth/u32-width-tests (Files): Likewise.
57074         * modules/uniwidth/width-tests (Files): Likewise.
57075         * modules/unlink-tests (Files): Likewise.
57076         * modules/unsetenv-tests (Files): Likewise.
57077         * modules/usleep-tests (Files): Likewise.
57078         * modules/utimens-tests (Files): Likewise.
57079         * modules/utimensat-tests (Files): Likewise.
57080         * modules/vasnprintf-posix-tests (Files): Likewise.
57081         * modules/vasnprintf-tests (Files): Likewise.
57082         * modules/vasprintf-posix-tests (Files): Likewise.
57083         * modules/vasprintf-tests (Files): Likewise.
57084         * modules/vdprintf-posix-tests (Files): Likewise.
57085         * modules/vfprintf-posix-tests (Files): Likewise.
57086         * modules/vprintf-posix-tests (Files): Likewise.
57087         * modules/vsnprintf-posix-tests (Files): Likewise.
57088         * modules/vsnprintf-tests (Files): Likewise.
57089         * modules/vsprintf-posix-tests (Files): Likewise.
57090         * modules/wcrtomb-tests (Files): Likewise.
57091         * modules/wcsnrtombs-tests (Files): Likewise.
57092         * modules/wcsrtombs-tests (Files): Likewise.
57093         * modules/wctype-tests (Files): Likewise.
57094         * modules/wcwidth-tests (Files): Likewise.
57095         * modules/xmemdup0-tests (Files): Likewise.
57096         * modules/xprintf-posix-tests (Files): Likewise.
57097         * modules/xvasprintf-tests (Files): Likewise.
57099 2009-12-24  Eric Blake  <ebb9@byu.net>
57101         test-nanosleep: fix typo
57102         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
57103         patch.
57104         Reported by Bruno Haible.
57106 2009-12-24  Bruno Haible  <bruno@clisp.org>
57108         Reduce namespace pollution on glibc systems.
57109         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
57110         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
57111         systems.
57112         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
57113         <getopt.h> on glibc systems.
57114         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
57115         systems.
57116         * lib/fcntl.c: Include <unistd.h> here instead.
57118 2009-12-24  Bruno Haible  <bruno@clisp.org>
57120         * lib/stdlib.in.h (includes): Fix typo in today's commit.
57122 2009-12-24  Eric Blake  <ebb9@byu.net>
57124         tests: add signature checks
57125         * tests/signature.h (SIGNATURE_CHECK): New file.
57126         * modules/atexit-tests (Files): Use it.
57127         * modules/btowc-tests (Files): Likewise.
57128         * modules/canonicalize-lgpl-tests (Files): Likewise.
57129         * modules/ceilf-tests (Files): Likewise.
57130         * modules/ceill-tests (Files): Likewise.
57131         * modules/chown-tests (Files): Likewise.
57132         * modules/dprintf-posix-tests (Files): Likewise.
57133         * modules/dup2-tests (Files): Likewise.
57134         * modules/dup3-tests (Files): Likewise.
57135         * modules/duplocale-tests (Files): Likewise.
57136         * modules/fchdir-tests (Files): Likewise.
57137         * modules/fcntl-tests (Files): Likewise.
57138         * modules/fdopendir-tests (Files): Likewise.
57139         * modules/fflush-tests (Files): Likewise.
57140         * modules/flock-tests (Files): Likewise.
57141         * modules/floorf-tests (Files): Likewise.
57142         * modules/floorl-tests (Files): Likewise.
57143         * modules/fnmatch-tests (Files): Likewise.
57144         * modules/fopen-tests (Files): Likewise.
57145         * modules/fprintf-posix-tests (Files): Likewise.
57146         * modules/freopen-tests (Files): Likewise.
57147         * modules/frexp-nolibm-tests (Files): Likewise.
57148         * modules/frexp-tests (Files): Likewise.
57149         * modules/frexpl-nolibm-tests (Files): Likewise.
57150         * modules/frexpl-tests (Files): Likewise.
57151         * modules/fseek-tests (Files): Likewise.
57152         * modules/fseeko-tests (Files): Likewise.
57153         * modules/fsync-tests (Files): Likewise.
57154         * modules/ftell-tests (Files): Likewise.
57155         * modules/ftello-tests (Files): Likewise.
57156         * modules/futimens-tests (Files): Likewise.
57157         * modules/getaddrinfo-tests (Files): Likewise.
57158         * modules/getcwd-tests (Files): Likewise.
57159         * modules/getdelim-tests (Files): Likewise.
57160         * modules/getdtablesize-tests (Files): Likewise.
57161         * modules/getgroups-tests (Files): Likewise.
57162         * modules/gethostname-tests (Files): Likewise.
57163         * modules/getline-tests (Files): Likewise.
57164         * modules/getopt-posix-tests (Files): Likewise.
57165         * modules/gettimeofday-tests (Files): Likewise.
57166         * modules/glob-tests (Files): Likewise.
57167         * modules/iconv-tests (Files): Likewise.
57168         * modules/inet_ntop-tests (Files): Likewise.
57169         * modules/inet_pton-tests (Files): Likewise.
57170         * modules/isblank-tests (Files): Likewise.
57171         * modules/lchown-tests (Files): Likewise.
57172         * modules/ldexpl-tests (Files): Likewise.
57173         * modules/link-tests (Files): Likewise.
57174         * modules/linkat-tests (Files): Likewise.
57175         * modules/lseek-tests (Files): Likewise.
57176         * modules/lstat-tests (Files): Likewise.
57177         * modules/mbrtowc-tests (Files): Likewise.
57178         * modules/mbsinit-tests (Files): Likewise.
57179         * modules/mbsnrtowcs-tests (Files): Likewise.
57180         * modules/mbsrtowcs-tests (Files): Likewise.
57181         * modules/memchr-tests (Files): Likewise.
57182         * modules/memcmp-tests (Files): Likewise.
57183         * modules/memmem-tests (Files): Likewise.
57184         * modules/memrchr-tests (Files): Likewise.
57185         * modules/mkdir-tests (Files): Likewise.
57186         * modules/mkfifo-tests (Files): Likewise.
57187         * modules/mkfifoat-tests (Files): Likewise.
57188         * modules/mknod-tests (Files): Likewise.
57189         * modules/nanosleep-tests (Files): Likewise.
57190         * modules/nl_langinfo-tests (Files): Likewise.
57191         * modules/obstack-printf-tests (Files): Likewise.
57192         * modules/open-tests (Files): Likewise.
57193         * modules/openat-tests (Files): Likewise.
57194         * modules/perror-tests (Files): Likewise.
57195         * modules/pipe2-tests (Files): Likewise.
57196         * modules/poll-tests (Files): Likewise.
57197         * modules/popen-tests (Files): Likewise.
57198         * modules/posix_spawn-tests (Files): Likewise.
57199         * modules/posix_spawnp-tests (Files): Likewise.
57200         * modules/pread-tests (Files): Likewise.
57201         * modules/printf-posix-tests (Files): Likewise.
57202         * modules/pty-tests (Files): Likewise.
57203         * modules/random_r-tests (Files): Likewise.
57204         * modules/rawmemchr-tests (Files): Likewise.
57205         * modules/readlink-tests (Files): Likewise.
57206         * modules/remove-tests (Files): Likewise.
57207         * modules/rename-tests (Files): Likewise.
57208         * modules/renameat-tests (Files): Likewise.
57209         * modules/rmdir-tests (Files): Likewise.
57210         * modules/round-tests (Files): Likewise.
57211         * modules/roundf-tests (Files): Likewise.
57212         * modules/roundl-tests (Files): Likewise.
57213         * modules/select-tests (Files): Likewise.
57214         * modules/setenv-tests (Files): Likewise.
57215         * modules/sigaction-tests (Files): Likewise.
57216         * modules/sleep-tests (Files): Likewise.
57217         * modules/snprintf-posix-tests (Files): Likewise.
57218         * modules/snprintf-tests (Files): Likewise.
57219         * modules/sprintf-posix-tests (Files): Likewise.
57220         * modules/stat-tests (Files): Likewise.
57221         * modules/strcasestr-tests (Files): Likewise.
57222         * modules/strchrnul-tests (Files): Likewise.
57223         * modules/strerror-tests (Files): Likewise.
57224         * modules/strsignal-tests (Files): Likewise.
57225         * modules/strstr-tests (Files): Likewise.
57226         * modules/strtod-tests (Files): Likewise.
57227         * modules/strverscmp-tests (Files): Likewise.
57228         * modules/symlink-tests (Files): Likewise.
57229         * modules/symlinkat-tests (Files): Likewise.
57230         * modules/times-tests (Files): Likewise.
57231         * modules/trunc-tests (Files): Likewise.
57232         * modules/truncf-tests (Files): Likewise.
57233         * modules/truncl-tests (Files): Likewise.
57234         * modules/tsearch-tests (Files): Likewise.
57235         * modules/uname-tests (Files): Likewise.
57236         * modules/unlink-tests (Files): Likewise.
57237         * modules/unsetenv-tests (Files): Likewise.
57238         * modules/usleep-tests (Files): Likewise.
57239         * modules/utimensat-tests (Files): Likewise.
57240         * modules/vasprintf-tests (Files): Likewise.
57241         * modules/vdprintf-posix-tests (Files): Likewise.
57242         * modules/vfprintf-posix-tests (Files): Likewise.
57243         * modules/vprintf-posix-tests (Files): Likewise.
57244         * modules/vsnprintf-posix-tests (Files): Likewise.
57245         * modules/vsnprintf-tests (Files): Likewise.
57246         * modules/vsprintf-posix-tests (Files): Likewise.
57247         * modules/wcrtomb-tests (Files): Likewise.
57248         * modules/wcsnrtombs-tests (Files): Likewise.
57249         * modules/wcsrtombs-tests (Files): Likewise.
57250         * modules/wcwidth-tests (Files): Likewise.
57251         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
57252         * tests/test-isinf.c (isinf): Likewise.
57253         * tests/test-isnan.c (isnan): Likewise.
57254         * tests/test-signbit.c (signbit): Likewise.
57255         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
57256         declaration, either as macro or with correct signature.
57257         (select): Ensure function under test is declared with correct
57258         signature in correct header.
57259         * tests/test-atexit.c (atexit): Likewise.
57260         * tests/test-btowc.c (btowc): Likewise.
57261         * tests/test-canonicalize-lgpl.c (realpath)
57262         (canonicalize_file_name): Likewise.
57263         * tests/test-ceilf1.c (ceilf): Likewise.
57264         * tests/test-ceill.c (ceill): Likewise.
57265         * tests/test-chown.c (chown): Likewise.
57266         * tests/test-dprintf-posix.c (dprintf): Likewise.
57267         * tests/test-dup2.c (dup2): Likewise.
57268         * tests/test-dup3.c (dup3): Likewise.
57269         * tests/test-duplocale.c (duplocale): Likewise.
57270         * tests/test-fchdir.c (fchdir): Likewise.
57271         * tests/test-fchownat.c (fchownat): Likewise.
57272         * tests/test-fcntl.c (fcntl): Likewise.
57273         * tests/test-fdopendir.c (fdopendir): Likewise.
57274         * tests/test-fflush.c (fflush): Likewise.
57275         * tests/test-flock.c (flock): Likewise.
57276         * tests/test-floorf1.c (floorf): Likewise.
57277         * tests/test-floorl.c (floorl): Likewise.
57278         * tests/test-fnmatch.c (fnmatch): Likewise.
57279         * tests/test-fopen.c (fopen): Likewise.
57280         * tests/test-fprintf-posix.c (fprintf): Likewise.
57281         * tests/test-freopen.c (freopen): Likewise.
57282         * tests/test-frexp.c (frexp): Likewise.
57283         * tests/test-frexpl.c (frexpl): Likewise.
57284         * tests/test-fseek.c (fseek): Likewise.
57285         * tests/test-fseeko.c (fseeko): Likewise.
57286         * tests/test-fstatat.c (fstatat): Likewise.
57287         * tests/test-fsync.c (fsync): Likewise.
57288         * tests/test-ftell.c (ftell): Likewise.
57289         * tests/test-ftello.c (ftello): Likewise.
57290         * tests/test-futimens.c (futimens): Likewise.
57291         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
57292         (gai_strerror): Likewise.
57293         * tests/test-getcwd.c (getcwd): Likewise.
57294         * tests/test-getdelim.c (getdelim): Likewise.
57295         * tests/test-getdtablesize.c (getdtablesize): Likewise.
57296         * tests/test-getgroups.c (getgroups): Likewise.
57297         * tests/test-gethostname.c (gethostname): Likewise.
57298         * tests/test-getline.c (getline): Likewise.
57299         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
57300         Likewise.
57301         * tests/test-gettimeofday.c (gettimeofday): Likewise.
57302         * tests/test-glob.c (glob, globfree): Likewise.
57303         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
57304         * tests/test-inet_ntop.c (inet_ntop): Likewise.
57305         * tests/test-inet_pton.c (inet_pton): Likewise.
57306         * tests/test-isblank.c (isblank): Likewise.
57307         * tests/test-lchown.c (lchown): Likewise.
57308         * tests/test-ldexpl.c (ldexpl): Likewise.
57309         * tests/test-link.c (link): Likewise.
57310         * tests/test-linkat.c (linkat): Likewise.
57311         * tests/test-lseek.c (lseek): Likewise.
57312         * tests/test-lstat.c (lstat): Likewise.
57313         * tests/test-mbrtowc.c (mbrtowc): Likewise.
57314         * tests/test-mbsinit.c (mbsinit): Likewise.
57315         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
57316         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
57317         * tests/test-memchr.c (memchr): Likewise.
57318         * tests/test-memcmp.c (memcmp): Likewise.
57319         * tests/test-memmem.c (memmem): Likewise.
57320         * tests/test-memrchr.c (memrchr): Likewise.
57321         * tests/test-mkdir.c (mkdir): Likewise.
57322         * tests/test-mkdirat.c (mkdirat): Likewise.
57323         * tests/test-mkfifo.c (mkfifo): Likewise.
57324         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
57325         * tests/test-mknod.c (mknod): Likewise.
57326         * tests/test-nanosleep.c (nanosleep): Likewise.
57327         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
57328         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
57329         Likewise.
57330         * tests/test-open.c (open): Likewise.
57331         * tests/test-openat.c (openat): Likewise.
57332         * tests/test-perror.c (perror): Likewise.
57333         * tests/test-pipe2.c (pipe2): Likewise.
57334         * tests/test-poll.c (poll): Likewise.
57335         * tests/test-popen.c (popen, pclose): Likewise.
57336         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
57337         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
57338         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
57339         (posix_spawn_file_actions_destroy)
57340         (posix_spawn_file_actions_addclose)
57341         (posix_spawn_file_actions_addopen)
57342         (posix_spawn_file_actions_adddup2): Likewise.
57343         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
57344         * tests/test-pread.c (pread): Likewise.
57345         * tests/test-printf-posix.c (printf): Likewise.
57346         * tests/test-pty.c (openpty, forkpty): Likewise.
57347         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
57348         (random_r): Likewise.
57349         * tests/test-rawmemchr.c (rawmemchr): Likewise.
57350         * tests/test-readlink.c (readlink): Likewise.
57351         * tests/test-remove.c (remove): Likewise.
57352         * tests/test-rename.c (rename): Likewise.
57353         * tests/test-renameat.c (renameat): Likewise.
57354         * tests/test-rmdir.c (rmdir): Likewise.
57355         * tests/test-round1.c (round): Likewise.
57356         * tests/test-roundf1.c (roundf): Likewise.
57357         * tests/test-roundl.c (roundl): Likewise.
57358         * tests/test-setenv.c (setenv): Likewise.
57359         * tests/test-sigaction.c (sigaction): Likewise.
57360         * tests/test-sleep.c (sleep): Likewise.
57361         * tests/test-snprintf.c (snprintf): Likewise.
57362         * tests/test-sprintf-posix.c (sprintf): Likewise.
57363         * tests/test-stat.c (stat): Likewise.
57364         * tests/test-stpncpy.c (stpncpy): Likewise.
57365         * tests/test-strcasestr.c (strcasestr): Likewise.
57366         * tests/test-strchrnul.c (strchrnul): Likewise.
57367         * tests/test-strerror.c (strerror): Likewise.
57368         * tests/test-strsignal.c (strsignal): Likewise.
57369         * tests/test-strstr.c (strstr): Likewise.
57370         * tests/test-strtod.c (strtod): Likewise.
57371         * tests/test-strverscmp.c (strverscmp): Likewise.
57372         * tests/test-symlink.c (symlink): Likewise.
57373         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
57374         * tests/test-times.c (times): Likewise.
57375         * tests/test-trunc1.c (trunc): Likewise.
57376         * tests/test-truncf1.c (truncf): Likewise.
57377         * tests/test-truncl.c (truncl): Likewise.
57378         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
57379         Likewise.
57380         * tests/test-uname.c (uname): Likewise.
57381         * tests/test-unlink.c (unlink): Likewise.
57382         * tests/test-unlinkat.c (unlinkat): Likewise.
57383         * tests/test-unsetenv.c (unsetenv): Likewise.
57384         * tests/test-usleep.c (usleep): Likewise.
57385         * tests/test-utimensat.c (utimensat): Likewise.
57386         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
57387         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
57388         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
57389         * tests/test-vprintf-posix.c (vprintf): Likewise.
57390         * tests/test-vsnprintf.c (vsnprintf): Likewise.
57391         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
57392         * tests/test-wcrtomb.c (wcrtomb): Likewise.
57393         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
57394         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
57395         * tests/test-wcwidth.c (wcwidth): Likewise.
57397         build: pull in conditional headers during GNULIB_POSIXCHECK
57398         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
57399         definitions from any conditionally-included headers.
57400         * lib/stdlib.in.h (includes): Likewise.
57401         * lib/unistd.in.h (includes): Likewise.
57403 2009-12-24  Bruno Haible  <bruno@clisp.org>
57405         * tests/test-argv-iter.c: Include header file being tested immediately
57406         after config.h.
57407         * tests/test-base64.c: Likewise.
57408         * tests/test-flock.c: Likewise.
57409         * tests/test-fsync.c: Likewise.
57410         * tests/test-getdate.c: Likewise.
57411         * tests/test-getndelim2.c: Likewise.
57412         * tests/test-isfinite.c: Likewise.
57413         * tests/test-isinf.c: Likewise.
57414         * tests/test-strerror.c: Likewise.
57415         * tests/test-strsignal.c: Likewise.
57417 2009-12-23  Eric Blake  <ebb9@byu.net>
57419         unistd: work around cygwin bug
57420         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
57421         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
57422         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
57424 2009-12-23  Bruno Haible  <bruno@clisp.org>
57426         localename: More tests.
57427         * tests/test-localename.c (SIZEOF): New macro.
57428         (categories): New variable.
57429         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
57430         test_locale_name_default): Add test w.r.t. thread locale.
57431         (test_locale_name_thread): New function.
57432         (main): Invoke it.
57434         localename: Make aware of thread locale.
57435         * lib/localename.h (gl_locale_name_thread): New declaration.
57436         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
57437         behaviour with respect to thread locale.
57438         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
57439         <langinfo.h>, glthread/lock.h.
57440         (SIZE_BITS): New macro.
57441         (string_hash): New function.
57442         (struct hash_node): New type.
57443         (HASH_TABLE_SIZE): New macro.
57444         (struniq_hash_table, struniq_lock): New variables.
57445         (struniq): New function.
57446         (gl_locale_name_thread): New function.
57447         (gl_locale_name): Invoke it.
57448         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
57449         * modules/localename (Depends-on): Add lock.
57450         Reported by Mike Gran <spk121@yahoo.com>.
57452 2009-12-23  Eric Blake  <ebb9@byu.net>
57454         va-args: new module
57455         * modules/va-args: New file.
57456         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
57457         * MODULES.html.sh (Core language properties): Mention it.
57459         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
57460         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
57461         named alias for __attribute__((__unused__)).
57462         * lib/chown.c: Update client.
57463         * lib/fchmodat.c: Likewise.
57464         * lib/fts.c: Likewise.
57465         * lib/getdate.y: Likewise.
57466         * lib/getgroups.c: Likewise.
57467         * lib/getopt.c: Likewise.
57468         * lib/getugroups.c: Likewise.
57469         * lib/mkdir.c: Likewise.
57470         * lib/mkfifo.c: Likewise.
57471         * lib/mkfifoat.c: Likewise.
57472         * lib/mknod.c: Likewise.
57473         * lib/mknodat.c: Likewise.
57474         * lib/readlink.c: Likewise.
57475         * lib/se-context.in.h: Likewise.
57476         * lib/se-selinux.in.h: Likewise.
57477         * lib/sockets.c: Likewise.
57478         * lib/symlink.c: Likewise.
57479         * lib/symlinkat.c: Likewise.
57480         * lib/unicodeio.c: Likewise.
57481         * lib/unistr.h: Likewise.
57482         * tests/test-areadlink.c: Likewise.
57483         * tests/test-areadlinkat.c: Likewise.
57484         * tests/test-filenamecat.c: Likewise.
57485         * tests/test-fseeko.c: Likewise.
57486         * tests/test-ftello.c: Likewise.
57487         * tests/test-getdate.c: Likewise.
57488         * tests/test-getgroups.c: Likewise.
57489         * tests/test-gethostname.c: Likewise.
57490         * tests/test-quotearg.c: Likewise.
57491         * tests/test-version-etc.c: Likewise.
57492         * tests/test-xalloc-die.c: Likewise.
57493         * tests/test-xfprintf-posix.c: Likewise.
57494         * tests/test-xprintf-posix.c: Likewise.
57495         * tests/test-xvasprintf.c: Likewise.
57497         tests: avoid compiler warnings
57498         * tests/test-fcntl.c (main): Delete unused parameters.
57499         * tests/test-freopen-safer.c (main): Likewise.
57500         * tests/test-xalloc-die.c (main): Mark unused parameters.
57501         * tests/test-fseeko.c (main): Likewise.
57502         * tests/test-ftello.c (main): Likewise.
57503         * tests/test-nanosleep.c (main): Avoid declaration warning.
57504         * tests/test-sleep.c (main): Likewise.
57505         * tests/test-unsetenv.c (main): Silence warning about string
57506         literal.
57507         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
57509 2009-12-23  Bruno Haible  <bruno@clisp.org>
57511         * tests/test-localename.c (test_locale_name): New function, extracted
57512         from main. Also test mixed situations.
57513         (test_locale_name_posix, test_locale_name_environ,
57514         test_locale_name_default): New functions.
57515         (main): Invoke them all.
57516         * modules/localename-tests (configure.ac): Test for newlocale.
57518 2009-12-23  Bruno Haible  <bruno@clisp.org>
57520         unistd: Ensure getcwd gets declared before being overridden.
57521         * lib/unistd.in.h: Conditionally include <io.h>.
57523 2009-12-22  Bruno Haible  <bruno@clisp.org>
57525         wchar: Diagnose broken combination of glibc and gcc versions and flags.
57526         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
57527         (gl_WCHAR_H): Invoke it.
57528         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
57529         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
57530         Reported by Karl Berry <karl@freefriends.org>.
57532 2009-12-22  Eric Blake  <ebb9@byu.net>
57534         math, unistd: avoid redundant includes
57535         * lib/math.in.h (isnan): No need to re-include <math.h>.
57536         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
57538         getsubopt: work around cygwin bug
57539         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
57540         avoid conflicting with system getsubopt.
57541         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
57542         bug.
57544         getopt: synchronize from glibc
57545         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
57546         parameter order.  Adjust all callers.
57547         (_getopt_internal_r, main): Adjust quoting in error messages.
57548         Drop considerations for outdated POSIX 1003.2 error message.
57549         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
57550         callers.
57551         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
57553         test-getopt: test stderr behavior
57554         * modules/getopt-posix-tests (Depends-on): Add dup2.
57555         * tests/test-getopt.c (ASSERT): Avoid stderr.
57556         (main): Move stderr to a temporary file.
57557         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
57558         Instead, add parameter to inform caller if output occurred.
57559         (test_getopt): Adjust all existing tests to expect silence, and
57560         add new tests of leading ":".
57561         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
57562         glibc shortcomings with leading "-:" or "+:" in optstring.
57563         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
57564         Likewise.
57565         * doc/posix-functions/getopt.texi (getopt): Likewise.
57567         test-getopt: enhance test
57568         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
57569         supports optind=0.
57570         * tests/test-getopt.c (OPTIND_MIN): Move...
57571         * tests/test-getopt.h (OPTIND_MIN): ...here.
57572         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
57573         Require that optind=0 works, since modern BSD supports it in
57574         addition to optreset, and since coreutils expects it.
57575         (test_getopt_long_only): New test.
57576         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
57577         glibc shortcomings with 'W;', and enforcement of optind=0.
57578         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
57579         Likewise.
57581 2009-12-21  Bruno Haible  <bruno@clisp.org>
57583         localename: Improvements for MacOS X and Cygwin.
57584         * lib/localename.h (gl_locale_name_environ): New declaration.
57585         * lib/localename.c (gl_locale_name_environ): New function, extracted from
57586         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
57587         (gl_locale_name_posix): Invoke it.
57588         (gl_locale_name_default): Add comments. Use Windows native API also on
57589         Cygwin.
57591 2009-12-21  Bruno Haible  <bruno@clisp.org>
57593         Update list of Win32 locale ids.
57594         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
57595         (LANG_SAMI): Renamed from LANG_SAAMI.
57596         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
57597         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
57598         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
57599         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
57600         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
57601         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
57602         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
57603         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
57604         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
57605         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
57606         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
57607         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
57608         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
57609         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
57610         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
57611         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
57612         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
57613         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
57614         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
57615         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
57616         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
57617         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
57618         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
57619         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
57620         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
57621         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
57622         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
57623         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
57624         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
57625         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
57626         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
57627         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
57628         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
57629         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
57630         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
57631         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
57632         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
57633         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
57634         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
57635         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
57636         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
57637         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
57638         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
57639         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
57640         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
57641         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
57642         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
57643         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
57644         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
57645         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
57646         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
57647         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
57648         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
57649         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
57650         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
57651         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
57652         Add more languages and countries for Sami, Sorbian. Add more countries
57653         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
57654         for Pashto. Change country for Syriac, Tswana.
57656 2009-12-21  Eric Blake  <ebb9@byu.net>
57658         test-utimens: avoid spurious failure
57659         * tests/test-chown.h (nap): Factor...
57660         * tests/nap.h: ...into new file.
57661         * tests/test-lchown.h (nap): Avoid duplication.
57662         * tests/test-utimens-common.h (nap): Use shared implementation,
57663         necessary on file systems with 1-second resolution.
57664         * modules/chown-tests (Files): Include new file.
57665         * modules/fdutimensat-tests (Files): Likewise.
57666         * modules/futimens-tests (Files): Likewise.
57667         * modules/lchown-tests (Files): Likewise.
57668         * modules/openat-tests (Files): Likewise.
57669         * modules/utimens-tests (Files): Likewise.
57670         * modules/utimensat-tests (Files): Likewise.
57672 2009-12-19  Eric Blake  <ebb9@byu.net>
57674         futimens, utimensat: work around Linux bug
57675         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
57676         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
57677         * lib/utimensat.c (rpl_utimensat): Work around it.
57678         * lib/futimens.c (rpl_futimens): Adjust comment.
57680         utimens: work around Linux ctime bug
57681         * lib/utimens.c (detect_ctime_bug): New helper function.
57682         (update_timespec): Differentiate between workaround needed for
57683         this bug vs. what is needed for systems that lack utimensat.
57684         (fdutimens, lutimens): Work around bug.
57686         utimens: check for ctime update
57687         * tests/test-utimens-common.h (check_ctime): Define.
57688         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
57689         * tests/test-futimens.h (test_futimens): Likewise.
57690         * tests/test-lutimens.h (test_lutimens): Likewise.
57691         * doc/posix-functions/futimens.texi (futimens): Document the bug.
57692         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
57694 2009-12-19  Bruno Haible  <bruno@clisp.org>
57696         dprintf-posix: Check against memory leak fixed on 2009-12-15.
57697         * tests/test-dprintf-posix2.sh: New file.
57698         * tests/test-dprintf-posix2.c: New file.
57699         * modules/dprintf-posix-tests (Files): Add them.
57700         (configure.ac): Check for getrlimit and setrlimit.
57701         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
57703 2009-12-19  Bruno Haible  <bruno@clisp.org>
57705         fprintf-posix: Check against memory leak fixed on 2009-12-15.
57706         * tests/test-fprintf-posix3.sh: New file.
57707         * tests/test-fprintf-posix3.c: New file.
57708         * modules/fprintf-posix-tests (Files): Add them.
57709         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
57711 2009-12-19  Eric Blake  <ebb9@byu.net>
57713         dirfd: fix prototype
57714         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
57715         * lib/dirfd.c (dirfd): Likewise.
57717         canonicalize: reduce memory usage
57718         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
57719         allocation to size.
57720         Reported by Solar Designer <solar@openwall.com>.
57722 2009-12-19  Bruno Haible  <bruno@clisp.org>
57724         New module attribute 'Applicability'.
57725         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
57726         * gnulib-tool: New option --extract-applicability.
57727         (func_usage): Document it.
57728         (sed_extract_prog): Recognize it.
57729         (func_get_applicability): New function.
57730         (func_import): Generalize handling of 'link-warning' module.
57731         * modules/link-warning (Applicability): New section.
57732         * modules/arg-nonnull (Applicability): New section.
57733         Repoted by Simon Josefsson <simon@josefsson.org>.
57735 2009-12-19  Bruno Haible  <bruno@clisp.org>
57737         fflush: tweak
57738         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
57739         * lib/fseeko.c (rpl_fseeko): Likewise.
57741 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
57743         * lib/gl_list.h: Fix typo in comment.
57745 2009-12-16  Eric Blake  <ebb9@byu.net>
57747         fcntl: use to simplify other modules
57748         * modules/cloexec (Depends-on): Add fcntl.
57749         * modules/fchdir (Depends-on): Likewise.
57750         * modules/fd-safer-flag (Depends-on): Likewise.
57751         * modules/unistd-safer (Depends-on): Likewise.
57752         * modules/dup3 (configure.ac): Set module indicator.
57753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
57754         missing.
57755         * lib/fchdir.c (_gl_register_dup): Fix comment.
57756         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
57757         * lib/dup-safer.c (dup_safer): Likewise.
57758         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
57759         * lib/dup3.c (dup3): Likewise.
57760         * tests/test-fchdir.c (main): Enhance test.
57761         Fixes a dup_cloexec bug reported by Ondřej Vašík.
57763         fcntl: port portions of fcntl to mingw
57764         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
57765         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
57766         replacement for mingw.
57767         * modules/fcntl (Description): Update.
57768         (Depends-on): Add dup2.
57769         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
57770         * modules/fcntl-h (Makefile.am): Substitute it.
57771         * lib/fcntl.in.h (fcntl): Update declaration.
57772         (F_DUPFD, F_GETFD): New macros, when needed.
57773         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
57774         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
57775         * tests/test-fcntl.c (check_flags, main): Enhance test for items
57776         we now guarantee.
57778         fcntl: work around cygwin bug in F_DUPFD
57779         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
57780         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
57781         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
57782         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
57783         * doc/posix-functions/fcntl.texi (fcntl): Document it.
57785         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
57786         * modules/fcntl (Files): List new files.
57787         (configure.ac): Run a test.
57788         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
57789         * lib/fcntl.c (rpl_fcntl): Likewise.
57790         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
57791         (gl_FCNTL_H): Always replace fcntl.h.
57792         * modules/fcntl-h (Makefile.am): Substitute witnesses.
57793         * lib/fcntl.in.h (fcntl): Declare replacement.
57794         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
57795         needed, plus a witness.
57796         * doc/posix-functions/fcntl.texi (fcntl): Document this.
57797         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
57798         * tests/test-fcntl.c: New file.
57799         * modules/fcntl-tests: Likewise.
57801         binary-io: avoid potential compilation warning
57802         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
57803         directives.
57805         fflush: avoid compilation error on NetBSD
57806         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
57807         between off_t and fpos_t, since the latter is sometimes a struct.
57808         * lib/fseeko.c (rpl_fseeko): Likewise.
57809         Reported by Alexander Nasonov <alnsn@yandex.ru>.
57811 2009-12-15  Eric Blake  <ebb9@byu.net>
57813         fcntl-h, stdio, sys_ioctl: fix declarations
57814         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
57815         function must not take arguments.
57816         * lib/sys_ioctl.in.h (ioctl): Likewise.
57817         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
57818         (open): Add a link warning.
57820 2009-12-15  Jim Meyering  <meyering@redhat.com>
57822         areadlink, areadlink-with-size: relax license to LGPLv2+
57823         * modules/areadlink (License): Relax to LGPLv2+.
57824         * modules/areadlink-with-size (License): Likewise.
57826 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
57827             Bruno Haible  <bruno@clisp.org>
57829         *printf: Fix memory leak.
57830         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
57831         * lib/vfprintf.c (vfprintf): Likewise.
57832         * lib/dprintf.c (dprintf): Likewise.
57833         * lib/vdprintf.c (vdprintf): Likewise.
57835 2009-12-14  Eric Blake  <ebb9@byu.net>
57837         accept4: adjust module dependencies
57838         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
57840         utimens: one more try at avoiding compiler warning
57841         * lib/utimens.c (lutimens): Lower scope of result.
57843 2009-12-13  Bruno Haible  <bruno@clisp.org>
57845         Move the malloc checking from module 'list' to new module 'xlist'.
57846         * modules/xlist: New file.
57847         * lib/gl_xlist.h: New file.
57848         * lib/gl_xlist.c: New file.
57849         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
57850         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
57851         gl_list_add_last, gl_list_add_before, gl_list_add_after,
57852         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
57853         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
57854         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
57855         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
57856         gl_sortedlist_nx_add): New declarations.
57857         (struct gl_list_implementation): Rename and change methods accordingly.
57858         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
57859         (gl_list_nx_create): Renamed from gl_list_create.
57860         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
57861         (gl_list_nx_set_at): Renamed from gl_list_set_at.
57862         (gl_list_nx_add_first): Renamed from gl_list_add_first.
57863         (gl_list_nx_add_last): Renamed from gl_list_add_last.
57864         (gl_list_nx_add_before): Renamed from gl_list_add_before.
57865         (gl_list_nx_add_after): Renamed from gl_list_add_after.
57866         (gl_list_nx_add_at): Renamed from gl_list_add_at.
57867         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
57868         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
57869         gl_list_create_empty.
57870         (gl_list_nx_create): Renamed from gl_list_create.
57871         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
57872         (gl_list_nx_set_at): Renamed from gl_list_set_at.
57873         (gl_list_nx_add_first): Renamed from gl_list_add_first.
57874         (gl_list_nx_add_last): Renamed from gl_list_add_last.
57875         (gl_list_nx_add_before): Renamed from gl_list_add_before.
57876         (gl_list_nx_add_after): Renamed from gl_list_add_after.
57877         (gl_list_nx_add_at): Renamed from gl_list_add_at.
57878         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
57879         * lib/gl_array_list.c: Don't include xalloc.h.
57880         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
57881         NULL upon out-of-memory.
57882         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
57883         out-of-memory.
57884         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
57885         Change return type to 'int'.
57886         (gl_array_nx_set_at): Renamed from gl_array_set_at.
57887         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
57888         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
57889         upon out-of-memory.
57890         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
57891         upon out-of-memory.
57892         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
57893         upon out-of-memory.
57894         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
57895         upon out-of-memory.
57896         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
57897         out-of-memory.
57898         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
57899         Update.
57900         (gl_array_list_implementation): Update.
57901         * lib/gl_carray_list.c: Don't include xalloc.h.
57902         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
57903         Return NULL upon out-of-memory.
57904         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
57905         out-of-memory.
57906         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
57907         Change return type to 'int'.
57908         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
57909         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
57910         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
57911         upon out-of-memory.
57912         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
57913         upon out-of-memory.
57914         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
57915         out-of-memory.
57916         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
57917         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
57918         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
57919         Update.
57920         (gl_carray_list_implementation): Update.
57921         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
57922         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
57923         gl_linked_create_empty. Return NULL upon out-of-memory.
57924         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
57925         out-of-memory.
57926         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
57927         Change return type to 'int'. Return -1 upon out-of-memory.
57928         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
57929         out-of-memory.
57930         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
57931         upon out-of-memory.
57932         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
57933         upon out-of-memory.
57934         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
57935         NULL upon out-of-memory.
57936         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
57937         upon out-of-memory.
57938         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
57939         out-of-memory.
57940         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
57941         Update.
57942         * lib/gl_linked_list.c: Don't include xalloc.h.
57943         (gl_linked_list_implementation): Update.
57944         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
57945         (add_to_bucket): Change return type to 'int'.
57946         (gl_linkedhash_list_implementation): Update.
57947         * lib/gl_anytree_list1.h (free_subtree): New function.
57948         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
57949         gl_tree_create_empty. Return NULL upon out-of-memory.
57950         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
57951         Change return type to 'int'. Return -1 upon out-of-memory.
57952         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
57953         out-of-memory.
57954         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
57955         (gl_tree_remove_node): New function, moved here from
57956         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
57957         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
57958         Update.
57959         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
57960         malloc, not xmalloc. Return NULL upon out-of-memory.
57961         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
57962         out-of-memory.
57963         (gl_tree_remove_node_from_tree): New function, extracted from
57964         gl_tree_remove_node.
57965         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
57966         upon out-of-memory.
57967         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
57968         out-of-memory.
57969         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
57970         upon out-of-memory.
57971         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
57972         upon out-of-memory.
57973         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
57974         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
57975         not xmalloc. Return NULL upon out-of-memory.
57976         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
57977         out-of-memory.
57978         (gl_tree_remove_node_from_tree): New function, extracted from
57979         gl_tree_remove_node.
57980         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
57981         upon out-of-memory.
57982         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
57983         out-of-memory.
57984         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
57985         upon out-of-memory.
57986         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
57987         upon out-of-memory.
57988         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
57989         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
57990         gl_anytree_list1.h before gl_anyavltree_list2.h.
57991         (gl_avltree_list_implementation): Update.
57992         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
57993         gl_anytree_list1.h before gl_anyavltree_list2.h.
57994         (gl_rbtree_list_implementation): Update.
57995         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
57996         Change return type to 'int'. Return -1 upon out-of-memory. Use
57997         __builtin_expect.
57998         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
57999         (gl_avltreehash_list_implementation): Update.
58000         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
58001         (gl_rbtreehash_list_implementation): Update.
58002         * modules/array-list (Depends-on): Remove xalloc.
58003         * modules/carray-list (Depends-on): Likewise.
58004         * modules/linked-list (Depends-on): Likewise.
58005         * modules/linkedhash-list (Depends-on): Likewise.
58006         * modules/avltree-list (Depends-on): Likewise.
58007         * modules/rbtree-list (Depends-on): Likewise.
58008         * modules/avltreehash-list (Depends-on): Likewise.
58009         * modules/rbtreehash-list (Depends-on): Likewise.
58011         * modules/xsublist: New file.
58012         * lib/gl_xsublist.h: New file.
58013         * lib/gl_xsublist.c: New file.
58014         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
58015         (gl_sublist_nx_create): New declaration.
58016         * lib/gl_sublist.c: Don't include xalloc.h.
58017         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
58018         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
58019         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
58020         Change return type to 'int'. Return -1 upon out-of-memory.
58021         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
58022         upon out-of-memory.
58023         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
58024         NULL upon out-of-memory.
58025         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
58026         upon out-of-memory.
58027         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
58028         NULL upon out-of-memory.
58029         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
58030         NULL upon out-of-memory.
58031         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
58032         upon out-of-memory.
58033         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
58034         (gl_sublist_list_implementation): Update.
58035         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
58036         upon out-of-memory.
58037         * modules/sublist (Depends-on): Remove xalloc.
58039         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
58040         * tests/test-carray_list.c: Likewise.
58041         * tests/test-linked_list.c: Likewise.
58042         * tests/test-linkedhash_list.c: Likewise.
58043         * tests/test-avltree_list.c: Likewise.
58044         * tests/test-rbtree_list.c: Likewise.
58045         * tests/test-avltreehash_list.c: Likewise.
58046         * tests/test-rbtreehash_list.c: Likewise.
58047         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
58048         * modules/carray-list-tests (Makefile.am): Likewise.
58049         * modules/linked-list-tests (Makefile.am): Likewise.
58050         * modules/linkedhash-list-tests (Makefile.am): Likewise.
58051         * modules/avltree-list-tests (Makefile.am): Likewise.
58052         * modules/rbtree-list-tests (Makefile.am): Likewise.
58053         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58054         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
58056         * NEWS: Mention the changes.
58058         * lib/clean-temp.c: Include gl_xlist.h.
58059         * modules/clean-temp (Depends-on): Add xlist.
58061         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
58062         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
58064         * tests/test-array_oset.c: Include gl_xlist.h.
58065         * modules/array-oset-tests (Depends-on): Add xlist.
58067         Reported by José E. Marchesi <jemarch@gnu.org>.
58069 2009-12-13  Bruno Haible  <bruno@clisp.org>
58071         Move the malloc checking from module 'oset' to new module 'xoset'.
58072         * modules/xoset: New file.
58073         * lib/gl_xoset.h: New file.
58074         * lib/gl_xoset.c: New file.
58075         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
58076         declarations.
58077         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
58078         (struct gl_oset_implementation): Rename and change methods accordingly.
58079         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
58080         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
58081         'int'. Mark as __warn_unused_result__.
58082         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
58083         gl_oset_create_empty.
58084         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
58085         'int'.
58086         * lib/gl_array_oset.c: Don't include xalloc.h.
58087         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
58088         malloc, not xmalloc.
58089         (grow): Change return type to 'int'. Don't call xalloc_die.
58090         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
58091         to 'int'.
58092         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
58093         'int'.
58094         (gl_array_oset_implementation): Update.
58095         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
58096         gl_tree_create_empty.
58097         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
58098         'int'.
58099         * lib/gl_avltree_oset.c: Don't include xalloc.h.
58100         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
58101         xmalloc.
58102         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
58103         not xmalloc.
58104         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
58105         xmalloc.
58106         (gl_avltree_oset_implementation): Update.
58107         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
58108         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
58109         xmalloc.
58110         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
58111         not xmalloc.
58112         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
58113         xmalloc.
58114         (gl_rbtree_oset_implementation): Update.
58115         * modules/array-oset (Depends-on): Remove xalloc.
58116         * modules/avltree-oset (Depends-on): Likewise.
58117         * modules/rbtree-oset (Depends-on): Likewise.
58118         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
58119         * tests/test-avltree_oset.c: Likewise.
58120         * tests/test-rbtree_oset.c: Likewise.
58121         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58122         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
58123         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58124         * NEWS: Mention the change.
58126 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
58128         maint.mk: allow a project to override release-prep commands
58129         * top/maint.mk (alpha, beta, stable): Move release-preparatory
58130         commands into a new rule.
58131         (release-prep): New rule.
58132         (release-prep-hook): New overridable variable.
58134 2009-12-13  Bruno Haible  <bruno@clisp.org>
58136         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
58138 2009-12-13  Jim Meyering  <meyering@redhat.com>
58140         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
58141         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
58143 2009-12-12  Bruno Haible  <bruno@clisp.org>
58145         duplocale: Tweak.
58146         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
58148 2009-12-12  Karl Berry  <karl@gnu.org>
58150         * config/srclist.txt (strtoll.c): tab changes, no more sync.
58152 2009-12-12  Bruno Haible  <bruno@clisp.org>
58154         * m4/po.m4: Undo incorrect untabification.
58156 2009-12-12  Bruno Haible  <bruno@clisp.org>
58158         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
58159         * modules/c-strtod (Depends-on): Add locale.
58160         * modules/c-strtold (Depends-on): Likewise.
58162 2009-12-12  Bruno Haible  <bruno@clisp.org>
58164         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
58166 2009-12-11  Eric Blake  <ebb9@byu.net>
58168         setenv: relax requirement in light of POSIX ruling
58169         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
58170         not NULL.
58171         * tests/test-setenv.c (main): Relax test.
58172         * tests/test-unsetenv.c (main): Likewise.
58173         * doc/posix-functions/setenv.texi (setenv): Document this.
58174         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
58176 2009-12-11  Bruno Haible  <bruno@clisp.org>
58178         New module 'fd-safer-flag'.
58179         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
58180         * lib/dup-safer.c (dup_safer_flag): Remove function.
58181         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
58182         * lib/fd-safer.c (fd_safer_flag): Remove function.
58183         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
58184         * modules/cloexec (configure.ac): Drop indicator macro.
58185         * modules/fd-safer-flag: New file.
58186         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
58187         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
58188         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
58190 2009-12-11  Bruno Haible  <bruno@clisp.org>
58192         Tests for module 'nl_langinfo'.
58193         * modules/nl_langinfo-tests: New file.
58194         * tests/test-nl_langinfo.sh: New file.
58195         * tests/test-nl_langinfo.c: New file.
58197         New module 'nl_langinfo'.
58198         * lib/nl_langinfo.c: New file.
58199         * m4/nl_langinfo.m4: New file.
58200         * modules/nl_langinfo: New file.
58201         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
58203 2009-12-11  Bruno Haible  <bruno@clisp.org>
58205         Tests for module 'langinfo'.
58206         * modules/langinfo-tests: New file.
58207         * tests/test-langinfo.c: New file.
58209         New module 'langinfo'.
58210         * lib/langinfo.in.h: New file.
58211         * m4/langinfo_h.m4: New file.
58212         * modules/langinfo: New file.
58213         * doc/posix-headers/langinfo.texi: Mention the new module.
58215 2009-12-11  Bruno Haible  <bruno@clisp.org>
58217         * lib/config.charset: Untabify.
58219 2009-12-11  Bruno Haible  <bruno@clisp.org>
58221         * modules/unistd-safer (configure.ac): Drop indicator macro.
58223 2009-12-11  Bruno Haible  <bruno@clisp.org>
58225         Move pipe2-safer code to its own file.
58226         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
58227         * lib/pipe-safer.c (pipe2_safer): Remove function.
58228         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
58229         (Makefile.am): Add it to lib_SOURCES.
58231 2009-12-10  Bruno Haible  <bruno@clisp.org>
58233         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
58235 2009-12-10  Bruno Haible  <bruno@clisp.org>
58237         Declare which arguments expect non-NULL values, for GCC and clang.
58238         * build-aux/arg-nonnull.h: New file.
58239         * modules/arg-nonnull: New file.
58240         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
58241         (inet_ntop, inet_pton): Use it.
58242         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
58243         (closedir, dirfd, opendir, scandir, alphasort): Use it.
58244         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
58245         (open, openat): Use it.
58246         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
58247         (fnmatch): Use it.
58248         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
58249         (getopt, getopt_long, getopt_long_only): Use it.
58250         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
58251         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
58252         Use it.
58253         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
58254         (iconv_open): Use it.
58255         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
58256         (strtoimax, strtoumax): Use it.
58257         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
58258         (duplocale): Use it.
58259         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
58260         (frexp, frexpl): Use it.
58261         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
58262         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
58263         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
58264         (tsearch, tfind, tdelete, twalk): Use it.
58265         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
58266         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
58267         sigpending): Use it.
58268         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
58269         (posix_spawn, posix_spawnp, posix_spawnattr_init,
58270         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
58271         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
58272         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
58273         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
58274         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
58275         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
58276         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
58277         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
58278         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
58279         Use it.
58280         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
58281         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
58282         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
58283         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
58284         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
58285         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
58286         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
58287         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
58288         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
58289         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
58290         strtoull, unsetenv): Use it.
58291         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
58292         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
58293         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
58294         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
58295         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
58296         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
58297         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
58298         (strcasecmp, strncasecmp): Use it.
58299         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
58300         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
58301         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
58302         rpl_setsockopt): Use it.
58303         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
58304         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
58305         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
58306         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
58307         (gettimeofday): Use it.
58308         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
58309         (times): Use it.
58310         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
58311         (uname): Use it.
58312         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
58313         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
58314         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
58315         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
58316         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
58317         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
58318         unlinkat, write): Use it.
58319         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
58320         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
58321         * lib/argv-iter.h: Include arg-nonnull.h.
58322         (_ATTRIBUTE_NONNULL_): Remove macro.
58323         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
58324         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
58325         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
58326         optimization.
58327         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
58328         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
58329         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
58330         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
58331         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
58332         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
58333         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
58334         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
58335         * modules/arpa_inet (Depends-on): Add arg-nonnull.
58336         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
58337         * modules/dirent (Depends-on): Add arg-nonnull.
58338         (Makefile.am): Insert arg-nonnull.h into dirent.h.
58339         * modules/fcntl-h (Depends-on): Add arg-nonnull.
58340         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
58341         * modules/fnmatch (Depends-on): Add arg-nonnull.
58342         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
58343         * modules/getopt-posix (Depends-on): Add arg-nonnull.
58344         (Makefile.am): Insert arg-nonnull.h into getopt.h.
58345         * modules/glob (Depends-on): Add arg-nonnull.
58346         (Makefile.am): Insert arg-nonnull.h into glob.h.
58347         * modules/iconv_open (Depends-on): Add arg-nonnull.
58348         (Makefile.am): Insert arg-nonnull.h into iconv.h.
58349         * modules/inttypes (Depends-on): Add arg-nonnull.
58350         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
58351         * modules/locale (Depends-on): Add arg-nonnull.
58352         (Makefile.am): Insert arg-nonnull.h into locale.h.
58353         * modules/math (Depends-on): Add arg-nonnull.
58354         (Makefile.am): Insert arg-nonnull.h into math.h.
58355         * modules/netdb (Depends-on): Add arg-nonnull.
58356         (Makefile.am): Insert arg-nonnull.h into netdb.h.
58357         * modules/search (Depends-on): Add arg-nonnull.
58358         (Makefile.am): Insert arg-nonnull.h into search.h.
58359         * modules/signal (Depends-on): Add arg-nonnull.
58360         (Makefile.am): Insert arg-nonnull.h into signal.h.
58361         * modules/spawn (Depends-on): Add arg-nonnull.
58362         (Makefile.am): Insert arg-nonnull.h into spawn.h.
58363         * modules/stdio (Depends-on): Add arg-nonnull.
58364         (Makefile.am): Insert arg-nonnull.h into stdio.h.
58365         * modules/stdlib (Depends-on): Add arg-nonnull.
58366         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
58367         * modules/string (Depends-on): Add arg-nonnull.
58368         (Makefile.am): Insert arg-nonnull.h into string.h.
58369         * modules/strings (Depends-on): Add arg-nonnull.
58370         (Makefile.am): Insert arg-nonnull.h into strings.h.
58371         * modules/sys_socket (Depends-on): Add arg-nonnull.
58372         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
58373         * modules/sys_stat (Depends-on): Add arg-nonnull.
58374         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
58375         * modules/sys_time (Depends-on): Add arg-nonnull.
58376         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
58377         * modules/sys_times (Depends-on): Add arg-nonnull.
58378         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
58379         * modules/sys_utsname (Depends-on): Add arg-nonnull.
58380         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
58381         * modules/time (Depends-on): Add arg-nonnull.
58382         (Makefile.am): Insert arg-nonnull.h into time.h.
58383         * modules/unistd (Depends-on): Add arg-nonnull.
58384         (Makefile.am): Insert arg-nonnull.h into unistd.h.
58385         * modules/wchar (Depends-on): Add arg-nonnull.
58386         (Makefile.am): Insert arg-nonnull.h into wchar.h.
58387         * modules/argv-iter (Depends-on): Add arg-nonnull.
58388         * tests/test-canonicalize.c (null_ptr): New function.
58389         (main): Use it.
58390         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
58391         (main): Use it.
58392         * tests/test-memmem.c (null_ptr): New function.
58393         (main): Use it.
58394         Reported by Jim Meyering.
58396 2009-12-10  Bruno Haible  <bruno@clisp.org>
58398         Use spaces for indentation, not tabs.
58399         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
58400         * m4/*.m4: Untabify.
58401         * build-aux/*.h: Untabify.
58402         * tests/**/*.[hc]: Untabify.
58403         * README: New section "Indent with spaces, not TABs", based on
58404         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
58405         * NEWS: Mention the change.
58407 2009-12-10  Bruno Haible  <bruno@clisp.org>
58409         pty test: Fix link error.
58410         * modules/pty-tests (Makefile.am): Add the default LDADD value to
58411         test_pty_LDADD.
58413 2009-12-07  Simon Josefsson  <simon@josefsson.org>
58415         * modules/pty: New file.
58416         * modules/pty-tests: New file.
58417         * m4/pty.m4: New file.
58418         * tests/test-pty.c: New file.
58419         * doc/glibc-headers/pty.texi: Modified.
58420         * doc/glibc-functions/forkpty.texi: Modified.
58421         * doc/glibc-functions/openpty.texi: Modified.
58423 2009-12-10  Bruno Haible  <bruno@clisp.org>
58425         Avoid syntax error in C++ mode.
58426         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
58428 2009-12-10  Bruno Haible  <bruno@clisp.org>
58430         Use sed with option -e.
58431         * gnulib-tool (func_version, func_emit_copyright_notice,
58432         func_emit_initmacro_end, func_import, func_create_testdir): Pass
58433         option -e to sed.
58434         * modules/link-warning (Makefile.am): Likewise.
58436 2009-12-10  Jim Meyering  <meyering@redhat.com>
58438         mgetgroups: do not write bytes beyond end of malloc'd buffer
58439         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
58440         username, we call getgroups with a one-element-shorter buffer,
58441         but still told it the length was original, max_n_groups.
58443 2009-12-09  Eric Blake  <ebb9@byu.net>
58445         cloexec: relax license
58446         * modules/cloexec (Maintainer): Add myself.
58447         (License): Use LGPL, not GPL.
58449         link-warning: optimize generation
58450         * modules/link-warning (Makefile.am): Reduce process usage.
58452 2009-12-09  Bruno Haible  <bruno@clisp.org>
58454         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
58455         workaround was added on 2009-11-17.
58457 2009-12-09  Jim Meyering  <meyering@redhat.com>
58458             Bruno Haible  <bruno@clisp.org>
58460         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
58461         * modules/link-warning (Makefile.am): Make the comment-removing sed
58462         command more robust in the face of bootstrap-prepended comment lines.
58464 2009-12-09  Bruno Haible  <bruno@clisp.org>
58466         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
58467         most one group.
58469 2009-12-09  Simon Josefsson  <simon@josefsson.org>
58470             Bruno Haible  <bruno@clisp.org>
58472         * build-aux/link-warning.h: Add copyright notice.
58473         * modules/link-warning (Makefile.am): Generate link-warning.h from
58474         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
58475         * NEWS: Mention change in link-warning module.
58476         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
58477         * modules/dirent (Makefile.am): Add dependency to dirent.h.
58478         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
58479         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
58480         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
58481         * modules/math (Makefile.am): Add dependency to math.h.
58482         * modules/search (Makefile.am): Add dependency to search.h.
58483         * modules/signal (Makefile.am): Add dependency to signal.h.
58484         * modules/spawn (Makefile.am): Add dependency to spawn.h.
58485         * modules/stdio (Makefile.am): Add dependency to stdio.h.
58486         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
58487         * modules/string (Makefile.am): Add dependency to string.h.
58488         * modules/strings (Makefile.am): Add dependency to strings.h.
58489         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
58490         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
58491         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
58492         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
58493         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
58494         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
58495         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
58496         * modules/unistd (Makefile.am): Add dependency to unistd.h.
58497         * modules/wchar (Makefile.am): Add dependency to wchar.h.
58499 2009-12-09  Bruno Haible  <bruno@clisp.org>
58501         fchdir: Optimize away rpl_fstat when possible.
58502         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
58503         REPLACE_OPEN_DIRECTORY.
58504         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
58506 2009-12-09  Bruno Haible  <bruno@clisp.org>
58508         * lib/fchdir.c: Update comment.
58510 2009-12-09  Bruno Haible  <bruno@clisp.org>
58512         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
58514 2009-12-08  Eric Blake  <ebb9@byu.net>
58516         fchdir: avoid memory leak on re-registration.
58517         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
58519 2009-12-08  Jim Meyering  <meyering@redhat.com>
58521         init.sh: avoid Solaris 10 /bin/sh portability problem
58522         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
58523         sourced script:
58524           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
58525           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
58526           bar
58527         tests/init.sh relied on that, accepting a --set-path=DIR argument,
58528         and two tests used that idiom.
58529         * tests/init.sh: Update suggested usage comments.
58530         (path_prepend_): New function, to be used in place
58531         of the --src-path=DIR option.
58532         (setup_): Move PATH-prepending code into path_prepend_.
58533         * tests/test-pread.sh: Adapt to new usage.
58534         * tests/test-xalloc-die.sh: Likewise.
58536 2009-12-08  Simon Josefsson  <simon@josefsson.org>
58538         * doc/gnulib.texi (Glibc pty.h): Add.
58539         * doc/glibc-functions/forkpty.texi: Add.
58540         * doc/glibc-functions/openpty.texi: Add.
58541         Suggested by Bruno Haible.
58543 2009-12-08  Eric Blake  <ebb9@byu.net>
58545         fchdir: fix logic bugs
58546         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
58547         * tests/test-fchdir.c (main): Enhance test.
58548         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
58549         is in use.
58551         dup2: fix logic bugs
58552         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
58553         REPLACE_DUP2 to decide when rpl_dup2 is needed.
58554         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
58555         exists.
58556         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
58558 2009-12-07  Eric Blake  <ebb9@byu.net>
58560         unlink: fix m4 detection
58561         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
58563         unistd-safer: add unit test
58564         * modules/unistd-safer-tests: New file.
58565         * tests/test-dup-safer.c: Likewise.
58566         * tests/test-cloexec.c (setmode): Avoid compiler warning.
58567         * tests/test-dup2.c (setmode): Likewise.
58568         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
58570         cloexec: preserve text vs. binary across dup_cloexec
58571         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
58572         mode.
58573         * modules/dup2-tests (Depends-on): Add binary-io.
58574         * modules/cloexec-tests (Depends-on): Likewise.
58575         * tests/test-dup2.c (setmode, is_mode): New helpers.
58576         (main): Add tests that translation mode is preserved.
58577         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
58578         Reported by Bruno Haible.
58580         mgetgroups: reduce duplicate listings
58581         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
58582         resulting array.
58583         * tests/test-chown.h (test_chown): Simplify client.
58584         * tests/test-lchown.h (test_lchown): Likewise.
58586 2009-12-06  Bruno Haible  <bruno@clisp.org>
58588         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
58589         value.
58591 2009-12-06  Bruno Haible  <bruno@clisp.org>
58593         * lib/progname.c: Include stdio.h, stdlib.h.
58594         (set_program_name): Reject a NULL argument.
58596 2009-12-05  Eric Blake  <ebb9@byu.net>
58598         pipe2-safer: new module
58599         * modules/pipe2-safer: New file.
58600         * lib/unistd-safer.h (pipe2_safer): New prototype.
58601         * lib/unistd--.h (pipe2): New wrapper.
58602         * lib/pipe-safer.c (pipe2_safer): New function.
58603         * modules/pipe (Depends-on): Add pipe2-safer.
58604         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
58606         stdlib-safer: preserve cloexec flag for mkostemp[s]
58607         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
58608         fd_safer_flag.
58610         unistd-safer: allow preservation of cloexec status via flag
58611         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
58612         prototypes.
58613         * lib/dup-safer.c (dup_safer_flag): New function.
58614         * lib/fd-safer.c (fd_safer_flag): Likewise.
58615         * modules/cloexec (configure.ac): Set witness.
58617         test-dup2: enhance test
58618         * modules/dup2-tests (Depends-on): Add cloexec.
58619         * tests/test-dup2.c (main): Enhance test.
58621         cloexec: add dup_cloexec
58622         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
58623         header and comments.
58624         * lib/cloexec.c (set_cloexec_flag): Add comments.
58625         (dup_cloexec): New function, with mingw implementation borrowed
58626         from...
58627         * lib/w32spawn.h (dup_noinherit): ...here.
58628         * modules/execute (Depends-on): Add cloexec.
58629         * modules/pipe (Depends-on): Likewise.
58630         * modules/cloexec (Depends-on): Add dup2.
58631         * modules/cloexec-tests (Files): New file.
58632         * tests/test-cloexec.c: Likewise.
58634         test-xalloc-die: fix test for mingw
58635         * modules/xalloc-die-tests (Files): Add tests/init.sh.
58636         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
58637         directory and .exe suffix off argv[0] output.
58639         test-fseeko: fix test for mingw
58640         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
58641         than undefining fseek, so test will pass on mingw.
58643 2009-12-05  Bruno Haible  <bruno@clisp.org>
58645         * lib/progname.h (set_program_name): Clarify specification.
58646         * lib/progname.c (set_program_name): Likewise.
58647         Reported by Jim Meyering.
58649 2009-12-05  Jim Meyering  <meyering@redhat.com>
58651         maint.mk: backslash-escape parens in default regexp
58652         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
58653         backslash-escape the literal parentheses.
58655         maint.mk: news-date-check: use grep -E
58656         * top/maint.mk (today): Define a Make variable, not a...
58657         (news-date-check): ...shell variable.
58658         (news-date-regexp): Use the Make variable.
58659         Use grep's -E option.  Change the failing diagnostic to mention
58660         the variable, $(news-date-regexp).
58662 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
58664         maintainer-makefile: allow customization of NEWS entry format
58665         * top/maint.mk (news-date-regexp): New overridable variable.
58666         (news-date-check): Use it.
58668 2009-12-04  Eric Blake  <ebb9@byu.net>
58670         mgetgroups: add xgetgroups, and avoid ENOSYS failures
58671         * lib/mgetgroups.h (xgetgroups): New prototype.
58672         * lib/mgetgroups.c (xgetgroups): New wrapper.
58673         (mgetgroups): Handle ENOSYS.
58674         * modules/mgetgroups (Depends-on): Add realloc.
58675         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
58677         mgetgroups: avoid argument promotion issues with -1
58678         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
58679         for invalid gid_t.
58680         * tests/test-chown.h (getegid, test_chown): Likewise.
58681         * tests/test-lchown.h (getegid, test_lchown): Likewise.
58683 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
58685         exclude: Fix header file problems.
58686         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
58688 2009-12-01  Jim Meyering  <meyering@redhat.com>
58690         fts: fts_open: do not let an empty string cause immediate failure
58691         This is required in support of GNU rm, for which the command
58692         "rm A '' B" must process and remove both A and B, in spite of
58693         the empty string argument.
58694         * lib/fts.c (fts_open): Do not let the presence of an empty string
58695         cause fts_open to fail immediately.  Most fts-using tools must be
58696         able to process all arguments, in order, and can be expected to
58697         diagnose such arguments themselves.
58699 2009-11-30  Eric Blake  <ebb9@byu.net>
58701         utimens: fix compilation error
58702         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
58703         Declare variable at right scope.
58705 2009-11-29  Jim Meyering  <meyering@redhat.com>
58707         bootstrap: handle perl-5.11's changed --version output
58708         * build-aux/bootstrap (get_version): Handle perl separately,
58709         since perl-5.11's --version output is different.
58711 2009-11-28  Jim Meyering  <meyering@redhat.com>
58713         userspec: depend on the inttostr module, too
58714         * modules/userspec (Depends-on): Add inttostr.
58716         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
58717         * lib/userspec.c (parse_with_separator): Do not accept a user ID
58718         number of MAXUID when it evaluates to (uid_t) -1.
58719         Likewise for group ID.  Reported by Matt McCutchen in
58720         <http://savannah.gnu.org/bugs/?28113>
58722         userspec: reformat to use spaces, not TABs
58723         * lib/userspec.c: Expand TABs to spaces.
58724         Add Emacs' "indent-tabs-mode: nil" hint.
58726 2009-11-27  Eric Blake  <ebb9@byu.net>
58728         getopt-gnu: flush out another BSD bug
58729         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
58730         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
58731         flush out BSD bug.
58732         * tests/test-getopt.h (test_getopt): End lists with NULL.
58733         * tests/test-getopt_long.h (test_getopt_long): Likewise.
58734         (test_getopt_long_posix): Enhance test.
58735         * modules/getopt-posix-tests (Depends-on): Add stdbool.
58736         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
58737         getopt-gnu.
58738         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58739         Likewise.
58741 2009-11-27  Simon Josefsson  <simon@josefsson.org>
58743         * modules/idpriv-droptemp-tests (Notice): Fix text.
58745 2009-11-27  Jim Meyering  <meyering@redhat.com>
58747         test-xalloc-die: avoid spurious failure due to libtool argv difference
58748         In a libtool-enabled project, this test would fail due to a difference
58749         in the emitted program name, e.g.,
58750         -test-xalloc-die: memory exhausted
58751         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
58752         Use program to avoid that.
58753         * modules/xalloc-die-tests (Depends-on): Add progname.
58754         * tests/test-xalloc-die.c: Include progname.h".
58755         (program_name): Remove decl.
58756         (main): Call set_program_name.
58757         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
58759 2009-11-26  Richard Jones  <rjones@redhat.com>
58761         w32sock: leave win32 error in place.
58762         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
58764 2009-11-26  Eric Blake  <ebb9@byu.net>
58766         init.sh: suggest to use skip_ and fail_ functions in comments
58767         * tests/init.sh: Add a sentence.
58769 2009-11-25  Bruno Haible  <bruno@clisp.org>
58771         init.sh: add documentation in comments
58772         * tests/init.sh: Add some developer and user documentation.
58774 2009-11-26  Jim Meyering  <meyering@redhat.com>
58776         init.sh: accommodate even those who specify bogus srcdir manually
58777         * tests/init.sh: Normally, srcdir is guaranteed by automake and
58778         configure-time tests to be sanitized, so that there is no need to
58779         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
58780         (with no double quotes) suffices.  However, since tests may be
58781         invoked manually, and since you may explicitly set srcdir to the
58782         name of a directory containing spaces, do quote its uses here.
58783         * tests/test-pread.sh: Likewise.
58784         Suggested by Bruno Haible.
58786         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
58787         * tests/test-pread.sh: Write no data into the pipe, because
58788         test-pread actually reads none.  This avoids a diagnostic,
58789         "bash: echo: write error: Broken pipe", that arises in the unusual
58790         event something is ignoring SIGPIPE, and might be interpreted
58791         as some sort of failure.  Reported by Bruno Haible.
58793 2009-11-25  Jim Meyering  <meyering@redhat.com>
58795         test-pread: cover failure with ESPIPE and EINVAL
58796         * tests/test-pread.c (main): Test for failure, too.
58797         * tests/test-pread.sh: Invoke with stdin on a pipe.
58798         Suggested by Eric Blake.
58800         pread: improvement and fix
58801         * modules/pread (Depends-on): Depend on lseek, for portability to
58802         e.g., mingw.  Suggested by Eric Blake.
58803         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
58805         unistd.in.h: correct declaration of pread
58806         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
58807         Reported by Richard W.M. Jones.
58809         test-pread.sh: distribute the test script
58810         * modules/pread-tests (Files): Include test-pread.sh.
58812         test-pread.sh: clean up
58813         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
58814         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
58815         That is unnecessary, since it's always ".".
58816         Suggestion from Eric Blake.
58818         test-pread.sh: make executable
58819         * tests/test-pread.sh: Set executable bit.
58820         Reported by Eric Blake.
58822         correct typo in test-pread.sh
58823         * tests/test-pread.sh: Add #! line.
58825         test pread
58826         * tests/test-pread.c: New file.
58827         * tests/test-pread.sh: Likewise.
58828         * modules/pread-tests: Likewise.
58830         pread: new module
58831         * modules/pread: New file.
58832         * lib/unistd.in.h (pread): Define/declare.
58833         * lib/pread.c (pread): New file.
58834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
58835         * modules/unistd (Makefile.am): Substitute witnesses.
58836         * doc/posix-functions/pread.texi (pread): Update.
58837         * MODULES.html.sh: Add pread.
58839 2009-11-25  Jim Meyering  <meyering@redhat.com>
58841         tests/init.sh: new file to be used via most *.sh tests
58842         * tests/init.sh: New file.
58844 2009-11-25  Eric Blake  <ebb9@byu.net>
58846         utimens: work around older Linux failure with symlinks
58847         * lib/utimens.c (lutimensat_works_really): New variable.
58848         (fdutimens, lutimens): Use it to manage kernels that support
58849         nanosecond times on files, but not on symlinks.
58850         Reported by Ondřej Vašík.
58852         utimes: fix configure grammar
58853         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
58855 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
58857         regex: Fix fastmap for multibyte character ranges.
58858         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
58859         characters when a multibyte character range is included.
58861 2009-11-22  Andy Wingo  <wingo@pobox.com>
58863         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
58864         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
58866 2009-11-24  Bruno Haible  <bruno@clisp.org>
58868         doc: Most *_l functions exist in MacOS X 10.5.
58869         * doc/posix-functions/duplocale.texi: Update platforms list.
58870         * doc/posix-functions/freelocale.texi: Likewise.
58871         * doc/posix-functions/newlocale.texi: Likewise.
58872         * doc/posix-functions/uselocale.texi: Likewise.
58873         * doc/posix-functions/isalnum_l.texi: Likewise.
58874         * doc/posix-functions/isalpha_l.texi: Likewise.
58875         * doc/posix-functions/isblank_l.texi: Likewise.
58876         * doc/posix-functions/iscntrl_l.texi: Likewise.
58877         * doc/posix-functions/isdigit_l.texi: Likewise.
58878         * doc/posix-functions/isgraph_l.texi: Likewise.
58879         * doc/posix-functions/islower_l.texi: Likewise.
58880         * doc/posix-functions/isprint_l.texi: Likewise.
58881         * doc/posix-functions/ispunct_l.texi: Likewise.
58882         * doc/posix-functions/isspace_l.texi: Likewise.
58883         * doc/posix-functions/isupper_l.texi: Likewise.
58884         * doc/posix-functions/iswalnum_l.texi: Likewise.
58885         * doc/posix-functions/iswalpha_l.texi: Likewise.
58886         * doc/posix-functions/iswblank_l.texi: Likewise.
58887         * doc/posix-functions/iswcntrl_l.texi: Likewise.
58888         * doc/posix-functions/iswctype_l.texi: Likewise.
58889         * doc/posix-functions/iswdigit_l.texi: Likewise.
58890         * doc/posix-functions/iswgraph_l.texi: Likewise.
58891         * doc/posix-functions/iswlower_l.texi: Likewise.
58892         * doc/posix-functions/iswprint_l.texi: Likewise.
58893         * doc/posix-functions/iswpunct_l.texi: Likewise.
58894         * doc/posix-functions/iswspace_l.texi: Likewise.
58895         * doc/posix-functions/iswupper_l.texi: Likewise.
58896         * doc/posix-functions/iswxdigit_l.texi: Likewise.
58897         * doc/posix-functions/isxdigit_l.texi: Likewise.
58898         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
58899         * doc/posix-functions/strcasecmp_l.texi: Likewise.
58900         * doc/posix-functions/strcoll_l.texi: Likewise.
58901         * doc/posix-functions/strfmon_l.texi: Likewise.
58902         * doc/posix-functions/strftime_l.texi: Likewise.
58903         * doc/posix-functions/strncasecmp_l.texi: Likewise.
58904         * doc/posix-functions/strxfrm_l.texi: Likewise.
58905         * doc/posix-functions/tolower_l.texi: Likewise.
58906         * doc/posix-functions/toupper_l.texi: Likewise.
58907         * doc/posix-functions/towctrans_l.texi: Likewise.
58908         * doc/posix-functions/towlower_l.texi: Likewise.
58909         * doc/posix-functions/towupper_l.texi: Likewise.
58910         * doc/posix-functions/wcscoll_l.texi: Likewise.
58911         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
58912         * doc/posix-functions/wctrans_l.texi: Likewise.
58913         * doc/posix-functions/wctype_l.texi: Likewise.
58914         * doc/glibc-functions/strptime_l.texi: Likewise.
58915         * doc/glibc-functions/strtod_l.texi: Likewise.
58916         * doc/glibc-functions/strtof_l.texi: Likewise.
58917         * doc/glibc-functions/strtol_l.texi: Likewise.
58918         * doc/glibc-functions/strtold_l.texi: Likewise.
58919         * doc/glibc-functions/strtoll_l.texi: Likewise.
58920         * doc/glibc-functions/strtoul_l.texi: Likewise.
58921         * doc/glibc-functions/strtoull_l.texi: Likewise.
58922         * doc/glibc-functions/wcsftime_l.texi: Likewise.
58923         * doc/glibc-functions/wcstod_l.texi: Likewise.
58924         * doc/glibc-functions/wcstof_l.texi: Likewise.
58925         * doc/glibc-functions/wcstol_l.texi: Likewise.
58926         * doc/glibc-functions/wcstold_l.texi: Likewise.
58927         * doc/glibc-functions/wcstoll_l.texi: Likewise.
58928         * doc/glibc-functions/wcstoul_l.texi: Likewise.
58929         * doc/glibc-functions/wcstoull_l.texi: Likewise.
58931 2009-11-24  Bruno Haible  <bruno@clisp.org>
58933         duplocale: Fix logic bug.
58934         * lib/duplocale.c: Don't include <langinfo.h>.
58935         (_NL_LOCALE_NAME): Remove macro.
58936         (rpl_duplocale): Use setlocale instead of nl_langinfo.
58937         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
58939 2009-11-23  Jim Meyering  <meyering@redhat.com>
58941         test-update-copyright: don't hard-code /usr/bin/perl
58942         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
58943         perl to print the current year.  Gilles Espinasse reported that
58944         the replaced use of perl was hard-coded as /usr/bin/perl.
58946 2009-11-23  Bruno Haible  <bruno@clisp.org>
58948         duplocale: Add support for glibc 2.3.x.
58949         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
58951 2009-11-22  Bruno Haible  <bruno@clisp.org>
58953         vasnprintf: Tiny optimization.
58954         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
58955         MacOS X.
58957 2009-11-22  Bruno Haible  <bruno@clisp.org>
58959         Tests for module 'duplocale'.
58960         * modules/duplocale-tests: New file.
58961         * tests/test-duplocale.c: New file.
58963         New module 'duplocale'.
58964         * m4/duplocale.m4: New file.
58965         * lib/locale.in.h (duplocale): New declaration.
58966         * lib/duplocale.c: New file.
58967         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
58968         gl_LOCALE_H_DEFAULTS): New macros.
58969         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
58970         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
58971         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
58972         REPLACE_DUPLOCALE.
58973         * modules/duplocale: New file.
58974         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
58976 2009-11-22  Bruno Haible  <bruno@clisp.org>
58978         * modules/locale-tests (configure.ac): Test for newlocale function.
58979         * tests/test-locale.c: When the system has extended locale functions,
58980         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
58982         locale: Make locale_t available when possible.
58983         * lib/locale.in.h: Include <xlocale.h> when it exists.
58984         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
58985         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
58986         * modules/locale (Depends-on): Add extensions.
58987         (Makefile.am): Also substitute HAVE_XLOCALE_H.
58988         * doc/posix-headers/locale.texi: Document the problem with locale_t.
58990 2009-11-22  Bruno Haible  <bruno@clisp.org>
58992         Add comments.
58993         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
58994         invocation.
58995         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58996         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
58997         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58999 2009-11-22  Bruno Haible  <bruno@clisp.org>
59001         error: account for the possibility of freopen (stdout).
59002         * lib/error.c: Include <unistd.h>.
59003         (flush_stdout): New function, extracted from error and error_at_line.
59004         Determine stdout's fd dynamically.
59005         (error, error_at_line): Invoke flush_stdout.
59006         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
59007         * modules/error (Depends-on): Add unistd.
59009 2009-11-22  Bruno Haible  <bruno@clisp.org>
59011         diffseq: Add comment.
59012         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
59014 2009-11-22  Jim Meyering  <meyering@redhat.com>
59016         c-stack: avoid defining an unused static function
59017         * lib/c-stack.c (find_stack_direction): Do not define this function
59018         when it will not be used.
59020         diffseq: avoid spurious gcc warnings
59021         * lib/diffseq.h (IF_LINT2): Define.
59022         (compareseq): Use it to initialize two members of "part".
59023         This avoids two used-uninitialized warnings.
59025 2009-11-21  Jim Meyering  <meyering@redhat.com>
59027         c-stack: avoid "ignoring return value of `write'" warning
59028         * lib/c-stack.c: Include "ignore-value.h".
59029         (die): Explicitly ignore each write return value.
59030         * modules/c-stack (Depends-on): Add ignore-value.
59032 2009-11-21  Bruno Haible  <bruno@clisp.org>
59034         diffseq: reduce scope of variable 'best'.
59035         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
59036         variable, earlier used for two different purposes.
59038 2009-11-21  Jim Meyering  <meyering@redhat.com>
59040         diffseq: remove useless assignment to "best"
59041         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
59042         assignment.  At that point "best" is already guaranteed to be zero.
59044 2009-11-20  Eric Blake  <ebb9@byu.net>
59046         build: mention ftp redirector in release announcements
59047         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
59048         values that used to come from cfg.mk; mention FTP redirect URL.
59049         * build-aux/announce-gen: Mention the mirror list.
59050         Suggested by Karl Berry.
59052         nanosleep: improve port to mingw
59053         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
59054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
59055         LIB_NANOSLEEP, but only when needed.
59056         * modules/select (Link): Document LIBSOCKET.
59057         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
59058         enough.
59060         nanosleep: work around cygwin bug
59061         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
59062         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
59063         bug.
59064         (getnow): Delete, not needed.
59065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
59066         LIB_CLOCK_GETTIME.
59067         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
59068         clock-time, gettime.
59069         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
59070         bug.
59071         * modules/nanosleep-tests: New test.
59072         * tests/test-nanosleep.c: New file.
59074         sleep: work around cygwin bug
59075         * lib/sleep.c (rpl_sleep): Work around the bug.
59076         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
59077         (gl_PREREQ_SLEEP): Delete unused macro.
59078         * modules/sleep (Depends-on): Add verify.
59079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
59080         * modules/unistd (Makefile.am): Substitute witness.
59081         * lib/unistd.in.h (sleep): Update prototype.
59082         * doc/posix-functions/sleep.texi (sleep): Document the bug.
59083         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
59084         * modules/sleep-tests (Depends-on): Check for alarm.
59086 2009-11-20  Jim Meyering  <meyering@redhat.com>
59088         maint.mk: improve sc_prohibit_magic_number_exit
59089         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
59090         so it does not match uses like System.exit(1).
59091         Add comments showing how to correct all offenders.
59093 2009-11-19  Eric Blake  <ebb9@byu.net>
59095         xalloc-die-tests: add missing library
59096         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
59098         test-xvasprintf: silence compiler warnings
59099         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
59100         empty string from gcc.
59102 2009-11-19  Jim Meyering  <meyering@redhat.com>
59104         xfreopen: new module, from coreutils
59105         * modules/xfreopen: New module.
59106         * lib/xfreopen.c: New file.
59107         * lib/xfreopen.h: New file.
59108         * MODULES.html.sh (File stream based Input/Output"): Add it.
59110 2009-11-19  Eric Blake  <ebb9@byu.net>
59112         manywarnings: depend on warnings
59113         * modules/manywarnings (Depends-on): Add warnings.
59115         build: avoid compiler warnings
59116         * lib/select.c (rpl_select): Delete unused variable.
59117         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
59119 2009-11-18  Eric Blake  <ebb9@byu.net>
59121         tests: avoid false negative with --with-packager
59122         * tests/test-version-etc.sh: Discard packager information.
59123         * tests/test-argp-version-etc-1.sh: Likewise.
59124         Reported by Mike Frysinger.
59126         utimens: fix regression on Solaris
59127         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
59128         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
59129         can only change fd timestamps via futimesat.  Instead, use an
59130         additional witness macro to avoid BSD bug.
59131         Reported by Jim Meyering.
59133 2009-11-17  Eric Blake  <ebb9@byu.net>
59135         usleep: use it to simplify tests
59136         * modules/stat-time-tests (Depends-on): Add usleep.
59137         (configure.ac): Drop usleep check.
59138         * modules/chown-tests (Depends-on, configure.ac): Likewise.
59139         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
59140         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
59141         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
59142         * modules/openat-tests (Depends-on, configure.ac): Likewise.
59143         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
59144         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
59145         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
59146         Likewise.
59147         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
59148         * tests/test-lchown.h (nap): Likewise.
59149         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
59150         * tests/test-stat-time.c (nap): Likewise.
59151         * tests/test-utimens-common.h (nap): Update comments.
59153         usleep: new module
59154         * modules/usleep: New file.
59155         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
59156         * lib/usleep.c (usleep): Likewise.
59157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
59158         * modules/unistd (Makefile.am): Substitute witnesses.
59159         * lib/unistd.in.h (usleep): Add declaration.
59160         * doc/pastposix-functions/usleep.texi (usleep): Document this.
59161         * MODULES.html.sh (Date and time): Likewise.
59162         * modules/usleep-tests (Depends-on): New test.
59163         * tests/test-usleep.c: New file.
59165         chown: work around OpenBSD bug
59166         * lib/chown.c (rpl_chown): Work around the bug.
59167         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
59168         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
59169         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
59170         * modules/chown (Depends-on): Add stdbool.
59171         * modules/lchown (Depends-on): Likewise.
59172         * doc/posix-functions/chown.texi (chown): Document the bug.
59173         * doc/posix-functions/lchown.texi (lchown): Likewise.
59174         * tests/test-lchown.h (test_chown): Relax test.
59176         mkstemp: avoid conflict with C++ keyword template
59177         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
59178         * lib/mkostemp.c (mkostemp): Likewise.
59179         * lib/mkostemps.c (mkostemps): Likewise.
59180         * lib/mkstemp.c (mkstemp): Likewise.
59181         * lib/mkstemps.c (mkstemps): Likewise.
59183         xalloc-die-tests: optimize
59184         * tests/test-xalloc-die.sh: Reduce number of processes.
59186 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59188         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
59189         patch from ludo@gnu.org (Ludovic Courtès).
59191 2009-11-17  Jim Meyering  <meyering@redhat.com>
59193         version-etc: use proper license string
59194         * modules/version-etc (License): Use LGPL, not LGPLv3+.
59195         * modules/version-etc-fsf: Likewise.
59197 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59199         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
59200         printed to stdout.  Deal with EOL differences.
59202 2009-11-17  Eric Blake  <ebb9@byu.net>
59204         unsetenv: work around Solaris bug
59205         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
59206         * lib/unsetenv.c (rpl_unsetenv): Work around it.
59207         Reported by Jim Meyering.
59209         vasnprintf: avoid compiler warnings
59210         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
59211         variables.
59212         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
59214 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59216         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
59217         settings since xalloc-die is no longer the self test,
59218         xalloc-die.sh is.
59220 2009-11-17  Jim Meyering  <meyering@redhat.com>
59222         test-xalloc-die.sh: make the code agree with the commit log
59223         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
59224         at the end, just in case you happen to have a test-xalloc-die
59225         program in some other PATH directory.
59227         test-xalloc-die.sh: fix a portability bug
59228         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
59229         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
59230         Otherwise, argv[0] (as often seen in diagnostics) would be too
59231         system-dependent, sometimes with, and sometimes without the leading "./".
59233         version-etc-fsf: relax license to LGPLv3+
59234         * modules/version-etc-fsf (License): Relax license.
59236 2009-11-16  Eric Blake  <ebb9@byu.net>
59238         xalloc-die-tests: avoid printing null pointer
59239         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
59240         shell script.
59241         * tests/test-xalloc-die.c (program_name): Declare.
59242         * tests/test-xalloc-die.sh (tmpfiles): New file.
59244         setenv, unsetenv: work around various bugs
59245         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
59246         (setenv) [HAVE_SETENV]: Work around bugs.
59247         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
59248         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
59249         for bugs.
59250         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
59251         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
59252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
59253         * modules/stdlib (Makefile.am): Update substitutions.
59254         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
59255         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
59256         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
59257         * modules/setenv-tests: New test.
59258         * modules/unsetenv-tests: Likewise.
59259         * tests/test-setenv.c: New file.
59260         * tests/test-unsetenv.c: Likewise.
59262 2009-11-16  Jim Meyering  <meyering@redhat.com>
59264         version-etc: relax license to LGPLv3+
59265         * modules/version-etc (License): Relax license.
59267         better AC_REQUIRE expanded-before-required-warning avoidance
59268         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
59269         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
59270         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
59271         which is no longer needed.
59273 2009-11-16  Eric Blake  <ebb9@byu.net>
59275         test-freading: clean up temporary file
59276         * tests/test-freading.c (main): Remove file on success, and use
59277         ASSERT more liberally.
59278         Reported by Jim Meyering.
59280 2009-11-16  Jim Meyering  <meyering@redhat.com>
59282         avoid new AC_REQUIRE expanded-before-required warnings
59283         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
59284         merely using it.
59285         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
59286         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
59288 2009-11-15  Simon Josefsson  <simon@josefsson.org>
59290         * tests/test-xalloc-die.c: New file.
59291         * modules/xalloc-die-tests: New file.
59292         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
59293         XFAIL_TESTS so it can be appended by modules.
59295 2009-11-15  Simon Josefsson  <simon@josefsson.org>
59297         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
59298         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
59300 2009-11-14  Eric Blake  <ebb9@byu.net>
59302         fnmatch: avoid compiler warning
59303         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
59304         to silence compiler warning about mismatch signedness in ?:.
59305         Reported by Robert Millan.
59307         intprops: add double-inclusion guard
59308         * lib/intprops.h: Allow idempotent includes.
59309         Suggested by Bruce Korb.
59311         openat: detect Solaris fchownat bug
59312         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
59313         penalizing glibc chownat when only lchownat is broken.
59314         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
59315         trailing slash bugs.
59316         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
59317         * modules/openat-tests (Files): Include more files.
59318         (Depends-on): Add mgetgroups, sleep, stat-time.
59319         (configure.ac): Add additional checks.
59320         (Makefile.am): Build new test.
59321         * tests/test-fchownat.c: New file.
59323         lchown: detect Solaris and FreeBSD bug
59324         * lib/lchown.c (rpl_lchown): Work around bug.
59325         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
59326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59327         * modules/unistd (Makefile.am): Populate it.
59328         * lib/unistd.in.h (lchown): Update declaration.
59329         * doc/posix-functions/lchown.texi (lchown): Document the bug.
59330         * modules/lchown-tests: New file.
59331         * tests/test-lchown.h (test_lchown): Likewise.
59332         * tests/test-lchown.c (main): Likewise.
59334         chown: detect Solaris and FreeBSD bug
59335         * lib/chown.c (rpl_chown): Work around bug.
59336         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
59337         (gl_PREREQ_CHOWN): Delete.
59338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59339         * modules/unistd (Makefile.am): Populate it.
59340         * lib/unistd.in.h (chown): Update declaration.
59341         * lib/lchown.c (chown): Update client.
59342         * modules/lchown (Depends-on): Add lstat.
59343         * doc/posix-functions/chown.texi (chown): Document the bug.
59344         * doc/posix-functions/getgroups.texi (getgroups): Document
59345         getgroups pitfall.
59346         * modules/chown-tests: New file.
59347         * tests/test-chown.h (test_chown): Likewise.
59348         * tests/test-chown.c (main): Likewise.
59350 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
59352         gnulib-tool: correctly detect absence of m4 directories
59353         * gnulib-tool: Avoid extra newline on data passed to wc -l.
59355 2009-11-14  Jim Meyering  <meyering@redhat.com>
59357         maint.mk: Prohibit inclusion of "xalloc.h" without use.
59358         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
59360 2009-11-14  John W. Eaton  <jwe@gnu.org>
59362         strftime.h: wrap function declaration in extern "C" block
59363         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
59365 2009-11-13  Eric Blake  <ebb9@byu.net>
59367         getgroups: avoid compiler warning
59368         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
59370         getgroups: work around FreeBSD bug
59371         * lib/getgroups.c (rpl_getgroups): Work around the bug.
59372         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
59373         * doc/posix-functions/getgroups.texi (getgroups): Document it.
59374         * tests/test-getgroups.c (main): Fix buffer overrun.
59376         getgroups: avoid compilation failure
59377         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
59378         * modules/getgroups (Depends-on): Add stdint.
59380 2009-11-13  Jim Meyering  <meyering@redhat.com>
59382         test-getgroups: avoid compilation failure
59383         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
59385 2009-11-13  Eric Blake  <ebb9@byu.net>
59387         mgetgroups: new module, taken from coreutils
59388         * modules/mgetgroups: New file.
59389         * lib/mgetgroups.h: Likewise.
59390         * lib/mgetgroups.c (mgetgroups): Likewise.
59391         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
59392         * MODULES.html.sh (Users and groups): Mention it.
59394         getgroups: don't expose GETGROUPS_T to user
59395         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
59396         an element at a time if GETGROUPS_T is wrong size.
59397         * lib/getugroups.h (getugroups): Change signature.
59398         * lib/unistd.in.h (getgroups): Likewise.
59399         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
59400         signature needs fixing.
59401         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
59402         AC_TYPE_GETGROUPS.
59403         * modules/group-member (Depends-on): Add getgroups.
59404         * lib/group-member.c (group_info, get_group_info): Use gid_t.
59405         (group_member): Rely on getgroups replacement.
59406         * lib/getugroups.c (getugroups): Use gid_t.
59407         * tests/test-getgroups.c (main): Likewise.
59408         * NEWS: Mention the signature change.
59409         * doc/posix-functions/getgroups.texi (getgroups): Mention the
59410         problem with signature.
59411         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
59412         GETGROUPS_T is still useful for setgroups.
59414         getgroups, getugroups: provide stubs for mingw
59415         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
59416         * lib/getugroups.c (getugroups): Likewise.
59417         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
59418         function.  Modernize replacement scheme.
59419         (gl_PREREQ_GETGROUPS): Delete.
59420         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
59421         * modules/getgroups (configure.ac): Declare witness.
59422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
59423         * modules/unistd (Depends-on): Substitute witness.
59424         * lib/unistd.in.h (getgroups): Declare replacement.
59426         getgroups: avoid calling exit
59427         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
59428         drop xalloc.
59429         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
59430         dependencies.
59431         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
59432         exiting, in the rare case of malloc failure.
59434         getgroups: fix logic error
59435         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
59436         has more than 20 groups.
59437         * modules/getgroups-tests: New test.
59438         * tests/test-getgroups.c: New file.
59440 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59442         * tests/test-base64.c: Improve.
59444 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59446         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
59447         Blake <ebb9@byu.net>.
59449 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59451         * tests/test-xvasprintf.c: Add %s%s related checks.
59453 2009-11-12  Eric Blake  <ebb9@byu.net>
59455         version-etc: match standards.texi style
59456         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
59457         and use <> only for URLs.
59459 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
59461         fts: do not fail on a submount during traversal
59462         * lib/fts.c (fts_build): Read the stat info again after opening
59463         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
59464         Original report at http://bugzilla.redhat.com/501848.
59466 2009-11-12  Jim Meyering  <meyering@redhat.com>
59468         bootstrap: sync from coreutils
59469         * build-aux/bootstrap (bootstrap_epilogue): New function.
59470         Use git_modules_config in one more place.  This make bootstrap's
59471         --gnulib-srcdir option more useful for testing.
59473         bootstrap: generalize autoheader check
59474         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
59475         AC_CONFIG_HEADERS.
59477 2009-11-11  Eric Blake  <ebb9@byu.net>
59479         mkfifoat: use new modules for Solaris and BSD bugs
59480         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
59481         * lib/mkfifoat.c (mknodat): Split...
59482         * lib/mknodat.c (mknodat): ...into new file.
59483         * modules/mkfifoat (Files): Ship new file.
59484         (Depends-on): Add mkfifo, mknod.
59485         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
59486         (Depends-on): Add symlink.
59487         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
59488         redundant with test_mkfifo.h.
59489         (do_mkfifoat, do_mknodat): New helpers.
59491         mknod: new module
59492         * modules/mknod: New file.
59493         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
59494         * lib/mknod.c (mknod): Likewise.
59495         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
59496         defaults.
59497         * modules/sys_stat (Makefile.am): Substitute them.
59498         * lib/sys_stat.in.h (mknod): Declare replacement.
59499         * MODULES.html.sh (Support for systems lacking POSIX:2008):
59500         Document it.
59501         * doc/posix-functions/mknod.texi (mknod): Likewise.
59502         * modules/mknod-tests: New test.
59503         * tests/test-mknod.c: Likewise.
59505         mkfifo: new module
59506         * modules/mkfifo: New file.
59507         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
59508         * lib/mkfifo.c (mkfifo): Likewise.
59509         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
59510         defaults.
59511         * modules/sys_stat (Makefile.am): Substitute them.
59512         * lib/sys_stat.in.h (mkfifo): Declare replacement.
59513         * MODULES.html.sh (Support for systems lacking POSIX:2008):
59514         Document it.
59515         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
59516         * modules/mkfifo-tests: New test.
59517         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
59518         from test-mkfifoat.c.
59519         * tests/test-mkfifo.c: New file.
59521         readlink: detect FreeBSD bug
59522         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
59523         slash on symlink.
59524         * doc/posix-functions/readlink.texi (readlink): Document the bug.
59525         * tests/test-readlink.h (test_readlink): Enhance test.
59527         symlink: detect FreeBSD bug
59528         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
59529         slash on symlink.
59530         * doc/posix-functions/symlink.texi (symlink): Document the bug.
59531         * tests/test-symlink.h (test_symlink): Enhance test.
59533 2009-11-10  Eric Blake  <ebb9@byu.net>
59535         link: detect FreeBSD bug
59536         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
59537         symlink.
59538         * doc/posix-functions/link.texi (link): Document the bug.
59539         * tests/test-link.h (test_link): Enhance test.
59540         * tests/test-linkat.c (main): Update caller.
59542         unlink, remove: detect FreeBSD bug
59543         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
59544         slash on symlink.
59545         * doc/posix-functions/unlink.texi (unlink): Document the bug.
59546         * doc/posix-functions/remove.texi (remove): Likewise.
59547         * tests/test-unlink.h (test_unlink): Enhance test.
59548         * tests/test-remove.c (main): Likewise.
59550 2009-11-09  Eric Blake  <ebb9@byu.net>
59552         rename: detect FreeBSD bug
59553         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
59554         slash on symlink.
59555         * modules/renameat-tests (Depends-on): Add filenamecat.
59556         * tests/test-rename.h (test_rename): Allow one more errno.
59557         * tests/test-renameat.c (main): Likewise.
59558         * doc/posix-functions/rename.texi (rename): Document the bug.
59560         open: detect FreeBSD bug
59561         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
59562         symlink.
59563         * doc/posix-functions/open.texi (open): Document the bug.
59564         * doc/posix-functions/utimes.texi (utimes): Likewise.
59565         * tests/test-open.h (test_open): Add parameters, and test symlink
59566         handling.
59567         * tests/test-open.c (main): Adjust caller.
59568         * tests/test-fcntl-safer.c (main): Likewise.
59569         * modules/open-tests (Depends-on): Add stdbool, symlink.
59570         * modules/fcntl-safer-tests (Depends-on): Likewise.
59571         * tests/test-openat.c (main): Add test-open tests.
59573         stat: detect FreeBSD bug
59574         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
59575         symlink.
59576         * doc/posix-functions/stat.texi (stat): Document the bug.
59577         * tests/test-stat.h (test_stat_func): Add argument.
59578         * tests/test-stat.c (main): Adjust caller.
59579         * tests/test-fstatat.c (main): Likewise.
59580         * modules/stat-tests (Depends-on): Add stdbool, symlink.
59581         Reported by Jim Meyering.
59583 2009-11-09  James Youngman  <jay@gnu.org>
59585         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
59586         * lib/strftime.c: Correct placement of #include "ignore-value.h".
59588 2009-11-08  Jim Meyering  <meyering@redhat.com>
59590         utimens: remove invalid futimesat call
59591         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
59592         It used the file descriptor of the target file as the DIR_FD
59593         parameter and NULL as the file name.  That caused failure with
59594         errno == EFAULT on FreeBSD-8.0-rc2
59596 2009-11-07  Eric Blake  <ebb9@byu.net>
59598         fflush, freadseek: use fseeko, not fseek
59599         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
59600         (clear_ungetc_buffer): Avoid potential problems on large files.
59601         * lib/freadseek.c (freadseek): Likewise.
59602         * modules/freadseek (Depends-on): Add fseeko.
59603         * modules/fseek (configure.ac): Set a witness.
59604         * tests/test-fflush.c (main): Use fseeko.
59605         * tests/test-fpurge.c (fseek): Disable link warning.
59606         * tests/test-freadable.c (fseek): Likewise.
59607         * tests/test-freading.c (fseek): Likewise.
59608         * tests/test-fseeko.c (fseek): Likewise.
59609         * tests/test-ftell.c (fseek): Likewise.
59610         * tests/test-ftello.c (fseek): Likewise.
59611         * tests/test-fwritable.c (fseek): Likewise.
59612         * tests/test-fwriting.c (fseek): Likewise.
59614 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59616         * modules/memchr (Depends-on): Drop getpagesize dependency.
59618 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59620         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
59621         Reported by Ludovic Courtès.
59622         * build-aux/pmccabe2html: Improve example usage.
59623         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
59625 2009-11-06  Jim Meyering  <meyering@redhat.com>
59627         do-release-commit-and-tag: New module.
59628         Automate the release-commit and tag process.
59629         * build-aux/do-release-commit-and-tag: New script, from coreutils.
59630         * modules/do-release-commit-and-tag: New file.
59631         * MODULES.html.sh (Support for maintaining and releasing): Add it.
59633 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59635         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
59636         because test-select.c uses inet_pton.
59638 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59640         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
59641         GETADDRINFO_LIB.  Bump serial number.
59642         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
59643         Suggested by Eric Blake <ebb9@byu.net>.
59645 2009-11-05  Eric Blake  <ebb9@byu.net>
59647         strtod: detect darwin bug
59648         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
59649         Reported by Leo Davis.
59651         freopen-safer: new module
59652         * modules/freopen-safer: New module.
59653         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
59654         * lib/freopen-safer.c (freopen_safer): New file.
59655         * lib/stdio-safer.h (freopen_safer): New declaration.
59656         * lib/stdio--.h (freopen): New override.
59657         * MODULES.html.sh (File stream based Input/Output): Mention it.
59658         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
59659         freopen-safer module.
59660         * doc/posix-functions/stderr.texi (stderr): Likewise.
59661         * doc/posix-functions/stdin.texi (stdin): Likewise.
59662         * doc/posix-functions/stdout.texi (stdout): Likewise.
59663         * modules/freopen-safer-tests: New test.
59664         * tests/test-reopen-safer.c: New file.
59666 2009-11-05  Jim Meyering  <meyering@redhat.com>
59668         maint.mk: Prohibit inclusion of "close-stream.h" without use.
59669         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
59671 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59673         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
59675 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59677         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
59679 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59681         Fix link error.
59682         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
59683         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59685 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59687         * tests/test-func.c: Also test value of __func__.
59689 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59691         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
59692         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
59694 2009-11-05  Bruno Haible  <bruno@clisp.org>
59696         Fix link error.
59697         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
59698         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59699         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
59701 2009-11-05  Bruno Haible  <bruno@clisp.org>
59703         Tests for module 'inet_pton'.
59704         * modules/inet_pton-tests: New file.
59705         * tests/test-inet_pton.c: New file.
59707 2009-11-05  Bruno Haible  <bruno@clisp.org>
59709         Tests for module 'inet_ntop'.
59710         * modules/inet_ntop-tests: New file.
59711         * tests/test-inet_ntop.c: New file.
59713 2009-11-04  Eric Blake  <ebb9@byu.net>
59715         stdlib-safer: wrap all mkstemp variants
59716         * modules/mkostemp (configure.ac): Set witness.
59717         * modules/mkostemps (configure.ac): Likewise.
59718         * modules/mkstemps (configure.ac): Likewise.
59719         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
59720         (mkstemps_safer): Wrap more functions.
59721         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
59722         wrapping.
59723         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
59724         (mkstemps_safer): Implement the wrappers.
59726         mkstemps, mkostemps: new modules
59727         * modules/mkostemps: New module.
59728         * modules/mkstemps: Likewise.
59729         * lib/mkostemps.c (mkostemps): New file.
59730         * lib/mkstemps.c (mkstemps): Likewise.
59731         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
59732         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
59733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
59734         * modules/stdlib (Makefile.am): Substitute them.
59735         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
59736         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
59737         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
59738         * doc/gnulib.texi (Glibc stdlib.h): Include them.
59739         * MODULES.html.sh (File system functions): Mention them.
59741         tempname: resync from glibc
59742         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
59743         same values for __GT_FILE as glibc.  Abort even when assertions
59744         are disabled.
59745         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
59746         match its value otherwise.  Allow idempotent inclusion.
59747         * lib/mkdtemp.c (mkdtemp): Adjust caller.
59748         * lib/mkostemp.c (mkostemp): Likewise.
59749         * lib/mkstemp.c (mkstemp): Likewise.
59750         * lib/tmpfile.c (tmpfile): Likewise.
59751         * NEWS: Document this.
59753         utimens: fix use of futimens on older Linux
59754         * lib/utimens.c (fdutimens): Use updated, rather than original,
59755         timespec to avoid bug in older Linux kernel.
59756         Reported by Simon Josefsson.
59758 2009-11-04  Bruno Haible  <bruno@clisp.org>
59760         Make num_processors more flexible and consistent.
59761         * lib/nproc.h (enum nproc_query): New type.
59762         (num_processors): Add a 'query' argument.
59763         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
59764         (num_processors): Add a 'query' argument. Test the value of the
59765         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
59766         mingw, count the number of CPUs available for the current process.
59767         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
59768         Check for sched_getaffinity and sched_getaffinity_np.
59769         * modules/nproc (Depends-on): Add c-ctype, extensions.
59770         * NEWS: Mention the change.
59772 2009-11-03  Bruno Haible  <bruno@clisp.org>
59774         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
59776 2009-11-03  Jim Meyering  <meyering@redhat.com>
59778         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
59779         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
59780         if it is defined.
59782 2009-11-02  Eric Blake  <ebb9@byu.net>
59784         mktime, timegm: share common declaration
59785         * lib/mktime-internal.h: New file.
59786         * lib/mktime.c: Use it rather than open-coding a declaration.
59787         * lib/timegm.c: Likewise.
59788         * modules/mktime (Files): Ship it.
59789         * modules/timegm (Files): Likewise.
59790         Suggested by Bruno Haible.
59792         test-update-copyright: update test to match script changes
59793         * tests/test-update-copyright.sh: Avoid hard-coding perl
59794         location.  Don't update *.bak created by earlier runs.
59796 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59797             Simon Josefsson  <simon@josefsson.org>
59798             Bruno Haible  <bruno@clisp.org>
59800         Fix link error on Solaris 8.
59801         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
59802         also in libnsl. Define also INET_PTON_LIB.
59803         * modules/inet_pton (Link): New section.
59805 2009-11-02  Simon Josefsson  <simon@josefsson.org>
59806             Bruno Haible  <bruno@clisp.org>
59808         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
59809         * modules/inet_ntop (Link): New section.
59810         Reported by Boyan Kasarov <bkasarov@gmail.com>.
59812 2009-11-02  Eric Blake  <ebb9@byu.net>
59814         maint: avoid compiler warnings in m4 macros
59815         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
59816         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
59818 2009-11-02  Simon Josefsson  <simon@josefsson.org>
59820         * m4/pmccabe2html.m4: Remove file.
59821         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
59822         function.  Change maintainer.
59823         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
59824         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
59825         Courtès).
59827 2009-10-31  Eric Blake  <ebb9@byu.net>
59829         fseeko: fix m4 regression
59830         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
59831         regression from 2009-10-27.
59832         Reported by Ralf Wildenhues.
59834 2009-10-31  Jim Meyering  <meyering@redhat.com>
59836         inttostr: aesthetics and improved (compile-time) safety
59837         Define inttype_is_signed rather than inttype_is_unsigned,
59838         since the sole use is via "#if inttype_is_signed".
59839         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
59840         inttype_is_unsigned.
59841         * lib/offtostr.c (inttype_is_signed): Likewise.
59842         * lib/uinttostr.c (inttype_is_signed): Likewise.
59843         * lib/umaxtostr.c (inttype_is_signed): Likewise.
59844         * lib/inttostr.c (inttostr): Use verify to cross-check the
59845         inttype_is_signed value and the signedness of the actual type.
59846         * modules/inttostr (Depends-on): Add verify.
59848 2009-10-30  Eric Blake  <ebb9@byu.net>
59850         build: avoid compiler warnings
59851         * lib/fchmodat.c (lchmod): Mark unused variables.
59852         * lib/getopt.c (_getopt_initialize): Likewise.
59853         * lib/mktime.c (__mktime_internal): Provide prototype.
59854         * lib/inttostr.c (inttostr): Avoid compiler warning even with
59855         older gcc that do not understand #pragma GCC diagnostic.
59856         * lib/uinttostr.c (inttype_is_unsigned): Define.
59857         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
59859 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
59861         stat: fix compilation on AIX
59862         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
59863         only see struct stat64.
59865 2009-10-30  Eric Blake  <ebb9@byu.net>
59867         exclude: make more robust
59868         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
59869         rather than masking a coding bug.
59870         Suggested by Bruno Haible.
59872 2009-10-30  Jim Meyering  <meyering@redhat.com>
59874         perl scripts: remove #!/usr/bin/perl in favor of more portable...
59875         Rather than putting #!/usr/bin/perl on the first line,
59876         start with a variant of what's recommended by "man perlrun" that
59877         invokes the first "perl" program from your shell's search path.
59878         * build-aux/gitlog-to-changelog: Replace #!... as above.
59879         Add a "Local Variables" perl mode setting.
59880         Prompted by a patch from Ludovic Courtès.
59881         Improved by Eric Blake.
59882         * build-aux/useless-if-before-free: Likewise.
59883         * build-aux/announce-gen: Likewise.
59884         * build-aux/update-copyright: Likewise.
59886 2009-10-29  Eric Blake  <ebb9@byu.net>
59888         filenamecat-lgpl: adjust clients
59889         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
59890         filenamecat.
59891         * modules/renameat (Depends-on): Likewise.
59893         filenamecat: split into filenamecat-lgpl
59894         * modules/filenamecat-lgpl: New module.
59895         * modules/filenamecat (Files): Move library-safe files into
59896         filenamecat-lgpl.
59897         (Depends-on): Add filenamecat-lgpl.
59898         (configure.ac): Declare witness.
59899         * lib/filenamecat.h (file_name_concat): Only declare when using
59900         GPL module.
59901         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
59902         Move...
59903         * lib/filenamecat-lgpl.c: ...into new file.
59904         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
59905         (gl_FILE_NAME_CONCAT): Use it.
59906         * MODULES.html.sh (File system functions): Mention new module.
59908         argp: avoid memory leak
59909         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
59910         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
59911         base_name, since the latter malloc()s and can call exit().
59912         Leak introduced 2006-07-03.
59914         dirname-lgpl: adjust clients that don't need full dirname
59915         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
59916         * modules/filenamecat (Depends-on): Likewise.
59917         * modules/linkat (Depends-on): Likewise.
59918         * modules/mkancesdirs (Depends-on): Likewise.
59919         * modules/mkdir (Depends-on): Likewise.
59920         * modules/openat (Depends-on): Likewise.
59921         * modules/savewd (Depends-on): Likewise.
59922         * modules/rename (Depends-on): Likewise.
59923         (License): Relax license.
59924         * modules/mkdir-tests (Depends-on): Drop progname.
59925         (Makefile.am): Delete unneeded LDADD.
59926         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
59928         dirname: split into dirname-lgpl
59929         * modules/dirname-lgpl: New module.
59930         * modules/dirname (Files): Move library-safe files into
59931         dirname-lgpl.
59932         (Depends-on): Add dirname-lgpl.
59933         (configure.ac): Declare witness.
59934         * modules/double-slash-root (License): Relax license.
59935         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
59936         module.
59937         * lib/dirname.c (dir_len, mdir_name): Move...
59938         * lib/dirname-lgpl.c: ...into new file.
59939         * lib/basename.c (last_component, base_len): Move...
59940         * lib/basename-lgpl.c: ...into new file.
59941         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
59942         (gl_DIRNAME): Use it.
59943         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
59944         Mention new module.
59945         * modules/dirname-tests (Depends-on): Add progname.
59946         * tests/test-dirname.c (program_name): Delete.
59948         mkdir: make safe for libraries
59949         * modules/mkdir (Depends-on): Drop xalloc.
59950         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
59951         exit.
59953         tests: avoid some compiler warnings
59954         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
59955         literals.
59956         * tests/test-memchr.c (main): Avoid type mismatch.
59957         * tests/test-arpa_inet.c (main): Avoid unused parameters.
59958         * tests/test-base64.c (main): Likewise.
59959         * tests/test-getdelim.c (main): Likewise.
59960         * tests/test-gethostname.c (main): Likewise.
59961         * tests/test-getline.c (main): Likewise.
59962         * tests/test-netinet_in.c (main): Likewise.
59963         * tests/test-select.c (open_server_socket, main): Likewise.
59964         * tests/test-select-stdin.c (main): Likewise.
59965         * tests/test-sockets.c (main): Likewise.
59966         * tests/test-strsignal.c (main): Likewise.
59967         * tests/test-sys_select.c (main): Likewise.
59968         * tests/test-sys_socket.c (main): Likewise.
59969         * tests/test-u64.c (main): Likewise.
59970         * tests/test-xfprintf-posix.c (main): Likewise.
59971         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
59973         sockets: avoid compiler warning
59974         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
59976         maint: detect usage(1) and other suspicious exits
59977         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
59979 2009-10-29  Jim Meyering  <meyering@redhat.com>
59981         timespec: long-to-int truncation could make timespec_cmp malfunction
59982         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
59983         a multiple of 2^32 nanoseconds as no difference.
59985 2009-10-28  Jim Meyering  <meyering@redhat.com>
59987         fprintftime: wrap macro code argument in "do {...} while(0)"
59988         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
59989         cpy macro must be a statement that can be followed by a semicolon.
59990         Now that the else clause contains a comment and is hence longer
59991         than one line, I require curly braces.  That in turn requires
59992         that we wrap this code block in the standard do...while(0).
59994         fprintftime: remove stray semicolon from previous change
59995         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
59997         fprintftime: avoid a warning about ignored fwrite return value
59998         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
59999         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
60000         that is unsafe.
60001         * modules/fprintftime (Depends-on): Add ignore-value.
60003         exclude: avoid an unwarranted warning
60004         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
60006 2009-10-27  Eric Blake  <ebb9@byu.net>
60008         fseek: avoid compilation failure when fflush is replaced
60009         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
60010         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
60011         module is in use.
60012         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
60013         module is not in use; since REPLACE_FSEEK worked otherwise.
60014         (GNULIB_FTELLO): Likewise for ftell.
60015         Reported by Ian Beckwith and others.
60017 2009-10-27  Bruno Haible  <bruno@clisp.org>
60019         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
60020         Reported by Jim Meyering.
60022 2009-10-27  Jim Meyering  <jim@meyering.net>
60023             Bruno Haible  <bruno@clisp.org>
60025         Avoid warning despite dropping the return value of fwrite.
60026         * lib/unicodeio.c: Include ignore-value.h.
60027         (fwrite_success_callback): Explicitly ignore fwrite's return value.
60028         * modules/unicodeio (Depends-on): Add ignore-value.
60030 2009-10-26  Eric Blake  <ebb9@byu.net>
60032         areadlinkat: fix fallback path
60033         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
60034         pointer and zero.
60036 2009-10-22  Pádraig Brady  <P@draigBrady.com>
60038         Use a better IO block size for modern systems
60039         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
60040         * lib/md2.c: Likewise.
60041         * lib/md4.c: Likewise.
60042         * lib/md5.c: Likewise.
60043         * lib/sha1.c: Likewise.
60044         * lib/sha256.c: Likewise.
60045         * lib/sha512.c: Likewise.
60047 2009-10-22  Eric Blake  <ebb9@byu.net>
60049         tests: avoid several compiler warnings
60050         * tests/test-getcwd.c (main): Avoid buffer underflow.
60051         * tests/test-getdate.c (main): String literals are not safe with
60052         putenv, so use setenv.  Declare unused argument.
60053         * modules/getdate-tests (Depends-on): Add setenv.
60054         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
60055         problems with string literals in char *.
60056         * tests/test-hash.c (main): Avoid shadowing declaration.
60057         (insert_new): Treat string literals as char const *.
60058         * tests/test-getopt.h (test_getopt): Likewise.
60059         (getopt_loop): Alter types to minimize casting elsewhere.
60060         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
60061         (test_getopt_long_posix): Likewise.
60062         (do_getopt_long): Add wrapper to minimize casting.
60063         * tests/test-atexit.c (clear_temp_file): Use void.
60064         * tests/test-areadlink-with-size.c (main): Declare unused
60065         arguments.
60066         * tests/test-areadlink.c (main): Likewise.
60067         * tests/test-areadlinkat-with-size.c (main): Likewise.
60068         * tests/test-areadlinkat.c (main): Likewise.
60069         * tests/test-canonicalize-lgpl.c (main): Likewise.
60070         * tests/test-canonicalize.c (main): Likewise.
60071         * tests/test-dirent-safer.c (main): Likewise.
60072         * tests/test-dirname.c (main): Likewise.
60073         * tests/test-dup2.c (main): Likewise.
60074         * tests/test-fchdir.c (main): Likewise.
60075         * tests/test-fcntl-h.c (main): Likewise.
60076         * tests/test-fcntl-safer.c (main): Likewise.
60077         * tests/test-fdopendir.c (main): Likewise.
60078         * tests/test-fdutimensat.c (main): Likewise.
60079         * tests/test-fflush.c (main): Likewise.
60080         * tests/test-filenamecat.c (main): Likewise.
60081         * tests/test-filevercmp.c (main): Likewise.
60082         * tests/test-fopen-safer.c (main): Likewise.
60083         * tests/test-fopen.c (main): Likewise.
60084         * tests/test-fpending.c (main): Likewise.
60085         * tests/test-fpurge.c (main): Likewise.
60086         * tests/test-freading.c (main): Likewise.
60087         * tests/test-fstatat.c (main): Likewise.
60088         * tests/test-fsync.c (main): Likewise.
60089         * tests/test-futimens.c (main): Likewise.
60090         * tests/test-getndelim2.c (main): Likewise.
60091         * tests/test-gettimeofday.c (main): Likewise.
60092         * tests/test-getopt.c (main): Likewise.
60093         * tests/test-i-ring.c (main): Likewise.
60094         * tests/test-inttypes.c (main): Likewise.
60095         * tests/test-link.c (main): Likewise.
60096         * tests/test-lstat.c (main): Likewise.
60097         * tests/test-math.c (main): Likewise.
60098         * tests/test-md5.c (main): Likewise.
60099         * tests/test-memchr2.c (main): Likewise.
60100         * tests/test-memrchr.c (main): Likewise.
60101         * tests/test-mkdir.c (main): Likewise.
60102         * tests/test-mkdirat.c (main): Likewise.
60103         * tests/test-mkfifoat.c (main): Likewise.
60104         * tests/test-open.c (main): Likewise.
60105         * tests/test-openat-safer.c (main): Likewise.
60106         * tests/test-openat.c (main): Likewise.
60107         * tests/test-quotearg.c (main): Likewise.
60108         * tests/test-rawmemchr.c (main): Likewise.
60109         * tests/test-readlink.c (main): Likewise.
60110         * tests/test-remove.c (main): Likewise.
60111         * tests/test-rename.c (main): Likewise.
60112         * tests/test-renameat.c (main): Likewise.
60113         * tests/test-rmdir.c (main): Likewise.
60114         * tests/test-sha1.c (main): Likewise.
60115         * tests/test-signal.c (main): Likewise.
60116         * tests/test-sigaction.c (main): Likewise.
60117         * tests/test-stat.c (main): Likewise.
60118         * tests/test-stat-time.c (main): Likewise.
60119         * tests/test-stddef.c (main): Likewise.
60120         * tests/test-stdint.c (main): Likewise.
60121         * tests/test-stdio.c (main): Likewise.
60122         * tests/test-stdlib.c (main): Likewise.
60123         * tests/test-strchrnul.c (main): Likewise.
60124         * tests/test-strerror.c (main): Likewise.
60125         * tests/test-string.c (main): Likewise.
60126         * tests/test-strtod.c (main): Likewise.
60127         * tests/test-strverscmp.c (main): Likewise.
60128         * tests/test-symlink.c (main): Likewise.
60129         * tests/test-symlinkat.c (main): Likewise.
60130         * tests/test-sys_stat.c (main): Likewise.
60131         * tests/test-sys_time.c (main): Likewise.
60132         * tests/test-time.c (main): Likewise.
60133         * tests/test-unistd.c (main): Likewise.
60134         * tests/test-unlink.c (main): Likewise.
60135         * tests/test-unlinkat.c (main): Likewise.
60136         * tests/test-utimens.c (main): Likewise.
60137         * tests/test-utimensat.c (main): Likewise.
60138         * tests/test-version-etc.c (main): Likewise.
60139         * tests/test-wchar.c (main): Likewise.
60140         * tests/test-wctype.c (main): Likewise.
60141         * tests/test-xprintf-posix.c (main): Likewise.
60142         * tests/test-posixtm.c (main): Likewise.
60143         (STREQ): Delete unused macro.
60144         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
60145         shadowed variables.
60146         * tests/test-memchr.c (main): Likewise.
60148 2009-10-21  Eric Blake  <ebb9@byu.net>
60150         areadlinkat: avoid failure on older glibc
60151         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
60152         rather than mis-comparing 0 against FUNC_RESULT of char*.
60154 2009-10-21  Bruno Haible  <bruno@clisp.org>
60156         * modules/stpncpy (License): Relicense under LGPLv2+.
60157         Reported by David Lutterkort <lutter@redhat.com>.
60159 2009-10-20  Eric Blake  <ebb9@byu.net>
60161         utimensat: work around Solaris 9 bug
60162         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
60163         has trailing slash bugs.
60164         * tests/test-lutimens.h (test_lutimens): Enhance test.
60165         * tests/test-utimens.h (test_utimens): Likewise.
60166         * doc/posix-functions/utime.texi (utime): Enhance documentation.
60167         * doc/posix-functions/utimes.texi (utimes): Likewise.
60168         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60169         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
60170         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
60171         * doc/posix-functions/futimens.texi (futimens): Likewise.
60173         fdutimensat: new module
60174         * modules/fdutimensat: New file.
60175         * lib/fdutimensat.c (fdutimensat): Likewise.
60176         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
60177         * MODULES.html.sh (File system functions): Mention module.
60178         * modules/fdutimensat-tests: New test.
60179         * tests/test-fdutimensat.c: Likewise.
60181         doc: regenerate INSTALL
60182         * doc/INSTALL: Reflect recent autoconf update.
60183         * doc/INSTALL.ISO: Likewise.
60184         * doc/INSTALL.UTF-8: Likewise.
60186 2009-10-20  Pádraig Brady  <P@draigBrady.com>
60188         acl: warn if ACL support is not detected
60189         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
60191 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
60193         * lib/nproc.h: Add extern "C" block for C++.
60195 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
60196             Bruno Haible  <bruno@clisp.org>
60198         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
60199         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
60200         * doc/posix-functions/isalpha.texi: Likewise.
60201         * doc/posix-functions/isblank.texi: Likewise.
60202         * doc/posix-functions/iscntrl.texi: Likewise.
60203         * doc/posix-functions/isdigit.texi: Likewise.
60204         * doc/posix-functions/isgraph.texi: Likewise.
60205         * doc/posix-functions/islower.texi: Likewise.
60206         * doc/posix-functions/isprint.texi: Likewise.
60207         * doc/posix-functions/ispunct.texi: Likewise.
60208         * doc/posix-functions/isspace.texi: Likewise.
60209         * doc/posix-functions/isupper.texi: Likewise.
60210         * doc/posix-functions/isxdigit.texi: Likewise.
60212 2009-10-18  Bruno Haible  <bruno@clisp.org>
60214         Tests for module 'isblank'.
60215         * modules/isblank-tests: New file.
60216         * tests/test-isblank.c: New file.
60218         New module 'isblank'.
60219         * lib/isblank.c: New file.
60220         * m4/isblank.m4: New file.
60221         * modules/isblank: New file.
60222         * doc/posix-functions/isblank.texi: Mention the new module.
60224 2009-10-18  Bruno Haible  <bruno@clisp.org>
60226         New module 'ctype'.
60227         * lib/ctype.in.h: New file.
60228         * m4/ctype.m4: New file.
60229         * modules/ctype: New file.
60230         * doc/posix-headers/ctype.texi: Mention the new module.
60232 2009-10-18  Jim Meyering  <meyering@redhat.com>
60234         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
60235         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
60236         right after its initialization, rather than farther down.
60237         Keeping these in close proximity makes it easier to ensure
60238         that each such variable is initialized.  E.g.,
60240             LIB_CLOCK_GETTIME=
60241             AC_SUBST([LIB_CLOCK_GETTIME])
60243         This change also increments these serial numbers.
60244         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
60245         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60246         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60248 2009-10-18  Bruno Haible  <bruno@clisp.org>
60250         Don't let environment variables perturb build.
60251         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
60252         (gl_PREREQ_GETHRXTIME): ... not here.
60254 2009-10-18  Bruno Haible  <bruno@clisp.org>
60256         Avoid symlink attack in localcharset module.
60257         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
60258         (O_NOFOLLOW): Define fallback.
60259         (get_charset_aliases): Don't open the file if it is a symbolic link.
60260         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
60261         gl_FCNTL_H.
60262         (gl_FCNTL_H): Require it.
60263         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
60264         * modules/localcharset (Files): Add m4/fcntl_h.m4.
60265         Reported by Fergal Glynn <fglynn@veracode.com>.
60267 2009-10-18  Bruno Haible  <bruno@clisp.org>
60269         Implement nproc for mingw.
60270         * lib/nproc.c: Include <windows.h>
60271         (num_processors): On native Windows platforms, try GetSystemInfo.
60273 2009-10-18  Bruno Haible  <bruno@clisp.org>
60275         Implement nproc for IRIX.
60276         * lib/nproc.c: Include <sys/sysmp.h>.
60277         (num_processors): On IRIX systems, try sysmp.
60278         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
60280 2009-10-18  Bruno Haible  <bruno@clisp.org>
60282         Implement nproc for HP-UX.
60283         * lib/nproc.c: Include <sys/pstat.h>
60284         (num_processors): On HP-UX systems, try pstat_getdynamic.
60285         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
60286         pstat_getdynamic.
60288 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
60289             Bruno Haible  <bruno@clisp.org>
60291         Implement nproc for NetBSD, OpenBSD.
60292         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
60293         (ARRAY_SIZE): New macro.
60294         (num_processors): On BSD systems, try sysctl of HW_NCPU.
60295         * m4/nproc.m4: New file.
60296         * modules/nproc (Files): Add m4/nproc.m4.
60297         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
60298         (Makefile.am): Instead, augment lib_SOURCES.
60300 2009-10-18  Bruno Haible  <bruno@clisp.org>
60302         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
60303         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
60304         sys/param.h.
60306 2009-10-16  Eric Blake  <ebb9@byu.net>
60308         utimensat: new module
60309         * modules/utimensat: New file.
60310         * lib/utimensat.c (utimensat): Likewise.
60311         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60312         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
60313         so we can work around Linux bugs.
60314         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60315         * modules/sys_stat (Makefile.am): Substitute them.
60316         * lib/sys_stat.in.h (utimensat): Declare it.
60317         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60318         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60319         * modules/utimensat-tests: New test.
60320         * tests/test-utimensat.c: Likewise.
60322         utimens: let lutimens work on non-symlinks
60323         * lib/utimens.c (lutimens): Fall back to utimens rather than
60324         failing with ENOSYS, when file is not a symlink.
60325         (utimens): Reduce redirection.
60326         * tests/test-lutimens.h (test_lutimens): Update test to cover
60327         non-symlinks.
60328         * tests/test-utimens.h (test_utimens): Update test to cover
60329         symlinks.
60330         * tests/test-utimens.c (main): Update caller.
60332         utimens: cache whether utimensat syscall works
60333         * lib/utimens.c (utimensat_works_really): New cache variable.
60334         (fdutimens, lutimens): Use it to avoid failing syscall.
60336         test-stat-time, test-utimens: improve portability
60337         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
60338         ext4 on alpha, and for cygwin.
60339         * tests/test-utimens-common.h: New file.
60340         (nap): Factor delays into single function.
60341         * tests/test-lutimens.h (test_lutimens): Use new header.
60342         * tests/test-futimens.h (test_futimens): Likewise.
60343         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
60344         timestamps to occur from same machine, as was done previously for
60345         test_utimens.
60346         * modules/utimens-tests (Files): Ship new file.
60347         * modules/futimens-tests (Files): Likewise.
60348         Reported in part by Jim Meyering.
60350         sys_stat: sort replacement declarations
60351         * lib/sys_stat.in.h: Sort declarations.
60352         * lib/futimens.c (futimens): Fix typo.
60354 2009-10-15  Jim Meyering  <meyering@redhat.com>
60356         don't let environment settings perturb build
60357         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
60358         could cause a configure-time and/or build-time malfunction.
60359         Typically, a configure-time function-in-library test is performed
60360         via code like this:
60362           LIB_VAR=
60363           AC_SUBST([LIB_VAR])
60364           prefix_saved_LIBS=$LIBS
60365             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
60366                        [test "$ac_cv_search_FUNC" = "none required" ||
60367                         LIB_VAR=$ac_cv_search_FUNC])
60368           LIBS=$prefix_saved_LIBS
60370         However, in each of the files affected by this change, the LIB_VAR=
60371         initialization was omitted.  Thus, when set in the environment, its
60372         value would propagate into generated Makefiles when FUNC is not found
60373         in LIB_NAME.
60374         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
60375         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60376         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60378 2009-10-14  Eric Blake  <ebb9@byu.net>
60380         fchdir: avoid infinite recursion in mingw
60381         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
60382         recursing.
60384         test-stat-time: port to mingw
60385         * tests/test-stat-time.c (force_unlink): Return a value.
60386         (test_ctime) [W32]: Fix compilation error.
60387         (nap): Don't call usleep with too large an argument.  Use
60388         force_unlink.
60389         * doc/pastposix-functions/usleep.texi (usleep): Document the
60390         portability issue.
60392 2009-10-13  Jim Meyering  <meyering@redhat.com>
60394         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
60395         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
60396         * modules/pipe-filter-ii: Likewise.
60397         * modules/sys_socket-tests: Likewise.
60398         * modules/tsearch-tests: Likewise.
60399         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
60400         (check): Depend on it.
60402 2009-10-12  Eric Blake  <ebb9@byu.net>
60404         utimens-tests: port to NFS file systems
60405         * tests/test-utimens.h (test_utimens): Refactor utimecmp
60406         comparisons to avoid spurious failures from timestamp drift
60407         between NFS machines.
60409 2009-10-12  Eric Blake  <ebb9@byu.net>
60411         stat-time-tests: minor cleanups
60412         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
60413         * tests/test-stat-time.c (nap): Separate assignment from call.
60414         Suggested by Paolo Bonzini and Bruno Haible.
60416         sys_stat: guarantee struct timespec
60417         * lib/sys_stat.in.h (includes): Always include <time.h>
60418         * modules/sys_stat (Depends-on): Add time.
60419         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
60420         mode_t permission values.
60421         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
60422         get at subsecond timestamps.
60424 2009-10-10  Eric Blake  <ebb9@byu.net>
60426         futimens: new module
60427         * modules/futimens: New file.
60428         * lib/futimens.c (futimens): Likewise.
60429         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
60430         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
60431         we can work around Linux bugs.
60432         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60433         * modules/sys_stat (Makefile.am): Substitute them.
60434         * lib/sys_stat.in.h (futimens): Declare it.
60435         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60436         * doc/posix-functions/futimens.texi (futimens): Likewise.
60437         * modules/futimens-tests: New test.
60438         * tests/test-futimens.c: Likewise.
60440         utimens: introduce fdutimens
60441         * lib/utimens.h (fdutimens): New prototype.
60442         * lib/utimens.c (gl_futimens): Move guts...
60443         (fdutimens): ...to new interface.
60444         * tests/test-utimens.c (do_fdutimens): Use it.
60446         utimens: add UTIME_NOW and UTIME_OMIT support
60447         * lib/utimens.c (validate_timespec, update_timespec): New helper
60448         functions.
60449         (gl_futimens, lutimens): Use them.
60450         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
60451         stdbool, sys_stat.
60452         (Link): Mention resulting library dependency.
60453         * modules/utimecmp (Link): Likewise.
60454         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
60455         (Makefile.am): Pick up library dependency.
60456         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
60457         definition.
60458         * tests/test-sys_stat.c: Test the definitions.
60459         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
60460         * NEWS: Document library dependency.
60462         utimecmp: support symlink timestamps
60463         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
60464         hashing when possible.  Use pathconf when available.
60465         (SYSCALL_RESOLUTION): Recognize tighter resolution.
60466         * modules/utimecmp (Depends-on): Add lstat.
60468         utimens: add lutimens interface
60469         * lib/utimens.c (lutimens): New function.
60470         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
60471         * lib/utimens.h (lutimens): Declare new interface.
60472         * tests/test-utimens.c (main): Enhance test.
60473         * tests/test-lutimens.h (test_lutimens): New file.
60474         * modules/utimens-tests (Files): Distribute it.
60475         (Depends-on): Add symlink.
60476         (configure.ac): Check for usleep.
60478         utimens: validate futimens usage
60479         * lib/utimens.c (gl_futimens): Require valid fd up front, using
60480         fewer syscalls on failure later on.  Avoid compiler warning on
60481         mingw.
60482         * modules/utimens (Depends-on): Add dup2.
60484         utimens: add test
60485         * modules/utimens-tests: New test.
60486         * tests/test-utimens.h: New file.
60487         * tests/test-futimens.h: Likewise.
60488         * tests/test-utimens.c: Likewise.
60490         doc: mention timestamp portability issues
60491         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
60492         instead.
60493         * doc/posix-functions/utime.texi (utime): Likewise.
60494         * doc/posix-functions/utimes.texi (utimes): Likewise.
60495         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
60496         instead.
60497         * doc/posix-functions/futimens.texi (futimens): Mention utimens
60498         module.
60499         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60500         Mention weakness with symlink timestamps.
60501         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
60502         to utimensat/futimens instead.
60503         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
60505         test-dup2: enhance test
60506         * tests/test-dup2.c (main): Also check AT_FDCWD.
60508         test-stat-time: avoid more spurious failures
60509         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
60510         xfs; and avoid race if the two timestamps cross quantization edge.
60512         relocatable: prefer 'file system' over 'filesystem'
60513         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
60514         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
60515         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
60516         * doc/relocatable.texi (Enabling Relocatability): Likewise.
60517         * lib/relocatable.c (compute_curr_prefix): Likewise.
60519 2009-10-10  Jim Meyering  <meyering@redhat.com>
60521         stat-time-tests: check for the usleep function
60522         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
60524 2009-10-10  Bruno Haible  <bruno@clisp.org>
60526         * modules/xnanosleep: Put the Link section after the Include section.
60528 2009-10-09  Eric Blake  <ebb9@byu.net>
60530         dup2: work around FreeBSD 6.1 bug
60531         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
60532         * doc/posix-functions/dup2.texi (dup2): Document it.
60533         Reported by Nelson H. F. Beebe and Jim Meyering.
60535         test-stat-time: port to buggy NFS clients
60536         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
60537         (test_ctime): Also skip test if mtime and ctime are skewed.
60539         maint: prefer 'file system' over 'filesystem'
60540         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
60541         * doc/posix-functions/lstat.texi (lstat): Likewise.
60542         * lib/file-has-acl.c (file_has_acl): Likewise.
60543         * lib/fwriteerror.c [TEST]: Likewise.
60544         * tests/test-areadlink.h (test_areadlink): Likewise.
60545         * tests/test-areadlinkat-with-size.c (main): Likewise.
60546         * tests/test-areadlinkat.c (main): Likewise.
60547         * tests/test-canonicalize-lgpl.c (main): Likewise.
60548         * tests/test-canonicalize.c (main): Likewise.
60549         * tests/test-fstatat.c (main): Likewise.
60550         * tests/test-linkat.c (main): Likewise.
60551         * tests/test-lstat.h (test_lstat_func): Likewise.
60552         * tests/test-mkdir.h (test_mkdir): Likewise.
60553         * tests/test-readlink.h (test_readlink): Likewise.
60554         * tests/test-remove.c (main): Likewise.
60555         * tests/test-rename.h (test_rename): Likewise.
60556         * tests/test-renameat.c (main): Likewise.
60557         * tests/test-rmdir.h (test_rmdir_func): Likewise.
60558         * tests/test-symlink.h (test_symlink): Likewise.
60559         * tests/test-symlinkat.c (main): Likewise.
60560         * tests/test-unlink.h (test_unlink_func): Likewise.
60561         * tests/test-unlinkat.c (main): Likewise.
60563         maint: make realtime library usage explicit
60564         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
60565         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
60566         * modules/settime (Link): Likewise.
60567         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
60569         test-stat-time: speed up execution
60570         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
60571         warning on mingw.
60572         (nap): New helper function.
60573         (prepare_test): Use it to reduce sleep time.
60574         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
60575         execution.
60576         * modules/stat-time-tests (configure.ac): Check for usleep.
60578 2009-10-09  Jim Meyering  <meyering@redhat.com>
60580         selinux-h: always use getfilecon wrappers
60581         * lib/getfilecon.c: New file.
60582         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
60583         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
60584         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
60585         (fgetfilecon): Provide a stub.
60586         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
60587         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
60588         file unconditionally.
60589         When <selinux/selinux.h> is found, arrange to use wrappers.
60590         * modules/selinux-h (Files): Add getfilecon.c.
60591         (Makefile.am): Substitute include-next-related bits
60592         into the now-always-generated selinux/selinux.h file.
60593         * doc/glibc-functions/lgetfilecon.texi: New file.
60594         * doc/glibc-functions/fgetfilecon.texi: New file.
60595         * doc/glibc-functions/getfilecon.texi: New file.
60596         * doc/glibc-functions/getfilecon-desc.texi: New file.
60597         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
60598         which to pull in the new files.
60599         * MODULES.html.sh (Misc): Add selinux-h.
60601 2009-10-08  Jim Meyering  <meyering@redhat.com>
60603         unistd: fix comment typo
60604         * lib/unistd.in.h (euidaccess): Fix a comment typo.
60606 2009-10-08  Eric Blake  <ebb9@byu.net>
60608         areadlink: use SIZE_MAX consistently
60609         * modules/areadlink (Depends-on): Add stdint.
60610         * modules/areadlink-with-size (Depends-on): Likewise.
60611         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
60612         gives NULL; drop sys/types, since unistd gives size_t; and add
60613         stdint for SIZE_MAX.
60614         (SIZE_MAX): Rely on headers.
60615         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
60616         and add stdint.
60617         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
60618         (SIZE_MAX): Likewise.
60619         (INITIAL_BUF_SIZE): Turn into enum.
60620         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
60622 2009-10-08  Jim Meyering  <meyering@redhat.com>
60624         areadlinkat: avoid compilation failure
60625         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
60626         Fix typo in comment.
60628 2009-10-07  Eric Blake  <ebb9@byu.net>
60630         areadlinkat-with-size: new module
60631         * modules/areadlinkat-with-size: New module.
60632         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
60633         * lib/areadlink.h (areadlinkat): Declare it.
60634         * MODULES.html.sh (File system functions): Mention it.
60635         * modules/areadlinkat-with-size-tests: New test.
60636         * tests/test-areadlinkat-with-size.c: New file.
60638         xreadlinkat: new module
60639         * modules/xreadlinkat: New module.
60640         * lib/xreadlinkat.c (xreadlinkat): New file.
60641         * lib/xreadlink.h (xreadlinkat): Declare it.
60642         * MODULES.html.sh (File system functions): Mention it.
60644         areadlinkat: new module
60645         * lib/at-func.c (FUNC_FAIL): New define.
60646         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
60647         * modules/areadlinkat: New module.
60648         * lib/linkat.c (areadlinkat): Move...
60649         * lib/areadlinkat.c (areadlinkat): ...to new file.
60650         * lib/areadlink.h (areadlinkat): Declare it.
60651         * modules/linkat (Depends-on): Add areadlinkat.
60652         * MODULES.html.sh (File system functions): Mention it.
60653         * modules/areadlinkat-tests: New test.
60654         * tests/test-areadlinkat.c: New file.
60656         areadlink, areadlink-with-size: add tests
60657         * modules/areadlink-tests: New test.
60658         * modules/areadlink-with-size-tests: Likewise.
60659         * tests/test-areadlink.h: New file.
60660         * tests/test-areadlink.c: Likewise.
60661         * tests/test-areadlink-with-size.c: Likewise.
60663         maint: minor cleanups
60664         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
60665         _UNUSED_PARAMETER_ instead.
60666         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
60667         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
60668         * modules/linkat-tests (Files): Distribute test-link.h.
60670         openat, utimens: whitespace cleanup
60671         * lib/openat.c: Prefer space throughout, rather than mix of 8
60672         spaces vs. tabs.
60673         * lib/at-func.c: Likewise.
60674         * lib/utimens.c: Likewise.
60676         openat: avoid using wrong fd
60677         * lib/openat.c (openat_permissive): Reject user's fd if saving the
60678         working directory chooses same fd.
60679         * lib/at-func.c (AT_FUNC_NAME): Likewise.
60681         mkdir, mkdirat: fix cygwin 1.5.x bug
60682         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
60683         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
60684         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
60685         bug.
60686         (gl_PREREQ_MKDIR): Delete unused macro.
60687         * modules/mkdir (Files): Track file rename.
60688         (configure.ac): Update macro name.
60689         * modules/openat (Depends-on): Add mkdir.
60690         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
60692         mkdir, mkdirat: add tests
60693         * modules/mkdir-tests: New test.
60694         * tests/test-mkdir.h: New file.
60695         * tests/test-mkdir.c: Likewise.
60696         * tests/test-mkdirat.c: Likewise.
60697         * modules/openat-tests (Files): Add new files.
60698         (Makefile.am): Run new test.
60700 2009-10-06  Eric Blake  <ebb9@byu.net>
60702         doc: tweak *at function documentation
60703         * doc/posix-functions/faccessat.texi (faccessat): Mention
60704         known issue with replacement.
60705         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
60706         * doc/posix-functions/linkat.texi (linkat): Likewise.
60707         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
60708         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
60709         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
60710         * doc/posix-functions/renameat.texi (renameat): Likewise.
60711         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60713         openat: fix GNU/Hurd bug in unlinkat
60714         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
60715         broken.
60716         * doc/posix-functions/unlink.texi (unlink): Document this.
60717         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
60719         fdopendir: fix GNU/Hurd bug
60720         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
60721         allowing non-directory fds.
60722         * lib/fdopendir.c (rpl_fdopendir): Work around it.
60723         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
60724         * modules/dirent (Makefile.am): Substitute it.
60725         * lib/dirent.in.h (fdopendir): Declare replacement.
60726         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
60727         * tests/test-fdopendir.c (main): Test something other than
60728         /dev/null, since on Hurd that behaves like a directory.
60730         test-symlink: port to GNU/Hurd
60731         * tests/test-symlink.h (test_symlink): Relax expected errno.
60733         doc: tweak more cygwin information
60734         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
60735         now compatible with glibc.
60736         * doc/posix-functions/getopt.texi (getopt): Likewise.
60738         getopt-gnu: add another test
60739         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
60740         guarantee behavior relied on by m4.
60741         * tests/test-getopt.c (main): Use it.
60742         * modules/getopt-posix-tests (Depends-on): Add setenv.
60743         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
60745         getopt: fix compilation on darwin
60746         * lib/getopt.in.h (includes): Leave breadcrumbs during system
60747         include.
60748         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
60749         Reported by Ludovic Courtès.
60751 2009-10-06  Bruno Haible  <bruno@clisp.org>
60753         * modules/size_max (Description): Discourage its use.
60754         Reported by Simon Josefsson.
60756 2009-10-06  Jim Meyering  <meyering@redhat.com>
60758         linkat: avoid compilation failure
60759         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
60761 2009-10-05  Eric Blake  <ebb9@byu.net>
60763         linkat: support Linux 2.6.17
60764         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
60765         linkat on Linux, but allow cache variable override.
60766         * lib/linkat.c (rpl_linkat): Define override.
60767         * modules/linkat (Depends-on): Add symlinkat.
60768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
60769         * modules/unistd (Makefile.am): Substitute it.
60770         * lib/unistd.in.h (linkat): Declare replacement.
60771         Reported by Pádraig Brady.
60773         quotearg: port test to systems with C.UTF-8 locale
60774         * tests/test-quotearg.c (struct result_strings): Add another
60775         member, differentiating between C.ASCII and C.UTF-8 handling.
60776         (compare_strings): Add parameter.
60777         (main): Adjust all callers.
60779         getopt: avoid clash with FreeBSD _getopt_internal
60780         * lib/getopt.in.h (_getopt_internal): Override the name.
60781         * lib/getopt_int.h (includes): Pick up any overrides.
60782         Reported by Reuben Thomas.
60784         hash: allow C89 compilation
60785         * lib/hash.c (check_tuning): Move declaration before statement.
60786         Reported by Reuben Thomas.
60788 2009-10-05  Karl Berry  <karl@gnu.org>
60790         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
60792 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
60793             Bruno Haible  <bruno@clisp.org>
60795         * lib/uname.c (uname): Use a table-driven algorithm to compute
60796         Windows NT versions.
60798 2009-10-04  Bruno Haible  <bruno@clisp.org>
60800         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
60801         program_invocation_short_name.
60802         * modules/progname (configure.ac): Test for presence of
60803         program_invocation_short_name.
60804         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
60806 2009-10-04  Bruno Haible  <bruno@clisp.org>
60808         * lib/progname.c (set_program_name): Fix comment.
60809         Reported by Jim Meyering.
60811 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
60812             Bruno Haible  <bruno@clisp.org>
60814         * lib/uname.c: Include <string.h>.
60815         (uname): Do only one call to GetVersionEx in the common case.
60817 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
60818             Bruno Haible  <bruno@clisp.org>
60820         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
60821         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
60822         (uname): Add support for Windows CE and various non-x86 CPU types.
60824 2009-10-03  Bruno Haible  <bruno@clisp.org>
60826         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
60827         invocation to tests/configure.ac.
60828         Reported by Ian Beckwith <ianb@erislabs.net>.
60830 2009-10-02  Eric Blake  <ebb9@byu.net>
60832         fchdir: avoid compiler warning
60833         * lib/fchdir.c (canonicalize_file_name)
60834         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
60836         test-open: support mingw errno values
60837         * tests/test-open.h (test_open): Relax test.
60838         * tests/test-fopen.h (test_fopen): Likewise.
60839         * tests/test-openat-safer.c (main): Likewise.
60841         open: fix opening directory on mingw
60842         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
60844         test-open: on GNU/Hurd, /dev/null is a directory
60845         * tests/test-fopen.h (main): Rename...
60846         (test_fopen): ...to this.  Use a guaranteed non-directory when
60847         confirming open behavior on trailing slash.
60848         * tests/test-openat-safer.c (main): Likewise.
60849         * tests/test-open.h (main): Likewise....
60850         (test_open): ...to this.
60851         * tests/test-fopen.c (main): Adjust caller.
60852         * tests/test-fopen-safer.c (main): Likewise.
60853         * tests/test-open.c (main): Likewise.
60854         * tests/test-fcntl-safer.c (main): Likewise.
60855         Reported by Samuel Thibault.
60857         rename, fchdir: don't ignore chdir failure
60858         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
60859         * lib/rename.c (rpl_rename) [W32]: Likewise.
60860         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
60861         an empty destination directory if source cannot be renamed,
60862         although there is still possibility for failure.
60863         * doc/posix-functions/rename.texi (rename): Document the race.
60864         Reported by Jim Meyering.
60866         maint: cleanup whitespace in recent commits
60867         * lib/rename.c (rpl_rename): Remove tabs.
60868         * tests/test-link.h (test_link): Likewise.
60869         * lib/fchdir.c (get_name): Likewise.
60870         Reported by Jim Meyering.
60872 2009-10-02  Ben Pfaff  <blp@gnu.org>
60874         relocatable-prog-wrapper: Add missing dependency on
60875         double-slash-root.
60876         * modules/relocatable-prog-wrapper: Add dependency.
60877         Reported by Ian Beckwith <ianb@erislabs.net>.
60879 2009-10-02  Eric Blake  <ebb9@byu.net>
60881         renameat: fix Solaris bugs
60882         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
60883         needed fixing.
60884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
60885         * modules/stdio (Makefile.am): Substitute it.
60886         * lib/stdio.in.h (renameat): Declare replacement.
60887         * lib/renameat.c (rpl_renameat): Implement fix.
60889         renameat: new module
60890         * modules/renameat: New file.
60891         * lib/renameat.c (renameat): Likewise.
60892         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
60893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
60894         * modules/stdio (Makefile.am): Substitute them.
60895         * lib/stdio.in.h (renameat): Declare it.
60896         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60897         * doc/posix-functions/renameat.texi (renameat): Likewise.
60898         * modules/renameat-tests: New test.
60899         * tests/test-renameat.c: Likewise.
60901         rename: fix mingw bugs
60902         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
60903         directory overwrite bugs.
60905         rename: fix another cygwin 1.5 bug
60906         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
60907         checks.
60908         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
60909         unnecessary cygwin workarounds.  Also work around bug with moving
60910         full directory onto an empty one.
60911         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
60913         rename-dest-slash: merge into rename module
60914         * modules/rename-dest-slash (Status): Mark obsolete.
60915         (Depends-on): Add rename.
60916         (Files): Let rename do it all.
60917         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
60918         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
60919         * m4/rename-dest-slash.m4: ...so this file can be deleted.
60920         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
60921         * lib/rename.c (rpl_rename): Update comments.
60923         rename: fix cygwin 1.5.x bugs
60924         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
60925         * lib/rename.c (rpl_rename): Work around them.
60926         * modules/rename (Depends-on): Add same-inode.
60928         rename: fix Solaris 10 bug
60929         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
60930         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
60931         was the only bug.
60933         rename: fix Solaris 9 bug
60934         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
60935         on non-directory.  Avoid calling exit.
60936         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
60937         strdup.
60938         * modules/rename-tests (Depends-on): Drop lstat.
60939         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
60940         (gl_PREREQ_RENAME): Delete unused macro.
60942         rename-dest-slash: fix NetBSD bug
60943         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
60944         links.
60945         * modules/rename-dest-slash (Depends-on): Add same-inode.
60947         rename-tests: new test, exposes several platform bugs
60948         * modules/rename-tests: New file.
60949         * tests/test-rename.h: Likewise.
60950         * tests/test-rename.c: Likewise.
60951         * doc/posix-functions/rename.texi (rename): Improve documentation,
60952         including bugs that will eventually be fixed in gnulib.
60954 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
60956         * lib/uname.c: Include <stdlib.h>
60957         (uname): Assume version info is available.
60959 2009-10-02  Jim Meyering  <meyering@redhat.com>
60961         gnu-web-doc-update: correct --help output
60962         * build-aux/gnu-web-doc-update: Make --help output relevant.
60964         gnu-web-doc-update: add standard options
60965         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
60967         gnu-web-doc-update: New module.
60968         Use this script to automatically update the on-line web documentation
60969         for your GNU project at http://www.gnu.org/software/$pkg/manual/
60970         * modules/gnu-web-doc-update: New file, from coreutils.
60971         * build-aux/gnu-web-doc-update: New script.
60973 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
60975         link: LoadLibrary is not needed.
60976         * lib/link.c: Use GetModuleHandle.
60978 2009-10-01  Eric Blake  <ebb9@byu.net>
60980         getopt: bump serial number
60981         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
60982         change.
60984         tests: tighten link, rmdir, and remove tests
60985         * tests/test-link.h (includes): No need to use <config.h> here.
60986         Clean up if directory hard link was created, otherwise test for
60987         trailing '.'.
60988         * tests/test-linkat.c (main): Simplify.
60989         * tests/test-remove.c (main): Enhance test for trailing '.'.
60990         * tests/test-rmdir.h (test_rmdir_func): Likewise.
60992 2009-10-01  Jim Meyering  <meyering@redhat.com>
60994         maint.mk: requiring "make major" was annoying, for a "minor" release.
60995         What is intended is "stable", to contrast with alpha and beta,
60996         so require "make stable", not "make major".
60997         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
60998         (get_tool_versions): Likewise.
60999         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
61001 2009-09-30  Ben Pfaff  <blp@gnu.org>
61003         Fix broken build of replacement for Windows tmpfile().
61004         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
61005         flags argument added along with the 'mkostemp' module.
61007 2009-09-28  Bruno Haible  <bruno@clisp.org>
61009         Avoid identifier clash with POSIX function 'remove' defined as a macro.
61010         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
61011         to 'remove_elt'.
61012         (gl_list_remove): Update.
61013         * lib/gl_list.c (gl_list_remove): Update.
61014         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
61015         to 'remove_elt'.
61016         (gl_oset_remove): Update.
61017         * lib/gl_list.c (gl_oset_remove): Update.
61018         Reported by Eric Blake.
61020 2009-09-28  Eric Blake  <ebb9@byu.net>
61022         doc: mention yet more cygwin 1.7 status
61023         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
61024         cygwin.
61025         * doc/glibc-functions/execvpe.texi (execvpe): New file.
61026         * doc/gnulib.texi (Glibc unistd.h): Mention it.
61028         argp: fix test failure
61029         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
61030         that are not upper-case.  Pass correct range to tolower.
61032 2009-09-27  Jim Meyering  <meyering@redhat.com>
61034         test-yesno: work around sparc-dash here-document infelicity
61035         Without this change, the literal \177 byte in a here document
61036         would make dash 0.5.5.1-3 access uninitialized memory.
61037         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
61038         Instead, use a marker, "@", and filter through tr to create the desired
61039         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
61041 2009-09-27  Bruno Haible  <bruno@clisp.org>
61043         Disable untested support for new flavours of ACLs on AIX.
61044         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
61045         progress.
61046         * lib/set-mode-acl.c (qset_acl): Likewise.
61048 2008-12-07  Bruno Haible  <bruno@clisp.org>
61050         Add support for new flavours of ACLs on AIX. (Untested.)
61051         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
61052         (file_has_acl): Add support for newer AIX.
61053         * lib/set-mode-acl.c (qset_acl): Likewise.
61054         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
61055         Rainer Tammer <tammer@tammer.net>.
61057 2009-09-26  Eric Blake  <ebb9@byu.net>
61059         argp: fix compilation of getopt
61060         * lib/getopt.in.h (includes): Use different guard than glibc.
61061         Reported by Sergey Poznyakoff.
61063         doc: mention more cygwin 1.7 status
61064         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
61065         bug.
61066         * doc/posix-functions/execl.texi (execl): Likewise.
61067         * doc/posix-functions/execle.texi (execle): Likewise.
61068         * doc/posix-functions/execlp.texi (execlp): Likewise.
61069         * doc/posix-functions/execv.texi (execv): Likewise.
61070         * doc/posix-functions/execve.texi (execve): Likewise.
61071         * doc/posix-functions/execvp.texi (execvp): Likewise.
61072         * doc/glibc-functions/canonicalize_file_name.texi
61073         (canonicalize_file_name): Cygwin 1.7 now provides this.
61074         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
61075         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
61076         on AT_SYMLINK_NOFOLLOW.
61078 2009-09-24  Eric Blake  <ebb9@byu.net>
61080         test-linkat: make test more robust
61081         * tests/test-linkat.c (main): Avoid collision with EEXIST.
61083         getopt: fix inclusion guards for cygwin
61084         * modules/getopt-posix (Depends-on): Add include-next.
61085         (Makefile.am): Substitute more items in replacement header.
61086         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
61087         <getopt.h>.
61088         * lib/getopt.in.h (includes): Use split inclusion guard, and
61089         prefer <getopt.h> over include <unistd.h> when one is present.
61090         (option): Also override name of 'struct option'.
61092         same-inode: revert prior change; it is not yet ready
61093         * NEWS: Undo mention of this change.
61094         * lib/same-inode.h (same-inode.h): Undo tri-state change.
61095         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
61096         * lib/cycle-check.c (cycle_check): Likewise.
61097         * lib/same.c (same_name): Likewise.
61098         * lib/at-func2.c (at_func2): Likewise.
61100 2009-09-23  Eric Blake  <ebb9@byu.net>
61102         linkat: new module
61103         * modules/linkat: New file.
61104         * lib/at-func2.c (at_func2): Likewise.
61105         * lib/linkat.c (linkat): Likewise.
61106         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
61107         * lib/openat-priv.h (at_func2): Add declaration.
61108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61109         * modules/unistd (Makefile.am): Substitute them.
61110         * lib/unistd.in.h (linkat): Declare it.
61111         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61112         * doc/posix-functions/linkat.texi (linkat): Likewise.
61113         * doc/posix-functions/link.texi (link): Tweak wording.
61114         * tests/test-link.c (main): Move guts...
61115         * tests/test-link.h (test_link): ...into new file.
61116         * modules/linkat-tests: New test.
61117         * tests/test-linkat.c: Likewise.
61118         * modules/link-tests (Files): Ship new file.
61119         (Depends-on): Add stdbool.
61121         dirname: add library-safe mdir_name
61122         * lib/dirname.h (mdir_name): New prototype.
61123         * lib/dirname.c (dir_name): Move guts...
61124         (mdir_name): ...to new function that avoids xalloc_die.
61126         fchdir: another mingw fix
61127         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
61128         * lib/fchdir.c (get_name): New helper method; skips canonicalize
61129         on mingw (where it has not yet been ported), and make it optional
61130         elsewhere.
61131         (_gl_register_fd): Use it.
61133         same-inode: make SAME_INODE tri-state, to port to mingw
61134         * NEWS: Mention this change.
61135         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
61136         st_ino always being 0.
61137         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
61138         * lib/cycle-check.c (cycle_check): Likewise.
61139         * lib/same.c (same_name): Likewise.
61141         lstat: avoid mingw compilation error
61142         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
61143         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
61144         lstat ourselves.
61145         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
61146         was adequate.
61147         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
61148         the checks for lstat.
61149         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
61151         link: fix test failure on Solaris 9
61152         * lib/link.c (rpl_link): Don't assume link will catch bogus
61153         trailing slash on source.
61155         test-symlinkat: enhance test
61156         * tests/test-readlink.c (main): Move guts...
61157         * tests/test-readlink.h (test_readlink): ...into new file.
61158         * tests/test-symlink.c (main): Move guts...
61159         * tests/test-symlink.h (test_symlink): ...into new file.
61160         * tests/test-symlinkat.c (main): Use new files for further
61161         coverage.
61162         (do_symlink, do_readlink): New helper functions.
61163         * modules/symlink-tests (Files): Ship new file.
61164         (Depends-on): Add stdbool.
61165         * modules/readlink-tests (Files): Ship new file.
61166         (Depends-on): Add stdbool.
61167         * modules/symlinkat-tests (Files): Use new files.
61169 2009-09-23  Eric Blake  <ebb9@byu.net>
61171         readlink: document portability issue with symlink length
61172         * doc/posix-functions/lstat.texi (lstat): Mention that some file
61173         systems have bogus st_size on symlinks, and mention the
61174         areadlink-with-size module.
61175         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
61176         * doc/posix-functions/readlink.texi (readlink): Mention the
61177         areadlink module, and ERANGE failure.
61178         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61179         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
61181         readlink: fix Solaris 9 bug with trailing slash
61182         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
61183         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
61184         * doc/posix-functions/readlink.texi (readlink): Document this.
61185         * modules/readlink-tests: New test.
61186         * tests/test-readlink.c: Likewise.
61188         readlink: fix cygwin 1.5.x bug with return type
61189         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
61190         * lib/unistd.in.h (readlink): Use ssize_t.
61191         * lib/readlink.c (readlink): Likewise.
61192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61193         * modules/unistd (Makefile.am): Substitute it.
61194         * lib/unistd.in.h (readlink): Declare replacement.
61195         * doc/posix-functions/readlink.texi (readlink): Document this.
61197         symlink: use throughout gnulib
61198         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
61199         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
61200         symlink is not used.
61201         * modules/symlinkat (Depends-on): Add symlink.
61202         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
61203         * modules/canonicalize-tests (Depends-on): Likewise.
61204         * modules/lstat-tests (Depends-on): Likewise.
61205         * modules/openat-tests (Depends-on): Likewise.
61206         * modules/remove-tests (Depends-on): Likewise.
61207         * modules/rmdir-tests (Depends-on): Likewise.
61208         * modules/unlink-tests (Depends-on): Likewise.
61209         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
61210         * tests/test-canonicalize.c (symlink): Likewise.
61211         * tests/test-fstatat.c (symlink): Likewise.
61212         * tests/test-lstat.c (symlink): Likewise.
61213         * tests/test-remove.c (symlink): Likewise.
61214         * tests/test-rmdir.c (symlink): Likewise.
61215         * tests/test-unlink.c (symlink): Likewise.
61216         * tests/test-unlinkat.c (symlink): Likewise.
61218         symlink: new module, for Solaris 9 bug
61219         * modules/symlink: New file.
61220         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
61221         * lib/symlink.c: Likewise.
61222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
61223         * modules/unistd (Makefile.am): Substitute them.
61224         * lib/unistd.in.h (symlink): Declare replacement.
61225         * MODULES.html.sh (File system functions): Mention it.
61226         * doc/posix-functions/symlink.texi (symlink): Likewise.
61227         * modules/symlink-tests: New test.
61228         * tests/test-symlink.c: Likewise.
61230 2009-09-23  Bruno Haible  <bruno@clisp.org>
61232         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
61233         when needed.
61234         Test case: gnulib-tool --import --with-tests atexit inttypes.
61235         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
61237 2009-09-23  Bruno Haible  <bruno@clisp.org>
61239         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
61240         subcommand, not in a subshell.
61242 2009-09-22  Eric Blake  <ebb9@byu.net>
61244         unistd: sort replacement declarations
61245         * lib/unistd.in.h: Sort declarations.
61247         open, openat: minor optimization
61248         * lib/open.c (open): If open succeeded, len is non-zero.
61249         * lib/openat.c (rpl_openat): Likewise.
61251         link-follow: ensure correct result
61252         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
61253         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
61254         distinguish between possible failures.
61256 2009-09-21  Eric Blake  <ebb9@byu.net>
61258         fts: avoid compiler warning
61259         * lib/fts.c (dirent_inode_sort_may_be_useful)
61260         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
61262 2009-09-19  Bruno Haible  <bruno@clisp.org>
61264         * lib/progreloc.c (canonicalize_file_name): New declaration.
61266 2009-09-19  Eric Blake  <ebb9@byu.net>
61268         link: fix quoting
61269         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
61271         openat: fix openat bugs on Solaris 9
61272         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
61273         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
61274         * modules/openat (Depends-on): Add open.
61275         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
61276         * modules/fcntl-h (Makefile.am): Substitute it.
61277         * lib/fcntl.in.h (openat): Declare replacement.
61278         * doc/posix-functions/openat.texi (openat): Document this.
61280         openat: move fstatat and unlinkat into correct files
61281         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
61282         compiled.
61283         * lib/openat.c (fstatat, unlinkat): Move...
61284         * lib/fstatat.c (fstatat): ...into correct files.
61285         * lib/unlinkat.c (unlinkat): Likewise.
61287         openat: fix unlinkat bugs on Solaris 9
61288         * lib/unlinkat.c (unlinkat): New file.
61289         * modules/openat (Depends-on): Add unlink.
61290         (Files): Distribute it.
61291         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
61292         trailing slash behavior is broken.
61293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61294         * modules/unistd (Makefile.am): Substitute it.
61295         * lib/unistd.in.h (unlinkat): Declare replacement.
61296         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
61298         openat: fix fstatat bugs on Solaris 9
61299         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
61300         stat.
61301         * doc/posix-functions/fstatat.texi (fstatat): Document this.
61303         test-unlinkat: enhance test, to expose Solaris 9 bug
61304         * tests/test-unlink.c (main): Factor guts...
61305         * tests/test-unlink.h (test_rmdir_func): ...into new file.
61306         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
61307         * tests/test-rmdir.c (main): Adjust caller.
61308         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
61309         (unlinker): New helper function.
61310         (rmdirat): Enhance check.
61311         * modules/rmdir-tests (Depends-on): Add stdbool.
61312         * modules/unlink-tests (Depends-on): Likewise.
61313         (Files): Add test-unlink.h.
61314         * modules/openat-tests (Files): Likewise.
61315         (Depends-on): Add unlinkdir.
61317         test-fstatat: new test, to expose Solaris 9 bugs
61318         * tests/test-stat.c (main): Factor guts...
61319         * tests/test-stat.h (test_stat_func): ...into new file.
61320         * tests/test-lstat.c (main): Factor guts...
61321         * tests/test-lstat.h (test_lstat_func): ...into new file.
61322         * tests/test-fstatat.c: New file.
61323         * modules/stat-tests (Files): Add test-stat.h.
61324         * modules/lstat-tests (Files): Add test-lstat.h.
61325         (Depends-on): Add stdbool.
61326         * modules/openat-tests (Depends-on): Add pathmax.
61327         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
61328         (Makefile.am): Run new test.
61330         remove: new module, for mingw and Solaris 9 bugs
61331         * modules/remove: New file.
61332         * lib/remove.c: Likewise.
61333         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
61334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
61335         * modules/stdio (Makefile.am): Use them.
61336         * lib/stdio.in.h (remove): Declare replacement.
61337         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61338         * doc/posix-functions/remove.texi (remove): Likewise.
61339         * modules/remove-tests: New test.
61340         * tests/test-remove.c: Likewise.
61342         unlink: new module, for Solaris 9 bug
61343         * modules/unlink: New file.
61344         * lib/unlink.c: Likewise.
61345         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
61346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61347         * modules/unistd (Makefile.am): Use them.
61348         * lib/unistd.in.h (stat): Declare replacement.
61349         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61350         * doc/posix-functions/unlink.texi (unlink): Likewise.
61351         * modules/unlink-tests: New test.
61352         * tests/test-unlink.c: Likewise.
61354         lstat: fix Solaris 9 bug
61355         * lib/lstat.c (lstat): Also check for trailing slash on
61356         non-symlink, non-directories.  Use stat module to simplify logic.
61357         * doc/posix-functions/lstat.texi (lstat): Document it.
61358         * modules/lstat-tests (Depends-on): Add errno, same-inode.
61359         (configure.ac): Check for symlink.
61360         * tests/test-lstat.c (main): Add more tests.
61362         stat: add as dependency to other modules
61363         * modules/chown (Depends-on): Add stat.
61364         * modules/euidaccess (Depends-on): Likewise.
61365         * modules/fchdir (Depends-on): Likewise.
61366         * modules/isdir (Depends-on): Likewise.
61367         * modules/link (Depends-on): Likewise.
61368         * modules/lstat (Depends-on): Likewise.
61369         * modules/mkdir-p (Depends-on): Likewise.
61370         * modules/modechange (Depends-on): Likewise.
61371         * modules/open (Depends-on): Likewise.
61372         * modules/readlink (Depends-on): Likewise.
61373         * modules/same (Depends-on): Likewise.
61375         stat: fix Solaris 9 bug
61376         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
61377         slash.
61378         * lib/stat.c (rpl_stat): Work around it.
61379         * doc/posix-functions/stat.texi (stat): Update documentation.
61381         stat: new module, for mingw bug
61382         * modules/stat: New file.
61383         * lib/stat.c: Likewise.
61384         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
61385         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61386         * modules/sys_stat (Makefile.am): Use them.
61387         * lib/sys_stat.in.h (stat): Declare replacement.
61388         * lib/openat.c (fstatat): Deal with lstat and stat being function
61389         macros.
61390         * modules/openat (Depends-on): Add inline.
61391         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61392         * doc/posix-functions/stat.texi (stat): Likewise.
61393         * modules/stat-tests: New test.
61394         * tests/test-stat.c: Likewise.
61396 2009-09-19  Jim Meyering  <meyering@redhat.com>
61398         syntax-check: detect unnecessary inclusion of canonicalize.h
61399         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
61401 2009-09-19  Eric Blake  <ebb9@byu.net>
61403         canonicalize-lgpl: adjust clients to use correct header
61404         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
61405         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
61406         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
61407         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
61408         * lib/progreloc.c (includes): Likewise.
61410 2009-09-19  Jim Meyering  <meyering@redhat.com>
61412         test-posixtm.c: correct a comment
61413         * tests/test-posixtm.c: Correct first-line comment.
61414         Spotted by Eric Blake.
61416 2009-09-16  Jim Meyering  <meyering@redhat.com>
61418         posixtm-tests: make T const-correct; add a test case
61419         * tests/test-posixtm.c (T): Declare const.
61420         Add a test for -(2^31+1).
61421         Remove useless can-succeed-only-in-2002 test.
61423         posixtm-tests: adjust the sole failing test
61424         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
61425         expected output matches what mktime now produces.  Cross-checked via
61426         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
61428         posixtm: move #ifdef'd tests into a new module
61429         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
61430         * tests/test-posixtm.c: ... this new file.
61431         * modules/posixtm-tests: New module.
61433 2009-09-19  Eric Blake  <ebb9@byu.net>
61435         openat: simplify use of at-func.c
61436         * lib/at-func.c (includes): Include prerequisites here, to
61437         simplify requirements on client files.
61438         * lib/openat-priv.h: Add double-inclusion guard.
61439         * lib/faccessat.c (includes): Simplify.
61440         * lib/fchmodat.c (includes): Likewise.
61441         * lib/fchownat.c (includes): Likewise.
61442         * lib/mkdirat.c (includes): Likewise.
61443         * lib/mkfifoat.c (includes): Likewise.
61444         * lib/symlinkat.c (includes): Likewise.
61446         openat: allow return of fd 0
61447         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
61448         * modules/save-cwd (Depends-on): Replace fcntl-safer with
61449         unistd-safer.
61450         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
61451         <fcntl.h>; this module does not leak fds.
61452         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
61453         must be allowed to return 0, leaving openat_safer to add the
61454         safety.
61455         (openat_permissive): Avoid writing to just-opened fd 2 if
61456         restoring the current directory fails.
61457         * lib/openat-die.c (openat_restore_fail): Add comment.
61458         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
61459         (save_cwd): Guarantee safe fd, but without use of open_safer.
61460         * tests/test-openat.c: New test.
61461         * modules/openat-tests (Files, Makefile.am): Distribute and build
61462         new file.
61464         relocatable-prog-wrapper: fix build
61465         * modules/relocatable-prog-wrapper (Files): Update name of
61466         canonicalize m4 file, broken on 2009-09-17.
61467         Reported by emad hajjar <aleppos@hotmail.com>.
61469 2009-09-19  Bruno Haible  <bruno@clisp.org>
61471         * lib/safe-alloc.h: Use the standard header with GPL copyright.
61472         * lib/safe-alloc.c: Likewise.
61473         Reported by Ian Beckwith <ianb@erislabs.net>.
61475 2009-09-18  Bruno Haible  <bruno@clisp.org>
61477         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
61478         Reported by <erobles@sensacd.com.mx>.
61480 2009-09-17  Eric Blake  <ebb9@byu.net>
61482         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
61483         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
61484         slashes when checking if last component is missing.
61485         * tests/test-canonicalize.c (main): Test this.
61487         canonicalize, canonicalize-lgpl: honor // if distinct from /
61488         * modules/canonicalize (Files): Add double-slash-root.m4.
61489         * modules/canonicalize-lgpl (Files): Likewise.
61490         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
61491         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
61492         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
61493         fallback definition.
61494         (canonicalize_filename_mode): Use it to protect //.
61495         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
61496         (__realpath): Likewise.
61497         * tests/test-canonicalize.c (main): Test this.
61498         * tests/test-canonicalize-lgpl.c (main): Likewise.
61499         * modules/canonicalize-tests (Depends-on): Add same-inode.
61500         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
61502         canonicalize-lgpl: fix glibc bug with trailing slash
61503         * m4/canonicalize-lgpl.m4: Move contents...
61504         * m4/canonicalize.m4: ...here.
61505         (gl_CANONICALIZE_LGPL): Factor realpath check...
61506         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
61507         glibc 2.3.5 bug, fixed 2005-04-27.
61508         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
61509         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
61510         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
61511         * modules/canonicalize-lgpl (Files): Manage file rename.
61512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
61513         * modules/stdlib (Makefile.am): Substitute witness.
61514         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
61515         is needed.
61516         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
61517         replacement is required.
61518         * lib/canonicalize.c (canonicalize_file_name): Likewise.
61519         * doc/glibc-functions/canonicalize_file_name.texi
61520         (canonicalize_file_name): Document this.
61521         * doc/posix-functions/realpath.texi (realpath): Likewise.
61523         canonicalize-lgpl: reject non-directory with trailing slash
61524         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
61525         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
61526         catches failures in glibc 2.3.5.
61527         * tests/test-canonicalize.c (main): Likewise.
61529         canonicalize-lgpl: use native realpath if it works
61530         * lib/canonicalize-lgpl.c (realpath): Guard with
61531         FUNC_REALPATH_WORKS.
61532         * lib/stdlib.in.h (realpath): Make declaration optional based on
61533         HAVE_REALPATH.
61534         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
61535         native realpath works.
61536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
61537         * modules/stdlib (Makefile.am): Substitute witness.
61539         canonicalize, canonicalize-lgpl: use <stdlib.h>
61540         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
61541         (Include): Mention <stdlib.h>.
61542         (configure.ac): Mention functions we provide.
61543         * modules/canonicalize (configure.ac): Likewise.
61544         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
61545         realpath if canonicalize_file_name is missing.
61546         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
61547         * modules/stdlib (Makefile.am): Substitute witnesses.
61548         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
61549         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
61550         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
61551         * NEWS: Document this.
61552         * doc/glibc-functions/canonicalize_file_name.texi
61553         (canonicalize_file_name): Likewise.
61554         * doc/posix-functions/realpath.texi (realpath): Likewise.
61555         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
61557         test-canonicalize: consolidate into single C program
61558         * tests/test-canonicalize.sh: Delete; move setup into...
61559         * tests/test-canonicalize.c (main): ...the program, making it
61560         easier to run in debugger.  Add some tests.
61561         * modules/canonicalize-tests (Files): Remove unused file.
61562         (Depends-on): Add progname.
61563         (configure.ac, Makefile.am): Simplify.
61565         test-canonicalize-lgpl: consolidate into single C program
61566         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
61567         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
61568         easier to run in debugger.  Add some tests.
61569         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
61570         (configure.ac, Makefile.am): Simplify.
61572         canonicalize: avoid resolvepath
61573         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
61574         unnecessary checks.
61575         * lib/canonicalize.c (includes): Simplify.
61576         (canonicalize_file_name): Drop resolvepath implementation.
61577         * modules/canonicalize (Depends-on): Drop filenamecat.
61579         canonicalize: don't lose errno
61580         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
61581         over calls to free.
61583         canonicalize: simplify errno handling
61584         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
61585         assignment.
61587         canonicalize, canonicalize-lgpl: update module dependencies
61588         * modules/canonicalize (Depends-on): Add extensions, lstat,
61589         pathmax, stdlib.
61590         (Files): Drop pathmax.h.
61591         (configure.ac): Adjust macro name.
61592         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
61593         lstat, stdlib, sys_stat.
61594         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
61595         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
61596         extensions.
61597         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
61598         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
61599         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
61600         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
61601         declaration, if available.
61602         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
61603         we can rely on the readlink module.
61604         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
61605         (includes): Use <unistd.h> unconditionally.
61607 2009-09-17  Eric Blake  <ebb9@byu.net>
61609         maint: make Include sections of modules consistent
61610         * modules/alloca: Use only header name; no need to list #include.
61611         * modules/alloca-opt: Likewise.
61612         * modules/arpa_inet: Likewise.
61613         * modules/canon-host: Likewise.
61614         * modules/configmake: Likewise.
61615         * modules/dirent: Likewise.
61616         * modules/eealloc: Likewise.
61617         * modules/environ: Likewise.
61618         * modules/fchdir: Likewise.
61619         * modules/fcntl: Likewise.
61620         * modules/fcntl-h: Likewise.
61621         * modules/gethrxtime: Likewise.
61622         * modules/gettime: Likewise.
61623         * modules/ignore-value: Likewise.
61624         * modules/inet_ntop: Likewise.
61625         * modules/inet_pton: Likewise.
61626         * modules/inttypes: Likewise.
61627         * modules/isnand-nolibm: Likewise.
61628         * modules/isnanf-nolibm: Likewise.
61629         * modules/mbchar: Likewise.
61630         * modules/mbfile: Likewise.
61631         * modules/mbiter: Likewise.
61632         * modules/mbuiter: Likewise.
61633         * modules/netdb: Likewise.
61634         * modules/netinet_in: Likewise.
61635         * modules/nproc: Likewise.
61636         * modules/pagealign_alloc: Likewise.
61637         * modules/poll: Likewise.
61638         * modules/printf-frexp: Likewise.
61639         * modules/pthread: Likewise.
61640         * modules/putenv: Likewise.
61641         * modules/random_r: Likewise.
61642         * modules/relocatable-prog: Likewise.
61643         * modules/search: Likewise.
61644         * modules/select: Likewise.
61645         * modules/selinux-h: Likewise.
61646         * modules/settime: Likewise.
61647         * modules/signal: Likewise.
61648         * modules/size_max: Likewise.
61649         * modules/socklen: Likewise.
61650         * modules/ssize_t: Likewise.
61651         * modules/stdarg: Likewise.
61652         * modules/stdbool: Likewise.
61653         * modules/stddef: Likewise.
61654         * modules/stdint: Likewise.
61655         * modules/stdio: Likewise.
61656         * modules/stdlib: Likewise.
61657         * modules/string: Likewise.
61658         * modules/strings: Likewise.
61659         * modules/sys_file: Likewise.
61660         * modules/sys_ioctl: Likewise.
61661         * modules/sys_select: Likewise.
61662         * modules/sys_socket: Likewise.
61663         * modules/sys_stat: Likewise.
61664         * modules/sys_time: Likewise.
61665         * modules/sys_times: Likewise.
61666         * modules/sys_utsname: Likewise.
61667         * modules/sys_wait: Likewise.
61668         * modules/sysexits: Likewise.
61669         * modules/time: Likewise.
61670         * modules/times: Likewise.
61671         * modules/tmpfile: Likewise.
61672         * modules/trim: Likewise.
61673         * modules/unistd: Likewise.
61674         * modules/wchar: Likewise.
61675         * modules/wctype: Likewise.
61677 2009-09-17  Bruno Haible  <bruno@clisp.org>
61679         Make getdate.y compile on QNX and NetBSD 5 / i386.
61680         * m4/getdate.m4 (gl_GETDATE): Conditionally define
61681         TIME_T_FITS_IN_LONG_INT.
61682         * lib/getdate.y (long_time_t): New type.
61683         (relative_time): Change type of 'seconds' field to long_time_t.
61684         (get_date): Update types of local variables. Check against overflow
61685         during conversion from long_time_t to time_t.
61686         Reported by Matt Kraai <kraai@ftbfs.org>
61687         and Hasso Tepper <hasso@netbsd.org>.
61689 2009-09-17  Bruno Haible  <bruno@clisp.org>
61691         * modules/COPYING: Update copyright years.
61692         * modules/README: Likeiwse.
61693         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
61694         Reported by Ian Beckwith <ianb@erislabs.net>.
61696 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
61698         * users.txt: Update references for gnuit package.
61700 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
61702         * m4/getdelim.m4: Fix typo in copyright line.
61704 2009-09-17  Bruno Haible  <bruno@clisp.org>
61706         * lib/atoll.c: Use the standard header with GPL copyright.
61707         * lib/argz.in.h: Likewise.
61708         * lib/glob.c: Likewise.
61709         * lib/glob-libc.h: Likewise.
61710         * lib/random_r.c: Likewise.
61711         * lib/siglist.h: Likewise.
61712         * lib/strsignal.c: Likewise.
61713         Reported by Ian Beckwith <ianb@erislabs.net>.
61715 2009-09-17  Eric Blake  <ebb9@byu.net>
61717         rmdir: ensure correct dependency order
61718         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
61720 2009-09-17  Bruno Haible  <bruno@clisp.org>
61722         Disable assertion that fails on NetBSD 5 / i386.
61723         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
61724         Reported by Sam Steingold <sds@gnu.org>
61725         and Hasso Tepper <hasso@netbsd.org>.
61727 2009-09-16  Eric Blake  <ebb9@byu.net>
61729         unlinkdir: port to mingw
61730         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
61731         on which no one can unlink a directory.
61733         stdlib: sort witness names
61734         * modules/stdlib (Makefile.am): Sort replacements.
61735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61736         * lib/stdlib.in.h: Likewise.
61738         parse-duration-tests: avoid link failure
61739         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
61740         LIBINTL.
61741         Reported by Tom G. Christensen.
61743         openat-tests: ensure unlinkat behaves like rmdir
61744         * tests/test-rmdir.c (main): Factor guts...
61745         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
61746         * modules/rmdir-tests (Files): Ship new file.
61747         * modules/openat-tests: New test.
61748         * tests/test-unlinkat.c: Likewise.
61750         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
61751         * modules/rmdir-errno (Status, Notice): Now obsolete.
61753         rmdir: work around cygwin 1.5.x and mingw bugs
61754         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
61755         * lib/rmdir.c (rmdir): Work around it.
61756         * modules/rmdir (Status, Notice): No longer obsolete.
61757         (Files): Add dos.m4.
61758         (Depends-on): Add unistd.
61759         (configure.ac): Set witnesses.
61760         (License): Relax to LGPLv2+.
61761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
61762         * modules/unistd (Makefile.am): Substitute witnesses.
61763         * lib/unistd.in.h (rmdir): Declare replacement.
61764         * doc/posix-functions/rmdir.texi (rmdir): Document this.
61765         * modules/rmdir-tests: New tests.
61766         * tests/test-rmdir.c: Likewise.
61768 2009-09-15  Eric Blake  <ebb9@byu.net>
61770         fchdir: improve use of replacement functions
61771         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
61772         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
61773         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
61774         REPLACE_CLOSEDIR.
61775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
61776         * modules/sys_stat (Makefile.am): Substitute correct witness.
61777         * modules/dirent (Makefile.am): Likewise.
61778         * modules/unistd (Makefile.am): Likewise.
61779         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
61780         * lib/unistd.in.h (dup): Likewise.
61781         * lib/sys_stat.in.h (fstat): Likewise.
61783         maint: ignore gnulib-tool temp files
61784         * .gitignore: Ignore files created during gnulib-tool --test.
61786 2009-09-13  Jim Meyering  <meyering@redhat.com>
61788         posixtm: don't reject a time that specify "60" as the number of seconds
61789         * lib/posixtm.c (posixtime): The code to reject invalid dates
61790         would also reject a time specified with the .60 suffix.
61791         But POSIX allows that, in order to accommodate leap seconds.
61792         So don't reject it.
61793         (main): Adjust tests accordingly.
61794         * modules/posixtm (Depends-on): Add stpcpy.
61796 2009-09-11  Jim Meyering  <meyering@redhat.com>
61798         announce-gen: include [$release_type] in emitted Subject:
61799         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
61800         e.g., [stable] in the emitted Subject: line.
61802 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61804         Remove obsolete macros from several modules.
61805         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
61806         obsolete Autoconf macros with their modern counterparts.
61807         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
61808         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
61809         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
61810         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
61811         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
61812         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61813         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61814         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
61815         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
61816         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
61817         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
61818         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
61819         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
61820         * m4/sockets.m4 (gl_SOCKETS): Likewise.
61821         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
61822         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
61823         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
61824         * m4/time_r.m4 (gl_TIME_R): Likewise.
61825         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
61826         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
61827         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61829         Fix copyright header in build-aux scripts.
61830         * build-aux/git-version-gen: Fix copyright header to match GPLv3
61831         recommendation.
61832         * build-aux/ncftpput-ftp: Likewise.
61833         * build-aux/update-copyright: Likewise.
61835 2009-09-09  Eric Blake  <ebb9@byu.net>
61837         test-link: allow Linux choice of errno
61838         * tests/test-link.c (main): Relax test for alternate error.
61840         strndup: fix improper m4 caching
61841         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
61842         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
61843         (gl_PREREQ_STRNDUP): Delete.
61844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
61845         * modules/string (Makefile.am): Substitute it.
61846         * lib/string.in.h (strndup): Modernize prototype.
61848         getcwd: port to mingw
61849         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
61850         different from the POSIX assumptions made throughout the getcwd
61851         module; fortunately, the mingw getcwd does not need replacement.
61852         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
61853         * modules/getcwd-tests: New test.
61854         * tests/test-getcwd.c: Likewise.
61856         link: fix platform bugs
61857         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
61858         * lib/link.c (link): Work around them.  Fix related mingw bug.
61859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
61860         * modules/unistd (Makefile.am): Substitute it.
61861         * lib/unistd.in.h (link): Declare replacement.
61862         * doc/posix-functions/link.texi (link): Document this.
61863         * modules/link (Depends-on): Add strdup-posix, sys_stat.
61865         test-link: consolidate into single C program, test more cases
61866         * tests/test-link.sh: Delete.
61867         * tests/test-link.c: Test more error conditions.  Exposes bugs on
61868         at least Cygwin and Solaris.
61869         * modules/link-tests (Files): Remove unused file.
61870         (Depends-on): Add errno, sys_stat.
61871         (Makefile.am): Simplify.
61873 2009-09-08  Bruno Haible  <bruno@clisp.org>
61875         Work around towlower, towupper bug on mingw.
61876         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
61877         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
61878         * doc/posix-functions/towlower.texi: Mention the mingw bug.
61879         * doc/posix-functions/towupper.texi: Likewise.
61880         Reported by Eric Blake.
61882 2009-09-08  Jim Meyering  <meyering@redhat.com>
61884         build: don't try to run autoheader if we don't use it
61885         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
61886         is not used in configure.ac.
61888 2009-09-08  Eric Blake  <ebb9@byu.net>
61890         euidaccess: fix compilation error
61891         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
61893         rawmemchr: relax license
61894         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
61895         okay.
61896         Reported by Jim Meyering.
61898         mkfifoat: new module
61899         * modules/mkfifoat: New file.
61900         * lib/mkfifoat.c: Likewise.
61901         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
61902         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61903         * modules/sys_stat (Makefile.am): Use them.
61904         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
61905         * MODULES.html.sh (File system functions): Mention module.
61906         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
61907         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
61908         * modules/mkfifoat-tests: New test.
61909         * tests/test-mkfifoat.c: Likewise.
61911         strchrnul: relax license
61912         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
61913         okay.
61914         Reported by Jim Meyering.
61916 2009-09-08  Eric Blake  <ebb9@byu.net>
61918         fstatat: fix compilation on Solaris
61919         * lib/fstatat.c (includes): Add fcntl.h.
61920         Reported by Pádraig Brady.
61922 2009-09-07  Eric Blake  <ebb9@byu.net>
61924         rename: modernize replacement
61925         * modules/rename (Depends-on): Add stdio.
61926         (configure.ac): Declare witness.
61927         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
61928         stdio take care of replacement.
61929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
61930         * modules/stdio (Makefile.am): Substitute them.
61931         * lib/stdio.in.h (rename): Declare replacement.
61932         * lib/rename.c (includes): Allow cross-compilation to non-windows
61933         machines.
61934         * doc/posix-functions/rename.texi (rename): Improve
61935         documentation.
61937         stdio: sort witness names
61938         * modules/stdio (Makefile.am): Sort replacements.
61939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61940         * lib/stdio.in.h: Likewise.
61942         getcwd: minor cleanups
61943         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
61944         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
61946         openat: provide more convenience names
61947         * modules/faccessat (configure.ac): Add C witness.
61948         * lib/unistd.in.h (readlinkat): Fix typo.
61949         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
61950         convenience wrappers.
61951         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
61952         wrappers in syntax checks.
61954 2009-09-06  Eric Blake  <ebb9@byu.net>
61956         doc: fix comments in recent patches
61957         * lib/faccessat.c: Mention correct function.
61958         * lib/fchmodat.c: Likewise.
61959         * lib/fchownat.c: Likewise.
61960         * lib/symlinkat.c: Likewise.
61961         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
61962         constants.
61964         faccessat, symlinkat: continue cleanup of previous patch
61965         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
61966         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
61967         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
61968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
61969         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
61970         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
61971         set.
61973 2009-09-06  Bruno Haible  <bruno@clisp.org>
61975         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
61976         (fstatat): Declare if GNULIB_FSTATAT is set.
61977         (mkdirat): Declare if GNULIB_MKDIRAT is set.
61978         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
61979         (unlinkat): Declare if GNULIB_UNLINKAT is set.
61980         * modules/fcntl-h (Files): Remove m4/openat.m4.
61981         * modules/sys_stat (Files): Remove m4/openat.m4.
61982         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
61983         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
61984         * modules/unistd (Files): Remove m4/openat.m4.
61985         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
61986         GNULIB_OPENAT.
61987         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
61988         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
61989         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
61990         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
61991         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
61992         gl_OPENAT_DEFAULTS.
61993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
61994         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
61995         Don't require gl_OPENAT_DEFAULTS.
61996         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
61997         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
61998         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
61999         (gl_OPENAT_DEFAULTS): Remove macro.
62001 2009-09-06  Bruno Haible  <bruno@clisp.org>
62003         * modules/openat (configure.ac): Remove unneeded witness.
62005 2009-09-06  Bruno Haible  <bruno@clisp.org>
62007         Set errno to ENOSYS when a function is entirely unsupported.
62008         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
62009         EOPNOTSUPP.
62010         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
62011         * modules/chown (Depends-on): Remove errno.
62013 2009-09-06  Bruno Haible  <bruno@clisp.org>
62015         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
62017 2009-09-06  Bruno Haible  <bruno@clisp.org>
62019         * lib/sys_stat.in.h: Fix preprocessor command indentation.
62021 2009-09-06  Ben Pfaff  <blp@gnu.org>
62022             Bruno Haible  <bruno@clisp.org>
62024         Work around a glibc bug in strtok_r.
62025         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
62026         Undefine if UNDEFINE_STRTOK_R is set.
62027         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
62028         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62029         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
62030         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
62031         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
62032         UNDEFINE_STRTOK_R.
62033         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
62035 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
62037         exclude: minor fix
62038         * lib/exclude.c: Include wctype.h
62040 2009-09-06  Akim Demaille  <demaille@gostai.com>
62042         bootstrap: improve error message
62043         * build-aux/bootstrap (find_tool): Upon failure, report the list
62044         of candidates.
62045         Honor the initial value of the envvar.
62047 2009-09-05  Eric Blake  <ebb9@byu.net>
62049         symlinkat: new module
62050         * modules/symlinkat: New file.
62051         * lib/symlinkat.c: Likewise.
62052         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
62053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
62054         * modules/unistd (Makefile.am): Use them.
62055         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
62056         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
62057         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
62058         * MODULES.html.sh (File system functions): Mention module.
62059         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
62060         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
62061         * modules/symlinkat-tests: New test.
62062         * tests/test-symlinkat.c: Likewise.
62064         test-openat-safer: add more checks
62065         * tests/test-openat-safer.c (main): Check more code paths.
62067 2009-09-05  Jim Meyering  <meyering@redhat.com>
62069         syntax-check: detect unnecessary inclusion of openat.h
62070         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
62072 2009-09-05  Bruno Haible  <bruno@clisp.org>
62074         Support towlower, towupper.
62075         * doc/posix-functions/towlower.texi: Mention module wctype.
62076         * doc/posix-functions/towupper.texi: Likewise.
62077         * lib/wctype.in.h (towlower, towupper): New functions.
62078         * tests/test-wctype.c: Include stdio.h, stdlib.h.
62079         (ASSERT): New macro.
62080         (e): New variable.
62081         (main): Test also towlower, towupper. Test WEOF argument.
62082         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
62084 2009-09-05  Bruno Haible  <bruno@clisp.org>
62086         Fix conversion behaviour when the input is invalid.
62087         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
62088         mark occurring in first pass of indirect conversion.
62089         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
62090         input.
62091         Found by clang's static analyzer.
62093 2009-09-05  Bruno Haible  <bruno@clisp.org>
62095         * tests/test-striconveh.c (main): Test indirect conversion on platforms
62096         where direct conversion is possible.
62098 2009-09-04  Eric Blake  <ebb9@byu.net>
62100         openat: fail with ENOENT on empty name
62101         * lib/openat-proc.c (openat_proc_name): Special-case the empty
62102         buffer.
62104         link-follow: fix logic bug in prior patch
62105         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
62106         reversed sense of yes and no in prior patch.  Avoid confusing
62107         compilation failure with desired semantics.
62109         link-follow: accommodate mingw and cross-compilation
62110         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
62111         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
62112         cross-compilation results to -1, to make linkat easier to
62113         implement when cross-compiling.  Trivially support mingw.
62114         * modules/link-follow (configure.ac): Call new name.
62115         * NEWS: Mention this.
62117 2009-09-03  Eric Blake  <ebb9@byu.net>
62119         faccessat: compile replacement
62120         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
62121         needed.
62123         fts: fix compilation error
62124         * lib/fts.c (includes): Re-add "openat.h", for
62125         openat_needs_fchdir.
62127         faccessat: new module
62128         * modules/faccessat: New file.
62129         * lib/faccessat.c: Likewise.
62130         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
62131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62132         * modules/unistd (Makefile.am): Use it.
62133         * lib/unistd.in.h (faccessat): Declare it.
62134         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
62135         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
62136         * MODULES.html.sh (File system functions): Mention it.
62137         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
62138         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
62140         euidaccess: prefer POSIX over non-standard implementation
62141         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
62142         * lib/euidaccess.c (euidaccess): Use it if available.
62144         openat: make template easier to use
62145         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
62146         AT_FUNC_F2 to be undefined.
62147         (VALIDATE_FLAG): New macro; use it to reject bad flags.
62148         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
62149         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
62150         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
62151         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
62152         Likewise.
62153         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
62154         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
62155         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
62156         Likewise.
62158         openat: declare in POSIX headers
62159         * NEWS: Mention this.
62160         * modules/openat (configure.ac): Declare witnesses.
62161         (Depends-on): Add fcntl-h, sys_stat, unistd.
62162         (Include): Mention correct headers.
62163         * modules/fcntl-h (Depends-on): Add link-warning.
62164         (Files): Add openat.m4.
62165         (Makefile.am): Substitute witnesses.
62166         * modules/sys_stat (Files, Makefile.am): Likewise.
62167         * modules/unistd (Files, Makefile.am): Likewise.
62168         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
62169         (gl_OPENAT_DEFAULTS): New macro.
62170         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
62171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
62172         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
62173         (SYS_STAT_H): Remove unused variable.
62174         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
62175         * lib/fcntl--.h (includes): Remove unneeded header.
62176         * lib/openat-safer.c (includes): Likewise.
62177         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
62178         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
62179         appropriate headers.
62180         (__OPENAT_PREFIX): Delete.
62181         * lib/fcntl.in.h (openat): Provide declaration.
62182         (AT_FDCWD): Fix Solaris bug.
62183         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
62184         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
62185         * lib/fchmodat.c (includes):  Adjust to find declaration.
62186         * lib/fchownat.c (includes): Likewise.
62187         * lib/mkdirat.c (includes): Likewise.
62188         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
62189         still visible.
62191 2009-09-02  Eric Blake  <ebb9@byu.net>
62193         errno: use consistently
62194         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
62195         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
62196         * lib/canonicalize.c (ELOOP): Likewise.
62197         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
62198         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
62199         * lib/lchown.c (EOPNOTSUPP): Likewise.
62200         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
62201         * lib/savewd.c (ESTALE): Likewise.
62202         * lib/settime.c (ENOSYS): Likewise.
62203         * lib/utimens.c (ENOSYS): Likewise.
62204         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
62205         * lib/chdir-safer.c (ELOOP): Likewise.
62206         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
62207         * modules/c-stack (Depends-on): Add errno.
62208         * modules/canonicalize (Depends-on): Likewise.
62209         * modules/chdir-safer (Depends-on): Likewise.
62210         * modules/fdopendir (Depends-on): Likewise.
62211         * modules/inet_ntop (Depends-on): Likewise.
62212         * modules/inet_pton (Depends-on): Likewise.
62213         * modules/lchown (Depends-on): Likewise.
62214         * modules/openat (Depends-on): Likewise.
62215         * modules/savewd (Depends-on): Likewise.
62216         * modules/settime (Depends-on): Likewise.
62217         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
62219         fts: avoid leaking fds
62220         * modules/fts (Depends-on): Add cloexec.
62221         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
62222         flag.
62224         fts: make directory fds more robust
62225         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
62226         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
62228         backupfile, chdir-long, fts, savedir: make safer
62229         * lib/backupfile.c (includes): Use "dirent--.h", since
62230         numbered_backup can write to stderr during readdir.
62231         * lib/savedir.c (includes): Likewise.
62232         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
62233         emulation can write to stderr on failure.
62234         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
62235         * lib/getcwd.c: Document why opendir_safer is unused.
62236         * lib/glob.c: Likewise.
62237         * lib/scandir.c: Likewise.
62238         * lib/openat-proc.c: Likewise, for open_safer.
62239         * modules/backupfile (Depends-on): Add dirent-safer.
62240         * modules/savedir (Depends-on): Likewise.
62241         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
62242         * modules/chdir-long (Depends-on): Add openat-safer.
62244         openat-safer: new module
62245         * modules/openat-safer: New file.
62246         * lib/openat-safer.c: Likewise.
62247         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
62248         * lib/fcntl-safer.h (openat_safer): Declare.
62249         * lib/fcntl--.h (openat): Override.
62250         * MODULES.html.sh (File descriptor based I/O): Mention it.
62251         * lib/openat.h: Add double-inclusion guards.
62252         * lib/openat.c (includes): Only include "fcntl-safer.h", not
62253         "fcntl--.h", so we can implement openat.
62254         * modules/openat-safer-tests: New test.
62255         * tests/test-openat-safer.c: New file.
62257         dirent-safer: new module
62258         * modules/dirent-safer: New file.
62259         * lib/dirent--.h: Likewise.
62260         * lib/dirent-safer.h: Likewise.
62261         * lib/opendir-safer.c: Likewise.
62262         * m4/dirent-safer.m4: Likewise.
62263         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
62264         * modules/dirent-safer-tests: New test.
62265         * tests/test-dirent-safer.c: New file.
62266         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
62268         fdopendir: optimize on mingw
62269         * lib/unistd.in.h (_gl_directory_name): New prototype.
62270         * lib/fchdir.c (_gl_directory_name): Implement it.
62271         (fchdir): Use it to simplify implementation.
62272         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
62273         fchdir, when available, to avoid calling [f]chdir().
62275         fdopendir: split into its own module
62276         * lib/openat.c (fdopendir): Move...
62277         * lib/fdopendir.c: ...into new file.
62278         * modules/fdopendir: New module.
62279         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
62280         * modules/openat (Depends-on): Add fdopendir.
62281         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
62282         fdopendir here.
62283         * modules/savedir (Depends-on): Only need fdopendir, not full
62284         openat.
62285         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
62286         * lib/openat.h (fdopendir): Drop prototype.
62287         * lib/dirent.in.h (fdopendir): Provide prototype.
62288         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
62289         * modules/dirent (Makefile.am): Substitute them.
62290         * MODULES.html.sh (File system functions): Mention it.
62291         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
62292         * modules/fdopendir-tests: New file.
62293         * tests/test-fdopendir.c: Likewise.
62295         fchdir: use more consistent macro convention
62296         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
62297         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
62298         REPLACE_FCHDIR, rather than relying on config.h macros.
62299         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
62300         inside a single make-time REPLACE_FCHDIR block, rather than using
62301         the config.h FCHDIR_REPLACEMENT.
62302         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
62303         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
62304         Manage fstat replacement.
62305         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
62306         REPLACE_FCHDIR.
62307         * modules/sys_stat (Files): Add m4/unistd_h.m4.
62308         (Makefile.am): Substitute REPLACE_FCHDIR.
62309         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
62310         FCHDIR_REPLACEMENT.
62311         * lib/dup-safer.c (dup_safer): Likewise.
62312         * lib/dup2.c (rpl_dup2): Likewise.
62313         * lib/dup3.c (rpl_dup3): Likewise.
62314         * lib/open.c (rpl_open): Likewise.
62316         fchdir: simplify error handling, and support dup3
62317         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
62318         stdbool, malloc-posix, realloc-posix.
62319         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
62320         (ensure_dirs_slot): Return false on allocation failure.
62321         (rpl_dup2): Delete.
62322         (_gl_register_dup): New function.
62323         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
62324         (_gl_register_fd): Close fd on allocation failure.
62325         * lib/fcntl.in.h (_gl_register_fd): Update signature.
62326         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
62327         prototype.
62328         (rpl_dup2_fchdir): Delete prototype.
62329         * lib/open.c (open): Update caller.
62330         * lib/dup2.c (dup2): Track fchdir metadata.
62331         * lib/dup3.c (dup3): Likewise.
62332         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
62333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
62335 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62337         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
62338         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
62339         don't pass arguments to AC_OUTPUT.
62341 2009-09-02  Bruno Haible  <bruno@clisp.org>
62343         * modules/mkdtemp (License): Relicense under LGPLv2+.
62344         Reported by Paolo Bonzini.
62346 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62348         Replace uses of obsolete autoconf macros in Jim's modules.
62349         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
62350         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
62351         can evoke a warning from autoconf when run with -Wobsolete
62352         enabled.  They were declared obsolete for good reasons (see
62353         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
62354         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
62355         should not continue using the deprecated macros.
62356         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
62357         obsolete Autoconf macros with modern counterparts.
62358         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62359         * m4/dos.m4 (gl_AC_DOS): Likewise.
62360         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
62361         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62362         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
62363         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
62364         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
62365         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
62366         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
62367         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
62368         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
62369         Likewise.
62370         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
62371         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62372         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
62373         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
62374         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
62375         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62377 2009-09-01  Eric Blake  <ebb9@byu.net>
62379         fchdir: fix off-by-one bug in previous patch
62380         * lib/fchdir.c (rpl_fstat): Use correct bounds.
62381         (_gl_unregister_fd): Delete useless if.
62383 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
62385         maint.mk: sort the list of syntax-check rules
62386         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
62387         easier to get a sense of progress when the rules are run sequentially
62388         and take a long time.
62390 2009-09-01  Simon Josefsson  <simon@josefsson.org>
62392         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
62393         * modules/netinet_in: Likewise.
62394         * modules/sys_file: Likewise.
62395         * modules/sys_ioctl: Likewise.
62396         * modules/sys_select: Likewise.
62397         * modules/sys_socket: Likewise.
62398         * modules/sys_stat: Likewise.
62399         * modules/sys_time: Likewise.
62400         * modules/sys_times: Likewise.
62401         * modules/sys_utsname: Likewise.
62402         * modules/sys_wait: Likewise.
62404 2009-09-01  Jim Meyering  <meyering@redhat.com>
62406         fts: help ensure that return values are not ignored
62407         * lib/fts_.h (__GNUC_PREREQ): Define.
62408         (__attribute_warn_unused_result__): Define.
62409         (fts_children, fts_close, fts_open, fts_read): Declare with
62410         __attribute_warn_unused_result__.
62412         fts: fts_close now fails also when closing a dir file descriptor fails
62413         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
62414         and propagate to caller, along with errno.
62416         announce-gen: correct formatting in --help output
62417         * build-aux/announce-gen (usage): Move the one-line description in
62418         --help output "up", to where it belongs, just after Usage:.
62420 2009-08-31  Eric Blake  <ebb9@byu.net>
62422         fchdir: port to mingw
62423         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
62424         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
62425         opened, then use a substitute.
62426         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
62427         replacement.
62428         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
62429         (_gl_register_fd): No need to check stat if open already filters
62430         all directories.
62431         (fchdir): Fix error condition to match POSIX.
62432         * modules/fchdir (Depends-on): Add sys_stat.
62433         * doc/posix-functions/open.texi (open): Document the limitation.
62434         * modules/fchdir-tests: New file.
62435         * tests/test-fchdir.c: Likewise.
62437         canonicalize: allow cross-testing from cygwin to mingw
62438         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
62439         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
62440         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
62441         Likewise.
62442         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
62443         target does not support symlinks.
62444         * tests/test-canonicalize-lgpl.sh: Likewise.
62446         chown: avoid compilation warning on mingw
62447         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
62448         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
62449         mingw.
62450         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
62451         * modules/chown (Depends-on): Add errno.
62453 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
62455         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
62456         command.
62458 2009-08-31  Jim Meyering  <meyering@redhat.com>
62460         canonicalize: remove useless initialization
62461         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
62462         initialization of local, "end".
62464 2009-08-30  Bruno Haible  <bruno@clisp.org>
62466         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
62467         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
62468         ENOSYS.
62470 2009-08-30  Bruno Haible  <bruno@clisp.org>
62472         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
62473         /usr/xpg4/bin/tr when it exists.
62474         * tests/test-pipe-filter-gi1.sh: Likewise.
62476 2009-08-30  Bruno Haible  <bruno@clisp.org>
62478         Work around deficient /usr/bin/id program on Solaris.
62479         * tests/test-file-has-acl.sh (ID): New variable.
62480         * tests/test-set-mode-acl.sh (ID): Likewise.
62481         * tests/test-copy-acl.sh (ID): Likewise.
62482         * tests/test-copy-file.sh (ID): Likewise.
62484 2009-08-30  Bruno Haible  <bruno@clisp.org>
62486         New module 'xstriconveh'.
62487         * lib/xstriconveh.h: New file.
62488         * lib/xstriconveh.c: New file.
62489         * modules/xstriconveh: New file.
62491 2009-08-30  Bruno Haible  <bruno@clisp.org>
62493         Make it easier to use mem_cd_iconveh.
62494         * lib/striconveh.h (iconveh_t): New type.
62495         (iconveh_open, iconveh_close): New declarations.
62496         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
62497         with a single 'const iconveh_t *' argument.
62498         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
62499         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
62500         with a single 'const iconveh_t *' argument.
62501         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
62502         * tests/test-striconveh.c (main): Update.
62503         * NEWS: Mention the change.
62505 2009-08-30  Bruno Haible  <bruno@clisp.org>
62507         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
62508         problem.
62510 2009-08-30  Bruno Haible  <bruno@clisp.org>
62512         Work around iconv_open problem on Solaris.
62513         * lib/iconv_open-solaris.gperf: New file.
62514         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
62515         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
62516         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
62517         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
62518         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
62519         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
62521 2009-08-29  Jim Meyering  <meyering@redhat.com>
62523         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
62524         * top/maint.mk (cvs-check): Remove target; it was just an alias
62525         to the better-named vc-diff-check.
62526         (maintainer-distcheck): Remove rule.  It was used only from
62527         the (alpha/beta/major) target, and all of its commands but one
62528         were coreutils-specific.
62529         (vc-dist): Remove rule.
62530         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
62531         Run vc-diff-check, not vc-dist.
62532         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
62534 2009-08-27  Bruno Haible  <bruno@clisp.org>
62536         * tests/test-bitrotate.c (main): Remove test that uses a shift count
62537         of 0.
62539 2009-08-27  Bruno Haible  <bruno@clisp.org>
62541         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
62542         compilers.
62543         * doc/func.texi: Document the SunPRO C bug.
62545 2009-08-27  Bruno Haible  <bruno@clisp.org>
62547         Fix link error on Solaris.
62548         * tests/test-parse-duration.c (xstrdup): Remove function.
62550 2009-08-26  Pádraig Brady  <P@draigbrady.com>
62552         ignore-value: handle pointer types, too
62553         * lib/ignore-value.h (__attribute__): Remove definition.
62554         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
62555         of a more concise and more-often effective "(void) i" statement.
62556         (ignore_ptr): New function to suppress warnings from functions that
62557         return pointers, and to make it explicit that one function doesn't
62558         handle all cases.
62560 2009-08-25  Bruno Haible  <bruno@clisp.org>
62562         dup2: work around a Linux bug.
62563         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
62564         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
62565         * doc/posix-functions/dup2.texi: Mention the Linux bug.
62566         Reported by Simon Josefsson.
62568 2009-08-25  Jim Meyering  <meyering@redhat.com>
62570         libguestfs uses gnulib
62571         * users.txt: Add libguestfs.
62573 2009-08-24  Eric Blake  <ebb9@byu.net>
62575         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
62576         * lib/pipe2.c (includes): Add binary-io.h.
62577         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
62579 2009-08-24  Bruno Haible  <bruno@clisp.org>
62581         Tolerate declared but missing accept4 syscall.
62582         * lib/accept4.c (accept4): Invoke original accept4 function first, if
62583         available.
62584         * lib/sys_socket.in.h (accept4): If the function is already present,
62585         override it.
62586         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
62587         * modules/accept4 (Makefile.am): Compile accept4.c always.
62588         Reported by Paolo Bonzini and Eric Blake.
62590 2009-08-23  Bruno Haible  <bruno@clisp.org>
62592         New module 'accept4'.
62593         * lib/sys_socket.in.h (accept4): New declaration.
62594         * lib/accept4.c: New file.
62595         * m4/accept4.m4: New file.
62596         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
62597         GNULIB_ACCEPT4, HAVE_ACCEPT4.
62598         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
62599         HAVE_ACCEPT4.
62600         * modules/accept4: New file.
62601         * doc/glibc-functions/accept4.texi: Mention the new module.
62603 2009-08-24  Jim Meyering  <meyering@redhat.com>
62605         progname: also set global program_invocation_name, when possible
62606         Before this change, a libtool-enabled program that calls glibc's
62607         error function would report the program name as
62608         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
62609         * modules/progname (configure.ac): Check for a declaration of
62610         program_invocation_name.
62611         * lib/progname.c:  Include <errno.h>.
62612         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
62613         Set program_invocation_name.
62615 2009-08-23  Bruno Haible  <bruno@clisp.org>
62617         * lib/dup3.c: Include <string.h>.
62619 2009-08-23  Bruno Haible  <bruno@clisp.org>
62621         * lib/dup3.c (dup3): Test only once whether the system actually exists.
62622         * lib/pipe2.c (pipe2): Likewise.
62623         Suggested by Eric Blake.
62625 2009-08-23  Bruno Haible  <bruno@clisp.org>
62627         Tolerate declared but missing dup3 syscall.
62628         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
62629         * lib/unistd.in.h (dup3): If the function is already present,
62630         override it.
62631         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
62632         * modules/dup3 (Makefile.am): Compile dup3.c always.
62633         Reported by Paolo Bonzini.
62635 2009-08-23  Bruno Haible  <bruno@clisp.org>
62637         Tolerate declared but missing pipe2 syscall.
62638         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
62639         available.
62640         * lib/unistd.in.h (pipe2): If the function is already present,
62641         override it.
62642         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
62643         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
62644         Reported by Paolo Bonzini.
62646 2009-08-23  Bruno Haible  <bruno@clisp.org>
62648         * lib/pipe2.c (pipe2): Move #ifs inside function.
62650 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
62652         quotearg: document limitations of quote_these_too
62653         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
62654         those limitations are created.
62655         * lib/quotearg.h (set_char_quoting): Document that digits and
62656         letters that are special after backslash are not permitted.
62657         (quotearg_char): Cross-reference set_char_quoting documentation.
62659 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
62661         quotearg: implement custom_quoting_style
62662         * lib/quotearg.c: (struct quoting_options): Add left_quote and
62663         right_quote fields.
62664         (set_custom_quoting): New public function.
62665         (quotearg_buffer_restyled): Add left_quote and right_quote
62666         arguments, handle them very much like locale quoting, and update
62667         all uses.
62668         (quotearg_n_custom): New public function.
62669         (quotearg_n_custom_mem): New public function.
62670         (quotearg_custom): New public function.
62671         (quotearg_custom_mem): New public function.
62672         * lib/quotearg.h: Prototype and document new public functions.
62673         (enum quoting_style): For escape_quoting_style and
62674         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
62675         ignored even though they're otherwise like c_quoting_style.
62676         Add custom_quoting_style member and document with comparison to
62677         clocale_quoting_style.
62678         * tests/test-quotearg.c (custom_quotes): New array.
62679         (custom_results): New array.
62680         (main): Extend to test custom quoting.
62682 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
62684         quotearg: fix right quote escaping when it's in quote_these_too
62685         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
62686         quote, be sure to prepend only one backslash.
62687         * tests/test-quotearg.c (use_quote_double_quotes): New function.
62688         (main): Test it.
62690 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
62692         quotearg-tests: test escaping of embedded locale quotes
62693         * tests/test-quotearg.c (struct result_strings): Add member for
62694         new input.
62695         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
62696         (inputs): Add new input.
62697         (results_g): Add expected results.
62698         (flag_results): Likewise.
62699         (locale_results): Likewise.
62700         (compare_strings): Check those.
62702 2009-08-23  Bruno Haible  <bruno@clisp.org>
62704         Tests for module 'dup3'.
62705         * modules/dup3-tests: New file.
62706         * tests/test-dup3.c: New file.
62708         New module 'dup3'.
62709         * lib/unistd.in.h (dup3): New declaration.
62710         * lib/dup3.c: New file.
62711         * m4/dup3.m4: New file.
62712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
62713         HAVE_DUP3.
62714         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
62715         * modules/dup3: New file.
62716         * doc/glibc-functions/dup3.texi: Mention the new module.
62718 2009-08-23  Bruno Haible  <bruno@clisp.org>
62720         Tweak the dup2 test.
62721         * tests/test-dup2.c (main): Create the test file empty. Verify that an
62722         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
62723         the test file is still empty. Fix argument order of lseek.
62725 2009-08-23  Bruno Haible  <bruno@clisp.org>
62727         Avoid test link errors when the modules getopt-gnu, gettext are used.
62728         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
62729         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62731 2009-08-23  Bruno Haible  <bruno@clisp.org>
62733         Fix getdtablesize() on mingw.
62734         * lib/getdtablesize.c (getdtablesize): Implement differently.
62735         * lib/unistd.in.h (getdtablesize): Improve comment.
62737 2009-08-23  Bruno Haible  <bruno@clisp.org>
62739         New module 'mkostemp'.
62740         Based on Ulrich Drepper's 2007-08-10 change in glibc.
62741         * lib/stdlib.in.h (mksotemp): New declaration.
62742         * lib/mkostemp.c: New file, from glibc with modifications.
62743         * lib/tempname.h (GT_FILE): Remove outdated comment.
62744         (gen_tempname): Add flags argument.
62745         * lib/tempname.c (__GT_BIGFILE): Remove macro.
62746         (__GT_FILE): Map to 1.
62747         (small_open, large_open): Remove macros.
62748         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
62749         * lib/mkstemp.c (mkstemp): Update.
62750         * lib/mkdtemp.c (mkdtemp): Likewise.
62751         * m4/mkostemp.m4: New file.
62752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
62753         HAVE_MKOSTEMP.
62754         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
62755         HAVE_MKOSTEMP.
62756         * modules/mkostemp: New file, based on modules/mkstemp.
62757         * doc/glibc-functions/mkostemp.texi: Mention the new module.
62758         * NEWS: Mention the change.
62760 2009-08-23  Bruno Haible  <bruno@clisp.org>
62762         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
62763         Reported by Eric Blake.
62765 2009-08-23  Bruno Haible  <bruno@clisp.org>
62767         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
62768         Reported by Eric Blake.
62770 2009-08-23  Bruno Haible  <bruno@clisp.org>
62772         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
62773         * modules/pipe2 (Depends-on): Likewise.
62775 2009-08-23  Eric Blake  <ebb9@byu.net>
62777         fcntl-h: add O_TTY_INIT support
62778         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
62779         * tests/test-fcntl-h.c (o): Test it.
62780         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
62782         fcntl-h: rename from fcntl, in preparation for fcntl(2)
62783         * modules/fcntl: Move <fcntl.h> header replacement...
62784         * modules/fcntl-h: ...to new name, so as not to collide with
62785         like-named function.
62786         * tests/test-fcntl.c: Rename...
62787         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
62788         * modules/fcntl-tests: Rename...
62789         * modules/fcntl-h-tests: ...to this.  Update test file name.
62790         * modules/chdir-long (Depends-on): Update clients.
62791         * modules/chdir-safer (Depends-on): Likewise.
62792         * modules/fcntl-safer (Depends-on): Likewise.
62793         * modules/fts (Depends-on): Likewise.
62794         * modules/mkancesdirs (Depends-on): Likewise.
62795         * modules/mkdir-p (Depends-on): Likewise.
62796         * modules/open (Depends-on): Likewise.
62797         * modules/savewd (Depends-on): Likewise.
62798         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
62799         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
62801 2009-08-22  Bruno Haible  <bruno@clisp.org>
62803         * modules/binary-io (License): Relicense under LGPL.
62804         * modules/pipe2 (License): Likewise.
62806 2009-08-22  Bruno Haible  <bruno@clisp.org>
62808         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
62809         return value.
62810         * lib/pipe-filter-gi.c (filter_init): Likewise.
62811         Reported by Eric Blake.
62813 2009-08-22  Bruno Haible  <bruno@clisp.org>
62815         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
62816         * modules/pipe (Depends-on): Add pipe2.
62818 2009-08-22  Bruno Haible  <bruno@clisp.org>
62820         Tests for module 'pipe2'.
62821         * modules/pipe2-tests: New file.
62822         * tests/test-pipe2.c: New file.
62824         New module 'pipe2'.
62825         * lib/unistd.in.h (pipe2): New declaration.
62826         * lib/pipe2.c: New file.
62827         * m4/pipe2.m4: New file.
62828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
62829         HAVE_PIPE2.
62830         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
62831         * modules/pipe2: New file.
62832         * doc/glibc-functions/pipe2.texi: Mention the new module.
62834 2009-08-22  Bruno Haible  <bruno@clisp.org>
62836         Reference some new glibc functions.
62837         * doc/glibc-functions/accept4.texi: New file.
62838         * doc/glibc-functions/dup3.texi: New file.
62839         * doc/glibc-functions/mkostemp.texi: New file.
62840         * doc/glibc-functions/pipe2.texi: New file.
62841         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
62842         (Glibc sys/socket.h): Refer to accept4.
62843         (Glibc unistd.h): Refer to dup3, pipe2.
62844         Reported by Eric Blake.
62846 2009-08-22  Jim Meyering  <meyering@redhat.com>
62847             Bruno Haible  <bruno@clisp.org>
62849         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
62850         This makes it so packages using automake-1.11's silent-rules option
62851         can print e.g., a single "GEN    configmake.h" line, rather than
62852         the 30+ statements that perform the job.  If you want to see the
62853         actual commands, you can still run "make V=1".
62854         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
62855         so that make output is abbreviated when those variables are defined
62856         appropriately.
62857         * modules/argz: Likewise.
62858         * modules/arpa_inet: Likewise.
62859         * modules/byteswap: Likewise.
62860         * modules/configmake: Likewise.
62861         * modules/dirent: Likewise.
62862         * modules/errno: Likewise.
62863         * modules/fcntl: Likewise.
62864         * modules/float: Likewise.
62865         * modules/fnmatch: Likewise.
62866         * modules/getopt-posix: Likewise.
62867         * modules/glob: Likewise.
62868         * modules/iconv_open: Likewise.
62869         * modules/inttypes: Likewise.
62870         * modules/localcharset: Likewise.
62871         * modules/locale: Likewise.
62872         * modules/math: Likewise.
62873         * modules/netdb: Likewise.
62874         * modules/netinet_in: Likewise.
62875         * modules/poll: Likewise.
62876         * modules/posix_spawnp-tests: Likewise.
62877         * modules/sched: Likewise.
62878         * modules/search: Likewise.
62879         * modules/selinux-h: Likewise.
62880         * modules/signal: Likewise.
62881         * modules/spawn: Likewise.
62882         * modules/stdarg: Likewise.
62883         * modules/stdbool: Likewise.
62884         * modules/stddef: Likewise.
62885         * modules/stdint: Likewise.
62886         * modules/stdio: Likewise.
62887         * modules/stdlib: Likewise.
62888         * modules/string: Likewise.
62889         * modules/strings: Likewise.
62890         * modules/sys_file: Likewise.
62891         * modules/sys_ioctl: Likewise.
62892         * modules/sys_select: Likewise.
62893         * modules/sys_socket: Likewise.
62894         * modules/sys_stat: Likewise.
62895         * modules/sys_time: Likewise.
62896         * modules/sys_times: Likewise.
62897         * modules/sys_utsname: Likewise.
62898         * modules/sys_wait: Likewise.
62899         * modules/sysexits: Likewise.
62900         * modules/time: Likewise.
62901         * modules/unistd: Likewise.
62902         * modules/wchar: Likewise.
62903         * modules/wctype: Likewise.
62905 2009-08-22  Jim Meyering  <meyering@redhat.com>
62907         announce-gen: detect write failure
62908         * build-aux/announce-gen: Add Coda at end.
62909         Remove equivalent-but-more-verbose block at top.
62911 2009-08-19  Akim Demaille  <demaille@gostai.com>
62913         bootstrap: --help to stdout.
62914         * bootstrap (usage): Don't send --help to stderr.
62915         Use a here doc instead of a long string.
62917 2009-08-21  Eric Blake  <ebb9@byu.net>
62919         test-popen-safer: split from test-popen
62920         * tests/test-popen.c (main): Move...
62921         * tests/test-popen.h: ...into new file.
62922         * tests/test-popen-safer2.c: New file.
62923         * modules/popen-tests (Files): Add test-popen.h.
62924         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
62925         Suggested by Bruno Haible.
62927         test-fcntl-safer: split from test-open
62928         * tests/test-open.c (main): Move...
62929         * tests/test-open.h: ...into new file.
62930         * tests/test-fcntl-safer.c: New file.
62931         * modules/open-tests (Files): Add test-open.h.
62932         * modules/fcntl-safer-tests: New file.
62933         Suggested by Bruno Haible.
62935         test-fopen-safer: split from test-fopen
62936         * tests/test-fopen.c (main): Move...
62937         * tests/test-fopen.h: ...into new file.
62938         * tests/test-fopen-safer.c: New file.
62939         * modules/fopen-tests (Files): Add test-fopen.h.
62940         * modules/fopen-safer-tests: New file.
62941         Suggested by Bruno Haible.
62943 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
62945         popen-safer: test O_CLOEXEC at run-time.
62946         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
62948 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
62950         fcntl: move more flags to the header
62951         * lib/cloexec.c: Do not define FD_CLOEXEC here.
62952         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
62953         * lib/fcntl.in.h: Do both things here.
62955 2009-08-21  Jim Meyering  <meyering@redhat.com>
62957         consistently remove $@-t before redirecting to it
62958         * modules/argz: Remove $@-t and $@ before redirecting to the former.
62959         * modules/alloca-opt: Likewise.
62960         * modules/byteswap: Likewise.
62961         * modules/fnmatch: Likewise.
62962         * modules/getopt-posix: Likewise.
62963         * modules/glob: Likewise.
62964         * modules/poll: Likewise.
62965         * modules/posix_spawnp-tests: Likewise.
62966         * modules/sys_socket: Likewise.
62967         * modules/sysexits: Likewise.
62969 2009-08-21  Eric Blake  <ebb9@byu.net>
62971         popen: simplify access to original popen
62972         * lib/popen.c (rpl_popen): No need to worry about popen being a
62973         macro.
62974         Reported by Bruno Haible.
62976 2009-08-20  Eric Blake  <ebb9@byu.net>
62978         build: avoid some compiler warnings
62979         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
62980         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
62981         type.
62982         (new_exclude_segment, excluded_file_pattern_p)
62983         (excluded_file_name_p): Reduce scope.
62984         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
62985         old-style declaration.
62987 2009-08-20  Simon Josefsson  <simon@josefsson.org>
62989         * tests/test-exclude1.sh: Handle Windows EOL.
62990         * tests/test-exclude2.sh: Likewise.
62991         * tests/test-exclude3.sh: Likewise.
62992         * tests/test-exclude4.sh: Likewise.
62993         * tests/test-exclude5.sh: Likewise.
62994         * tests/test-exclude6.sh: Likewise.
62995         * tests/test-exclude7.sh: Likewise.
62997 2009-08-19  Akim Demaille  <demaille@gostai.com>
62999         bootstrap: find sha1sum when named gsha1sum.
63000         * bootstrap (find_tool): New.
63001         ($SHA1SUM): New.
63002         Use it.
63004 2009-08-20  Jim Meyering  <meyering@redhat.com>
63006         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
63007         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
63008         expression that converts "." in a file name to "\." in the resulting
63009         regexp.  Start with a dummy statement, so that prior shell variable
63010         definitions are expanded portably.  Reported by Simon Josefsson.
63012 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
63014         Fix polling for writeability of a screen buffer.
63015         * lib/poll.c: Distinguish input and screen buffers for the
63016         Win32 implementation.
63017         * lib/select.c: Likewise.
63019 2009-08-19  Eric Blake  <ebb9@byu.net>
63021         popen-safer: prevent popen from clobbering std descriptors
63022         * modules/popen-safer: New file.
63023         * lib/popen-safer.c: Likewise.
63024         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
63025         * lib/stdio--.h (popen): Provide override.
63026         * lib/stdio-safer.h (popen_safer): Provide declaration.
63027         * tests/test-popen.c (includes): Partially test this.
63028         * modules/popen-safer-tests: New file, for more tests.
63029         * tests/test-popen-safer.c: Likewise.
63030         * MODULES.html.sh (file stream based Input/Output): Mention it.
63032         tests: test some of the *-safer modules
63033         * modules/fopen-safer (Depends-on): Add fopen.
63034         * modules/fcntl-safer (Depends-on): Add fcntl.
63035         * modules/stdlib-safer (Depends-on): Add stdlib.
63036         (configure.ac): Set indicator.
63037         * modules/unistd-safer (configure.ac): Likewise.
63038         * modules/tmpfile-safer (configure.ac): Likewise.
63039         (Depends-on): Add tmpfile.
63040         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
63041         active.
63042         * tests/test-fopen.c (includes): Test safer versions when they are
63043         in use.
63044         * tests/test-open.c (includes): Likewise.
63046         popen: fix cygwin 1.5 bug when stdin closed
63047         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
63048         * modules/popen: New file.
63049         * modules/popen-tests: Likewise.
63050         * tests/test-popen.c: Likewise.
63051         * m4/popen.m4: Likewise.
63052         * lib/popen.c: Likewise.
63053         * lib/stdio.in.h (popen): New declaration.
63054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
63055         * modules/stdio (Makefile.am): Likewise.
63056         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
63058 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
63060         maint.mk: give full control over update-copyright exclusions
63061         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
63062         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
63063         (update-copyright): Don't force inclusion of top-level
63064         ChangeLog.  Don't force exclusion of all COPYING files, but make
63065         them the default exclusion instead.
63067 2009-08-16  Bruno Haible  <bruno@clisp.org>
63069         Fix test failures on Solaris 10.
63070         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
63071         tests when Solaris iconv() is used.
63072         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63073         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63074         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63075         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63076         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63078 2009-08-16  Bruno Haible  <bruno@clisp.org>
63080         Fix test failures on Solaris 10.
63081         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
63082         'tr' program and pass it as first argument.
63083         * tests/test-pipe-filter-gi1.sh: Likewise.
63084         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
63085         program as first argument.
63086         * tests/test-pipe-filter-gi1.c (main): Likewise.
63088 2009-08-16  Eric Blake  <ebb9@byu.net>
63090         fpurge: fix previous commits
63091         * modules/fpurge (Makefile.am): Make replacement conditional,
63092         partially reverting 2007-04-29 change; missed in previous
63093         attempt.
63094         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
63095         is missing.
63097 2009-08-16  Bruno Haible  <bruno@clisp.org>
63099         Clarify fpurge's effect on the file position.
63100         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
63101         * tests/test-fpurge.c (main): Make a second pass for checking the file
63102         position.
63104 2009-08-16  Bruno Haible  <bruno@clisp.org>
63106         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
63107         declaration of fpurge is missing.
63108         * tests/test-fpurge.c (main): Check that the file has not more contents
63109         than expected. Close the file before removing it.
63111 2009-08-15  Eric Blake  <ebb9@byu.net>
63113         fpurge: don't wrap working cygwin implementation
63114         * lib/fpurge.c (fpurge): Fix comment typo.
63115         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
63116         1.7 to avoid replacement.
63117         * tests/test-fpurge.c (main): Enhance test.
63119 2009-08-15  Eric Blake  <ebb9@byu.net>
63120         and Jim Meyering  <meyering@redhat.com>
63122         test-update-copyright: skip if perl is insufficient
63123         * tests/test-update-copyright.sh: Failure to run maintainer tool
63124         should not cause testsuite failure on cygwin 1.5.
63126 2009-08-14  Eric Blake  <ebb9@byu.net>
63128         doc: mention more functions added in cygwin 1.7.0
63129         * doc/posix-headers/limits.texi (limits.h): Update for recent
63130         cygwin additions.
63131         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
63132         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
63133         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
63134         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
63135         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
63137 2009-08-14  Eric Blake  <ebb9@byu.net>
63139         maint.mk: simplify update-copyright rule
63140         * top/maint.mk (update-copyright-local): Delete, and document how
63141         to do it in cfg.mk instead.
63142         (update-copyright-exclude-regexp): Delete, and document how to do
63143         it in .x-update-copyright instead.
63144         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
63145         exclude ChangeLog.
63147 2009-08-14  Bruno Haible  <bruno@clisp.org>
63149         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
63151 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63153         maint.mk: support update-copyright-env
63154         * top/maint.mk (update-copyright-env): Define place-holder.
63155         (update-copyright): Expand $(update-copyright-env) before
63156         invoking update-copyright.
63158 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63160         update-copyright: implement forced reformatting
63161         * build-aux/update-copyright: Implement and document
63162         UPDATE_COPYRIGHT_FORCE.
63163         * tests/test-update-copyright.sh: Test it.
63165 2009-08-14  Eric Blake  <ebb9@byu.net>
63166         and Bruno Haible  <bruno@clisp.org>
63168         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
63169         * tests/test-locale.c: Revert previous patch related to NULL.
63170         * tests/test-stdio.c: Likewise.
63171         * tests/test-stdlib.c: Likewise.
63172         * tests/test-string.c: Likewise.
63173         * tests/test-unistd.c: Likewise.
63174         * modules/time-tests (Depends-on): Add verify.
63175         * modules/wchar-tests (Depends-on): Likewise.
63176         * tests/test-time.c: Test for NULL compliance.
63177         * tests/test-wchar.c: Likewise.
63178         * modules/locale (Depends-on): Add stddef.
63179         * modules/stdio (Depends-on): Likewise.
63180         * modules/stdlib (Depends-on): Likewise.
63181         * modules/string (Depends-on): Likewise.
63182         * modules/time (Depends-on): Likewise.
63183         * modules/unistd (Depends-on): Likewise.
63184         * modules/wchar (Depends-on): Likewise.
63185         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
63186         * lib/stdlib.in.h (includes): Likewise.
63187         * lib/string.in.h (includes): Likewise.
63188         * lib/time.in.h (includes): Likewise.
63189         * lib/unistd.in.h (includes): Likewise.
63190         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
63191         replaced.
63192         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63193         * m4/stddef_h.m4: New file.
63194         * modules/stddef: Likewise.
63195         * lib/stddef.in.h: Likewise.
63196         * modules/stddef-tests: Likewise.
63197         * tests/test-stddef.c: Likewise.
63198         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
63199         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
63200         * doc/posix-headers/locale.texi (locale.h): Likewise.
63201         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
63202         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
63203         * doc/posix-headers/string.texi (string.h): Likewise.
63204         * doc/posix-headers/time.texi (time.h): Likewise.
63205         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
63206         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
63208 2009-08-14  Eric Blake  <ebb9@byu.net>
63210         doc: improve git diff of texinfo files
63211         * .gitattributes: Add rule for *.texi files, with hint on how to
63212         use it.
63213         Copied from m4, and based on a report by Bruno Haible.
63215 2009-08-14  Bruno Haible  <bruno@clisp.org>
63217         Disable multithread support by default on Cygwin 1.5.x for real.
63218         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
63220 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63222         update-copyright: much ado about intervals
63223         * build-aux/update-copyright: Implement and document
63224         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
63225         of copyright year intervals.
63226         Also, document UPDATE_COPYRIGHT_YEAR.
63227         * tests/test-update-copyright.sh: Test it.
63229         update-copyright: convert 2-digit to 4-digit years
63230         * build-aux/update-copyright: Implement and document.
63231         * tests/test-update-copyright.sh: Update.
63233 2009-08-14  Jim Meyering  <meyering@redhat.com>
63235         test-exclude: avoid coreutils "make check" failure
63236         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
63237         just as in test-argmatch.c.
63239 2009-08-13  Eric Blake  <ebb9@byu.net>
63241         test-dup2: fix bad assumption
63242         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
63243         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
63245         test-version-etc: fix CRLF portability issue
63246         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
63247         recognize \r.
63248         * tests/test-argp-version-etc-1.sh: Likewise.
63250         getopt: update client modules
63251         * modules/argp (Depends-on): Use getopt-gnu.
63252         * modules/git-merge-changelog (Depends-on): Likewise.
63253         * modules/long-options (Depends-on): Likewise.
63254         * modules/xstrtol (Depends-on): Likewise.
63256 2009-08-13  Simon Josefsson  <simon@josefsson.org>
63258         * tests/test-version-etc.sh: Don't fail on different
63259         project/version.  Don't fail on CRLF differences.  Rewrite to use
63260         multiple -e instead of multiple sed forks, suggested by Eric Blake
63261         <ebb9@byu.net>.
63262         * tests/test-argp-version-etc-1.sh: Likewise.
63264 2009-08-13  Simon Josefsson  <simon@josefsson.org>
63266         * tests/test-version-etc.sh: Don't fail on different
63267         project/version.
63269 2009-08-12  Bruno Haible  <bruno@clisp.org>
63271         Tests for modules 'getopt-posix', 'getopt-gnu'.
63272         * modules/getopt-posix-tests: New file.
63273         * tests/test-getopt.c: New file.
63274         * tests/test-getopt.h: New file.
63275         * tests/test-getopt_long.h: New file.
63277         New modules 'getopt-posix', 'getopt-gnu'.
63278         * modules/getopt-gnu: New file, renamed from modules/getopt.
63279         * modules/getopt-posix: New file.
63280         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
63281         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
63282         (gl_GETOPT): Remove macro.
63283         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
63284         Disable the test against BSD systems that declare optreset. Test
63285         against mingw bug. Test against lack of support of optional arguments
63286         on many platforms.
63287         * doc/glibc-headers/getopt.texi: Update module name and list of
63288         relevant platforms.
63289         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
63290         'getopt-gnu' and more portability problems.
63291         * NEWS: Mention the changes.
63293 2009-08-12  Bruno Haible  <bruno@clisp.org>
63295         Ensure that optarg etc. get declared by <unistd.h>.
63296         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
63297         AC_USE_SYSTEM_EXTENSIONS.
63298         * modules/getopt (Depends-on): Add 'extensions'.
63300 2009-08-12  Bruno Haible  <bruno@clisp.org>
63302         Avoid test link errors.
63303         * modules/pipe-filter-ii-tests (Makefile.am): Define
63304         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
63305         * modules/pipe-filter-gi-tests (Makefile.am): Define
63306         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
63307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63309 2009-08-12  Bruno Haible  <bruno@clisp.org>
63311         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
63312         gl_GETOPT_SUBSTITUTE before.
63313         (gl_GETOPT): Use it.
63314         * m4/argp.m4 (gl_ARGP): Update.
63315         Reported by Sergey Poznyakoff.
63317         * m4/getopt.m4: Reorder macros.
63318         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
63319         (gl_GETOPT_SUBSTITUTE): Remove macro.
63321 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63323         Minor improvement in gitlog-to-changelog
63325         * build-aux/gitlog-to-changelog: New option `--format' makes
63326         output format string configurable.
63328 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63330         Optimize exclude: use hash tables for non-wildcard patterns.
63332         * lib/exclude.c: Include hash.h and mbuiter.h
63333         (struct exclude_pattern, exclude_segment): New data types.
63334         (struct exclude): Rewrite.
63335         (fnmatch_pattern_has_wildcards): New function.
63336         (new_exclude_segment, free_exclude_segment): New functions.
63337         (excluded_file_pattern_p, excluded_file_name_p): New functions.
63338         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
63339         * lib/exclude.h (is_fnmatch_pattern): New prototype.
63340         * modules/exclude: Depend on hash and mbuiter.
63342         * modules/exclude-tests: New file.
63343         * tests/test-exclude.c: New file.
63344         * tests/test-exclude1.sh: New file.
63345         * tests/test-exclude2.sh: New file.
63346         * tests/test-exclude3.sh: New file.
63347         * tests/test-exclude4.sh: New file.
63348         * tests/test-exclude5.sh: New file.
63349         * tests/test-exclude6.sh: New file.
63350         * tests/test-exclude7.sh: New file.
63352 2009-08-12  Bruno Haible  <bruno@clisp.org>
63354         Ensure that getopt() gets declared by <unistd.h>.
63355         * lib/unistd.in.h: Conditionally include getopt.h.
63356         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
63357         Set GNULIB_UNISTD_H_GETOPT.
63358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63359         GNULIB_UNISTD_H_GETOPT.
63360         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
63362 2009-08-12  Bruno Haible  <bruno@clisp.org>
63364         Clarify logic.
63365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
63366         gl_replace_getopt instead of GETOPT_H.
63368 2009-08-12  Bruno Haible  <bruno@clisp.org>
63370         * m4/getopt.m4: Add comments.
63372 2009-08-12  Bruno Haible  <bruno@clisp.org>
63374         Disable multithread support by default on Cygwin 1.5.x.
63375         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
63376         set gl_use_threads=no if not specified otherwise.
63378 2009-08-11  Bruno Haible  <bruno@clisp.org>
63380         Avoid compilation error on NetBSD 5.0.
63381         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
63382         * tests/test-stdio.c: Likewise.
63383         * tests/test-stdlib.c: Likewise.
63384         * tests/test-string.c: Likewise.
63385         * tests/test-unistd.c: Likewise.
63386         Reported by Greg Troxel <gdt@ir.bbn.com>
63387         at <https://savannah.gnu.org/support/?106973>.
63389 2009-08-11  Bruno Haible  <bruno@clisp.org>
63391         * modules/dup2-tests (Depends-on): Remove close.
63393         Undo 2009-07-19 commit.
63394         * modules/acl-tests (Depends-on): Remove close.
63395         * modules/binary-io-tests (Depends-on): Likewise.
63396         * modules/closein-tests (Depends-on): Likewise.
63397         * modules/flock-tests (Depends-on): Likewise.
63398         * modules/fsync-tests (Depends-on): Likewise.
63399         * modules/lseek-tests (Depends-on): Likewise.
63400         * modules/pipe-tests (Depends-on): Likewise.
63401         * modules/posix_spawn-tests (Depends-on): Likewise.
63402         * modules/posix_spawnp-tests (Depends-on): Likewise.
63403         * modules/stat-time-tests (Depends-on): Likewise.
63404         * modules/yesno-tests (Depends-on): Likewise.
63406 2009-08-10  Bruno Haible  <bruno@clisp.org>
63408         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
63410 2009-08-10  Bruno Haible  <bruno@clisp.org>
63412         Fix a gcc warning.
63413         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
63415 2009-08-10  Bruno Haible  <bruno@clisp.org>
63417         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
63418         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
63419         not only the first time.
63420         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
63421         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
63422         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
63423         is 1, not only the first time.
63425 2009-08-10  Bruno Haible  <bruno@clisp.org>
63427         Make it possible to use module 'gethostname' without module 'close'.
63428         * lib/unistd.in.h (close): Evoke a link error only if
63429         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
63430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63431         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63432         * modules/unistd (Makefile.am): Substitute
63433         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63434         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
63435         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
63436         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
63437         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63438         * modules/sys_ioctl (Makefile.am): Substitute
63439         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63440         * modules/socket (configure.ac): On native Windows, set
63441         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
63442         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63443         Reported by Sam Steingold <sds@gnu.org>.
63445 2009-08-10  Bruno Haible  <bruno@clisp.org>
63447         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
63448         * modules/ioctl (configure.ac): Likewise.
63450 2009-08-10  Bruno Haible  <bruno@clisp.org>
63452         Avoid collision between gnulib wrapper and libintl wrapper.
63453         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
63454         already defined in intl/printf.c.
63455         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
63456         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
63458 2009-08-09  Bruno Haible  <bruno@clisp.org>
63460         Make <sys/select.h> really self-contained, also on Solaris 10.
63461         * lib/sys_select.in.h: Include <string.h>.
63462         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
63463         Solaris 10 problem.
63464         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
63465         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
63466         Reported by Jim Meyering.
63468 2009-08-09  Bruno Haible  <bruno@clisp.org>
63470         Avoid warnings from 'aclocal' that are due to a use of macro name
63471         AM_XGETTEXT_OPTION that is not defined in automake.
63472         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
63473         automake.
63474         * modules/error (configure.ac): Likewise.
63475         * modules/propername (configure.ac): Likewise.
63476         * modules/vasprintf (configure.ac): Likewise.
63477         * modules/verror (configure.ac): Likewise.
63478         * modules/xprintf (configure.ac): Likewise.
63479         * modules/xvasprintf (configure.ac): Likewise.
63481 2009-08-08  Bruno Haible  <bruno@clisp.org>
63483         Avoid compilation error in C++ mode.
63484         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
63485         Reported by Sam Steingold <sds@gnu.org>.
63487 2009-08-08  Bruno Haible  <bruno@clisp.org>
63489         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
63490         for the various Unix platforms.
63491         * doc/posix-headers/limits.texi: Update platforms list regarding
63492         HOST_NAME_MAX.
63493         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63495 2009-08-07  Jim Meyering  <meyering@redhat.com>
63497         selinux-at: fix typo in a comment
63498         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
63499         Spotted by Paolo Bonzini.
63501         selinux-at: remove redundant m4 code, add documentation
63502         * modules/selinux-at (configure.ac): Remove redundant code.
63503         LIB_SELINUX is already set via the dependent module, selinux-h.
63504         (Include): Add quotes around selinux-at.h.
63505         * lib/selinux-at.h: Add documentation.
63506         Reported by Bruno Haible in
63507         http://marc.info/?l=gnulib-bug&m=124958988300749
63509 2009-08-07  Bruno Haible  <bruno@clisp.org>
63511         Avoid link error on MacOS X 10.3 and 10.4.
63512         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
63513         on non-ELF systems.
63514         * lib/argp-pv.c (argp_program_version): Likewise.
63515         Reported by Simon Josefsson.
63517 2009-08-07  Simon Josefsson  <simon@josefsson.org>
63519         * tests/test-version-etc.sh: Use $EXEEXT.
63521 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
63523         update-copyright: update documentation to point to maint.mk
63524         * build-aux/update-copyright: Here.
63526 2009-08-06  Jim Meyering  <meyering@redhat.com>
63528         maint.mk: support update-copyright-local
63529         * top/maint.mk (update-copyright-local): Define place-holder.
63530         (update-copyright): Depend on $(update-copyright-local).
63532 2009-08-06  Jim Meyering  <meyering@redhat.com>
63534         selinux-at: new module
63535         Initially written for coreutils, this module will soon be
63536         used by findutils, too.
63537         * MODULES.html.sh [Misc]: Add selinux-at.
63538         * lib/selinux-at.h: New file, from coreutils.
63539         * lib/selinux-at.c: Likewise.
63540         * modules/selinux-at: Likewise.
63541         (License): Change from LGPL to GPL, since it depends
63542         on the GPL'd openat module.
63544         doc: update README
63545         * README: Remove references to cogito.
63546         Remove cvs-repo-updating instructions from 2007.
63547         Don't imply that CVS is better if you have limited disk space.
63549 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63551         update-copyright: support C-style comments
63552         * build-aux/update-copyright: Implement and document.
63553         * tests/test-update-copyright.sh: Test.
63555 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63557         update-copyright: support omitted "(C)"
63558         * build-aux/update-copyright: Implement and document.  Also,
63559         allow variable whitespace before "(C)".
63560         * tests/test-update-copyright.sh: Test.
63562 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63564         update-copyright: don't trip on non-FSF copyright statements
63565         * build-aux/update-copyright: Fix so that the first correctly
63566         formatted FSF copyright statement is recognized no matter what
63567         appears before it.  Update documentation.
63568         * tests/test-update-copyright.sh: Test that.
63570 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63572         update-copyright: clean up code a little
63573         * build-aux/update-copyright: Append "_re" to the name of any
63574         variable holding a regular expression.
63575         Replace "old" and "new" with "stmt" in variable names.
63576         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
63577         handled correctly.
63578         Format code more consistently.
63580 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63582         update-copyright-tests: improve portability
63583         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
63584         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
63586 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
63588         update-copyright: support @copyright{} and &copy;
63589         * build-aux/update-copyright: Implement and document.
63590         * tests/test-update-copyright.sh: Test.
63592 2009-08-04  Jim Meyering  <meyering@redhat.com>
63594         update-copyright-tests: correctly test EOL=\r\n handling
63595         * tests/test-update-copyright.sh: Put \r at the end of some lines
63596         for the dos-eol tests.  Based on a patch by Joel E. Denny.
63598         maint.mk: make update-copyright exclusion list more configurable
63599         * top/maint.mk (update-copyright): Default to excluding COPYING,
63600         but allow an override, in case someone does want to update that file.
63602         maint.mk: don't update copyright date in COPYING
63603         * top/maint.mk (update-copyright): Exclude COPYING.
63605         maint.mk: add a copyright-updating rule
63606         * top/maint.mk (update-copyright): New rule.
63607         Derived from coreutils/Makefile.am.
63609         update-copyright: rename some variables
63610         * build-aux/update-copyright: Rename a few variables for clarity.
63611         Tweak syntax.  List Joel E. Denny as coauthor.
63613 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
63615         update-copyright: fix bug for 2-digit last year and add tests
63616         * build-aux/update-copyright: Fix bug.
63617         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
63618         specified.
63619         * modules/update-copyright-tests: New
63620         * tests/test-update-copyright.sh: New.
63622 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
63624         update-copyright: handle leading tabs in line prefix
63625         * build-aux/update-copyright: Count leading tabs as 8 spaces
63626         when computing margin.  This helps with the formatting of
63627         ChangeLogs, for example.
63628         Fix documentation a little.
63630 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
63632         update-copyright: support EOL=\r\n
63633         * build-aux/update-copyright: Implement that.
63635 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
63637         update-copyright: automatically format copyright statements
63638         * build-aux/update-copyright: Implement that.
63639         Also, be a little more predictable and safer by always failing
63640         when the full copyright format is not perfectly recognized as an
63641         unbroken whole.  Discussed at
63642         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
63643         Rewrite documentation.
63645 2009-08-03  Bruno Haible  <bruno@clisp.org>
63647         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
63649 2009-08-02  Bruno Haible  <bruno@clisp.org>
63651         Tests for module 'uname'.
63652         * modules/uname-tests: New file.
63653         * tests/test-uname.c: New file.
63655         New module 'uname'.
63656         * lib/uname.c: New file.
63657         * m4/uname.m4: New file.
63658         * modules/uname: New file.
63659         * doc/posix-functions/uname.texi: Mention the new module.
63661 2009-08-02  Bruno Haible  <bruno@clisp.org>
63663         Tests for module 'sys_utsname'.
63664         * modules/sys_utsname-tests: New file.
63665         * tests/test-sys_utsname.c: New file.
63667         New module 'sys_utsname'.
63668         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
63669         * m4/sys_utsname_h.m4: New file.
63670         * modules/sys_utsname: New file.
63671         * doc/posix-headers/sys_utsname.texi: Mention the new module.
63673 2009-08-02  Bruno Haible  <bruno@clisp.org>
63675         Implicitly initialize the sockets library.
63676         * lib/gethostname.c: Include sockets.h.
63677         (rpl_gethostname): Invoke gl_sockets_startup.
63678         * lib/socket.c: Include sockets.h.
63679         (rpl_socket): Invoke gl_sockets_startup.
63680         * modules/gethostname (Depends-on): Add sockets.
63681         * modules/socket (Depends-on): Likewise.
63682         * tests/test-poll.c: Don't include sockets.h.
63683         (main): Don't invoke gl_sockets_startup.
63684         * tests/test-select.c: Don't include sockets.h.
63685         (main): Don't invoke gl_sockets_startup.
63687 2009-08-02  Bruno Haible  <bruno@clisp.org>
63689         Allow multiple calls to gl_sockets_startup.
63690         * lib/sockets.c (initialized_sockets_version): New variable.
63691         (gl_sockets_startup): Do nothing if already called for this or a higher
63692         version.
63693         (gl_sockets_cleanup): Reset initialized_sockets_version.
63695 2009-08-03  Simon Josefsson  <simon@josefsson.org>
63697         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
63698         different project/version.
63700 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
63701             Bruno Haible  <bruno@clisp.org>
63703         Tests for module 'pipe-filter-gi'.
63704         * modules/pipe-filter-gi-tests: New file.
63705         * tests/test-pipe-filter-gi1.sh: New file.
63706         * tests/test-pipe-filter-gi1.c: New file.
63707         * tests/test-pipe-filter-gi2.sh: New file.
63708         * tests/test-pipe-filter-gi2-main.c: New file.
63709         * tests/test-pipe-filter-gi2-child.c: New file.
63711         New module 'pipe-filter-gi'.
63712         * lib/pipe-filter-gi.c: New file.
63713         * modules/pipe-filter-gi: New file.
63715 2009-08-02  Bruno Haible  <bruno@clisp.org>
63716             Paolo Bonzini  <bonzini@gnu.org>
63718         Tests for module 'pipe-filter-ii'.
63719         * modules/pipe-filter-ii-tests: New file.
63720         * tests/test-pipe-filter-ii1.sh: New file.
63721         * tests/test-pipe-filter-ii1.c: New file.
63722         * tests/test-pipe-filter-ii2.sh: New file.
63723         * tests/test-pipe-filter-ii2-main.c: New file.
63724         * tests/test-pipe-filter-ii2-child.c: New file.
63726         New module 'pipe-filter-ii'.
63727         * lib/pipe-filter.h: New file.
63728         * lib/pipe-filter-ii.c: New file.
63729         * lib/pipe-filter-aux.h: New file.
63730         * modules/pipe-filter-ii: New file.
63732 2009-08-02  Simon Josefsson  <simon@josefsson.org>
63734         * lib/gc-libgcrypt.c: Change copyright to FSF.
63735         * lib/gc-gnulib.c: Likewise.
63737 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
63739         * lib/gethostname.c: Include limits.h.
63741 2009-08-02  Simon Josefsson  <simon@josefsson.org>
63742             Bruno Haible  <bruno@clisp.org>
63744         Ensure HOST_NAME_MAX as part of the gethostname module.
63745         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
63746         define also HOST_NAME_MAX.
63747         * tests/test-gethostname.c: Include <limits.h>.
63748         (main): Check also HOST_NAME_MAX.
63749         * doc/posix-headers/limits.texi: Document the mingw problem.
63751 2009-08-02  Bruno Haible  <bruno@clisp.org>
63753         * lib/gethostname.c (gethostname): Fix handling of large len argument.
63754         Add comments.
63756 2009-03-31  Simon Josefsson  <simon@josefsson.org>
63758         * lib/gethostname.c: Add Windows wrapper.
63759         * m4/gethostname.m4: Look for gethostname in -lws2_32.
63760         * modules/gethostname: Depend on sys_socket & errno, for also
63761         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
63762         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
63764 2009-07-31  Jim Meyering  <meyering@redhat.com>
63766         getloadavg: fix symbol name in comment
63767         * lib/getloadavg.c: Correct a typo I introduced when adding
63768         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
63769         Matt Kraai spotted the problem.
63771 2009-07-29  Matt Kraai  <mkraai@beckman.com>
63773         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
63774         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
63775         code also if ! defined N_NAME_POINTER.
63776         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
63777         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
63778         but the n_name member is a 12-byte array.
63780 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
63782         update-copyright: generalize comment handling
63783         * build-aux/update-copyright: Handle copyright statements
63784         within more comment styles.
63785         Document usage.
63786         Report any file with an external copyright holder or parse failure.
63788 2009-07-29  Jim Meyering  <meyering@redhat.com>
63790         mktime: correct setting of REPLACE_MKTIME
63791         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
63793         update-copyright: new module
63794         * modules/update-copyright: New file.
63795         * build-aux/update-copyright: New file.
63796         * MODULES.html.sh (maint+release support): Add update-copyright.
63798 2009-07-27  Bruno Haible  <bruno@clisp.org>
63800         Fix compilation error when <ctime> is used and mktime is replaced.
63801         * lib/time.in.h (mktime): New declaration.
63802         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
63803         REPLACE_MKTIME instead of defining mktime in config.h.
63804         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
63805         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
63806         Reported by Ross McFarland <rwmcfa1@neces.com>.
63808 2009-07-27  Bruno Haible  <bruno@clisp.org>
63810         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
63811         Reported by Matt Kraai <mkraai@beckman.com>.
63813 2009-07-25  Jim Meyering  <meyering@redhat.com>
63815         maint.mk: avoid warnings about missing files
63816         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
63817         diagnostic when .prev-version does not exist.
63818         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
63819         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
63820         nonexistent cfg.mk.
63821         Suggestions from Simon Josefsson.
63823 2009-07-25  Bruno Haible  <bruno@clisp.org>
63825         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
63826         defined as macros. Needed on QNX 6.4.1.
63827         Reported by Matt Kraai <mkraai@beckman.com>.
63829 2009-07-23  Jim Meyering  <meyering@redhat.com>
63831         maint.mk: invoke "make dist" with a working value of XZ_OPT
63832         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
63834 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
63836         Make fseeko.c compile on QNX.
63837         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
63839 2009-07-22  Peter Simons  <simons@cryp.to>
63841         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
63842         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
63843         * lib/md4.h: Likewise.
63844         * lib/md5.h: Likewise.
63845         * lib/sha1.h: Likewise.
63846         * lib/sha256.h: Likewise.
63847         * lib/sha512.h: Likewise.
63849         tests-sha1: don't assign literal string to 'char *' variable
63850         * tests/test-sha1.c (main): Declare locals with "const" to match
63851         attributes of the right hand side.
63853 2009-07-21  Eric Blake  <ebb9@byu.net>
63855         dup2: fix more mingw problems
63856         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
63857         fd to itself.
63858         * doc/posix-functions/dup2.texi (dup2): Document the bug.
63859         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
63860         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
63861         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
63862         care of mingw bugs.
63864 2009-07-21  Jim Meyering  <meyering@redhat.com>
63866         vc-list-files: avoid failure when /bin/sh is dash
63867         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
63868         On some Debian based systems, /bin/sh is a symlink to dash, and running
63869         this command would omit the "/" following each 'tests' prefix:
63870           dash -x build-aux/vc-list-files -C . tests
63871         That is because bash and dash work differently:
63872           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
63873           bash ok
63874           dash odd
63876 2009-07-21  Eric Blake  <ebb9@byu.net>
63878         dup2-tests: test previous patch
63879         * modules/dup2-tests: New file.
63880         * tests/test-dup2.c: Likewise.
63881         * tests/test-open.c (main): Avoid unspecified behavior.
63882         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
63883         test.
63885         dup2: work around mingw and cygwin 1.5 bug
63886         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
63887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63888         * modules/unistd (Makefile.am): Substitute it.
63889         * lib/unistd.in.h (dup2): Declare the replacement.
63890         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
63891         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
63892         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
63893         * modules/execute (Depends-on): Add dup2.
63894         * modules/fseterr (Depends-on): Likewise.
63895         * modules/pipe (Depends-on): Likewise.
63896         * modules/posix_spawn-internal (Depends-on): Likewise.
63898 2009-07-21  Bruno Haible  <bruno@clisp.org>
63900         * modules/.gitattributes: New file.
63902 2009-07-20  Bruno Haible  <bruno@clisp.org>
63904         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
63905         (main): Use it.
63907 2009-07-20  Eric Blake  <ebb9@byu.net>
63909         test-pipe: make a bit more robust.
63910         * tests/test-pipe.c (myerr): Allow error messages regardless of
63911         what we do to stderr.
63912         (test_pipe): Rearrange to avoid deadlock.
63913         (child_main): Try a larger read, to ensure we avoided deadlock.
63914         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
63915         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
63916         if misused.
63918 2009-07-19  Jim Meyering  <meyering@redhat.com>
63920         fts: avoid false-positive cycle-detection
63921         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
63922         for each new command line argument.
63924 2009-07-19  Bruno Haible  <bruno@clisp.org>
63926         Fix build error on mingw with the modules sys_select and unistd.
63927         * modules/acl-tests (Depends-on): Add close.
63928         * modules/binary-io-tests (Depends-on): Likewise.
63929         * modules/closein-tests (Depends-on): Likewise.
63930         * modules/flock-tests (Depends-on): Likewise.
63931         * modules/fsync-tests (Depends-on): Likewise.
63932         * modules/lseek-tests (Depends-on): Likewise.
63933         * modules/pipe-tests (Depends-on): Likewise.
63934         * modules/posix_spawn-tests (Depends-on): Likewise.
63935         * modules/posix_spawnp-tests (Depends-on): Likewise.
63936         * modules/stat-time-tests (Depends-on): Likewise.
63937         * modules/yesno-tests (Depends-on): Likewise.
63939 2009-07-19  Bruno Haible  <bruno@clisp.org>
63941         Unify conditionals.
63942         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
63943         macros, not at the compiler macros.
63944         * lib/pipe.c: Likewise.
63945         * lib/execute.c: Likewise.
63946         * lib/spawni.c: Likewise.
63948 2009-07-19  Bruno Haible  <bruno@clisp.org>
63950         Fix handling of closed stdin/stdout/stderr on mingw.
63951         * lib/w32spawn.h: Include unistd.h.
63952         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
63953         file descriptor with O_NOINHERIT flag.
63954         (fd_safer_noinherit): New function, based on fd-safer.c.
63955         (dup_safer_noinherit): New function, based on dup-safer.c.
63956         (undup_safer_noinherit): New function.
63957         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
63958         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
63959         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
63960         instead of fd_safer.
63961         * tests/test-pipe.c: Include <windows.h>.
63962         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
63963         result.
63965         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
63966         from main.
63967         (test_pipe): Pass an extra argument for disambiguation.
63968         (main): Invoke parent_main or child_main.
63970         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
63971         consistently.
63973 2009-07-18  Eric Blake  <ebb9@byu.net>
63975         test-pipe: fix mingw build
63976         * tests/test-pipe.c (main): Avoid fcntl on mingw.
63978 2009-07-18  Bruno Haible  <bruno@clisp.org>
63980         * modules/pipe-tests (Makefile.am): Fix typo.
63982 2009-07-18  Eric Blake  <ebb9@byu.net>
63984         error: fix mingw build
63985         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
63986         Reported by Bruno Haible.
63988         error: avoid undefined use of stdout
63989         * lib/error.c (error, error_at_line): Check that fd 1 is open
63990         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
63991         is handling faults and the close_stdout module wants to report the
63992         detection of closed stdout as an error.
63994 2009-07-17  Eric Blake  <ebb9@byu.net>
63996         pipe: be robust in face of closed fds
63997         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
63998         should cause child to misbehave.
63999         * modules/pipe-tests: New module.
64000         * tests/test-pipe.c: New file.
64001         * tests/test-pipe.sh: New file.
64002         Reported by Akim Demaille.
64004 2009-07-14  Bruno Haible  <bruno@clisp.org>
64006         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
64007         Reported by anonymous kc.
64009 2009-07-07  Jim Meyering  <meyering@redhat.com>
64011         maint.mk: don't look for translatable strings in *.m4 or *.mk
64012         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
64013         when searching for translatable strings.
64015 2009-07-05  Jim Meyering  <meyering@redhat.com>
64017         remove superfluous parentheses in STREQ definition
64018         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
64019         * lib/getugroups.c (STREQ): Likewise.
64020         * lib/fnmatch.c (STREQ): Likewise.
64021         Spotted by Bruno Haible.
64023 2009-07-04  Jim Meyering  <meyering@redhat.com>
64025         argv-iter: new module
64026         * MODULES.html.sh: Add argv-iter.
64027         * lib/argv-iter.c, lib/argv-iter.h: New files.
64028         * modules/argv-iter: New file.
64029         * modules/argv-iter-tests: New file.
64030         * tests/test-argv-iter.c: Test it.
64032 2009-07-04  Bruno Haible  <bruno@clisp.org>
64034         Fix assertion.
64035         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
64036         contains more exact copies of a given entry than file2, leave the extra
64037         copies unpaired rather than aborting.
64038         Reported by Eric Blake.
64040 2009-07-02  Bruno Haible  <bruno@clisp.org>
64042         Speedup git-merge-changelog for git cherry-pick.
64043         * lib/git-merge-changelog.c (struct entries_mapping): New type.
64044         (entries_mapping_get): New function, extracted from compute_mapping.
64045         (entries_mapping_reverse_get): New function.
64046         (compute_mapping): Add a 'full' argument. Return the result in a
64047         'struct entries_mapping'.
64048         (main): Update. Access the mappings through entries_mapping_get.
64049         Reported by Eric Blake.
64051 2009-07-02  Bruno Haible  <bruno@clisp.org>
64053         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
64054         best_i.
64056 2009-07-02  Bruno Haible  <bruno@clisp.org>
64058         Speed up approximate search for matching ChangeLog entries.
64059         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
64060         argument. Call fstrcmp_bounded instead of fstrcmp.
64061         (compute_mapping, try_split_merged_entry, main): Update callers.
64063 2009-07-02  Bruno Haible  <bruno@clisp.org>
64065         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
64067 2009-06-30  Bruno Haible  <bruno@clisp.org>
64069         Reduce the number of uc_is_cased calls.
64070         * lib/unicase.h (casing_suffix_context_t): Add
64071         'first_char_except_ignorable' field.
64072         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
64073         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
64074         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
64075         Update initializer.
64076         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
64077         case-ignorable characters.
64078         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
64079         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
64080         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
64081         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
64082         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
64084 2009-06-30  Bruno Haible  <bruno@clisp.org>
64086         Tests for module 'unicase/ignorable'.
64087         * modules/unicase/ignorable-tests: New file.
64088         * tests/unicase/test-ignorable.c: New file, generated by
64089         gen-uni-tables.
64091         Tests for module 'unicase/cased'.
64092         * modules/unicase/cased-tests: New file.
64093         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
64094         * tests/unicase/test-predicate-part1.h: New file, derived from
64095         tests/unictype/test-predicate-part1.h.
64096         * tests/unicase/test-predicate-part2.h: New file, same as
64097         tests/unictype/test-predicate-part2.h.
64099         Fix evaluation of "Before C" condition of FINAL_SIGMA.
64100         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
64101         (output_casing_properties): New function.
64102         (main): Call it.
64103         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
64104         * lib/unicase/cased.c: Include unictype/bitmap.h.
64105         (uc_is_cased): Define through a bitmap lookup.
64106         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
64107         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
64108         (uc_is_case_ignorable): Define through a bitmap lookup.
64109         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
64110         lib/unictype/bitmap.h.
64111         (Depends-on): Add inline. Clean up.
64112         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
64113         lib/unictype/bitmap.h.
64114         (Depends-on): Add inline. Clean up.
64115         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
64116         recognition.
64117         * tests/unicase/test-u16-tolower.c (main): Likewise.
64118         * tests/unicase/test-u32-tolower.c (main): Likewise.
64120 2009-06-30  Bruno Haible  <bruno@clisp.org>
64122         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
64123         * lib/unicase/u16-casemap.c: Likewise.
64124         * lib/unicase/u32-casemap.c: Likewise.
64126 2009-06-29  Bruno Haible  <bruno@clisp.org>
64128         Define u32_casefold as a wrapper around u32_ct_casefold.
64129         * lib/unicase/u32-casefold.c: Update.
64130         * modules/unicase/u32-casefold (Depends-on): Add
64131         unicase/u32-ct-casefold, unicase/empty-prefix-context,
64132         unicase/empty-suffix-context. Clean up.
64134         Define u16_casefold as a wrapper around u16_ct_casefold.
64135         * lib/unicase/u16-casefold.c: Update.
64136         * modules/unicase/u16-casefold (Depends-on): Add
64137         unicase/u16-ct-casefold, unicase/empty-prefix-context,
64138         unicase/empty-suffix-context. Clean up.
64140         Define u8_casefold as a wrapper around u8_ct_casefold.
64141         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
64142         * lib/unicase/u8-casefold.c: Update.
64143         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
64144         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64146         Define u32_totitle as a wrapper around u32_ct_totitle.
64147         * lib/unicase/u32-totitle.c: Update.
64148         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
64149         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64151         Define u16_totitle as a wrapper around u16_ct_totitle.
64152         * lib/unicase/u16-totitle.c: Update.
64153         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
64154         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64156         Define u8_totitle as a wrapper around u8_ct_totitle.
64157         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
64158         functions.
64159         (FUNC): Delegate to U_CT_TOTITLE.
64160         * lib/unicase/u8-totitle.c: Update.
64161         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
64162         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64164         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
64165         invocation.
64166         * modules/unicase/u32-tolower (Depends-on): Add
64167         unicase/empty-prefix-context, unicase/empty-suffix-context.
64169         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
64170         invocation.
64171         * modules/unicase/u16-tolower (Depends-on): Add
64172         unicase/empty-prefix-context, unicase/empty-suffix-context.
64174         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
64175         * modules/unicase/u8-tolower (Depends-on): Add
64176         unicase/empty-prefix-context, unicase/empty-suffix-context.
64178         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
64179         invocation.
64180         * modules/unicase/u32-toupper (Depends-on): Add
64181         unicase/empty-prefix-context, unicase/empty-suffix-context.
64183         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
64184         invocation.
64185         * modules/unicase/u16-toupper (Depends-on): Add
64186         unicase/empty-prefix-context, unicase/empty-suffix-context.
64188         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
64189         * modules/unicase/u8-toupper (Depends-on): Add
64190         unicase/empty-prefix-context, unicase/empty-suffix-context.
64192         New module 'unicase/u32-ct-casefold'.
64193         * lib/unicase/u32-ct-casefold.c: New file.
64194         * modules/unicase/u32-ct-casefold: New file.
64196         New module 'unicase/u16-ct-casefold'.
64197         * lib/unicase/u16-ct-casefold.c: New file.
64198         * modules/unicase/u16-ct-casefold: New file.
64200         New module 'unicase/u8-ct-casefold'.
64201         * lib/unicase/u8-ct-casefold.c: New file.
64202         * lib/unicase/u-ct-casefold.h: New file, derived from
64203         lib/unicase/u-casefold.h.
64204         * modules/unicase/u8-ct-casefold: New file.
64206         New module 'unicase/u32-ct-totitle'.
64207         * lib/unicase/u32-ct-totitle.c: New file.
64208         * modules/unicase/u32-ct-totitle: New file.
64210         New module 'unicase/u16-ct-totitle'.
64211         * lib/unicase/u16-ct-totitle.c: New file.
64212         * modules/unicase/u16-ct-totitle: New file.
64214         New module 'unicase/u8-ct-totitle'.
64215         * lib/unicase/u8-ct-totitle.c: New file.
64216         * lib/unicase/u-ct-totitle.h: New file, derived from
64217         lib/unicase/u-totitle.h.
64218         * modules/unicase/u8-ct-totitle: New file.
64220         New module 'unicase/u32-ct-tolower'.
64221         * lib/unicase/u32-ct-tolower.c: New file.
64222         * modules/unicase/u32-ct-tolower: New file.
64224         New module 'unicase/u16-ct-tolower'.
64225         * lib/unicase/u16-ct-tolower.c: New file.
64226         * modules/unicase/u16-ct-tolower: New file.
64228         New module 'unicase/u8-ct-tolower'.
64229         * lib/unicase/u8-ct-tolower.c: New file.
64230         * modules/unicase/u8-ct-tolower: New file.
64232         New module 'unicase/u32-ct-toupper'.
64233         * lib/unicase/u32-ct-toupper.c: New file.
64234         * modules/unicase/u32-ct-toupper: New file.
64236         New module 'unicase/u16-ct-toupper'.
64237         * lib/unicase/u16-ct-toupper.c: New file.
64238         * modules/unicase/u16-ct-toupper: New file.
64240         New module 'unicase/u8-ct-toupper'.
64241         * lib/unicase/u8-ct-toupper.c: New file.
64242         * modules/unicase/u8-ct-toupper: New file.
64244         Add context arguments to u*_casemap functions.
64245         * lib/unicase/unicasemap.h: Include unicase.h.
64246         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
64247         suffix_context arguments.
64248         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
64249         functions.
64250         (FUNC): Add prefix_context and suffix_context arguments. Use
64251         uc_is_cased and uc_is_case_ignorable.
64252         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
64253         * lib/unicase/u16-casemap.c: Likewise.
64254         * lib/unicase/u32-casemap.c: Likewise.
64255         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
64256         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64257         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
64258         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64259         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
64260         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64262         New module 'unicase/u32-suffix-context'.
64263         * lib/unicase/u32-suffix-context.c: New file.
64264         * modules/unicase/u32-suffix-context: New file.
64266         New module 'unicase/u16-suffix-context'.
64267         * lib/unicase/u16-suffix-context.c: New file.
64268         * modules/unicase/u16-suffix-context: New file.
64270         New module 'unicase/u8-suffix-context'.
64271         * lib/unicase/u8-suffix-context.c: New file.
64272         * lib/unicase/u-suffix-context.h: New file.
64273         * modules/unicase/u8-suffix-context: New file.
64275         New module 'unicase/empty-suffix-context'.
64276         * lib/unicase/empty-suffix-context.c: New file.
64277         * modules/unicase/empty-suffix-context: New file.
64279         New module 'unicase/u32-prefix-context'.
64280         * lib/unicase/u32-prefix-context.c: New file.
64281         * modules/unicase/u32-prefix-context: New file.
64283         New module 'unicase/u16-prefix-context'.
64284         * lib/unicase/u16-prefix-context.c: New file.
64285         * modules/unicase/u16-prefix-context: New file.
64287         New module 'unicase/u8-prefix-context'.
64288         * lib/unicase/u8-prefix-context.c: New file.
64289         * lib/unicase/u-prefix-context.h: New file.
64290         * lib/unicase/context.h: New file.
64291         * modules/unicase/u8-prefix-context: New file.
64293         New module 'unicase/empty-prefix-context'.
64294         * lib/unicase/empty-prefix-context.c: New file.
64295         * modules/unicase/empty-prefix-context: New file.
64297         New module 'unicase/ignorable'.
64298         * lib/unicase/ignorable.c: New file.
64299         * modules/unicase/ignorable: New file.
64301         New module 'unicase/cased'.
64302         * lib/unicase/caseprop.h: New file.
64303         * lib/unicase/cased.c: New file.
64304         * modules/unicase/cased: New file.
64306         New functions for case mapping of substrings.
64307         * lib/unicase.h (casing_prefix_context_t): New type.
64308         (unicase_empty_prefix_context): New variable.
64309         (u8_casing_prefix_context, u16_casing_prefix_context,
64310         u32_casing_prefix_context, u8_casing_prefixes_context,
64311         u16_casing_prefixes_context, u32_casing_prefixes_context): New
64312         declarations.
64313         (casing_suffix_context_t): New type.
64314         (unicase_empty_suffix_context): New variable.
64315         (u8_casing_suffix_context, u16_casing_suffix_context,
64316         u32_casing_suffix_context, u8_casing_suffixes_context,
64317         u16_casing_suffixes_context, u32_casing_suffixes_context,
64318         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
64319         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
64320         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
64321         declarations.
64323 2009-06-28  Jim Meyering  <meyering@redhat.com>
64325         boostrap: indent only with spaces
64326         * build-aux/bootstrap: Indent only with spaces, never TABs.
64328         bootstrap: split long lines
64329         * build-aux/bootstrap: Keep line length < 80.
64331         bootstrap: sync from coreutils
64332         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
64333         just as autoreconf does.  Verify a list of prerequisite
64334         package-name,version-number pairs if defined in bootstrap.conf.
64335         Refer to README-prereq, if prerequisites are not satisfied.
64337 2009-06-27  Eric Blake  <ebb9@byu.net>
64339         tests: add test for bogus NULL definition
64340         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
64341         * tests/test-stdlib.c: Likewise.
64342         * tests/test-string.c: Likewise.
64343         * tests/test-locale.c: Likewise.
64344         * tests/test-unistd.c: Likewise.
64345         * modules/stdio-tests (Depends-on): Add verify.
64346         * modules/stdlib-tests (Depends-on): Likewise.
64347         * modules/string-tests (Depends-on): Likewise.
64348         * modules/locale-tests (Depends-on): Likewise.
64349         * modules/unistd-tests (Depends-on): Likewise.
64351 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
64353         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
64354         self-explaining comment.
64355         * m4/selinux-selinux-h: Update serial.
64356         (gl_LIBSELINUX): New macro, adding a warning for missing development
64357         packages to code extracted from...
64358         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
64359         Add warning for missing development packages here, too.
64361 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
64363         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
64365 2009-06-25  Eric Blake  <ebb9@byu.net>
64367         version-etc: fix regression
64368         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
64369         gcc.
64370         (version_etc): Use it, to catch bugs with trailing NULL.
64371         * lib/version-etc.c (version_etc_arn): Delete unused argument.
64372         (version_etc_va): Fix logic bug.
64373         * modules/version-etc-tests: Add test.
64374         * tests/test-version-etc.c: New file.
64375         * tests/test-version-etc.sh: Likewise.
64377 2009-06-25  Sam Steingold  <sds@gnu.org>
64379         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
64380         mbtowc declaration.
64382 2009-06-25  Eric Blake  <ebb9@byu.net>
64384         fpurge: migrate into <stdio.h>
64385         * lib/fpurge.h: Delete...
64386         * lib/stdio.in.h (fpurge): ...and declare here, instead.
64387         * lib/fpurge.c (fpurge): Change declaring header.
64388         * modules/fpurge (Files): Drop deleted file.
64389         (Depends-on): Add stdio.
64390         (configure.ac): Set witness.
64391         * modules/stdio (Makefile.am): Support fpurge macros.
64392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64393         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
64394         * lib/fflush.c: Update client.
64395         * tests/test-fpurge.c: Likewise.
64396         * NEWS: Mention the change.
64398 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64400         * lib/argp-version-etc.c (program_authors): Add const
64401         qualifier.
64402         * lib/version-etc.c: Fix typos in the comments.
64403         * modules/argp-version-etc: Depends on version-etc.
64405 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64407         argp-version-etc: new module.
64409         * lib/argp-version-etc.c: New file.
64410         * lib/argp-version-etc.h: New file.
64411         * modules/argp-version-etc: New file.
64412         * modules/argp-version-etc-tests: New file.
64413         * tests/test-argp-version-etc.c: New test.
64414         * tests/test-argp-version-etc-1.sh: New test.
64416 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64418         Provide additional interfaces and documentation for version-etc
64419         module.
64421         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
64422         interfaces.
64423         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
64424         prototypes.
64426 2009-06-24  Bruno Haible  <bruno@clisp.org>
64428         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
64429         HAVE_LIB${NAME} macro.
64430         Reported by Sam Steingold <sds@gnu.org>.
64432 2009-06-23  Simon Josefsson  <simon@josefsson.org>
64434         * modules/hash-tests (test_hash_LDADD): Link to libintl when
64435         needed.
64437 2009-06-21  Bruno Haible  <bruno@clisp.org>
64439         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
64440         work.
64441         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
64442         together with LIB${NAME}, LTLIB${NAME}.
64443         Reported by Sam Steingold <sds@gnu.org>.
64445 2009-06-20  Jim Meyering  <meyering@redhat.com>
64447         tests: make sc_require_test_exit_idiom more generic
64448         * top/maint.mk (Exit_witness_file): New overridable variable.
64449         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
64450         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
64452 2009-06-19  Jim Meyering  <meyering@redhat.com>
64454         hash: reverse order of src/dst parameters in an internal interface
64455         * lib/hash.c (transfer_entries): Reverse order of parameters to
64456         put DST before SRC.  Adjust callers.
64458         tests: test-hash: avoid wholesale duplication
64459         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
64460         Instead, use a loop and add a single conditional.
64462         tests: test-hash: allow seed selection via a command line argument
64463         * tests/test-hash.c (get_seed): New function.
64464         (main): Use it.
64466 2009-06-19  Eric Blake  <ebb9@byu.net>
64468         hash: avoid memory leak on allocation failure
64469         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
64470         failure.  Factor repeated algorithm...
64471         (transfer_entries): ...into new helper routine.
64472         (hash_delete): React to hash_rehash return value.
64474         hash: reduce memory pressure in hash_rehash no-op case
64475         * lib/hash.c (next_prime): Avoid overflow.
64476         (hash_initialize): Factor bucket size computation...
64477         (compute_bucket_size): ...into new helper function.
64478         (hash_rehash): Use new function and open coding to reduce memory
64479         pressure, and avoid a memory leak in USE_OBSTACK code.
64480         Reported by Jim Meyering.
64482 2009-06-18  Eric Blake  <ebb9@byu.net>
64484         hash: make rotation more obvious
64485         * modules/hash (Depends-on): Add bitrotate and stdint.
64486         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
64487         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
64488         (SIZE_MAX): Rely on headers for definition.
64489         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
64490         (raw_hasher): Use rotr_sz.
64491         Suggested by Jim Meyering.
64493         hash: fix memory leak in last patch
64494         * lib/hash.c (hash_rehash): Avoid memory leak.
64496         hash: avoid no-op rehashing
64497         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
64499         hash: provide default callback functions
64500         * lib/hash.c (raw_hasher, raw_comparator): New functions.
64501         (hash_initialize): Use them as defaults.
64502         * tests/test-hash.c (main): Test this.
64504         hash: minor optimization
64505         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
64506         when possible.
64507         (hash_initialize): Document this promise.
64508         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
64509         * tests/test-hash.c (hash_compare_strings): Test this.
64511 2009-06-18  Bruno Haible  <bruno@clisp.org>
64513         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
64514         going to be replaced anyway.
64516 2009-06-18  Bruno Haible  <bruno@clisp.org>
64518         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
64519         in one place.
64520         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
64521         be replaced anyway.
64523 2009-06-18  Eric Blake  <ebb9@byu.net>
64525         hash: check for resize before insertion
64526         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
64527         threshold before insertion, so that a pathological hash_rehash
64528         that fills every bucket can still trigger another rehash.
64530 2009-06-18  Jim Meyering  <meyering@redhat.com>
64532         hash-tests: add a loop around the small tests
64533         * tests/test-hash.c (main): Repeat small tests with selected
64534         small initial table sizes.
64536 2009-06-17  Eric Blake  <ebb9@byu.net>
64538         hash: minor cleanups
64539         * lib/hash.h (hash_entry): Make opaque, by moving...
64540         * lib/hash.c (hash_entry): ...here.
64541         (hash_insert): Clarify restrictions on what can be inserted.
64542         (hash_get_next): Clarify when it is safe to remove an element
64543         during traversal.
64544         (check_tuning): Skip verification when tuning is known safe.
64545         (hash_initialize): Clarify restrictions on tuning.
64547 2009-06-17  Jim Meyering  <jim@meyering.net>
64548         and Eric Blake  <ebb9@byu.net>
64550         hash-tests: new module
64551         * modules/hash-tests: New file.
64552         * tests/test-hash.c: New file.
64554 2009-06-17  Eric Blake  <ebb9@byu.net>
64556         strstr-simple: document new module
64557         * MODULES.html.sh: Document new module.
64559         strstr, strcasestr: replace on platforms with broken memchr
64560         * modules/strstr: Split into...
64561         * modules/strstr-simple: ...new module that does not care about
64562         performance, but does care about glibc bug.
64563         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
64564         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
64565         if platform memchr is broken, per Debian bug 521737.
64566         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
64567         memchr.
64568         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
64569         * doc/posix-functions/strstr.texi (strstr): Document the fix.
64570         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
64571         * modules/mountlist (Depends-on): Add strstr-simple.
64572         * modules/gen-uni-tables (Depends-on): Likewise.
64573         * modules/argz (Depends-on): Add strstr.
64575 2009-06-17  Bruno Haible  <bruno@clisp.org>
64577         * modules/posix_spawn-internal (Depends-on): Add errno.
64579 2009-06-17  Bruno Haible  <bruno@clisp.org>
64581         Define missing ESTALE on Interix 3.5.
64582         * lib/errno.in.h (ESTALE): Assign a value if missing.
64583         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
64584         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
64585         missing.
64586         * doc/posix-headers/errno.texi: Mention the Interix bug.
64587         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
64589 2009-06-15  Eric Blake  <ebb9@byu.net>
64591         memchr, memchr2: add valgrind exception
64592         * lib/memchr.valgrind: New file.
64593         * lib/memchr2.valgrind: New file.
64594         * modules/memchr (Files): Distribute valgrind file.
64595         * modules/memchr2 (Files): Likewise.
64597         docs: memchr is no longer obsolete
64598         * MODULES.html.sh: Move memchr from obsolete to string.h section.
64599         * lib/string.in.h (memchr): Simplify logic.
64601 2009-06-14  Jim Meyering  <meyering@redhat.com>
64603         link-follow: fix the "checking..." message to not mention trailing slash
64604         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
64605         never considered trailing slashes.
64607 2009-06-14  Bruno Haible  <bruno@clisp.org>
64609         * m4/memchr.m4: Mention also the bug on IA-64.
64610         * doc/posix-functions/memchr.texi: Likewise.
64612 2009-06-12  Eric Blake  <ebb9@byu.net>
64614         memchr: detect broken x86_64 and alpha implementations
64615         * modules/memchr-tests (Depends-on): Move mmap detection...
64616         * modules/memchr (Depends-on): ...here.
64617         (configure.ac): Set indicator.
64618         * lib/string.in.h (memchr): Declare replacement.
64619         * modules/string (Makefile.am): Trigger replacement.
64620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
64621         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
64622         bugs.
64623         * doc/posix-functions/memchr.texi (memchr): Document the bug.
64624         * modules/getpagesize (License): Relax license.
64626 2009-06-11  Bruno Haible  <bruno@clisp.org>
64628         * lib/idpriv.h: Add more references.
64630 2009-06-08  Bruno Haible  <bruno@clisp.org>
64632         Tests for module 'idpriv-droptemp'.
64633         * modules/idpriv-droptemp-tests: New file.
64634         * tests/test-idpriv-droptemp.sh: New file.
64635         * tests/test-idpriv-droptemp.su.sh: New file.
64636         * tests/test-idpriv-droptemp.c: New file.
64638         New module 'idpriv-droptemp'.
64639         * lib/idpriv-droptemp.c: New file.
64640         * modules/idpriv-droptemp: New file.
64642 2009-06-08  Bruno Haible  <bruno@clisp.org>
64644         Tests for module 'idpriv-drop'.
64645         * modules/idpriv-drop-tests: New file.
64646         * tests/test-idpriv-drop.sh: New file.
64647         * tests/test-idpriv-drop.su.sh: New file.
64648         * tests/test-idpriv-drop.c: New file.
64650         New module 'idpriv-drop'.
64651         * lib/idpriv.h: New file.
64652         * lib-idpriv-drop.c: New file.
64653         * m4/idpriv.m4: New file.
64654         * modules/idpriv-drop: New file.
64656 2009-06-08  Bruno Haible  <bruno@clisp.org>
64658         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
64659         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64660         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64661         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64662         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64663         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64664         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64666 2009-06-08  Eric Blake  <ebb9@byu.net>
64668         test-strstr: use memory fence, when possible
64669         * tests/test-strstr.c (main): Use memory fence, in order to be
64670         more likely to trigger Debian bug 521737.
64671         * modules/strstr-tests (Files): Pull in additional files.
64673         memchr: no longer obsolete, for wider field testing
64674         * modules/memchr (Status, Notice): Delete, this module is no
64675         longer obsolete.
64676         * modules/vasnprintf (Depends-on): Add memchr.
64678 2009-06-07  Jim Meyering  <meyering@redhat.com>
64680         hash: declare some functions with the warn_unused_result attribute
64681         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
64683 2009-06-07  Bruno Haible  <bruno@clisp.org>
64685         * tests/test-alignof.c: Don't test int64_t if it does not exist.
64686         Reported by Eric Blake.
64688 2009-06-06  Eric Blake  <ebb9@byu.net>
64690         test-alignof: fix typo with long double
64691         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
64692         compiler error.
64694 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
64696         Escape non-texinfo { and }s.
64697         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
64698         markup error.
64700 2009-06-04  Jim Meyering  <meyering@redhat.com>
64702         gitlog-to-changelog: don't infloop on an empty commit log
64703         * build-aux/gitlog-to-changelog: Warn about an empty log message.
64704         Reported by Boris Petersen <transacid@centerim.org>.
64706 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
64708         version-etc: extend for packagers
64709         Add three new configure options, intended for packagers:
64710           --with-packager="packager name"
64711           --with-packager-version="packager-specific version"
64712           --with-packager-bug-reports="packager bug reporting"
64713         An example with coreutils:
64714           $ ./configure \
64715             --with-packager=Gentoo \
64716             --with-packager-bug-report=http://bugs.gentoo.org/ \
64717             --with-packager-version="patchset 1.6"
64718           $ ./src/ls --version | head -n2
64719           ls (GNU coreutils) 7.1-dirty
64720           Packaged by Gentoo (patchset 1.6)
64721         Note that the bug reporting info via --help doesn't show up because
64722         coreutils uses its own custom emit_bug_reporting_address() implementation
64723         in src/system.h.  If it didn't, it'd look like:
64724           $ ./src/ls --help | tail -n4
64725           Report bugs to <bug-coreutils@gnu.org>.
64726           Report Gentoo bugs to <http://bugs.gentoo.org/>.
64727           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
64728           General help using GNU software: <http://www.gnu.org/gethelp/>.
64729         * lib/version-etc.c: Print new information, if provided.
64730         * m4/version-etc.m4: New file.
64731         * modules/version-etc (Files): Add m4/version-etc.m4.
64732         (configure.ac): Add gl_VERSION_ETC.
64734 2009-05-31  Bruno Haible  <bruno@clisp.org>
64736         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
64737         and 'int64_t'.
64738         * modules/alignof-tests (Dependencies): Add stdint.
64739         Reported by Eric Blake.
64741 2009-05-31  Bruno Haible  <bruno@clisp.org>
64743         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
64744         restriction due to compiler bugs.
64745         Reported by Eric Blake.
64747 2009-05-31  Simon Josefsson  <simon@josefsson.org>
64748             Bruno Haible  <bruno@clisp.org>
64750         Fix test-alignof failure.
64751         * lib/alignof.h (alignof_slot): New macro.
64752         (alignof_type): New macro, with the same semantics as the previous
64753         'alignof'.
64754         (alignof): Alias to alignof_slot.
64755         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
64756         check that the results are usable as constant expressions.
64758 2009-05-31  Bruno Haible  <bruno@clisp.org>
64760         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
64761         * tests/test-memchr.c (main): Check that memchr does not read past the
64762         first occurrence of the byte.
64763         * tests/test-strstr.c (main): Update comment.
64764         Suggested by Eric Blake.
64766 2009-05-30  Bruno Haible  <bruno@clisp.org>
64768         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
64769         detail how to use dumpbin.
64770         Reported by David Byron <dbyron@dbyron.com>.
64772 2009-06-02  Simon Josefsson  <simon@josefsson.org>
64774         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
64776 2009-06-02  Simon Josefsson  <simon@josefsson.org>
64778         * m4/manywarnings.m4: Add GCC 4.4 warnings.
64780 2009-05-28  Bruno Haible  <bruno@clisp.org>
64782         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
64783         build-aux/ files.
64785 2009-05-28  Simon Josefsson  <simon@josefsson.org>
64787         * gnulib-tool (func_import): Transform license on build-aux/ files too.
64789 2009-05-27  Simon Josefsson  <simon@josefsson.org>
64791         * gnulib-tool (sed_transform_main_lib_file)
64792         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
64793         regexps.
64795 2009-05-26  Simon Josefsson  <simon@josefsson.org>
64797         * tests/test-strstr.c: Add another self-test.
64798         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
64799         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
64801 2009-05-23  Bruno Haible  <bruno@clisp.org>
64803         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
64804         change.
64806 2009-05-21  Bruno Haible  <bruno@clisp.org>
64808         Simplify use of mode_t varargs.
64809         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
64810         uses 'mode_t' or 'int'.
64811         * lib/openat.c (openat): Likewise.
64812         * lib/open-safer.c (open_safer): Likewise.
64813         * m4/mode_t.m4: New file.
64814         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
64815         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
64816         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
64817         * modules/open (Files): Add m4/mode_t.m4.
64818         * modules/openat (Files): Likewise.
64819         * modules/fcntl-safer (Files): Likewise.
64820         Suggested by Eric Blake.
64822 2009-05-21  Pádraig Brady  <P@draigbrady.com>
64824         * doc/glibc-functions/fallocate.texi: New file.
64825         * doc/gnulib.texi: Include it.
64827 2009-05-21  Eric Blake  <ebb9@byu.net>
64828             Bruno Haible  <bruno@clisp.org>
64830         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
64831         invocations.
64832         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
64834 2009-05-21  Eric Blake  <ebb9@byu.net>
64835             Bruno Haible  <bruno@clisp.org>
64837         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
64838         include_next. Fix of 2008-11-20 commit.
64839         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
64840         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
64841         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
64842         NEXT_MATH_H.
64843         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
64844         instead of NEXT_MATH_H.
64846 2009-05-21  Bruno Haible  <bruno@clisp.org>
64848         Avoid redefinition warnings for SIZE_MAX.
64849         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
64850         Reported by Simon Josefsson.
64852 2009-05-21  Bruno Haible  <bruno@clisp.org>
64854         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
64855         AC_CACHE_VAL.
64857 2009-05-20  Bruno Haible  <bruno@clisp.org>
64859         Make zeroptr.h work on mingw.
64860         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
64861         mprotect.
64862         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
64863         * modules/memchr2-tests (configure.ac): Likewise.
64864         * modules/memcmp-tests (configure.ac): Likewise.
64865         * modules/memmem-tests (configure.ac): Likewise.
64866         * modules/memrchr-tests (configure.ac): Likewise.
64867         Reported by Simon Josefsson.
64869 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64871         * tests/test-glob.c: Include string.h for strcmp prototype.
64873 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64875         * modules/getdelim (Depends-on): Add explicit stdint, although it
64876         was implicitly already pulled in via realloc-posix.
64877         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
64879 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64881         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
64882         G. Christensen" <tgc@jupiterrise.com>.
64883         * m4/sys_socket_h.m4: Check for sa_family_t.
64884         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
64885         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
64886         * tests/test-sys_socket.c: Check that sa_family_t works.
64888 2009-05-18  Eric Blake  <ebb9@byu.net>
64890         maint.mk: allow gnulib_dir in VPATH build
64891         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
64893 2009-05-15  Jim Meyering  <meyering@redhat.com>
64895         maint.mk: Give gnulib_dir a default definition.
64896         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
64897         Thus, most packages no longer need to specify this variable in cfg.mk
64899 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
64901         rename.m4: fix typos that would make non-mingw cross-configure fail
64902         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
64904 2009-05-13  Eric Blake  <ebb9@byu.net>
64906         mmap-anon: avoid out-of-order autoconf expansion
64907         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
64908         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
64909         * modules/memchr-tests (Depends-on): Add extensions.
64910         * modules/memchr2-tests (Depends-on): Add extensions.
64911         * modules/memcmp-tests (Depends-on): Add extensions.
64912         * modules/memmem-tests (Depends-on): Add extensions.
64913         * modules/memrchr-tests (Depends-on): Add extensions.
64915 2009-05-13  Bruno Haible  <bruno@clisp.org>
64917         Make some tests ISO C 99 compliant.
64918         * tests/zerosize-ptr.h: New file.
64919         * tests/test-memchr.c: Include zerosize-ptr.h.
64920         (main): Use a zero-size object pointer instead of NULL.
64921         * tests/test-memchr2.c: Include zerosize-ptr.h.
64922         (main): Use a zero-size object pointer instead of NULL.
64923         * tests/test-memcmp.c: Include zerosize-ptr.h.
64924         (main): Use a zero-size object pointer instead of NULL.
64925         * tests/test-memmem.c: Include zerosize-ptr.h.
64926         (main): Use a zero-size object pointer instead of NULL.
64927         * tests/test-memrchr.c: Include zerosize-ptr.h.
64928         (main): Use a zero-size object pointer instead of NULL.
64929         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
64930         m4/mmap-anon.m4.
64931         (Depends-on): Add getpagesize.
64932         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64933         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
64934         m4/mmap-anon.m4.
64935         (Depends-on): Add getpagesize.
64936         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64937         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
64938         m4/mmap-anon.m4.
64939         (Depends-on): Add getpagesize.
64940         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64941         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
64942         m4/mmap-anon.m4.
64943         (Depends-on): Add getpagesize.
64944         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64945         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
64946         m4/mmap-anon.m4.
64947         (Depends-on): Add getpagesize.
64948         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64950 2009-05-12  Bruno Haible  <bruno@clisp.org>
64952         Tests for module 'alignof'.
64953         * modules/alignof-tests: New file.
64954         * tests/test-alignof.c: New file.
64956 2009-05-12  Bruno Haible  <bruno@clisp.org>
64958         Fix alignof macro.
64959         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
64960         vendor compilers that are always correct.
64962 2009-05-12  Bruno Haible  <bruno@clisp.org>
64964         Make the MAP_ANONYMOUS detection work on HP-UX 11.
64965         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
64966         not whether its fully works.
64968 2009-05-12  Bruno Haible  <bruno@clisp.org>
64970         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
64972 2009-05-12  Jim Meyering  <meyering@redhat.com>
64974         * top/maint.mk: Adjust backslash alignment.
64976 2009-05-11  Simon Josefsson  <simon@josefsson.org>
64978         * top/maint.mk: Make $(srcdir)/build-aux configurable.
64980 2009-05-11  Eric Blake  <ebb9@byu.net>
64982         argp: avoid undefined behavior
64983         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
64984         macros.
64986 2009-05-08  Simon Josefsson  <simon@josefsson.org>
64988         * tests/test-vc-list-files-git.sh: Do git config of user.email and
64989         user.name to prevent git commit from complaining.
64991 2009-05-10  Bruno Haible  <bruno@clisp.org>
64993         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
64994         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
64995         it rewrites every file name only once.
64996         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
64998 2009-05-08  Bruno Haible  <bruno@clisp.org>
65000         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
65001         instead of 'max'.
65003 2009-05-08  Simon Josefsson  <simon@josefsson.org>
65005         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
65006         sockaddr_storage test.
65008 2009-05-07  Simon Josefsson  <simon@josefsson.org>
65010         * modules/sys_socket (Makefile.am): Substitute
65011         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
65012         * m4/sys_socket_h.m4: Check for sockaddr_storage.
65013         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
65014         * tests/test-sys_socket.c: Check sockaddr_storage.
65016 2009-05-08  Bruno Haible  <bruno@clisp.org>
65018         New module 'alignof'.
65019         * lib/alignof.h: New file.
65020         * modules/alignof: New file.
65022 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65023             Bruno Haible  <bruno@clisp.org>
65025         Fix test-file-has-acl on FreeBSD.
65026         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
65027         mask is implicitly added.
65028         * tests/test-file-has-acl.c: Include <signal.h>.
65029         (main): Terminate the test after 5 seconds.
65030         * modules/acl-tests (configure.ac): Check for alarm function.
65032 2009-05-04  Bruno Haible  <bruno@clisp.org>
65034         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
65035         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
65036         * modules/errno (configure.ac): Drop AC_REQUIRE.
65037         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
65038         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
65040 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65042         * modules/glob-tests: New module.
65043         * tests/test-glob.c: Add.
65045 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65047         * modules/fnmatch-tests: New module.
65048         * tests/test-fnmatch.c: Add.
65050 2009-05-04  Eric Blake  <ebb9@byu.net>
65052         maint: make the new no-submodule-changes rule VPATH-safe
65053         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
65055 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65056             Bruno Haible  <bruno@clisp.org>
65058         acl: Fix infinite loop on FreeBSD.
65059         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
65060         of return value from acl_get_entry.
65061         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
65062         Likewise.
65064 2009-05-03  Bruno Haible  <bruno@clisp.org>
65066         * lib/acl-internal.h (acl_entries): Clarify return value.
65067         * lib/acl_entries.c (acl_entries): Likewise.
65069 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65071         Bug fix in acl module.
65072         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
65074 2009-05-03  Bruno Haible  <bruno@clisp.org>
65076         Create gperf-generated file in the source dir, not in the build dir.
65077         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
65078         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
65079         * modules/unicase/locale-language (unicase/locale-languages.h):
65080         Likewise.
65081         * modules/unicase/special-casing (unicase/special-casing-table.h):
65082         Likewise.
65083         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
65084         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
65085         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
65086         Reported by Ralf Wildenhues.
65088 2009-05-03  Bruno Haible  <bruno@clisp.org>
65090         * modules/fnmatch (Description, configure.ac): Taken from
65091         fnmatch-posix.
65092         * modules/fnmatch-posix: Turn into a symbolic reference to the
65093         'fnmatch' module, and deprecate.
65094         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
65096 2009-05-03  Bruno Haible  <bruno@clisp.org>
65098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
65099         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
65100         Reported by Ralf Wildenhues.
65102 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65104         * m4/fnmatch.m4: Fix fnmatch re-define.
65106 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65108         priv-set: new module and tests; adapt write-any-file
65109         * lib/priv-set.c: New file.
65110         * lib/priv-set.h: New file.
65111         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
65112         * lib/write-any-file.c: Simplify by using priv-set module.
65113         * m4/priv-set.m4: New file.
65114         * modules/priv-set: New file.
65115         * modules/unlinkdir: Add dependency on priv-set module.
65116         * modules/write-any-file: Likewise.
65118         Tests for module 'priv-set'.
65119         * modules/priv-set-tests: New file.
65120         * tests/test-priv-set.c: New file.
65122 2009-05-03  Jim Meyering  <meyering@redhat.com>
65123             Bruno Haible  <bruno@clisp.org>
65125         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
65126         use the converted UTF-8 variant of the name instead.
65128 2009-05-03  Jim Meyering  <meyering@redhat.com>
65130         tests: tighten some getdate tests
65131         * tests/test-getdate.c (main): Tighten tests: require equality,
65132         not just greater than.  Set TZ envvar to UTC0.
65134 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
65136         getdate: correctly interpret "next monday" when run on a Monday
65137         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
65138         that e.g., "next tues" (when run on a tuesday) results in a date
65139         that is one week in the future, and not today's date.
65140         I.e., add a week when the wday is the same as the current one.
65141         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
65142         and earlier by Martin Bernreuther and Jan Minář.
65143         * tests/test-getdate.c (main): Check that "next DAY" is always in
65144         the future and that "last DAY" is always in the past.
65146 2009-05-02  Jim Meyering  <meyering@redhat.com>
65148         build: ensure that a release build fails when a submodule is unclean
65149         * top/maint.mk (no-submodule-changes): New rule.
65150         (alpha beta major): Depend on it.
65152 2009-05-02  Bruno Haible  <bruno@clisp.org>
65154         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
65155         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
65156         shell variable gl_fnmatch_required to detect which variant is
65157         requested.
65158         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
65159         gl_FUNC_FNMATCH_POSIX.
65160         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
65161         exclude fnmatch-posix.
65163 2009-05-02  Bruno Haible  <bruno@clisp.org>
65165         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
65166         * modules/mbsrtowcs (License): Change to LGPLv2+.
65167         * modules/strnlen1 (License): Likewise.
65168         Reported by Simon Josefsson.
65170 2009-05-02  Bruno Haible  <bruno@clisp.org>
65172         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
65173         "cross".
65174         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
65175         gnulib-tool was called with option --source-base=lib.
65177 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65179         Use automake *-local hooks without commands, for extensibility.
65180         * modules/localcharset (Makefile.am): Rename install-exec-local
65181         rule to install-exec-localcharset, and make it a prerequisite of
65182         install-exec-local.  Likewise, rename the uninstall-local rule to
65183         uninstall-localcharset, and make it a prerequisite of the former.
65185 2009-05-01  Bruno Haible  <bruno@clisp.org>
65187         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
65188         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
65189         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
65190         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
65191         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
65192         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
65193         m4/locale-zh.m4, m4/codeset.m4.
65195         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
65196         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
65197         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
65198         m4/locale-zh.m4.
65200         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
65201         REPLACE_WCRTOMB if mbstate_t must be replaced.
65202         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
65203         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
65205 2009-05-01  Bruno Haible  <bruno@clisp.org>
65207         Avoid compiler warnings when redefining macros defined by <libintl.h>.
65208         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
65209         dngettext, dcngettext, textdomain, bindtextdomain,
65210         bind_textdomain_codeset): Undefine before redefining.
65212 2009-04-30  Bruno Haible  <bruno@clisp.org>
65214         Fix bug introduced on 2009-04-25.
65215         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
65216         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
65217         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
65218         is defined.
65219         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
65220         is defined.
65221         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
65222         is defined.
65223         Reported by Elbert_Pol <elbert.pol@gmail.com>.
65225 2009-04-28  Bruno Haible  <bruno@clisp.org>
65227         Comment tweaks.
65228         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
65229         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
65230         * lib/unicase.h (u*_casexfrm): Likewise.
65231         Reported by Paolo Bonzini.
65233 2009-04-28  Bruno Haible  <bruno@clisp.org>
65235         Fix a compilation error.
65236         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
65237         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
65238         Reported by Jim Meyering.
65240 2009-04-27  Bruno Haible  <bruno@clisp.org>
65242         New module 'libunistring'.
65243         * modules/libunistring: New file.
65244         * m4/libunistring.m4: New file.
65245         * MODULES.html.sh (Unicode string functions): Add it.
65247 2009-04-27  Eric Blake  <ebb9@byu.net>
65249         maint.mk: allow package-specific header to provide <config.h>
65250         * top/maint.mk (sc_require_config_h): New variable.
65251         (sc_require_config_h, sc_require_config_h_first): Use it.
65253 2009-04-27  Simon Josefsson  <simon@josefsson.org>
65255         * top/maint.mk (sc_avoid_if_before_free): Except
65256         useless-if-before-free script.
65258 2009-04-27  Eric Blake  <ebb9@byu.net>
65260         maintainer-makefile: depend on all required helper scripts
65261         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
65262         useless-if-before-free.
65263         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
65264         version, rather than assuming gnulib checkout is available.
65265         Reported by Simen Josefsson.
65267 2009-04-26  Bruno Haible  <bruno@clisp.org>
65269         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
65270         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
65271         "../" or "..".
65273 2009-04-26  Bruno Haible  <bruno@clisp.org>
65275         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
65276         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
65277         AC_LIB_HAVE_LINKFLAGS.
65279 2009-04-26  Bruno Haible  <bruno@clisp.org>
65281         Simplify calling convention of u*_conv_from_encoding.
65282         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
65283         u32_conv_from_encoding): Expect a resultbuf argument and return the
65284         result directly as a pointer.
65285         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
65286         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
65287         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
65288         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
65289         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
65290         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
65291         Update.
65292         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
65293         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
65294         * lib/vasnprintf.c (VASNPRINTF): Update.
65295         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
65296         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
65297         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
65298         * NEWS: Mention the change.
65300 2009-04-26  Bruno Haible  <bruno@clisp.org>
65302         Simplify calling convention of u*_conv_to_encoding.
65303         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65304         u32_conv_to_encoding): Expect a resultbuf argument and return the
65305         result directly as a pointer.
65306         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
65307         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
65308         freeing scaled_offsets if mem_iconveha failed.
65309         * lib/unicase/u-casexfrm.h (FUNC): Update.
65310         * lib/uninorm/u-normxfrm.h (FUNC): Update.
65311         * lib/vasnprintf.c (VASNPRINTF): Update.
65312         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
65313         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
65314         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
65315         * NEWS: Mention the change.
65317 2009-04-26  Bruno Haible  <bruno@clisp.org>
65319         Avoid test failures on AIX and OSF/1.
65320         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
65321         malloc(0).
65322         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
65323         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
65324         Likewise.
65325         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
65326         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
65327         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
65328         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
65329         * doc/posix-functions/malloc.texi: Document the portability problem
65330         related to malloc(0).
65332 2009-04-26  Bruno Haible  <bruno@clisp.org>
65334         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
65335         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
65336         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
65338 2009-04-25  Bruno Haible  <bruno@clisp.org>
65340         Avoid link error when creating a namespace clean library.
65341         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
65342         as macro with arguments if already defined as an alias.
65343         * lib/signbitf.c (gl_signbitf): Don't undefine.
65344         * lib/signbitd.c (gl_signbitd): Don't undefine.
65345         * lib/signbitl.c (gl_signbitl): Don't undefine.
65347 2009-04-25  Jim Meyering  <meyering@redhat.com>
65349         vc-list-files: fix another quoting bug
65350         * build-aux/vc-list-files: Avoid sed backslash expansion
65351         of pathological directory names.
65353 2009-04-25  Eric Blake  <ebb9@byu.net>
65355         vc-list-files: fix shell quoting error
65356         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
65357         timestamp.
65359 2009-04-25  Jim Meyering  <meyering@redhat.com>
65361         vc-list-files: restore lost functionality with subdir argument
65362         * build-aux/vc-list-files: When given a non-"." sub-directory
65363         argument, substitute the $dir/ prefix back onto each resulting name.
65364         Otherwise, coreutils' root_tests check would fail.
65366 2009-04-24  Eric Blake  <ebb9@byu.net>
65368         vc-list-files: ignore git symlinks
65369         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
65370         than ls-files, to ignore git symlinks.
65372         maint.mk: import improvements from m4
65373         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
65374         (move_if_change): Delete unused macro.
65375         (news-date-check, vc-diff-check): Support VPATH builds.
65376         (announcement): Likewise.  Split --bootstrap-tools list...
65377         (boostrap-tools): ...into separate list, which can be overridden
65378         in cfg.mk.
65379         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
65380         requiring dependency on useless-if-before-free module.
65381         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
65382         Support VPATH builds.
65384 2009-04-24  Jim Meyering  <meyering@redhat.com>
65386         maint.mk: remove coreutils-specific rules and variables
65387         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
65388         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
65389         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
65391         maint.mk: remove obsolete rule
65392         * top/maint.mk (rel-check): Remove rule.
65393         (WGET, WGETFLAGS): Remove now-unused variables.
65395 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65397         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
65398         consistency.
65400         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
65401         '$(PATH_SEPARATOR)' instead of ':'.
65403 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65405         * lib/getopt1.c (main): Use 'const' for static array.
65407 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65409         * top/maint.mk: Sync with coreutils.
65410         * NEWS: Explain incompatibilities.
65412 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65413             Bruno Haible  <bruno@clisp.org>
65415         Fix cross-compilation results.
65416         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
65417         statement, as third argument of AC_TRY_RUN.
65418         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
65419         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
65420         Likewise.
65421         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
65422         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
65423         Likewise.
65424         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
65425         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
65426         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
65428 2009-04-20  Bruno Haible  <bruno@clisp.org>
65430         Avoid test failure on mingw.
65431         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
65433 2009-04-20  Bruno Haible  <bruno@clisp.org>
65435         Avoid compilation error on mingw.
65436         * modules/localename-tests (Depends-on): Add locale.
65438 2009-04-19  Bruno Haible  <bruno@clisp.org>
65440         Support for building a shared library on Windows platforms.
65441         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
65442         (main): Test the presence of UNINORM_NFC here.
65443         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
65444         (main): Test the presence of UNINORM_NFD here.
65445         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
65446         (main): Test the presence of UNINORM_NFKC here.
65447         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
65448         (main): Test the presence of UNINORM_NFKD here.
65450 2009-04-19  Bruno Haible  <bruno@clisp.org>
65452         Avoid a compiler warning.
65453         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
65454         Change type of variable 'sequence'.
65456 2009-04-19  Bruno Haible  <bruno@clisp.org>
65458         * modules/configmake (Makefile.am): When the contents of configmake.h
65459         does not change, arrange to preserve its modification time.
65461 2009-04-17  Simon Josefsson  <simon@josefsson.org>
65463         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
65464         gettext domain.
65466 2009-04-16  Jim Meyering  <meyering@redhat.com>
65468         useless-if-before-free: improve conversion code
65469         * build-aux/useless-if-before-free: Adjust code-in-comment to match
65470         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
65472 2009-04-14  Bruno Haible  <bruno@clisp.org>
65474         * modules/fcntl (Depends-on): Add extensions.
65475         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
65477 2009-04-12  Ben Pfaff  <blp@gnu.org>
65479         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
65480         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
65482 2009-03-20  Ben Pfaff  <blp@gnu.org>
65484         Make rename replace existing destinations on Windows.
65485         * m4/rename.m4: Add test for Mingw.
65486         * lib/rename.c: Add rename replacement that uses MoveFileEx with
65487         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
65488         * doc/posix-functions/rename.texi: Document.
65490 2009-04-10  Bruno Haible  <bruno@clisp.org>
65492         New include file "iconveh.h".
65493         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
65494         * lib/striconveh.h: Include it.
65495         (enum iconv_ilseq_handler): Remove definition.
65496         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
65497         striconveh.h.
65498         * lib/striconveha.c: Include striconveh.h.
65499         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
65500         * modules/striconveh (Files): Add lib/iconveh.h.
65501         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
65502         lib/striconveh.h.
65504 2009-04-10  Bruno Haible  <bruno@clisp.org>
65506         * lib/uniconv.h: Update comment.
65508 2009-04-10  Bruno Haible  <bruno@clisp.org>
65510         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
65511         always.
65512         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65513         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65514         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65515         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
65516         "unistring-notinline.h", so that the function gets defined always.
65517         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65518         * lib/unistr/u8-uctomb.c: Likewise.
65519         * lib/unistr/u16-mbtouc.c: Likewise.
65520         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65521         * lib/unistr/u16-uctomb.c: Likewise.
65522         * lib/unistr/u32-mbtouc.c: Likewise.
65523         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65524         * lib/unistr/u32-uctomb.c: Likewise.
65526 2009-04-10  Bruno Haible  <bruno@clisp.org>
65528         Mark 'utime' obsolete.
65529         * modules/utime (Status, Notice): New sections.
65530         Suggested by Jim Meyering.
65532         Fix cross-compile guess for utime test.
65533         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
65534         autoconf.
65535         * doc/posix-functions/utime.texi: Give more precisions.
65536         Reported by Jan <ipif@ymail.com>.
65538 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
65540         filevercmp: correct today's change
65541         * lib/filevercmp.c: Also handle coreutils' test inputs.
65542         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
65544         Fix regression in 'filevercmp' module. Thanks Sven Joachim
65545         for reporting it.
65546         * lib/filevercmp.c: Special handle for "", "." and "..".
65547         * tests/test-filevercmp.c: Enlarge the set suite.
65549 2009-04-07  Jim Meyering  <meyering@redhat.com>
65551         useless-if-before-free: show how to remove braced useless free, too
65552         * build-aux/useless-if-before-free: still only in a comment, though.
65554 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
65556         maint.mk: import changes to syntax-check macros from coreutils
65557         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
65558         Use them in the relevant macros.
65560 2009-04-06  Bruno Haible  <bruno@clisp.org>
65562         Fix unportable use of bit-fields.
65563         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
65564         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
65565         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
65567 2009-04-06  Bruno Haible  <bruno@clisp.org>
65569         Avoid test failures on AIX and OSF/1.
65570         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
65571         that malloc(0) = NULL.
65572         * tests/unicase/test-u8-tolower.c (check): Likewise.
65573         * tests/unicase/test-u8-totitle.c (check): Likewise.
65574         * tests/unicase/test-u8-toupper.c (check): Likewise.
65575         * tests/unicase/test-u16-casefold.c (check): Likewise.
65576         * tests/unicase/test-u16-tolower.c (check): Likewise.
65577         * tests/unicase/test-u16-totitle.c (check): Likewise.
65578         * tests/unicase/test-u16-toupper.c (check): Likewise.
65579         * tests/unicase/test-u32-casefold.c (check): Likewise.
65580         * tests/unicase/test-u32-tolower.c (check): Likewise.
65581         * tests/unicase/test-u32-totitle.c (check): Likewise.
65582         * tests/unicase/test-u32-toupper.c (check): Likewise.
65583         * tests/uninorm/test-u8-nfc.c (check): Likewise.
65584         * tests/uninorm/test-u8-nfd.c (check): Likewise.
65585         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
65586         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
65587         * tests/uninorm/test-u16-nfc.c (check): Likewise.
65588         * tests/uninorm/test-u16-nfd.c (check): Likewise.
65589         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
65590         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
65591         * tests/uninorm/test-u32-nfc.c (check): Likewise.
65592         * tests/uninorm/test-u32-nfd.c (check): Likewise.
65593         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
65594         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
65596 2009-04-05  Bruno Haible  <bruno@clisp.org>
65598         Work around an autoconf limitation.
65599         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
65600         comment line if it would be longer than 3 KB.
65602 2009-04-05  Bruno Haible  <bruno@clisp.org>
65604         Avoid test failure with libiconv-1.13.
65605         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
65606         of the expected test results.
65608 2009-04-05  Bruno Haible  <bruno@clisp.org>
65610         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
65611         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
65612         that it should be installed.
65614 2009-04-05  Bruno Haible  <bruno@clisp.org>
65616         * gnulib-tool: New option --copy-file.
65617         (func_usage): Document it.
65618         (func_dest_tmpfilename): Moved out of func_import.
65619         (func_add_file, func_update_file): New functions, extracted from
65620         func_import.
65621         (func_import): Update.
65623 2009-04-05  Karl Berry  <karl@gnu.org>
65625         * README: prominently mention gnulib-tool.
65626         Rearrange sections so getting the code is near the top.
65628 2009-04-05  Bruno Haible  <bruno@clisp.org>
65630         * lib/unicase.h: Mention u*_cmp2.
65631         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
65632         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
65633         * lib/unicase/ulc-casecmp.c: Likewise.
65634         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
65635         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
65636         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
65637         unistr/u8-cmp.
65638         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
65639         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
65640         unistr/u16-cmp.
65641         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
65642         unistr/u32-cmp.
65644         * lib/uninorm.h: Mention u*_cmp2.
65645         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
65646         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
65647         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
65648         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
65649         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
65650         unistr/u8-cmp.
65651         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
65652         unistr/u16-cmp.
65653         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
65654         unistr/u32-cmp.
65656         New module 'unistr/u32-cmp2'.
65657         * lib/unistr/u32-cmp2.c: New file.
65658         * modules/unistr/u32-cmp2: New file.
65660         New module 'unistr/u16-cmp2'.
65661         * lib/unistr/u16-cmp2.c: New file.
65662         * modules/unistr/u16-cmp2: New file.
65664         New module 'unistr/u8-cmp2'.
65665         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
65666         * lib/unistr/u8-cmp2.c: New file.
65667         * lib/unistr/u-cmp2.h: New file.
65668         * modules/unistr/u8-cmp2: New file.
65670 2009-04-05  Bruno Haible  <bruno@clisp.org>
65672         * lib/unictype.h (uc_property_is_valid): New macro.
65673         * tests/unictype/test-pr_byname.c (main): Use it.
65675         * lib/unistr.h: Doc fixes.
65676         * lib/uniconv.h: Doc fixes.
65677         * lib/unictype.h: Doc fixes.
65679 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
65681         Port coreutils 7.2 to Solaris 8.
65683         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
65684         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
65685         for Solaris 8.  This is a bit of a hack, as it means it's the
65686         caller's responsibility to add -lnsl if needed, but most likely it
65687         won't be needed since only getaddrinfo uses this and getaddrinfo
65688         isn't needed on Solaris 8.
65690         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
65691         problem to Solaris 8 encountered with coreutils 7.2, which
65692         resulted in a message "fnmatch.c:292: warning: passing argument 4
65693         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
65694         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
65696 2009-04-03  Simon Josefsson  <simon@josefsson.org>
65698         * m4/ld-version-script.m4: Add FIXME comment.
65700 2009-04-02  Simon Josefsson  <simon@josefsson.org>
65702         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
65703         SOVERSION variable.
65705 2009-04-02  Bruno Haible  <bruno@clisp.org>
65707         * Makefile (info, html, dvi, pdf): Combine the rules.
65708         Suggested by Jim Meyering.
65710 2009-04-01  Bruno Haible  <bruno@clisp.org>
65712         * Makefile (info, html, dvi, pdf): New targets.
65713         Reported by Reuben Thomas <rrt@sc3d.org>.
65715 2009-04-01  Bruno Haible  <bruno@clisp.org>
65717         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
65718         can be put into PATH.
65719         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
65721 2009-04-01  Bruno Haible  <bruno@clisp.org>
65723         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
65725 2009-04-01  Bruno Haible  <bruno@clisp.org>
65727         Rename module 'visibility'.
65728         * modules/lib-symbol-visibility: Renamed from modules/visibility.
65729         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
65730         * doc/gnulib.texi: Update.
65731         * MODULES.html.sh (Misc): Update.
65732         * NEWS: Mention the change.
65734 2009-04-01  Simon Josefsson  <simon@josefsson.org>
65736         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
65737         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
65738         Eric Blake <ebb9@byu.net> for review.
65739         * MODULES.html.sh: Add lib-msvc-compat.
65740         * doc/gnulib.texi: Link to new section.
65741         * m4/ld-output-def.m4: New file.
65742         * doc/ld-output-def.texi: New file.
65744 2009-04-01  Simon Josefsson  <simon@josefsson.org>
65746         Rename ld-version-script to lib-symbol-versions.  Suggested by
65747         Bruno Haible <bruno@clisp.org>.
65748         * modules/ld-version-script: Renamed to lib-symbol-versions.
65749         * doc/ld-version-script.texi: Fix module name.
65750         * MODULES.html.sh: Add lib-symbol-versions.
65752 2009-03-31  Simon Josefsson  <simon@josefsson.org>
65754         * modules/u64-tests: New file.
65755         * tests/test-u64.c: New file.
65757 2009-03-04  Simon Josefsson  <simon@josefsson.org>
65759         * MODULES.html.sh: Mention u64.
65760         * modules/u64: New module.
65761         * modules/crypto/sha512: Depend on u64 module instead of providing
65762         u64.h.
65764 2009-03-27  Eric Blake  <ebb9@byu.net>
65766         test-strerror: make debugging EAI_SYSTEM easier
65767         * modules/getaddrinfo-tests (Depends-on): Add strerror.
65768         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
65769         failure was EAI_SYSTEM.
65771 2009-03-25  Bruno Haible  <bruno@clisp.org>
65773         Fix a problem with --enable-relocatable on Solaris 7.
65774         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
65775         since 2008-02-24.
65777 2009-03-25  Eric Blake  <ebb9@byu.net>
65779         test-sockets: avoid gcc warning
65780         * tests/test-sockets.c (main): Silence compiler warning.
65782 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
65784         New modules nproc, pthread, contributed by Glen Lenker.
65786         * MODULES.html.sh: Add pthread, nproc.
65787         * lib/nproc.c: New file.
65788         * lib/nproc.h: New file.
65789         * lib/pthread.in.h: New file.
65790         * m4/pthread.m4: New file.
65791         * modules/nproc: New file.
65792         * modules/pthread: New file.
65794 2009-03-24  Simon Josefsson  <simon@josefsson.org>
65796         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
65797         New variable.
65799 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
65801         filevercmp: handle simple~ and numbered.~3~ backup suffixes
65802         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
65803         * tests/test-filevercmp.c: Add tests for backup suffixes.
65805 2009-03-24  Simon Josefsson  <simon@josefsson.org>
65807         * modules/stdlib (Depends-on): Add stdint, needed when defining
65808         struct random_data on, for example, HP-UX 10.20.  Reported by
65809         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65811 2009-03-24  Simon Josefsson  <simon@josefsson.org>
65813         * lib/readline.c (readline): Call fflush on stdout after printing
65814         prompt.
65816 2009-03-20  Bruno Haible  <bruno@clisp.org>
65818         Remove dependency from 'close' module to -lws2_32 on native Windows.
65819         * lib/close-hook.h: New file.
65820         * lib/close-hook.c: New file.
65821         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
65822         w32sock.h.
65823         (_gl_close_fd_maybe_socket): Remove function.
65824         (rpl_close): Invoke execute_all_close_hooks instead of
65825         _gl_close_fd_maybe_socket.
65826         * lib/sockets.c: Include close-hook.h, w32sock.h.
65827         (close_fd_maybe_socket): New function, essentially from lib/close.c.
65828         (close_sockets_hook): New variable.
65829         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
65830         (gl_sockets_cleanup): Unregister it.
65831         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
65832         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
65833         * modules/close-hook: New file.
65834         * modules/close (Files): Remove lib/w32sock.h.
65835         (Depends-on): Add close-hook.
65836         (Link): Remove section.
65837         * modules/sockets (Files): Add lib/w32sock.h.
65838         (Depends-on): Add close-hook.
65839         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
65840         invocation.
65841         * NEWS: Mention that LIB_CLOSE is gone.
65843 2009-03-23  Eric Blake  <ebb9@byu.net>
65845         signal-tests: test previous patch
65846         * tests/test-signal.c: New file.
65847         * modules/signal-tests: Likewise.
65849         signal.h: always support 'volatile sig_atomic_t'
65850         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
65851         (gl_SIGNAL_H_DEFAULTS): Add a default.
65852         * modules/signal (Makefile.am): Substitute if needed.
65853         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
65854         users can blindly add volatile.
65855         * doc/posix-headers/signal.texi (signal.h): Document it.
65856         Reported by Matthew Woehlke.
65858 2009-03-23  Jim Meyering  <meyering@redhat.com>
65860         pathmax: PATH_MAX: use pathconf only when available
65861         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
65862         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
65863         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
65864         This avoids a link failure in a PSP cross-compilation environment
65865         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
65867         * lib/vasnprintf.c (divide): Fix typo in comment.
65869 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65871         * gnulib-tool (func_filter_filelist): Fix comment.
65873 2009-03-20  Bruno Haible  <bruno@clisp.org>
65875         Make sockets.h self-contained.
65876         * lib/sockets.c: Include sockets.h first.
65877         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
65879 2009-03-19  Eric Blake  <ebb9@byu.net>
65881         doc: mention more functions added in cygwin 1.7.0
65882         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
65883         addition.
65884         * doc/posix-functions/log2f.texi: Likewise.
65886 2009-03-19  Jim Meyering  <meyering@redhat.com>
65888         fsusage: avoid syntax error due to statement-before-declaration
65889         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
65890         after all declarations.  Reported by Matthew Woehlke in
65891         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
65893 2009-03-18  Eric Blake  <ebb9@byu.net>
65895         build-aux/compile: sync from automake
65896         * build-aux/compile: New file, from automake.
65897         * config/srclist.txt: Mention build-aux/compile.
65899 2009-03-17  Bruno Haible  <bruno@clisp.org>
65901         * lib/git-merge-changelog.c: Fix typo in comment.
65902         Reported by Reuben Thomas <rrt@sc3d.org>.
65904 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
65906         * m4/regex.m4: update and improve help for
65907         --without-included-regex.
65909 2009-03-17  Simon Josefsson  <simon@josefsson.org>
65911         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
65912         failure on missing include files.
65914 2009-03-17  Eric Blake  <ebb9@byu.net>
65916         doc: mention more functions added in cygwin 1.7.0
65917         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
65918         addition.
65919         * doc/posix-functions/fwscanf.texi: Likewise.
65920         * doc/posix-functions/swprintf.texi: Likewise.
65921         * doc/posix-functions/swscanf.texi: Likewise.
65922         * doc/posix-functions/vfwprintf.texi: Likewise.
65923         * doc/posix-functions/vfwscanf.texi: Likewise.
65924         * doc/posix-functions/vswprintf.texi: Likewise.
65925         * doc/posix-functions/vswscanf.texi: Likewise.
65926         * doc/posix-functions/vwprintf.texi: Likewise.
65927         * doc/posix-functions/vwscanf.texi: Likewise.
65928         * doc/posix-functions/wcscasecmp.texi: Likewise.
65929         * doc/posix-functions/wcsdup.texi: Likewise.
65930         * doc/posix-functions/wcsftime.texi: Likewise.
65931         * doc/posix-functions/wcsncasecmp.texi: Likewise.
65932         * doc/posix-functions/wprintf.texi: Likewise.
65933         * doc/posix-functions/wscanf.texi: Likewise.
65934         * doc/glibc-functions/gethostbyname2.texi: Likewise.
65936 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65938         maint.mk: really add $(AM_MAKEFLAGS)
65939         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
65940         was inadvertently omitted in the last commit.
65941         Spotted by Bruno Haible.
65943         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
65944         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
65945         $(AM_MAKEFLAGS)' rather than plain `make'.
65947         gnulib-tool: execute $MAKE not make
65948         * gnulib-tool: Default $MAKE to 'make'.
65949         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
65950         than make.  Initialize $MAKE in the do-autobuild script.
65952         gnulib-tool: use $MAKE not make in generated files
65953         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
65954         make, in generated files.  Initialize $MAKE in the do-autobuild
65955         script.
65957         * top/GNUmakefile (_have-git-version-gen): Fix typo.
65959         GNUmakefile: disable parallelism only for multiple, recursive targets
65960         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
65961         additions in the Makefile.
65962         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
65963         by Automake.
65964         (.NOTPARALLEL): Only disable parallel builds if multiple targets
65965         are listed on the command line and at least one of them is
65966         listed in $(ALL_RECURSIVE_TARGETS).
65968 2009-03-14  Bruno Haible  <bruno@clisp.org>
65970         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
65971         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
65972         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
65973         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
65974         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
65975         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
65976         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
65977         unistr/u8-uctomb.
65978         * modules/unistr/u8-strchr (Depends-on): Likewise.
65979         * modules/unistr/u8-strrchr (Depends-on): Likewise.
65980         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
65981         unistr/u16-uctomb.
65982         * modules/unistr/u16-strchr (Depends-on): Likewise.
65983         * modules/unistr/u16-strrchr (Depends-on): Likewise.
65985 2009-03-12  Bruno Haible  <bruno@clisp.org>
65987         Work around select() bug on Interix 3.5.
65988         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
65989         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
65990         * m4/select.m4: New file.
65991         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
65992         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
65993         * modules/select (Files): Add m4/select.m4.
65994         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
65995         * modules/nanosleep (Depends-on): Add select.
65996         * modules/poll (Depends-on): Likewise.
65997         * doc/posix-functions/select.texi: Mention the Interix bug.
65998         Reported by Markus Duft <mduft@gentoo.org>.
66000         * lib/select.c: Renamed from lib/winsock-select.c.
66001         * modules/select (Files): Add lib/select.c, remove
66002         lib/winsock-select.c.
66003         (configure.ac): Update.
66005 2009-03-12  Jim Meyering  <meyering@redhat.com>
66007         avoid gcc warnings about unused macro definitions
66008         * lib/readtokens.c (STREQ): Remove unused definition.
66009         * lib/xmalloc.c (SIZE_MAX): Likewise.
66010         * lib/openat-die.c (N_): Likewise.
66011         * lib/mountlist.c (SIZE_MAX): Remove definition.
66012         Instead, include <stdint.h>.
66013         * lib/readutmp.c: Likewise.
66014         * modules/readutmp (Depends-on): Add stdint.
66015         * modules/mountlist (Depends-on): Add stdint.
66016         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
66018 2009-03-10  Bruno Haible  <bruno@clisp.org>
66020         Tests for module 'mbmemcasecoll'.
66021         * modules/mbmemcasecoll-tests: New file.
66022         * tests/test-mbmemcasecoll1.sh: New file.
66023         * tests/test-mbmemcasecoll2.sh: New file.
66024         * tests/test-mbmemcasecoll3.sh: New file.
66025         * tests/test-mbmemcasecoll.c: New file.
66027         New module 'mbmemcasecoll'.
66028         * lib/mbmemcasecoll.h: New file.
66029         * lib/mbmemcasecoll.c: New file.
66030         * modules/mbmemcasecoll: New file.
66032         * tests/test-mbmemcasecmp.h: New file, extracted from
66033         tests/test-mbmemcasecmp.c.
66034         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
66035         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
66036         (main): Update.
66037         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
66039 2009-03-09  Bruno Haible  <bruno@clisp.org>
66041         Tests for module 'mbmemcasecmp'.
66042         * modules/mbmemcasecmp-tests: New file.
66043         * tests/test-mbmemcasecmp1.sh: New file.
66044         * tests/test-mbmemcasecmp2.sh: New file.
66045         * tests/test-mbmemcasecmp3.sh: New file.
66046         * tests/test-mbmemcasecmp.c: New file.
66048         New module 'mbmemcasecmp'.
66049         * lib/mbmemcasecmp.h: New file.
66050         * lib/mbmemcasecmp.c: New file.
66051         * modules/mbmemcasecmp: New file.
66053 2009-03-09  Bruno Haible  <bruno@clisp.org>
66055         Tests for module 'unicase/ulc-casecoll'.
66056         * modules/unicase/ulc-casecoll-tests: New file.
66057         * tests/unicase/test-ulc-casecoll1.sh: New file.
66058         * tests/unicase/test-ulc-casecoll2.sh: New file.
66059         * tests/unicase/test-ulc-casecoll.c: New file.
66061         New module 'unicase/ulc-casecoll'.
66062         * lib/unicase.h (ulc_casecoll): New declaration.
66063         * lib/unicase/ulc-casecoll.c: New file.
66064         * modules/unicase/ulc-casecoll: New file.
66066         New module 'unicase/ulc-casexfrm'.
66067         * lib/unicase.h (ulc_casexfrm): New declaration.
66068         * lib/unicase/ulc-casexfrm.c: New file.
66069         * modules/unicase/ulc-casexfrm: New file.
66071 2009-03-09  Bruno Haible  <bruno@clisp.org>
66073         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
66074         invocations.
66076         * m4/mbscasecmp.m4: Remove file.
66077         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
66078         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
66080         * m4/mbscasestr.m4: Remove file.
66081         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
66082         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
66084         * m4/mbschr.m4: Remove file.
66085         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
66086         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
66088         * m4/mbscspn.m4: Remove file.
66089         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
66090         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
66092         * m4/mbslen.m4: Remove file.
66093         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
66094         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
66096         * m4/mbsncasecmp.m4: Remove file.
66097         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
66098         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
66100         * m4/mbsnlen.m4: Remove file.
66101         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
66102         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
66104         * m4/mbspbrk.m4: Remove file.
66105         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
66106         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
66108         * m4/mbspcasecmp.m4: Remove file.
66109         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
66110         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
66112         * m4/mbsrchr.m4: Remove file.
66113         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
66114         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
66116         * m4/mbssep.m4: Remove file.
66117         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
66118         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
66120         * m4/mbsspn.m4: Remove file.
66121         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
66122         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
66124         * m4/mbsstr.m4: Remove file.
66125         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
66126         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
66128         * m4/mbstok_r.m4: Remove file.
66129         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
66130         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
66132         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
66134         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
66135         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
66137         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
66139 2009-03-08  Bruno Haible  <bruno@clisp.org>
66141         Tests for module 'unicase/ulc-casecmp'.
66142         * modules/unicase/ulc-casecmp-tests: New file.
66143         * tests/unicase/test-ulc-casecmp1.sh: New file.
66144         * tests/unicase/test-ulc-casecmp2.sh: New file.
66145         * tests/unicase/test-ulc-casecmp.c: New file.
66147         New module 'unicase/ulc-casecmp'.
66148         * lib/unicase.h (ulc_casecmp): New declaration.
66149         * lib/unicase/ulc-casecmp.c: New file.
66150         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
66151         'const SRC_UNIT *'.
66152         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
66153         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
66154         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
66155         * modules/unicase/ulc-casecmp: New file.
66157         Tests for module 'unicase/u32-is-cased'.
66158         * modules/unicase/u32-is-cased-tests: New file.
66159         * tests/unicase/test-u32-is-cased.c: New file.
66161         Tests for module 'unicase/u16-is-cased'.
66162         * modules/unicase/u16-is-cased-tests: New file.
66163         * tests/unicase/test-u16-is-cased.c: New file.
66165         Tests for module 'unicase/u8-is-cased'.
66166         * modules/unicase/u8-is-cased-tests: New file.
66167         * tests/unicase/test-u8-is-cased.c: New file.
66168         * tests/unicase/test-is-cased.h: New file.
66170         New module 'unicase/u32-is-cased'.
66171         * lib/unicase/u32-is-cased.c: New file.
66172         * modules/unicase/u32-is-cased: New file.
66174         New module 'unicase/u16-is-cased'.
66175         * lib/unicase/u16-is-cased.c: New file.
66176         * modules/unicase/u16-is-cased: New file.
66178         New module 'unicase/u8-is-cased'.
66179         * lib/unicase/u8-is-cased.c: New file.
66180         * lib/unicase/u-is-cased.h: New file.
66181         * modules/unicase/u8-is-cased: New file.
66183         Tests for module 'unicase/u32-is-casefolded'.
66184         * modules/unicase/u32-is-casefolded-tests: New file.
66185         * tests/unicase/test-u32-is-casefolded.c: New file.
66187         Tests for module 'unicase/u16-is-casefolded'.
66188         * modules/unicase/u16-is-casefolded-tests: New file.
66189         * tests/unicase/test-u16-is-casefolded.c: New file.
66191         Tests for module 'unicase/u8-is-casefolded'.
66192         * modules/unicase/u8-is-casefolded-tests: New file.
66193         * tests/unicase/test-u8-is-casefolded.c: New file.
66194         * tests/unicase/test-is-casefolded.h: New file.
66196         New module 'unicase/u32-is-casefolded'.
66197         * lib/unicase/u32-is-casefolded.c: New file.
66198         * modules/unicase/u32-is-casefolded: New file.
66200         New module 'unicase/u16-is-casefolded'.
66201         * lib/unicase/u16-is-casefolded.c: New file.
66202         * modules/unicase/u16-is-casefolded: New file.
66204         New module 'unicase/u8-is-casefolded'.
66205         * lib/unicase/u8-is-casefolded.c: New file.
66206         * modules/unicase/u8-is-casefolded: New file.
66208         Tests for module 'unicase/u32-is-titlecase'.
66209         * modules/unicase/u32-is-titlecase-tests: New file.
66210         * tests/unicase/test-u32-is-titlecase.c: New file.
66212         Tests for module 'unicase/u16-is-titlecase'.
66213         * modules/unicase/u16-is-titlecase-tests: New file.
66214         * tests/unicase/test-u16-is-titlecase.c: New file.
66216         Tests for module 'unicase/u8-is-titlecase'.
66217         * modules/unicase/u8-is-titlecase-tests: New file.
66218         * tests/unicase/test-u8-is-titlecase.c: New file.
66219         * tests/unicase/test-is-titlecase.h: New file.
66221         New module 'unicase/u32-is-titlecase'.
66222         * lib/unicase/u32-is-titlecase.c: New file.
66223         * modules/unicase/u32-is-titlecase: New file.
66225         New module 'unicase/u16-is-titlecase'.
66226         * lib/unicase/u16-is-titlecase.c: New file.
66227         * modules/unicase/u16-is-titlecase: New file.
66229         New module 'unicase/u8-is-titlecase'.
66230         * lib/unicase/u8-is-titlecase.c: New file.
66231         * modules/unicase/u8-is-titlecase: New file.
66233         Tests for module 'unicase/u32-is-lowercase'.
66234         * modules/unicase/u32-is-lowercase-tests: New file.
66235         * tests/unicase/test-u32-is-lowercase.c: New file.
66237         Tests for module 'unicase/u16-is-lowercase'.
66238         * modules/unicase/u16-is-lowercase-tests: New file.
66239         * tests/unicase/test-u16-is-lowercase.c: New file.
66241         Tests for module 'unicase/u8-is-lowercase'.
66242         * modules/unicase/u8-is-lowercase-tests: New file.
66243         * tests/unicase/test-u8-is-lowercase.c: New file.
66244         * tests/unicase/test-is-lowercase.h: New file.
66246         New module 'unicase/u32-is-lowercase'.
66247         * lib/unicase/u32-is-lowercase.c: New file.
66248         * modules/unicase/u32-is-lowercase: New file.
66250         New module 'unicase/u16-is-lowercase'.
66251         * lib/unicase/u16-is-lowercase.c: New file.
66252         * modules/unicase/u16-is-lowercase: New file.
66254         New module 'unicase/u8-is-lowercase'.
66255         * lib/unicase/u8-is-lowercase.c: New file.
66256         * modules/unicase/u8-is-lowercase: New file.
66258         Tests for module 'unicase/u32-is-uppercase'.
66259         * modules/unicase/u32-is-uppercase-tests: New file.
66260         * tests/unicase/test-u32-is-uppercase.c: New file.
66262         Tests for module 'unicase/u16-is-uppercase'.
66263         * modules/unicase/u16-is-uppercase-tests: New file.
66264         * tests/unicase/test-u16-is-uppercase.c: New file.
66266         Tests for module 'unicase/u8-is-uppercase'.
66267         * modules/unicase/u8-is-uppercase-tests: New file.
66268         * tests/unicase/test-u8-is-uppercase.c: New file.
66269         * tests/unicase/test-is-uppercase.h: New file.
66271         New module 'unicase/u32-is-uppercase'.
66272         * lib/unicase/u32-is-uppercase.c: New file.
66273         * modules/unicase/u32-is-uppercase: New file.
66275         New module 'unicase/u16-is-uppercase'.
66276         * lib/unicase/u16-is-uppercase.c: New file.
66277         * modules/unicase/u16-is-uppercase: New file.
66279         New module 'unicase/u8-is-uppercase'.
66280         * lib/unicase/u8-is-uppercase.c: New file.
66281         * modules/unicase/u8-is-uppercase: New file.
66283         New module 'unicase/u32-is-invariant'.
66284         * lib/unicase/u32-is-invariant.c: New file.
66285         * modules/unicase/u32-is-invariant: New file.
66287         New module 'unicase/u16-is-invariant'.
66288         * lib/unicase/u16-is-invariant.c: New file.
66289         * modules/unicase/u16-is-invariant: New file.
66291         New module 'unicase/u8-is-invariant'.
66292         * lib/unicase/u8-is-invariant.c: New file.
66293         * lib/unicase/invariant.h: New file.
66294         * lib/unicase/u-is-invariant.h: New file.
66295         * modules/unicase/u8-is-invariant: New file.
66297         Tests for module 'unicase/u32-casecoll'.
66298         * modules/unicase/u32-casecoll-tests: New file.
66299         * tests/unicase/test-u32-casecoll.c: New file.
66301         Tests for module 'unicase/u16-casecoll'.
66302         * modules/unicase/u16-casecoll-tests: New file.
66303         * tests/unicase/test-u16-casecoll.c: New file.
66305         Tests for module 'unicase/u8-casecoll'.
66306         * modules/unicase/u8-casecoll-tests: New file.
66307         * tests/unicase/test-u8-casecoll.c: New file.
66309         New module 'unicase/u32-casecoll'.
66310         * lib/unicase/u32-casecoll.c: New file.
66311         * modules/unicase/u32-casecoll: New file.
66313         New module 'unicase/u16-casecoll'.
66314         * lib/unicase/u16-casecoll.c: New file.
66315         * modules/unicase/u16-casecoll: New file.
66317         New module 'unicase/u8-casecoll'.
66318         * lib/unicase/u8-casecoll.c: New file.
66319         * lib/unicase/u-casecoll.h: New file.
66320         * modules/unicase/u8-casecoll: New file.
66322         New module 'unicase/u32-casexfrm'.
66323         * lib/unicase/u32-casexfrm.c: New file.
66324         * modules/unicase/u32-casexfrm: New file.
66326         New module 'unicase/u16-casexfrm'.
66327         * lib/unicase/u16-casexfrm.c: New file.
66328         * modules/unicase/u16-casexfrm: New file.
66330         New module 'unicase/u8-casexfrm'.
66331         * lib/unicase/u8-casexfrm.c: New file.
66332         * lib/unicase/u-casexfrm.h: New file.
66333         * modules/unicase/u8-casexfrm: New file.
66335         Tests for module 'unicase/u32-casecmp'.
66336         * modules/unicase/u32-casecmp-tests: New file.
66337         * tests/unicase/test-u32-casecmp.c: New file.
66339         Tests for module 'unicase/u16-casecmp'.
66340         * modules/unicase/u16-casecmp-tests: New file.
66341         * tests/unicase/test-u16-casecmp.c: New file.
66343         Tests for module 'unicase/u8-casecmp'.
66344         * modules/unicase/u8-casecmp-tests: New file.
66345         * tests/unicase/test-u8-casecmp.c: New file.
66346         * tests/unicase/test-casecmp.h: New file.
66348         New module 'unicase/u32-casecmp'.
66349         * lib/unicase/u32-casecmp.c: New file.
66350         * modules/unicase/u32-casecmp: New file.
66352         New module 'unicase/u16-casecmp'.
66353         * lib/unicase/u16-casecmp.c: New file.
66354         * modules/unicase/u16-casecmp: New file.
66356         New module 'unicase/u8-casecmp'.
66357         * lib/unicase/u8-casecmp.c: New file.
66358         * lib/unicase/u-casecmp.h: New file.
66359         * modules/unicase/u8-casecmp: New file.
66361         Tests for module 'unicase/u32-casefold'.
66362         * modules/unicase/u32-casefold-tests: New file.
66363         * tests/unicase/test-u32-casefold.c: New file.
66365         Tests for module 'unicase/u16-casefold'.
66366         * modules/unicase/u16-casefold-tests: New file.
66367         * tests/unicase/test-u16-casefold.c: New file.
66369         Tests for module 'unicase/u8-casefold'.
66370         * modules/unicase/u8-casefold-tests: New file.
66371         * tests/unicase/test-u8-casefold.c: New file.
66373         New module 'unicase/u32-casefold'.
66374         * lib/unicase/u32-casefold.c: New file.
66375         * modules/unicase/u32-casefold: New file.
66377         New module 'unicase/u16-casefold'.
66378         * lib/unicase/u16-casefold.c: New file.
66379         * modules/unicase/u16-casefold: New file.
66381         New module 'unicase/u8-casefold'.
66382         * lib/unicase/u8-casefold.c: New file.
66383         * lib/unicase/u-casefold.h: New file.
66384         * modules/unicase/u8-casefold: New file.
66386         New module 'unicase/tocasefold'.
66387         * lib/unicase/casefold.h: New file.
66388         * lib/unicase/tocasefold.c: New file.
66389         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
66390         * modules/unicase/tocasefold: New file.
66392         Tests for module 'unicase/u32-totitle'.
66393         * modules/unicase/u32-totitle-tests: New file.
66394         * tests/unicase/test-u32-totitle.c: New file.
66396         Tests for module 'unicase/u16-totitle'.
66397         * modules/unicase/u16-totitle-tests: New file.
66398         * tests/unicase/test-u16-totitle.c: New file.
66400         Tests for module 'unicase/u8-totitle'.
66401         * modules/unicase/u8-totitle-tests: New file.
66402         * tests/unicase/test-u8-totitle.c: New file.
66404         New module 'unicase/u32-totitle'.
66405         * lib/unicase/u32-totitle.c: New file.
66406         * modules/unicase/u32-totitle: New file.
66408         New module 'unicase/u16-totitle'.
66409         * lib/unicase/u16-totitle.c: New file.
66410         * modules/unicase/u16-totitle: New file.
66412         New module 'unicase/u8-totitle'.
66413         * lib/unicase/u8-totitle.c: New file.
66414         * lib/unicase/u-totitle.h: New file.
66415         * modules/unicase/u8-totitle: New file.
66417         Tests for module 'unicase/u32-tolower'.
66418         * modules/unicase/u32-tolower-tests: New file.
66419         * tests/unicase/test-u32-tolower.c: New file.
66421         Tests for module 'unicase/u16-tolower'.
66422         * modules/unicase/u16-tolower-tests: New file.
66423         * tests/unicase/test-u16-tolower.c: New file.
66425         Tests for module 'unicase/u8-tolower'.
66426         * modules/unicase/u8-tolower-tests: New file.
66427         * tests/unicase/test-u8-tolower.c: New file.
66429         New module 'unicase/u32-tolower'.
66430         * lib/unicase/u32-tolower.c: New file.
66431         * modules/unicase/u32-tolower: New file.
66433         New module 'unicase/u16-tolower'.
66434         * lib/unicase/u16-tolower.c: New file.
66435         * modules/unicase/u16-tolower: New file.
66437         New module 'unicase/u8-tolower'.
66438         * lib/unicase/u8-tolower.c: New file.
66439         * modules/unicase/u8-tolower: New file.
66441         Tests for module 'unicase/u32-toupper'.
66442         * modules/unicase/u32-toupper-tests: New file.
66443         * tests/unicase/test-u32-toupper.c: New file.
66445         Tests for module 'unicase/u16-toupper'.
66446         * modules/unicase/u16-toupper-tests: New file.
66447         * tests/unicase/test-u16-toupper.c: New file.
66449         Tests for module 'unicase/u8-toupper'.
66450         * modules/unicase/u8-toupper-tests: New file.
66451         * tests/unicase/test-u8-toupper.c: New file.
66453         New module 'unicase/u32-toupper'.
66454         * lib/unicase/u32-toupper.c: New file.
66455         * modules/unicase/u32-toupper: New file.
66457         New module 'unicase/u16-toupper'.
66458         * lib/unicase/u16-toupper.c: New file.
66459         * modules/unicase/u16-toupper: New file.
66461         New module 'unicase/u8-toupper'.
66462         * lib/unicase/u8-toupper.c: New file.
66463         * modules/unicase/u8-toupper: New file.
66465         New module 'unicase/u32-casemap'.
66466         * lib/unicase/u32-casemap.c: New file.
66467         * modules/unicase/u32-casemap: New file.
66469         New module 'unicase/u16-casemap'.
66470         * lib/unicase/u16-casemap.c: New file.
66471         * modules/unicase/u16-casemap: New file.
66473         New module 'unicase/u8-casemap'.
66474         * lib/unicase/unicasemap.h: New file.
66475         * lib/unicase/u8-casemap.c: New file.
66476         * lib/unicase/u-casemap.h: New file.
66477         * modules/unicase/u8-casemap: New file.
66479         New module 'unicase/special-casing'.
66480         * lib/unicase/special-casing.h: New file.
66481         * lib/unicase/special-casing.c: New file.
66482         * lib/unicase/special-casing-table.gperf: New file, generated by
66483         gen-uni-tables.c.
66484         * modules/unicase/special-casing: New file.
66486         Tests for module 'unicase/locale-language'.
66487         * modules/unicase/locale-language-tests: New file.
66488         * tests/unicase/test-locale-language.sh: New file.
66489         * tests/unicase/test-locale-language.c: New file.
66491         New module 'unicase/locale-language'.
66492         * lib/unicase/locale-language.c: New file.
66493         * lib/unicase/locale-languages.gperf: New file.
66494         * modules/unicase/locale-language: New file.
66496         Generate more tables for case conversion and case folding.
66497         * lib/gen-uni-tables.c (SCC_*): New enum items.
66498         (struct special_casing_rule): New type.
66499         (casing_rules, num_casing_rules, allocated_casing_rules): New
66500         variables.
66501         (add_casing_rule, fill_casing_rules): New functions.
66502         (struct casefold_rule): New type.
66503         (casefolding_rules, num_casefolding_rules,
66504         allocated_casefolding_rules): New variables.
66505         (fill_casefolding_rules): New function.
66506         (unicode_casefold): New variable.
66507         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
66508         sort_casing_rules, output_casing_rules): New functions.
66509         (main): Accept to more arguments: SpecialCasing.txt and
66510         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
66511         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
66512         Output mapping for casefolding.
66514         * lib/unicase.h: Include stdbool.h, uninorm.h.
66515         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
66516         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
66517         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
66518         arguments.
66519         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
66520         resultp arguments.
66521         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
66522         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
66523         resultp arguments.
66524         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
66525         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
66526         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
66527         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
66528         declarations.
66529         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
66531 2009-03-08  Bruno Haible  <bruno@clisp.org>
66533         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
66534         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
66535         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
66536         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
66538 2009-03-07  Bruno Haible  <bruno@clisp.org>
66540         Adjust u*_normcmp, u*_normcoll API.
66541         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
66542         u16_normcoll, u32_normcoll): Change failure conventions.
66543         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
66544         errno and return -1.
66545         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
66547 2009-03-07  Bruno Haible  <bruno@clisp.org>
66549         Tests for module 'uninorm/u32-normcoll'.
66550         * modules/uninorm/u32-normcoll-tests: New file.
66551         * tests/uninorm/test-u32-normcoll.c: New file.
66553         Tests for module 'uninorm/u16-normcoll'.
66554         * modules/uninorm/u16-normcoll-tests: New file.
66555         * tests/uninorm/test-u16-normcoll.c: New file.
66557         Tests for module 'uninorm/u8-normcoll'.
66558         * modules/uninorm/u8-normcoll-tests: New file.
66559         * tests/uninorm/test-u8-normcoll.c: New file.
66561 2009-03-07  Bruno Haible  <bruno@clisp.org>
66563         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
66564         tests/uninorm/test-u32-normcmp.c.
66565         * tests/uninorm/test-u32-normcmp.c: Include it.
66566         (test_nonascii): New function, extracted from main. Add some more
66567         tests.
66568         (main): Invoke test_ascii and test_nonascii.
66569         * modules/uninorm/u32-normcmp-tests (Files): Add
66570         tests/uninorm/test-u32-normcmp.h.
66571         (Depends-on): Remove uninorm/u32-normcmp.
66573         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
66574         tests/uninorm/test-u16-normcmp.c.
66575         * tests/uninorm/test-u16-normcmp.c: Include it.
66576         (test_nonascii): New function, extracted from main. Add some more
66577         tests.
66578         (main): Invoke test_ascii and test_nonascii.
66579         * modules/uninorm/u16-normcmp-tests (Files): Add
66580         tests/uninorm/test-u16-normcmp.h.
66581         (Depends-on): Remove uninorm/u16-normcmp.
66583         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
66584         tests/uninorm/test-u8-normcmp.c.
66585         * tests/uninorm/test-u8-normcmp.c: Include it.
66586         (test_nonascii): New function, extracted from main. Add some more
66587         tests.
66588         (main): Invoke test_ascii and test_nonascii.
66589         * modules/uninorm/u8-normcmp-tests (Files): Add
66590         tests/uninorm/test-u8-normcmp.h.
66591         (Depends-on): Remove uninorm/u8-normcmp.
66593 2009-03-07  Bruno Haible  <bruno@clisp.org>
66595         New module 'uninorm/u32-normcoll'.
66596         * lib/uninorm/u32-normcoll.c: New file.
66597         * modules/uninorm/u32-normcoll: New file.
66599         New module 'uninorm/u16-normcoll'.
66600         * lib/uninorm/u16-normcoll.c: New file.
66601         * modules/uninorm/u16-normcoll: New file.
66603         New module 'uninorm/u8-normcoll'.
66604         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
66605         declarations.
66606         * lib/uninorm/u8-normcoll.c: New file.
66607         * lib/uninorm/u-normcoll.h: New file.
66608         * modules/uninorm/u8-normcoll: New file.
66610         New module 'uninorm/u32-normxfrm'.
66611         * lib/uninorm/u32-normxfrm.c: New file.
66612         * modules/uninorm/u32-normxfrm: New file.
66614         New module 'uninorm/u16-normxfrm'.
66615         * lib/uninorm/u16-normxfrm.c: New file.
66616         * modules/uninorm/u16-normxfrm: New file.
66618         New module 'uninorm/u8-normxfrm'.
66619         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
66620         declarations.
66621         * lib/uninorm/u8-normxfrm.c: New file.
66622         * lib/uninorm/u-normxfrm.h: New file.
66623         * modules/uninorm/u8-normxfrm: New file.
66625 2009-03-07  Bruno Haible  <bruno@clisp.org>
66627         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
66628         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
66629         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
66631 2009-03-07  Bruno Haible  <bruno@clisp.org>
66633         New module 'memxfrm'.
66634         * lib/memxfrm.h: New file.
66635         * lib/memxfrm.c: New file.
66636         * modules/memxfrm: New file.
66638 2009-03-07  Bruno Haible  <bruno@clisp.org>
66640         New module 'memcmp2'.
66641         * lib/memcmp2.h: New file.
66642         * lib/memcmp2.c: New file.
66643         * modules/memcmp2: New file.
66645 2009-03-07  Bruno Haible  <bruno@clisp.org>
66647         Tests for module 'uninorm/decomposing-form'.
66648         * modules/uninorm/decomposing-form-tests: New file.
66649         * tests/uninorm/test-decomposing-form.c: New file.
66651         New module 'uninorm/decomposing-form'.
66652         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
66653         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
66654         Add 'decomposing_variant' field.
66655         * lib/uninorm/decomposing-form.c: New file.
66656         * lib/uninorm/nfc.c (uninorm_nfc): Update.
66657         * lib/uninorm/nfd.c (uninorm_nfd): Update.
66658         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
66659         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
66660         * modules/uninorm/decomposing-form: New file.
66661         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
66662         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
66664 2009-03-07  Bruno Haible  <bruno@clisp.org>
66666         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
66667         strings.
66669 2009-03-06  Bruno Haible  <bruno@clisp.org>
66671         Tests for module 'uninorm/u32-normcmp'.
66672         * tests/uninorm/test-u32-normcmp.c: New file.
66673         * modules/uninorm/u32-normcmp-tests: New file.
66675         Tests for module 'uninorm/u16-normcmp'.
66676         * tests/uninorm/test-u16-normcmp.c: New file.
66677         * modules/uninorm/u16-normcmp-tests: New file.
66679         Tests for module 'uninorm/u8-normcmp'.
66680         * tests/uninorm/test-u8-normcmp.c: New file.
66681         * modules/uninorm/u8-normcmp-tests: New file.
66683         New module 'uninorm/u32-normcmp'.
66684         * lib/uninorm/u32-normcmp.c: New file.
66685         * modules/uninorm/u32-normcmp: New file.
66687         New module 'uninorm/u16-normcmp'.
66688         * lib/uninorm/u16-normcmp.c: New file.
66689         * modules/uninorm/u16-normcmp: New file.
66691         New module 'uninorm/u8-normcmp'.
66692         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
66693         declarations.
66694         * lib/uninorm/u8-normcmp.c: New file.
66695         * lib/uninorm/u-normcmp.h: New file.
66696         * modules/uninorm/u8-normcmp: New file.
66698 2009-03-06  Bruno Haible  <bruno@clisp.org>
66700         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
66701         Reported by Eric Blake.
66703 2009-03-06  Eric Blake  <ebb9@byu.net>
66704             Bruno Haible  <bruno@clisp.org>
66706         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
66707         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
66708         condition.
66709         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
66710         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
66711         condition.
66712         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
66714 2009-03-06  Eric Blake  <ebb9@byu.net>
66716         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
66717         to avoid compiler warnings.
66718         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
66720 2009-03-05  Bruno Haible  <bruno@clisp.org>
66722         * tests/test-ftell.c (main): Disable test beyond end of file on
66723         FreeMiNT.
66724         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
66726 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
66728         * lib/filevercmp.c: Move hidden files up in ordering.
66729         * tests/test-filevercmp.c: Add tests for hidden files.
66731 2009-03-04  Bruno Haible  <bruno@clisp.org>
66733         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
66734         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
66735         AM_CFLAGS.
66736         Reported by Simon Josefsson.
66738 2009-03-03  Bruno Haible  <bruno@clisp.org>
66740         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
66741         Reported by Simon Josefsson.
66743         * doc/ld-version-script.texi: Update node reference.
66745 2009-03-03  Bruno Haible  <bruno@clisp.org>
66747         * modules/visibility (License): Change to 'unlimited'.
66748         Suggested by Simon Josefsson.
66750 2009-03-03  Jim Meyering  <meyering@redhat.com>
66752         unlinkdir: cannot_unlink_dir may modify process state
66753         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
66754         it's neither thread-safe nor appropriate for use in a library.
66756 2009-03-03  Eric Blake  <ebb9@byu.net>
66758         test-closein: silence test under Darwin
66759         * tests/test-closein.sh: Ignore stderr from cat, since we don't
66760         care if it dies from EPIPE or EBADF.
66762 2009-03-03  Bruno Haible  <bruno@clisp.org>
66764         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
66765         earlier.
66766         * doc/visibility.texi: Fix @node and @section.
66768 2009-03-03  Simon Josefsson  <simon@josefsson.org>
66770         * doc/gnulib.texi: Link to sections for ld version script and
66771         visibility.
66772         * doc/visibility.texi: Add @node and @section.
66773         * modules/ld-version-script: New module.
66774         * m4/ld-version-script.m4: New file.
66775         * doc/ld-version-script.texi: New file.
66777 2009-03-02  David Lutterkort  <lutter@redhat.com>
66779         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
66780         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66782 2009-03-02  Bruno Haible  <bruno@clisp.org>
66784         * doc/visibility.texi: Mention libtool's -export-symbols option.
66786 2009-03-02  Jim Meyering  <meyering@redhat.com>
66788         announce-gen: new option: --no-print-checksums
66789         * build-aux/announce-gen (usage): Describe it.
66790         (print_checksums): Print a newline here, not in the [*] footnote.
66791         (main): Honor it.
66793 2009-03-01  Bruno Haible  <bruno@clisp.org>
66795         Use socklen_t in the native Windows replacements prototypes.
66796         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
66797         instead of 'int'.
66798         * lib/getsockopt.c (rpl_getsockopt): Likewise.
66799         * lib/setsockopt.c (rpl_setsockopt): Likewise.
66800         * modules/getsockopt (Depends-on): Add socklen.
66801         * modules/setsockopt (Depends-on): Add socklen.
66803 2009-03-01  Bruno Haible  <bruno@clisp.org>
66805         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
66806         least 4.2.
66808 2009-03-01  Eric Blake  <ebb9@byu.net>
66809             Bruno Haible  <bruno@clisp.org>
66811         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
66812         error messages.
66813         * lib/wait-process.c (wait_subprocess): Omit error message about
66814         deadly signal sent to the child of termsigp != NULL.
66816 2009-03-01  Eric Blake  <ebb9@byu.net>
66818         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
66820 2009-03-01  Bruno Haible  <bruno@clisp.org>
66822         Avoid a gcc warning.
66823         * tests/test-sched.c (b): Make global.
66824         Reported by Eric Blake.
66826 2009-01-19  Martin Lambers  <marlam@marlam.de>
66828         Provide POSIX semantics for socket timeout options on W32.
66829         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
66830         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
66831         * modules/setsockopt: Depend on sys_time module for struct timeval.
66832         * modules/getsockopt: Depend on sys_time module for struct timeval.
66834 2009-03-01  Simon Josefsson  <simon@josefsson.org>
66836         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
66837         __USE_GNU, for consistency with netdb.in.h.
66838         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66840 2009-03-01  Bruno Haible  <bruno@clisp.org>
66842         More support for FreeMiNT.
66843         * lib/fseeko.c (rpl_fseeko): Complete last commit.
66844         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66846 2009-03-01  Bruno Haible  <bruno@clisp.org>
66848         More support for FreeMiNT.
66849         * lib/fpurge.c (fpurge): Correct last commit.
66850         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66852 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66854         Fix unportable awk script in vc-list-files.
66855         * build-aux/vc-list-files: In the replacement awk script, use
66856         substr with a second argument of 1, not zero.
66857         Report by Simon Josefsson.
66859 2009-02-28  Bruno Haible  <bruno@clisp.org>
66861         More support for FreeMiNT.
66862         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
66863         to FreeMiNT today.
66864         * lib/fwriting.c (fwriting): Likewise.
66865         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
66867 2009-02-28  Bruno Haible  <bruno@clisp.org>
66869         * tests/test-freadseek.c (main): Disable test beyond end of file on
66870         FreeMiNT.
66871         * tests/test-ftello.c (main): Likewise.
66872         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
66874 2009-02-28  Bruno Haible  <bruno@clisp.org>
66876         Add tentative support for FreeMiNT.
66877         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
66878         * lib/fpurge.c (fpurge): Likewise.
66879         * lib/freadable.c (freadable): Likewise.
66880         * lib/freading.c (freading): Likewise.
66881         * lib/freadptr.c (freadptr): Likewise.
66882         * lib/freadseek.c (freadptrinc): Likewise.
66883         * lib/fseeko.c (rpl_fseeko): Likewise.
66884         * lib/fseterr.c (fseterr): Likewise.
66885         * lib/fwritable.c (fwritable): Likewise.
66886         * lib/fwriting.c (fwriting): Likewise.
66887         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
66888         Hourihane.
66889         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66891 2009-02-28  Bruno Haible  <bruno@clisp.org>
66893         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
66894         SIGCHLD.
66895         Reported by Jim Meyering.
66897 2009-02-28  Bruno Haible  <bruno@clisp.org>
66899         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
66900         Mention the results of these tests on various platforms.
66901         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
66902         order.
66903         * doc/posix-functions/printf.texi: Likewise.
66904         * doc/posix-functions/snprintf.texi: Likewise.
66905         * doc/posix-functions/sprintf.texi: Likewise.
66906         * doc/posix-functions/vfprintf.texi: Likewise.
66907         * doc/posix-functions/vprintf.texi: Likewise.
66908         * doc/posix-functions/vsnprintf.texi: Likewise.
66909         * doc/posix-functions/vsprintf.texi: Likewise.
66910         * doc/glibc-functions/obstack_printf.texi: Likewise.
66911         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
66913 2009-02-28  Bruno Haible  <bruno@clisp.org>
66915         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
66916         Reported by Loïc Minier <lool@dooz.org>.
66918 2009-02-27  Bruno Haible  <bruno@clisp.org>
66920         * gnulib-tool (func_import): Make the sed expression used to create the
66921         sed script for updating the .gitignore file POSIX compliant.
66922         Reported by Eric Blake.
66924 2009-02-27  Bruno Haible  <bruno@clisp.org>
66926         * gnulib-tool (sed): Don't alias as "sed --posix".
66927         Reported by Eric Blake.
66929 2009-02-27  Bruno Haible  <bruno@clisp.org>
66931         Avoid test link errors.
66932         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
66933         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
66934         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
66935         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
66936         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66938 2009-02-27  Bruno Haible  <bruno@clisp.org>
66940         Avoid spurious "(cached)" in configure output.
66941         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
66942         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
66943         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
66944         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
66945         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
66946         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
66947         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
66948         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
66949         Reported by Eric Blake.
66951 2009-02-27  Eric Blake  <ebb9@byu.net>
66953         printf: fix regression in previous patch
66954         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
66956 2009-02-27  Bruno Haible  <bruno@clisp.org>
66958         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
66959         value.
66960         * lib/stdint.in.h: Likewise.
66961         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
66963 2009-02-27  Eric Blake  <ebb9@byu.net>
66965         doc: mention more functions added in cygwin 1.7.0
66966         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
66967         addition.
66968         * doc/posix-functions/open_wmemstream.texi: Likewise.
66969         * doc/posix-functions/wcsnlen.texi: Likewise.
66970         * doc/posix-functions/wcsnrtombs.texi: Likewise.
66971         * doc/posix-functions/wcstod.texi: Likewise.
66972         * doc/posix-functions/wcstof.texi: Likewise.
66973         * doc/posix-functions/wcstoimax.texi: Likewise.
66974         * doc/posix-functions/wcstok.texi: Likewise.
66975         * doc/posix-functions/wcstoumax.texi: Likewise.
66977         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
66978         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
66979         * doc/posix-functions/fprintf.texi: Update.
66980         * doc/posix-functions/printf.texi: Update.
66981         * doc/posix-functions/snprintf.texi: Update.
66982         * doc/posix-functions/sprintf.texi: Update.
66983         * doc/posix-functions/vfprintf.texi: Update.
66984         * doc/posix-functions/vprintf.texi: Update.
66985         * doc/posix-functions/vsnprintf.texi: Update.
66986         * doc/posix-functions/vsprintf.texi: Update.
66987         * doc/glibc-functions/obstack_printf.texi: Update.
66988         * doc/glibc-functions/obstack_vprintf.texi: Update.
66990 2009-02-26  Eric Blake  <ebb9@byu.net>
66992         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
66993         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
66994         compilation bug by using runtime conversion.
66995         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
66996         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
66997         * modules/ceill-tests (Files): Use nan.h.
66998         * modules/floorl-tests (Files): Likewise.
66999         * modules/frexpl-tests (Files): Likewise.
67000         * modules/isnanl-tests (Files): Likewise.
67001         * modules/ldexpl-tests (Files): Likewise.
67002         * modules/roundl-tests (Files): Likewise.
67003         * modules/truncl-tests (Files): Likewise.
67004         * tests/test-ceill.c (main): Use a working NaN.
67005         * tests/test-floorl.c (main): Likewise.
67006         * tests/test-frexpl.c (main): Likewise.
67007         * tests/test-isnan.c (test_long_double): Likewise.
67008         * tests/test-isnanl.h (main): Likewise.
67009         * tests/test-ldexpl.h (main): Likewise.
67010         * tests/test-roundl.h (main): Likewise.
67011         * tests/test-truncl.h (main): Likewise.
67012         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
67014 2009-02-26  Eric Blake  <ebb9@byu.net>
67015             Bruno Haible  <bruno@clisp.org>
67017         Work around a *printf bug with %ls on Solaris.
67018         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
67019         precision is specified, sprintf stops converting the wide string
67020         argument when the number of bytes that have been produced by this
67021         conversion equals or exceeds the precision.
67022         * doc/posix-functions/fprintf.texi: Update.
67023         * doc/posix-functions/printf.texi: Update.
67024         * doc/posix-functions/snprintf.texi: Update.
67025         * doc/posix-functions/sprintf.texi: Update.
67026         * doc/posix-functions/vfprintf.texi: Update.
67027         * doc/posix-functions/vprintf.texi: Update.
67028         * doc/posix-functions/vsnprintf.texi: Update.
67029         * doc/posix-functions/vsprintf.texi: Update.
67030         * doc/glibc-functions/obstack_printf.texi: Update.
67031         * doc/glibc-functions/obstack_vprintf.texi: Update.
67033 2009-02-26  Eric Blake  <ebb9@byu.net>
67035         stdlib: favor compiler check of random.h
67036         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
67037         to avoid an ObjC random.h installed by Swarm.
67039 2009-02-26  Bruno Haible  <bruno@clisp.org>
67041         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
67042         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
67043         Reported by Gary V. Vaughan <gary@gnu.org>.
67045 2009-02-26  Bruno Haible  <bruno@clisp.org>
67047         Fix *printf behaviour regarding the %ls directive.
67048         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
67049         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
67050         NEED_PRINTF_DIRECTIVE_LS.
67051         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
67052         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
67053         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67054         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
67055         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
67056         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
67057         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
67058         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67059         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67060         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67061         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67062         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
67063         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67064         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67065         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67066         * doc/posix-functions/fprintf.texi: Update.
67067         * doc/posix-functions/printf.texi: Update.
67068         * doc/posix-functions/snprintf.texi: Update.
67069         * doc/posix-functions/sprintf.texi: Update.
67070         * doc/posix-functions/vfprintf.texi: Update.
67071         * doc/posix-functions/vprintf.texi: Update.
67072         * doc/posix-functions/vsnprintf.texi: Update.
67073         * doc/posix-functions/vsprintf.texi: Update.
67074         * doc/glibc-functions/obstack_printf.texi: Update.
67075         * doc/glibc-functions/obstack_vprintf.texi: Update.
67076         Reported by Eric Blake.
67078 2009-02-25  Bruno Haible  <bruno@clisp.org>
67080         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
67081         with known value.
67082         Reported by Gary V. Vaughan <gary@gnu.org>.
67084 2009-02-25  Bruno Haible  <bruno@clisp.org>
67086         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
67087         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
67088         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
67089         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
67090         Reported by Gary V. Vaughan <gary@gnu.org>.
67092 2009-02-25  Bruno Haible  <bruno@clisp.org>
67094         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
67095         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
67096         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
67097         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
67098         Reported by Gary V. Vaughan <gary@gnu.org>.
67100 2009-02-25  Eric Blake  <ebb9@byu.net>
67102         tests: skip fseek/ftell tests if ungetc is broken
67103         * m4/ungetc.m4: New file.
67104         * modules/fseek-tests: Split test, so ungetc dependency is
67105         separate from rest of test.
67106         * modules/fseeko-tests: Likewise.
67107         * modules/ftell-tests: Likewise.
67108         * modules/ftello-tests: Likewise.
67109         * tests/test-fseek.c (main): Isolate ungetc dependency.
67110         * tests/test-fseeko.c (main): Likewise.
67111         * tests/test-ftell.c (main): Likewise.
67112         * tests/test-ftello.c (main): Likewise.
67113         * tests/test-fseek2.sh: New file.
67114         * tests/test-fseeko2.sh: Likewise.
67115         * tests/test-ftell2.sh: Likewise.
67116         * tests/test-ftello2.sh: Likewise.
67118 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
67120         test-getaddrinfo: fix usage of skip return code 77
67121         * tests/test-gettaddrinfo.c: Return skip code 77 only
67122         for first occurrence of skip (4x77 is not 77)
67124 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
67126         strtod: avoid C99 decl-after-statement
67127         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
67129 2009-02-24  Eric Blake  <ebb9@byu.net>
67131         strtod: detect HP-UX 11.31 bug
67132         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
67133         Reported by Gary V. Vaughan.
67135 2009-02-23  Bruno Haible  <bruno@clisp.org>
67137         Fix invalid read past end of memory block.
67138         * lib/vasnprintf.c (DCHAR_SET): Define.
67139         (local_wcslen): Define only when needed.
67140         (local_strnlen, local_wcsnlen): New functions.
67141         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
67142         directives that involve a conversion ourselves.
67143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
67144         wcsnlen, mbrtowc, wcrtomb.
67145         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
67146         * tests/test-vasprintf-posix.c (test_function): Likewise.
67147         * tests/test-snprintf-posix.h (test_function): Likewise.
67148         * tests/test-sprintf-posix.h (test_function): Likewise.
67149         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67151 2009-02-22  Bruno Haible  <bruno@clisp.org>
67153         Implement new clarified decomposition of Hangul syllables.
67154         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
67155         of type LTV, return only a pairwise decomposition.
67156         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
67157         Likewise.
67158         * tests/uninorm/test-decomposition.c (main): Updated expected result.
67159         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
67160         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
67162 2009-02-22  Bruno Haible  <bruno@clisp.org>
67164         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
67165         zero-length results and shrink excess allocated memory.
67166         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
67167         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
67168         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
67169         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
67170         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
67171         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
67172         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
67173         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
67174         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
67175         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
67176         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
67177         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
67179 2009-02-21  Bruno Haible  <bruno@clisp.org>
67181         * doc/gnulib.texi: Include safe-alloc.texi earlier.
67182         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
67183         spaces after a period. Put a space between a macro name and its
67184         argument list. Trivial rewordings.
67185         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
67186         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
67187         (main): Return 0 explicitly.
67189 2009-02-21  Bruno Haible  <bruno@clisp.org>
67191         Tests for module 'uninorm/filter'.
67192         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
67193         * modules/uninorm/filter-tests: New file.
67195         New module 'uninorm/filter'.
67196         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
67197         uninorm_filter_flush, uninorm_filter_free): New declarations.
67198         * lib/uninorm/uninorm-filter.c: New file.
67199         * modules/uninorm/filter: New file.
67201 2009-02-21  Bruno Haible  <bruno@clisp.org>
67203         Tests for module 'uninorm/nfkc'.
67204         * tests/uninorm/test-nfkc.c: New file.
67205         * tests/uninorm/test-u8-nfkc.c: New file.
67206         * tests/uninorm/test-u16-nfkc.c: New file.
67207         * tests/uninorm/test-u32-nfkc.c: New file.
67208         * tests/uninorm/test-u32-nfkc-big.sh: New file.
67209         * tests/uninorm/test-u32-nfkc-big.c: New file.
67210         * modules/uninorm/nfkc-tests: New file.
67212         New module 'uninorm/nfkc'.
67213         * lib/uninorm/nfkc.c: New file.
67214         * modules/uninorm/nfkc: New file.
67216         Tests for module 'uninorm/nfkd'.
67217         * tests/uninorm/test-nfkd.c: New file.
67218         * tests/uninorm/test-u8-nfkd.c: New file.
67219         * tests/uninorm/test-u16-nfkd.c: New file.
67220         * tests/uninorm/test-u32-nfkd.c: New file.
67221         * tests/uninorm/test-u32-nfkd-big.sh: New file.
67222         * tests/uninorm/test-u32-nfkd-big.c: New file.
67223         * modules/uninorm/nfkd-tests: New file.
67225         New module 'uninorm/nfkd'.
67226         * lib/uninorm/nfkd.c: New file.
67227         * modules/uninorm/nfkd: New file.
67229         Tests for module 'uninorm/nfc'.
67230         * tests/uninorm/test-nfc.c: New file.
67231         * tests/uninorm/test-u8-nfc.c: New file.
67232         * tests/uninorm/test-u16-nfc.c: New file.
67233         * tests/uninorm/test-u32-nfc.c: New file.
67234         * tests/uninorm/test-u32-nfc-big.sh: New file.
67235         * tests/uninorm/test-u32-nfc-big.c: New file.
67236         * modules/uninorm/nfc-tests: New file.
67238         New module 'uninorm/nfc'.
67239         * lib/uninorm/nfc.c: New file.
67240         * modules/uninorm/nfc: New file.
67242         Tests for module 'uninorm/nfd'.
67243         * tests/uninorm/test-nfd.c: New file.
67244         * tests/uninorm/test-u8-nfd.c: New file.
67245         * tests/uninorm/test-u16-nfd.c: New file.
67246         * tests/uninorm/test-u32-nfd.c: New file.
67247         * tests/uninorm/test-u32-nfd-big.sh: New file.
67248         * tests/uninorm/test-u32-nfd-big.c: New file.
67249         * tests/uninorm/test-u32-normalize-big.h: New file.
67250         * tests/uninorm/test-u32-normalize-big.c: New file.
67251         * tests/uninorm/NormalizationTest.txt: New file, created from
67252         Unicode 5.1.0 NormalizationTest.txt.
67253         * modules/uninorm/nfd-tests: New file.
67255         New module 'uninorm/nfd'.
67256         * lib/uninorm/nfd.c: New file.
67257         * modules/uninorm/nfd: New file.
67259         New module 'uninorm/u32-normalize'.
67260         * lib/uninorm/u32-normalize.c: New file.
67261         * modules/uninorm/u32-normalize: New file.
67263         New module 'uninorm/u16-normalize'.
67264         * lib/uninorm/u16-normalize.c: New file.
67265         * modules/uninorm/u16-normalize: New file.
67267         New module 'uninorm/u8-normalize'.
67268         * lib/uninorm/u8-normalize.c: New file.
67269         * lib/uninorm/normalize-internal.h: New file.
67270         * lib/uninorm/u-normalize-internal.h: New file.
67271         * modules/uninorm/u8-normalize: New file.
67273         New module 'uninorm/decompose-internal'.
67274         * lib/uninorm/decompose-internal.c: New file.
67275         * modules/uninorm/decompose-internal: New file.
67277         Tests for module 'uninorm/composition'.
67278         * tests/uninorm/test-composition.c: New file.
67279         * modules/uninorm/composition-tests: New file.
67281         New module 'uninorm/composition'.
67282         * lib/uninorm/composition.c: New file.
67283         * lib/uninorm/composition-table.gperf: New file, generated by
67284         gen-uni-tables.
67285         * modules/uninorm/composition: New file.
67287         Tests for module 'uninorm/compat-decomposition'.
67288         * tests/uninorm/test-compat-decomposition.c: New file.
67289         * modules/uninorm/compat-decomposition-tests: New file.
67291         New module 'uninorm/compat-decomposition'.
67292         * lib/uninorm/decompose-internal.h: New file.
67293         * lib/uninorm/compat-decomposition.c: New file.
67294         * modules/uninorm/compat-decomposition: New file.
67296         Tests for module 'uninorm/canonical-decomposition'.
67297         * tests/uninorm/test-canonical-decomposition.c: New file.
67298         * modules/uninorm/canonical-decomposition-tests: New file.
67300         New module 'uninorm/canonical-decomposition'.
67301         * lib/uninorm/canonical-decomposition.c: New file.
67302         * modules/uninorm/canonical-decomposition: New file.
67304         Tests for module 'uninorm/decomposition'.
67305         * tests/uninorm/test-decomposition.c: New file.
67306         * modules/uninorm/decomposition-tests: New file.
67308         New module 'uninorm/decomposition'.
67309         * lib/uninorm/decomposition.c: New file.
67310         * modules/uninorm/decomposition: New file.
67312         New module 'uninorm/decomposition-table'.
67313         * lib/uninorm/decomposition-table.h: New file.
67314         * lib/uninorm/decomposition-table.c: New file.
67315         * lib/uninorm/decomposition-table1.h: New file, generated by
67316         gen-uni-tables.
67317         * lib/uninorm/decomposition-table2.h: New file, generated by
67318         gen-uni-tables.
67319         * modules/uninorm/decomposition-table: New file.
67321         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
67322         (UC_DECOMP_*): New enumeration items.
67323         (get_decomposition): New function.
67324         (struct decomp_table): New type.
67325         (output_decomposition, output_decomposition_tables): New functions.
67326         (unicode_composition_exclusions): New variable.
67327         (fill_composition_exclusions, debug_output_composition_tables): New
67328         functions.
67329         (main): Accept one more argument. Invoke fill_composition_exclusions.
67330         Output decomposition and composition tables.
67332         New module 'uninorm/base'.
67333         * lib/uninorm.h: New file.
67334         * lib/unictype.h: Update comment.
67335         * modules/uninorm/base: New file.
67337 2009-02-21  David Lutterkort  <lutter@redhat.com>
67339         Tests for module 'safe-alloc'.
67340         * tests/test-safe-alloc.c: New file.
67341         * modules/safe-alloc-tests: New file.
67343         New module 'safe-alloc'.
67344         * lib/safe-alloc.h: New file.
67345         * lib/safe-alloc.c: New file.
67346         * m4/safe-alloc.m4: New file.
67347         * modules/safe-alloc: New file.
67348         * doc/safe-alloc.texi: New file.
67349         * doc/gnulib.texi: Include it.
67350         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
67351         safe-alloc.
67353 2009-02-18  Bruno Haible  <bruno@clisp.org>
67355         Fix link error on non-glibc systems.
67356         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
67357         variable.
67358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67360 2009-02-18  Jim Meyering  <meyering@redhat.com>
67362         fts: avoid used-uninitialized error due to recent change
67363         * lib/fts.c (fts_read): Guard uses of the new member,
67364         parent->fts_n_dirs_remaining, since it's not relevant for
67365         the parent of a directory specified on the command-line.
67367 2009-02-17  James Youngman  <jay@gnu.org>
67368             Bruno Haible  <bruno@clisp.org>
67370         * m4/include_next.m4: Reformulate comment.
67372 2009-02-16  Jim Meyering  <meyering@redhat.com>
67374         fts: add #if guards so that the fts_lgpl module still builds
67375         * lib/fts.c: Guard just-added hash-table-using parts with
67376         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
67377         Reported by Simon Josefsson.
67379 2009-02-15  Bruno Haible  <bruno@clisp.org>
67381         * modules/array-mergesort-tests: New file.
67382         * tests/test-array-mergesort.c: New file.
67384         New module 'array-mergesort'.
67385         * modules/array-mergesort: New file.
67386         * lib/array-mergesort.h: New file.
67388 2009-02-15  Bruno Haible  <bruno@clisp.org>
67390         Fix 2009-02-07 commit.
67391         * lib/gen-uni-tables.c (output_predicate, output_category,
67392         output_combclass, output_bidi_category, output_decimal_digit,
67393         output_digit, output_numeric, output_mirror, output_scripts,
67394         output_ident_category, output_simple_mapping): Fix format directives.
67395         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
67397 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
67399         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
67400         fixes are available from IBM.
67402 2009-02-13  Jim Meyering  <meyering@redhat.com>
67404         fts: arrange not to stat non-directories in more cases
67405         This makes GNU find (when it doesn't need to stat each file)
67406         *much* more efficient at traversing reiserfs file systems.
67407         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
67408         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
67409         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
67410         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
67411         (leaf_optimization_applies): New function.
67412         (LCO_hash, LCO_compare): New helper functions.
67413         (link_count_optimize_ok): New function.
67414         (fts_stat): Initialize new member (if dir).
67415         (fts_read): Decrement parent's fts_n_dirs_remaining count if
67416         we've just stat'ed a directory.  Skip the stat call when possible.
67417         ---
67418         Note this AFS-related exchange:
67419         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
67420         and note find's pioctl call in find/fstype.c.
67421         But that is necessary only if you want to enable the
67422         optimization for AFS, and for now, I don't.
67424         fts: move a function definition "up" (no semantic change)
67425         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
67426         "up" to precede upcoming use of a related function.
67428 2009-02-11  Jim Meyering  <meyering@redhat.com>
67430         fts: correct internal computation of nlinks (optimization-related)
67431         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
67432         whether the current entry is a directory, so don't test it.
67434 2009-02-10  Bruno Haible  <bruno@clisp.org>
67436         Tests for module 'uniwbrk/ulc-wordbreaks'.
67437         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
67438         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
67439         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
67441         Tests for module 'uniwbrk/u32-wordbreaks'.
67442         * modules/uniwbrk/u32-wordbreaks-tests: New file.
67443         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
67445         Tests for module 'uniwbrk/u16-wordbreaks'.
67446         * modules/uniwbrk/u16-wordbreaks-tests: New file.
67447         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
67449         Tests for module 'uniwbrk/u8-wordbreaks'.
67450         * modules/uniwbrk/u8-wordbreaks-tests: New file.
67451         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
67453 2009-02-10  Bruno Haible  <bruno@clisp.org>
67455         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
67456         property.
67457         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
67458         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
67459         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
67461 2009-02-10  Simon Josefsson  <simon@josefsson.org>
67463         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
67464         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
67466 2009-02-10  Bruno Haible  <bruno@clisp.org>
67468         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
67469         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
67470         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
67471         * lib/unilbrk/u8-possible-linebreaks.c: Update.
67472         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
67473         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
67475 2009-02-09  Simon Josefsson  <simon@josefsson.org>
67477         * lib/sockets.h (gl_fd_to_handle): New function.
67479         * tests/test-sockets.c: Call gl_fd_to_handle.
67481 2009-02-09  Bruno Haible  <bruno@clisp.org>
67483         * doc/havelib.texi: Document the conventions on bi-arch systems.
67485 2009-02-08  Bruno Haible  <bruno@clisp.org>
67487         Document the AC_LIB_LINKFLAGS macro.
67488         * doc/havelib.texi: New file, mostly written on 2005-05-24.
67489         * doc/gnulib.texi: Include it.
67491 2009-02-08  Bruno Haible  <bruno@clisp.org>
67493         Fix wrong order of sections, compared to TOC.
67494         * doc/gnulib.texi: Include relocatable-maint.texi after the
67495         "Regular expressions" node, not before.
67497 2009-02-08  Bruno Haible  <bruno@clisp.org>
67499         Tests for module 'unicase/totitle'.
67500         * modules/unicase/totitle-tests: New file.
67502         Tests for module 'unicase/tolower'.
67503         * modules/unicase/tolower-tests: New file.
67505         Tests for module 'unicase/toupper'.
67506         * modules/unicase/toupper-tests: New file.
67507         * tests/unicase/test-mapping-part1.h: New file.
67508         * tests/unicase/test-mapping-part2.h: New file.
67510         New module 'unicase/totitle'.
67511         * modules/unicase/totitle: New file.
67512         * lib/unicase/totitle.c: New file.
67514         New module 'unicase/tolower'.
67515         * modules/unicase/tolower: New file.
67516         * lib/unicase/tolower.c: New file.
67518         New module 'unicase/toupper'.
67519         * modules/unicase/toupper: New file.
67520         * lib/unicase/toupper.c: New file.
67521         * lib/unicase/simple-mapping.h: New file.
67523         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
67524         (mapping_table): New structure.
67525         (output_simple_mapping): New function.
67526         (main): Invoke output_simple_mapping_test and output_simple_mapping.
67527         * modules/gen-uni-tables (Description): Update.
67528         * lib/unicase/toupper.h: New file, automatically generated by
67529         gen-uni-tables.
67530         * lib/unicase/tolower.h: New file, automatically generated by
67531         gen-uni-tables.
67532         * lib/unicase/totitle.h: New file, automatically generated by
67533         gen-uni-tables.
67534         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
67535         gen-uni-tables.
67536         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
67537         gen-uni-tables.
67538         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
67539         gen-uni-tables.
67541         New module 'unicase/base'.
67542         * modules/unicase/base: New file.
67543         * lib/unicase.h: New file.
67545 2009-02-08  Bruno Haible  <bruno@clisp.org>
67547         New module 'uniwbrk/ulc-wordbreaks'.
67548         * modules/uniwbrk/ulc-wordbreaks: New file.
67549         * lib/uniwbrk/ulc-wordbreaks.c: New file.
67551         New module 'uniwbrk/u32-wordbreaks'.
67552         * modules/uniwbrk/u32-wordbreaks: New file.
67553         * lib/uniwbrk/u32-wordbreaks.c: New file.
67555         New module 'uniwbrk/u16-wordbreaks'.
67556         * modules/uniwbrk/u16-wordbreaks: New file.
67557         * lib/uniwbrk/u16-wordbreaks.c: New file.
67559         New module 'uniwbrk/u8-wordbreaks'.
67560         * modules/uniwbrk/u8-wordbreaks: New file.
67561         * lib/uniwbrk/u8-wordbreaks.c: New file.
67562         * lib/uniwbrk/u-wordbreaks.h: New file.
67564         New module 'uniwbrk/table'.
67565         * modules/uniwbrk/table: New file.
67566         * lib/uniwbrk/wbrktable.h: New file.
67567         * lib/uniwbrk/wbrktable.c: New file.
67569         New module 'uniwbrk/wordbreak-property'.
67570         * modules/uniwbrk/wordbreak-property: New file.
67571         * lib/uniwbrk/wordbreak-property.c: New file.
67573         * lib/gen-uni-tables.c (WBP_*): New enum items.
67574         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
67575         (unicode_org_wbp): New variable.
67576         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
67577         New functions.
67578         (wbp_table): New structure.
67579         (output_wbp, output_wbrk_tables): New functions.
67580         (main): Accept additional argument. Invoke fill_org_wbp,
67581         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
67582         output_wbrk_tables.
67583         * modules/gen-uni-tables (Description): Update.
67584         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
67585         gen-uni-tables.
67587         New module 'uniwbrk/base'.
67588         * modules/uniwbrk/base: New file.
67589         * lib/uniwbrk.h: New file.
67591 2009-02-08  Bruno Haible  <bruno@clisp.org>
67593         Update to Unicode 5.1.0.
67594         * lib/gen-uni-tables.c (is_property_alphabetic): Include
67595         U+2185..U+2188.
67596         (is_property_default_ignorable_code_point): Don't include characters
67597         of category Cc or Cs and not-a-characters.
67598         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
67599         U+0D79, U+109E, U+109F, U+A60C.
67600         * lib/unictype/bidi_of.h: Regenerated.
67601         * lib/unictype/blocks.h: Regenerated.
67602         * lib/unictype/categ_C.h: Regenerated.
67603         * lib/unictype/categ_Cf.h: Regenerated.
67604         * lib/unictype/categ_Cn.h: Regenerated.
67605         * lib/unictype/categ_L.h: Regenerated.
67606         * lib/unictype/categ_Ll.h: Regenerated.
67607         * lib/unictype/categ_Lm.h: Regenerated.
67608         * lib/unictype/categ_Lo.h: Regenerated.
67609         * lib/unictype/categ_Lu.h: Regenerated.
67610         * lib/unictype/categ_M.h: Regenerated.
67611         * lib/unictype/categ_Mc.h: Regenerated.
67612         * lib/unictype/categ_Me.h: Regenerated.
67613         * lib/unictype/categ_Mn.h: Regenerated.
67614         * lib/unictype/categ_N.h: Regenerated.
67615         * lib/unictype/categ_Nd.h: Regenerated.
67616         * lib/unictype/categ_Nl.h: Regenerated.
67617         * lib/unictype/categ_No.h: Regenerated.
67618         * lib/unictype/categ_P.h: Regenerated.
67619         * lib/unictype/categ_Pd.h: Regenerated.
67620         * lib/unictype/categ_Pe.h: Regenerated.
67621         * lib/unictype/categ_Pf.h: Regenerated.
67622         * lib/unictype/categ_Pi.h: Regenerated.
67623         * lib/unictype/categ_Po.h: Regenerated.
67624         * lib/unictype/categ_Ps.h: Regenerated.
67625         * lib/unictype/categ_S.h: Regenerated.
67626         * lib/unictype/categ_Sk.h: Regenerated.
67627         * lib/unictype/categ_Sm.h: Regenerated.
67628         * lib/unictype/categ_So.h: Regenerated.
67629         * lib/unictype/categ_of.h: Regenerated.
67630         * lib/unictype/combining.h: Regenerated.
67631         * lib/unictype/ctype_alnum.h: Regenerated.
67632         * lib/unictype/ctype_alpha.h: Regenerated.
67633         * lib/unictype/ctype_graph.h: Regenerated.
67634         * lib/unictype/ctype_lower.h: Regenerated.
67635         * lib/unictype/ctype_print.h: Regenerated.
67636         * lib/unictype/ctype_punct.h: Regenerated.
67637         * lib/unictype/ctype_upper.h: Regenerated.
67638         * lib/unictype/decdigit.h: Regenerated.
67639         * lib/unictype/digit.h: Regenerated.
67640         * lib/unictype/mirror.h: Regenerated.
67641         * lib/unictype/numeric.h: Regenerated.
67642         * lib/unictype/pr_alphabetic.h: Regenerated.
67643         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
67644         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
67645         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
67646         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
67647         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
67648         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
67649         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
67650         * lib/unictype/pr_combining.h: Regenerated.
67651         * lib/unictype/pr_dash.h: Regenerated.
67652         * lib/unictype/pr_decimal_digit.h: Regenerated.
67653         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
67654         * lib/unictype/pr_deprecated.h: Regenerated.
67655         * lib/unictype/pr_diacritic.h: Regenerated.
67656         * lib/unictype/pr_extender.h: Regenerated.
67657         * lib/unictype/pr_format_control.h: Regenerated.
67658         * lib/unictype/pr_grapheme_base.h: Regenerated.
67659         * lib/unictype/pr_grapheme_extend.h: Regenerated.
67660         * lib/unictype/pr_grapheme_link.h: Regenerated.
67661         * lib/unictype/pr_id_continue.h: Regenerated.
67662         * lib/unictype/pr_id_start.h: Regenerated.
67663         * lib/unictype/pr_ideographic.h: Regenerated.
67664         * lib/unictype/pr_ignorable_control.h: Regenerated.
67665         * lib/unictype/pr_lowercase.h: Regenerated.
67666         * lib/unictype/pr_math.h: Regenerated.
67667         * lib/unictype/pr_numeric.h: Regenerated.
67668         * lib/unictype/pr_other_alphabetic.h: Regenerated.
67669         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
67670         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
67671         * lib/unictype/pr_other_id_continue.h: Regenerated.
67672         * lib/unictype/pr_other_lowercase.h: Regenerated.
67673         * lib/unictype/pr_other_math.h: Regenerated.
67674         * lib/unictype/pr_punctuation.h: Regenerated.
67675         * lib/unictype/pr_sentence_terminal.h: Regenerated.
67676         * lib/unictype/pr_soft_dotted.h: Regenerated.
67677         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
67678         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
67679         * lib/unictype/pr_unified_ideograph.h: Regenerated.
67680         * lib/unictype/pr_uppercase.h: Regenerated.
67681         * lib/unictype/pr_xid_continue.h: Regenerated.
67682         * lib/unictype/pr_xid_start.h: Regenerated.
67683         * lib/unictype/pr_zero_width.h: Regenerated.
67684         * lib/unictype/scripts.h: Regenerated.
67685         * lib/unictype/scripts_byname.gperf: Regenerated.
67686         * lib/unictype/sy_java_ident.h: Regenerated.
67687         * lib/unilbrk/lbrkprop1.h: Regenerated.
67688         * lib/unilbrk/lbrkprop2.h: Regenerated.
67689         * tests/unictype/test-categ_C.c: Regenerated.
67690         * tests/unictype/test-categ_Cf.c: Regenerated.
67691         * tests/unictype/test-categ_Cn.c: Regenerated.
67692         * tests/unictype/test-categ_L.c: Regenerated.
67693         * tests/unictype/test-categ_Ll.c: Regenerated.
67694         * tests/unictype/test-categ_Lm.c: Regenerated.
67695         * tests/unictype/test-categ_Lo.c: Regenerated.
67696         * tests/unictype/test-categ_Lu.c: Regenerated.
67697         * tests/unictype/test-categ_M.c: Regenerated.
67698         * tests/unictype/test-categ_Mc.c: Regenerated.
67699         * tests/unictype/test-categ_Me.c: Regenerated.
67700         * tests/unictype/test-categ_Mn.c: Regenerated.
67701         * tests/unictype/test-categ_N.c: Regenerated.
67702         * tests/unictype/test-categ_Nd.c: Regenerated.
67703         * tests/unictype/test-categ_Nl.c: Regenerated.
67704         * tests/unictype/test-categ_No.c: Regenerated.
67705         * tests/unictype/test-categ_P.c: Regenerated.
67706         * tests/unictype/test-categ_Pd.c: Regenerated.
67707         * tests/unictype/test-categ_Pe.c: Regenerated.
67708         * tests/unictype/test-categ_Pf.c: Regenerated.
67709         * tests/unictype/test-categ_Pi.c: Regenerated.
67710         * tests/unictype/test-categ_Po.c: Regenerated.
67711         * tests/unictype/test-categ_Ps.c: Regenerated.
67712         * tests/unictype/test-categ_S.c: Regenerated.
67713         * tests/unictype/test-categ_Sk.c: Regenerated.
67714         * tests/unictype/test-categ_Sm.c: Regenerated.
67715         * tests/unictype/test-categ_So.c: Regenerated.
67716         * tests/unictype/test-ctype_alnum.c: Regenerated.
67717         * tests/unictype/test-ctype_alpha.c: Regenerated.
67718         * tests/unictype/test-ctype_graph.c: Regenerated.
67719         * tests/unictype/test-ctype_lower.c: Regenerated.
67720         * tests/unictype/test-ctype_print.c: Regenerated.
67721         * tests/unictype/test-ctype_punct.c: Regenerated.
67722         * tests/unictype/test-ctype_upper.c: Regenerated.
67723         * tests/unictype/test-decdigit.h: Regenerated.
67724         * tests/unictype/test-digit.h: Regenerated.
67725         * tests/unictype/test-numeric.h: Regenerated.
67726         * tests/unictype/test-pr_alphabetic.c: Regenerated.
67727         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
67728         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
67729         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
67730         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
67731         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
67732         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
67733         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
67734         * tests/unictype/test-pr_combining.c: Regenerated.
67735         * tests/unictype/test-pr_dash.c: Regenerated.
67736         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
67737         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
67738         * tests/unictype/test-pr_deprecated.c: Regenerated.
67739         * tests/unictype/test-pr_diacritic.c: Regenerated.
67740         * tests/unictype/test-pr_extender.c: Regenerated.
67741         * tests/unictype/test-pr_format_control.c: Regenerated.
67742         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
67743         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
67744         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
67745         * tests/unictype/test-pr_id_continue.c: Regenerated.
67746         * tests/unictype/test-pr_id_start.c: Regenerated.
67747         * tests/unictype/test-pr_ideographic.c: Regenerated.
67748         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
67749         * tests/unictype/test-pr_lowercase.c: Regenerated.
67750         * tests/unictype/test-pr_math.c: Regenerated.
67751         * tests/unictype/test-pr_numeric.c: Regenerated.
67752         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
67753         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
67754         Regenerated.
67755         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
67756         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
67757         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
67758         * tests/unictype/test-pr_other_math.c: Regenerated.
67759         * tests/unictype/test-pr_punctuation.c: Regenerated.
67760         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
67761         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
67762         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
67763         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
67764         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
67765         * tests/unictype/test-pr_uppercase.c: Regenerated.
67766         * tests/unictype/test-pr_xid_continue.c: Regenerated.
67767         * tests/unictype/test-pr_xid_start.c: Regenerated.
67768         * tests/unictype/test-pr_zero_width.c: Regenerated.
67770         Update to Unicode 5.1.0.
67771         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
67772         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
67773         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
67774         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
67775         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
67776         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
67777         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
67778         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
67779         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
67780         (nonspacing_table_ind): Update.
67781         * tests/uniwidth/test-uc_width2.sh: Update expected result.
67783         Update to Unicode 5.1.0.
67784         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
67785         code transform.
67786         * lib/uniname/uniname.c (unicode_character_name,
67787         unicode_name_character): Add the range 0x1Fxxx to the code transform.
67788         * lib/uniname/uninames.h: Regenerated.
67789         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
67791 2009-02-07  Bruno Haible  <bruno@clisp.org>
67793         Merge gen-ctype and gen-lbrk into a single program.
67794         * lib/gen-uni-tables.c: New file, incorporating
67795         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
67796         Add directory prefixes to the names of the generated files.
67797         * lib/unictype/gen-ctype.c: Remove file.
67798         * lib/unilbrk/gen-lbrk.c: Remove file.
67799         * modules/gen-uni-tables: New file.
67800         * modules/unictype/gen-ctype: Remove file.
67801         * modules/unilbrk/gen-lbrk: Remove file.
67803 2009-02-07  Bruno Haible  <bruno@clisp.org>
67805         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
67807         New module 'unistr/u32-strcoll'.
67808         * modules/unistr/u32-strcoll: New file.
67809         * lib/unistr/u32-strcoll.c: New file.
67811         New module 'unistr/u16-strcoll'.
67812         * modules/unistr/u16-strcoll: New file.
67813         * lib/unistr/u16-strcoll.c: New file.
67815         New module 'unistr/u8-strcoll'.
67816         * modules/unistr/u8-strcoll: New file.
67817         * lib/unistr/u8-strcoll.c: New file.
67818         * lib/unistr/u-strcoll.h: New file.
67820 2009-02-07  Bruno Haible  <bruno@clisp.org>
67822         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
67823         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
67824         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
67825         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
67826         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
67827         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
67829 2009-02-07  Bruno Haible  <bruno@clisp.org>
67831         Make 64-bit clean.
67832         * lib/unictype/gen-ctype.c (output_predicate, output_category,
67833         output_combclass, output_bidi_category, output_decimal_digit,
67834         output_digit, output_numeric, output_mirror, output_scripts,
67835         output_ident_category): Use proper width specifier in format strings.
67837 2009-02-07  Bruno Haible  <bruno@clisp.org>
67839         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
67840         failure behaviour.
67842 2009-02-07  Jim Meyering  <meyering@redhat.com>
67844         regex: avoid compilation failure with upcoming gcc-4.4
67845         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
67846         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
67847         "... error: integer overflow in preprocessor expression".
67849 2009-02-05  Ben Pfaff  <blp@gnu.org>
67851         Fix link errors on Windows when close module is used.
67852         * modules/close: Add $(LIB_CLOSE) to Link section.
67853         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
67854         $(LIB_CLOSE) on Windows.
67856 2009-02-05  Jim Meyering  <meyering@redhat.com>
67858         still avoid unused-parameter warnings, but do it cleanly
67859         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
67860         (get_fs_usage): Cast to void instead.
67861         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
67862         (dev_from_mount_options, read_file_system_list): Cast to void.
67863         Prompted by Bruno Haible.
67865 2009-02-04  Jim Meyering  <meyering@redhat.com>
67867         fsusage.c: correct copyright year
67868         * lib/fsusage.c: Reflect year in which the change is pushed into
67870         avoid misc. warnings
67871         * lib/fsusage.c (UNUSED_PARAM): Define.
67872         (get_fs_usage): Mark parameter "disk" as unused.
67873         * lib/getugroups.c (getgrent): Use "void" in prototype.
67874         * lib/mountlist.c: Mark unused parameters.
67875         (read_file_system_list): Declare a local with "const".
67876         * lib/nanosleep.c (getnow): Declare static.
67877         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
67879         dirfd: set errno upon failure
67880         * lib/dirfd.c: Include <errno.h>.
67881         Set errno to ENOTSUP when returning -1.
67882         * modules/dirfd (Depends-on): Add errno.
67883         Suggested by John Kodis <kodis@comcast.net>.
67885 2009-02-01  Bruno Haible  <bruno@clisp.org>
67887         Don't assume sizeof (long) >= sizeof (void *).
67888         * lib/memcmp.c: Include stdint.h.
67889         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
67890         srcp2 to 'const byte *'.
67891         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
67892         types to uintptr_t.
67893         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
67894         * modules/memcmp (Depends-on): Add stdint.
67895         Reported by Ozkan Sezer <sezeroz@gmail.com>.
67897 2009-01-30  Eric Blake  <ebb9@byu.net>
67899         fix more require-before-expand issues
67900         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
67901         expand, AC_PROG_AWK.
67902         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
67904 2009-01-28  Eric Blake  <ebb9@byu.net>
67906         version-etc: use consistent URL formatting
67907         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
67908         Improve formatting.  Use fputs for string without %.
67910 2009-01-28  Jim Meyering  <meyering@redhat.com>
67912         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
67913         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
67914         "underquoted definition of NAME" from autoconf-2.59.
67916 2009-01-28  Bruno Haible  <bruno@clisp.org>
67918         * doc/gnulib.texi: Add "Obsolete modules" to index.
67920 2009-01-28  Jim Meyering  <meyering@redhat.com>
67922         useless-if-before-free: recognize more variants
67923         * build-aux/useless-if-before-free: Also recognize e.g.,
67924         if (NULL != p) free (p);
67926 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
67928         test-getaddrinfo: skip (don't fail) this test when there's no network
67929         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
67930         on the presumption that it means you lack network access.
67932 2009-01-26  Jim Meyering  <meyering@redhat.com>
67934         fflush: avoid warnings on modern systems
67935         * lib/fflush.c (rpl_fflush): Move declarations of locals,
67936         pos and result, into scopes where they're used.
67938 2009-01-26  Eric Blake  <ebb9@byu.net>
67940         Silence warning reintroduced by recent extensions patch.
67941         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
67942         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
67943         autoconf.
67945         Backport improved autoconf semantics of AC_DEFUN_ONCE.
67946         * m4/00gnulib.m4: New file.
67947         * gnulib-tool (func_get_filelist): Always use it.
67948         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
67949         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
67951 2009-01-25  Bruno Haible  <bruno@clisp.org>
67953         Make test-quotearg work on MacOS X and AIX.
67954         * tests/test-quotearg.sh: New file.
67955         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
67956         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
67957         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
67958         include <libintl.h>.
67959         (fake_locale): Remove variable.
67960         (gettext, dgettext, dcgettext): Remove functions.
67961         (main): Instead of setting a fake locale, set a real locale. Call
67962         textdomain and bindtextdomain.
67963         * modules/quotearg-tests (Files): Add the new files.
67964         (Depends-on): Add gettext, setenv, unsetenv.
67965         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67966         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
67967         Augment TESTS_ENVIRONMENT.
67969 2009-01-25  Bruno Haible  <bruno@clisp.org>
67971         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
67972         fr_FR.ISO8859-1 locale on MacOS X.
67973         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
67974         ja_JP.eucJP locale on MacOS X.
67975         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
67976         zh_CN.GB18030 locale on MacOS X.
67978 2009-01-25  Bruno Haible  <bruno@clisp.org>
67980         Avoid link errors on MacOS X 10.3.
67981         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
67982         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
67984 2009-01-25  Bruno Haible  <bruno@clisp.org>
67986         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
67987         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
67988         * modules/pipe (Files): Remove m4/posix_spawn.m4.
67989         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
67990         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
67991         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
67992         posix_spawnattr_init, posix_spawnattr_setsigmask,
67993         posix_spawnattr_setflags, posix_spawnattr_destroy.
67995         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
67996         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
67997         * modules/execute (Files): Remove m4/posix_spawn.m4.
67998         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
67999         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
68000         posix_spawnattr_init, posix_spawnattr_setsigmask,
68001         posix_spawnattr_setflags, posix_spawnattr_destroy.
68003 2009-01-25  Bruno Haible  <bruno@clisp.org>
68005         * lib/glthread/threadlib.c: Include <stdlib.h>.
68007 2009-01-25  Bruno Haible  <bruno@clisp.org>
68009         * lib/glthread/threadlib.c (dummy): New declaration.
68011 2009-01-25  Bruno Haible  <bruno@clisp.org>
68013         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
68014         multibyte characters also for the GB18030 encoding. Don't crash when
68015         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
68017 2009-01-25  Bruno Haible  <bruno@clisp.org>
68019         Avoid redefining 'struct random_data' on OSF/1 5.1.
68020         * lib/stdlib.in.h: Include <random.h> if it exists.
68021         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
68022         HAVE_RANDOM_H. Include <random.h> when testing whether
68023         'struct random_data' exists.
68024         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
68026 2009-01-25  Bruno Haible  <bruno@clisp.org>
68028         Don't install charset.alias on MacOS X >= 10.3.
68029         * lib/localcharset.c (DARWIN7): New macro.
68030         (get_charset_aliases): Hardcode the result for Darwin7.
68031         * modules/localcharset (install-exec-local): Don't install
68032         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
68034 2009-01-25  Bruno Haible  <bruno@clisp.org>
68036         Don't install charset.alias on mingw and Cygwin.
68037         * modules/localcharset (install-exec-local): Don't install
68038         charset.alias on mingw and Cygwin, if the file does not yet exist.
68039         The result for these platforms is hardcoded in localcharset.c.
68041 2009-01-25  Bruno Haible  <bruno@clisp.org>
68043         Make it possible again to use AC_GNU_SOURCE together with gnulib.
68044         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
68045         before requiring AC_USE_SYSTEM_EXTENSIONS.
68047 2009-01-25  Jim Meyering  <meyering@redhat.com>
68049         c-strtod: avoid warnings
68050         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
68051         "assignment discards qualifiers from pointer target type" warnings.
68053 2009-01-24  Bruno Haible  <bruno@clisp.org>
68055         Add support for non-UTF-8 locales on MacOS X.
68056         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
68057         canonical encodings. For Darwin 7 and newer, don't map traditional
68058         encodings to UTF-8.
68059         Reported by Vincent Lefevre <vincent@vinc17.org>
68060         at <http://savannah.gnu.org/bugs/?25235>.
68062 2009-01-24  Bruno Haible  <bruno@clisp.org>
68064         * doc/gnulib.texi (Obsolete modules): New section.
68065         Reported by Mike Frysinger <vapier@gentoo.org>.
68067 2009-01-24  Bruno Haible  <bruno@clisp.org>
68069         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
68070         (%.dvi): New rule.
68072 2009-01-24  Bruno Haible  <bruno@clisp.org>
68074         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
68075         Reported by Eric Blake.
68077 2009-01-24  Bruno Haible  <bruno@clisp.org>
68079         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
68080         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
68081         Reported by Gary V. Vaughan <gary@gnu.org>.
68083 2009-01-24  Bruno Haible  <bruno@clisp.org>
68085         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
68087 2009-01-23  Bruno Haible  <bruno@clisp.org>
68089         Make c-strtod, c-strtold usable in libraries.
68090         * lib/c-strtod.c: Include string.h instead of xalloc.h.
68091         (C_STRTOD): Call strdup instead of xstrdup.
68092         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
68093         * modules/c-strtold (Depends-on): Likewise.
68094         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
68095         * NEWS: Mention the change.
68096         Reported by Michael Gold <mgold@ncf.ca>.
68098 2009-01-23  Jim Meyering  <meyering@redhat.com>
68100         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
68101         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
68102         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
68104 2009-01-23  Simon Josefsson  <simon@josefsson.org>
68106         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
68107         GNU CoreUtils.
68108         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
68109         * modules/version-etc (Description): Update.
68111 2009-01-22  Bruno Haible  <bruno@clisp.org>
68113         Cache the C locale object.
68114         * lib/c-strtod.c (c_locale_cache): New variable.
68115         (c_locale): New function.
68116         (C_STRTOD): Use it, and don't call freelocale.
68117         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
68118         Suggested by Paolo Bonzini.
68120 2009-01-21  Bruno Haible  <bruno@clisp.org>
68122         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
68123         conditions other than overflow.
68125 2009-01-21  Bruno Haible  <bruno@clisp.org>
68127         * lib/c-strtod.c: Include errno.h.
68128         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
68129         value from STRTOD_L and STRTOD.
68131 2009-01-21  Bruno Haible  <bruno@clisp.org>
68132         and Jim Meyering  <meyering@redhat.com>
68134         nanosleep: skip configure test (fail it) for apple universal builds
68135         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
68136         universal builds, assume that nanosleep does not work.
68137         * modules/nanosleep (Depends-on): Add multiarch.
68139         mktime: skip configure test (fail it) for apple universal builds
68140         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
68141         universal builds, assume that mktime does not work.
68142         * modules/mktime (Depends-on): Add multiarch.
68144 2009-01-21  Eric Blake  <ebb9@byu.net>
68146         multiarch: avoid expand-before-require warning
68147         * modules/multiarch (configure.ac): Require, rather than expand,
68148         gl_MULTIARCH.
68149         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
68150         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
68151         enforce that all clients require it.  Partial reversion of
68152         2008-12-29 patch.
68154         error: avoid expand-before-require warning
68155         * modules/errno (configure.ac): Require, rather than expand,
68156         gl_HEADER_ERRNO_H.
68157         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
68158         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
68159         enforce that all clients require it.
68161         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
68162         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
68163         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
68164         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
68166 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
68168         Revert:
68169         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
68171         regex: do not depend on obsolete modules.
68172         * modules/regex: Remove memcmp and memmove.
68174 2009-01-20  Bruno Haible  <bruno@clisp.org>
68176         Make the 'link' module link on Windows NT 4.
68177         * lib/link.c (_WIN32_WINNT): Don't define.
68178         (CreateHardLinkFuncType): New type.
68179         (CreateHardLinkFunc, initialized): New variables.
68180         (initialize): New function.
68181         (link): Invoke CreateHardLink indirectly through the function pointer.
68183 2009-01-20  Bruno Haible  <bruno@clisp.org>
68185         Fix compilation failure on mingw.
68186         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
68188 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
68190         * doc/c-strtod.texi: Mention a couple of restrictions.
68192 2009-01-20  Jim Meyering  <meyering@redhat.com>
68194         gettimeofday: move more declarations out of functions
68195         * lib/gettimeofday.c: Move extern declarations of tzset and
68196         gmtime out of containing functions.  Prompted by Bruno Haible.
68198 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
68200         regex: do not depend on obsolete modules.
68201         * modules/regex: Remove memcmp and memmove.
68203 2009-01-19  Bruno Haible  <bruno@clisp.org>
68205         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
68206         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
68207         gl_BIGENDIAN, not AC_C_BIGENDIAN.
68208         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
68209         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
68211 2009-01-19  Bruno Haible  <bruno@clisp.org>
68213         * tests/test-link.c: Include <errno.h>.
68214         (main): Exit with code 77 when a hard link cannot be created due to
68215         the file system.
68216         * tests/test-link.sh: Skip test when a hard link cannot be created due
68217         to the file system.
68218         Suggested by Eric Blake.
68220 2009-01-19  Martin Lambers  <marlam@marlam.de>
68222         * modules/link-tests: New file.
68223         * tests/test-link.sh: New file.
68224         * tests/test-link.c: New file.
68226 2009-01-19  Eric Blake  <ebb9@byu.net>
68228         doc: mention another function added in cygwin 1.7.0
68229         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
68230         Another new function in cygwin 1.7.
68232 2009-01-19  Bruno Haible  <bruno@clisp.org>
68234         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
68235         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
68236         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
68237         gl_BIGENDIAN, not AC_C_BIGENDIAN.
68238         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
68239         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
68240         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
68241         * m4/md4.m4 (gl_MD4): Likewise.
68242         * m4/md5.m4 (gl_MD5): Likewise.
68243         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
68244         * m4/sha1.m4 (gl_SHA1): Likewise.
68245         * m4/sha256.m4 (gl_SHA256): Likewise.
68246         * m4/sha512.m4 (gl_SHA512): Likewise.
68248 2009-01-19  Bruno Haible  <bruno@clisp.org>
68250         * modules/uniname/uniname-tests (Depends-on): Add progname.
68251         * tests/uniname/test-uninames.c: Include progname.h.
68252         (main): Call set_program_name.
68254         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
68255         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
68256         (main): Call set_program_name.
68258         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
68259         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
68260         (main): Call set_program_name.
68262         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
68263         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
68264         (main): Call set_program_name.
68266         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
68267         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
68268         (main): Call set_program_name.
68270         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
68271         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
68272         (main): Call set_program_name.
68274         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
68275         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
68276         (main): Call set_program_name.
68278         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
68279         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
68280         (main): Call set_program_name.
68282         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
68283         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
68284         (main): Call set_program_name.
68286 2009-01-19  Eric Blake  <ebb9@byu.net>
68288         test-unistd: test previous patch
68289         * tests/test-unistd.c: Test *_FILENO macros.
68291         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
68292         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68293         Guarantee a definition.
68294         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
68295         * modules/unistd-safer (Depends-on): Add dependency on unistd.
68296         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
68297         * lib/dup-safer.c (STDERR_FILENO): Likewise.
68298         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68299         Likewise.
68300         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
68301         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
68302         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68303         Likewise.
68304         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
68305         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
68306         (STDERR_FILENO): Likewise.
68307         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
68308         (STDERR_FILENO): Likewise.
68309         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
68310         (STDERR_FILENO): Likewise.
68311         Reported by Elbert Pol.
68313 2009-01-19  Eric Blake  <ebb9@byu.net>
68315         doc: mention more functions added in cygwin 1.7.0
68316         * doc/posix-functions/abort.texi (abort): Update wording related
68317         to cygwin.
68318         * doc/posix-functions/daylight.texi (daylight): Likewise.
68319         * doc/posix-functions/optarg.texi (optarg): Likewise.
68320         * doc/posix-functions/optarg.texi (opterr): Likewise.
68321         * doc/posix-functions/optarg.texi (optind): Likewise.
68322         * doc/posix-functions/optarg.texi (optopt): Likewise.
68323         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
68324         worked in 1.5.x, and was withdrawn in 1.7.
68325         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
68326         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
68327         cygwin versions.
68328         * doc/posix-functions/perror.texi (perror): Likewise.
68329         * doc/posix-functions/printf.texi (printf): Likewise.
68330         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
68331         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
68332         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
68333         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
68334         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
68335         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
68336         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
68337         Likewise.
68338         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
68339         Likewise.
68340         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
68341         this function.
68342         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
68343         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
68344         Likewise.
68345         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
68346         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
68347         * doc/posix-functions/confstr.texi (confstr): Likewise.
68348         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
68349         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
68350         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
68351         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
68352         * doc/posix-functions/fputws.texi (fputws): Likewise.
68353         * doc/posix-functions/fwide.texi (fwide): Likewise.
68354         * doc/posix-functions/getwc.texi (getwc): Likewise.
68355         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
68356         * doc/posix-functions/putwc.texi (putwc): Likewise.
68357         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
68358         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
68359         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
68360         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
68361         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
68362         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
68363         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
68364         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
68365         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
68366         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
68367         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
68369 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
68371         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
68372         * lib/ioctl.c: Include <sys/ioctl.h>.
68374 2009-01-19  Simon Josefsson  <simon@josefsson.org>
68376         * modules/getdate-tests (Depends-on): Add progname.
68377         * tests/test-getdate.c: Use progname module, to avoid link errors
68378         on non-glibc systems.
68380 2009-01-18  Simon Josefsson  <simon@josefsson.org>
68382         * modules/filenamecat-tests (Depends-on): Add progname.
68383         * modules/fstrcmp-tests (Depends-on): Likewise.
68385         * tests/test-filenamecat.c: Use progname module, to avoid link
68386         errors on non-glibc systems.
68387         * tests/test-fstrcmp.c: Likewise.
68389 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
68391         gettimeofday: avoid warning: nested extern declaration of 'localtime'
68392         * lib/gettimeofday.c: Move extern declaration out of function.
68394 2009-01-18  Bruno Haible  <bruno@clisp.org>
68396         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
68397         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
68398         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
68400 2009-01-18  Bruno Haible  <bruno@clisp.org>
68402         * lib/strftime.c (MEMPCPY): Remove unused macro.
68403         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
68405 2009-01-18  Martin Lambers  <marlam@marlam.de>
68407         New module 'link'.
68408         * lib/unistd.in.h (link): New declaration.
68409         * lib/link.c: New file.
68410         * m4/link.m4: New file.
68411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
68412         HAVE_LINK.
68413         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
68414         * modules/link: New file.
68415         * doc/posix-functions/link.texi: Mention the new module.
68417 2009-01-18  Bruno Haible  <bruno@clisp.org>
68419         * tests/test-avltree_list.c (main): Call set_program_name.
68420         * tests/test-avltree_oset.c (main): Likewise.
68421         * tests/test-obstack-printf.c: Include progname.h.
68422         (main): Call set_program_name.
68423         * tests/test-quotearg.c: Include progname.h.
68424         (main): Call set_program_name.
68425         * tests/test-xmemdup0.c: Include progname.h.
68426         (main): Call set_program_name.
68428 2009-01-18  Bruno Haible  <bruno@clisp.org>
68430         New module 'alphasort'.
68431         * lib/dirent.in.h (alphasort): New declaration.
68432         * lib/alphasort.c: New file, from glibc with modifications.
68433         * m4/alphasort.m4: New file.
68434         * modules/alphasort: New file.
68435         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
68436         HAVE_ALPHASORT.
68437         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
68438         HAVE_ALPHASORT.
68439         * doc/posix-functions/alphasort.texi: Mention the new module and the
68440         portability problems.
68442 2009-01-18  Bruno Haible  <bruno@clisp.org>
68444         New module 'scandir'.
68445         * lib/dirent.in.h (scandir): New declaration.
68446         * lib/scandir.c: New file, from glibc with modifications.
68447         * m4/scandir.m4: New file.
68448         * modules/scandir: New file.
68449         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
68450         HAVE_SCANDIR.
68451         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
68452         HAVE_SCANDIR.
68453         * doc/posix-functions/scandir.texi: Mention the new module and the
68454         portability problems.
68456 2009-01-17  Bruno Haible  <bruno@clisp.org>
68458         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
68459         Update documentation.
68460         (func_remove_suffix): Escape all dots in the suffix. Update
68461         documentation.
68462         (func_filter_filelist): Update documentation.
68463         Reported by Ralf Wildenhues.
68465 2009-01-17  Bruno Haible  <bruno@clisp.org>
68467         * modules/dprintf-posix-tests: New file.
68468         * tests/test-dprintf-posix.sh: New file.
68469         * tests/test-dprintf-posix.c: New file.
68471         New modules 'dprintf', 'dprintf-posix'.
68472         * lib/stdio.in.h (dprintf): New declaration.
68473         * lib/dprintf.c: New file.
68474         * m4/dprintf.m4: New file.
68475         * m4/dprintf-posix.m4: New file.
68476         * modules/dprintf: New file.
68477         * modules/dprintf-posix: New file.
68478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
68479         HAVE_DPRINTF, REPLACE_DPRINTF.
68480         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
68481         HAVE_DPRINTF, REPLACE_DPRINTF.
68482         * doc/posix-functions/dprintf.texi: Mention the new modules.
68484 2009-01-17  Bruno Haible  <bruno@clisp.org>
68486         * modules/vdprintf-posix-tests: New file.
68487         * tests/test-vdprintf-posix.sh: New file.
68488         * tests/test-vdprintf-posix.c: New file.
68490         New modules 'vdprintf', 'vdprintf-posix'.
68491         * lib/stdio.in.h (vdprintf): New declaration.
68492         * lib/vdprintf.c: New file.
68493         * m4/vdprintf.m4: New file.
68494         * m4/vdprintf-posix.m4: New file.
68495         * modules/vdprintf: New file.
68496         * modules/vdprintf-posix: New file.
68497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
68498         HAVE_VDPRINTF, REPLACE_VDPRINTF.
68499         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
68500         HAVE_VDPRINTF, REPLACE_VDPRINTF.
68501         * doc/posix-functions/vdprintf.texi: Mention the new modules.
68503 2009-01-17  Bruno Haible  <bruno@clisp.org>
68505         Fix replacement of fopen on mingw.
68506         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
68507         mingw.
68509 2009-01-17  Bruno Haible  <bruno@clisp.org>
68511         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
68512         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
68514 2009-01-17  Bruno Haible  <bruno@clisp.org>
68516         Avoid test-fflush2.sh failure on mingw.
68517         * tests/test-fflush2.c: Include binary-io.h.
68518         (main): Put standard input into binary mode.
68519         * modules/fflush-tests (Depends-on): Add binary-io.
68521 2009-01-17  Bruno Haible  <bruno@clisp.org>
68523         * lib/wchar.in.h: In another particular situation, include only the
68524         system's <wchar.h> file.
68525         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
68526         Reported by Albert Chin-A-Young <china@thewrittenword.com>
68527         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
68529 2009-01-17  Bruno Haible  <bruno@clisp.org>
68531         Support for stripping executables in --enable-relocatable.
68532         * build-aux/install-reloc: Expect one more argument, or an environment
68533         variable RELOC_STRIP_PROG. If set, strip the destination program and
68534         its wrapper.
68535         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
68536         RELOC_STRIP_PROG.
68537         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
68538         to set RELOCATABLE_STRIP.
68539         * NEWS: Mention the new Makefile requirement.
68541 2009-01-17  Bruno Haible  <bruno@clisp.org>
68543         * build-aux/install-reloc: Remove debugging information left over by
68544         C compiler on MacOS X.
68546 2009-01-17  Bruno Haible  <bruno@clisp.org>
68548         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
68549         * lib/progreloc.c (find_executable): Fix type of pointer passed to
68550         _NSGetExecutablePath.
68552 2009-01-16  Jim Meyering  <meyering@redhat.com>
68554         strerror: avoid warnings about discarding "const"
68555         * lib/strerror.c (rpl_strerror): Instead of returning a const
68556         string from each and every "case", use a variable, and add a single
68557         cast after the switch.
68559 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
68561         * lib/arpa_inet.in.h: Add extern "C" block for C++.
68563 2009-01-16  Bruno Haible  <bruno@clisp.org>
68565         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
68566         array initializer syntax that also works in C++ mode.
68567         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68569 2009-01-16  Jim Meyering  <meyering@redhat.com>
68571         poll: suppress a warning
68572         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
68573         to ignore "...unsigned expression < 0 is always false" warnings.
68575 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
68577         poll: remove declarations of unused variables
68578         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
68579         sockbuf and optlen.
68581 2009-01-15  Bruno Haible  <bruno@clisp.org>
68583         Make fflush-after-ungetc POSIX compliant on BSD systems.
68584         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
68585         (clear_ungetc_buffer): Implement also for other systems.
68586         (rpl_fflush): On glibc systems, invoke
68587         clear_ungetc_buffer_preserving_position. Otherwise, invoke
68588         clear_ungetc_buffer after fetching the stream's position, not before.
68590 2009-01-15  Bruno Haible  <bruno@clisp.org>
68592         Make fflush-after-ungetc POSIX compliant on glibc systems.
68593         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
68594         after ungetc.
68595         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
68596         (rpl_fflush): On glibc systems, simply call the system's fflush
68597         function after clearing the ungetc buffer.
68598         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
68599         Instead, lseek only to the end of file, then use the system's fseeko
68600         for the rest. On glibc systems, reset the EOF indicator bit.
68602 2009-01-15  Jim Meyering  <meyering@redhat.com>
68604         openmp.m4: revert quote-adding change, for portability to older autoconf
68605         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
68606         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
68607         Simon Josefsson noticed the problem when using autoconf-2.61.
68609 2009-01-15  Bruno Haible  <bruno@clisp.org>
68611         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
68612         * tests/test-fflush2.c (ASSERT): Always fail.
68613         (main): Add two tests for fflush() after ungetc(), taking into account
68614         the Austin Group's clarification.
68615         Suggested by Eric Blake.
68617 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
68619         mktime.m4: remove K&R-style function prototypes
68620         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
68621         for the Sun C++ compiler.
68623 2009-01-14  Bruno Haible  <bruno@clisp.org>
68625         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
68626         while including <wchar.h>.
68627         * lib/wchar.in.h: In two particular situations on HP-UX, include only
68628         the system's <wchar.h> file.
68629         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68631 2009-01-14  Bruno Haible  <bruno@clisp.org>
68633         * m4/csharp.m4: Don't mention gettext on the serial number line.
68634         * m4/csharpexec.m4: Likewise.
68635         * m4/eaccess.m4: Likewise.
68636         * m4/javaexec.m4: Likewise.
68637         * m4/sig_atomic_t.m4: Likewise.
68638         * m4/tmpdir.m4: Likewise.
68639         * m4/intldir.m4: Bump gettext version.
68640         * m4/lib-ld.m4: Likewise.
68642 2009-01-14  Bruno Haible  <bruno@clisp.org>
68644         * lib/progname.c (set_program_name): Add more comments.
68645         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
68647 2009-01-14  Simon Josefsson  <simon@josefsson.org>
68649         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
68650         were sys/stat.h does not define it.
68652 2009-01-14  Jim Meyering  <meyering@redhat.com>
68654         many *.m4 files: improve m4 quoting
68655         99% of this change was performed by running the following commands:
68656         git ls-files | grep '\.m4$' | xargs perl -pi \
68657           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
68658           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
68659           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
68660           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
68661         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
68662         The remainder were to add Copyright dates, increment serial numbers,
68663         undo some changes in comments, exclude m4/intl.m4, and add quotes
68664         around the "1" in ",1" where the unusual spacing prohibited the
68665         above regexps from doing the job.  For more details, see
68666         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
68667         * m4/acl.m4: Modified.
68668         * m4/afs.m4: Likewise.
68669         * m4/alloca.m4: Likewise.
68670         * m4/argp.m4: Likewise.
68671         * m4/argz.m4: Likewise.
68672         * m4/atexit.m4: Likewise.
68673         * m4/bison-i18n.m4: Likewise.
68674         * m4/bison.m4: Likewise.
68675         * m4/byteswap.m4: Likewise.
68676         * m4/c-stack.m4: Likewise.
68677         * m4/c-strtod.m4: Likewise.
68678         * m4/calloc.m4: Likewise.
68679         * m4/canonicalize-lgpl.m4: Likewise.
68680         * m4/chown.m4: Likewise.
68681         * m4/clock_time.m4: Likewise.
68682         * m4/codeset.m4: Likewise.
68683         * m4/copy-file.m4: Likewise.
68684         * m4/csharp.m4: Likewise.
68685         * m4/csharpcomp.m4: Likewise.
68686         * m4/csharpexec.m4: Likewise.
68687         * m4/d-ino.m4: Likewise.
68688         * m4/d-type.m4: Likewise.
68689         * m4/dirfd.m4: Likewise.
68690         * m4/double-slash-root.m4: Likewise.
68691         * m4/eaccess.m4: Likewise.
68692         * m4/eealloc.m4: Likewise.
68693         * m4/environ.m4: Likewise.
68694         * m4/errno_h.m4: Likewise.
68695         * m4/euidaccess.m4: Likewise.
68696         * m4/execute.m4: Likewise.
68697         * m4/fatal-signal.m4: Likewise.
68698         * m4/fchdir.m4: Likewise.
68699         * m4/fcntl_h.m4: Likewise.
68700         * m4/fileblocks.m4: Likewise.
68701         * m4/filenamecat.m4: Likewise.
68702         * m4/findprog.m4: Likewise.
68703         * m4/flexmember.m4: Likewise.
68704         * m4/fnmatch.m4: Likewise.
68705         * m4/fopen.m4: Likewise.
68706         * m4/fpending.m4: Likewise.
68707         * m4/fprintf-posix.m4: Likewise.
68708         * m4/free.m4: Likewise.
68709         * m4/frexp.m4: Likewise.
68710         * m4/frexpl.m4: Likewise.
68711         * m4/fsusage.m4: Likewise.
68712         * m4/ftruncate.m4: Likewise.
68713         * m4/gc-camellia.m4: Likewise.
68714         * m4/gc-random.m4: Likewise.
68715         * m4/gc.m4: Likewise.
68716         * m4/getaddrinfo.m4: Likewise.
68717         * m4/getcwd-abort-bug.m4: Likewise.
68718         * m4/getcwd-path-max.m4: Likewise.
68719         * m4/getdate.m4: Likewise.
68720         * m4/getdomainname.m4: Likewise.
68721         * m4/getgroups.m4: Likewise.
68722         * m4/gethostname.m4: Likewise.
68723         * m4/gethrxtime.m4: Likewise.
68724         * m4/getline.m4: Likewise.
68725         * m4/getloadavg.m4: Likewise.
68726         * m4/getndelim2.m4: Likewise.
68727         * m4/getpass.m4: Likewise.
68728         * m4/gettext.m4: Likewise.
68729         * m4/gettime.m4: Likewise.
68730         * m4/gettimeofday.m4: Likewise.
68731         * m4/gnulib-common.m4: Likewise.
68732         * m4/group-member.m4: Likewise.
68733         * m4/host-os.m4: Likewise.
68734         * m4/iconv.m4: Likewise.
68735         * m4/iconv_open.m4: Likewise.
68736         * m4/inet_ntop.m4: Likewise.
68737         * m4/inet_pton.m4: Likewise.
68738         * m4/inline.m4: Likewise.
68739         * m4/intldir.m4: Likewise.
68740         * m4/intlmacosx.m4: Likewise.
68741         * m4/intmax.m4: Likewise.
68742         * m4/intmax_t.m4: Likewise.
68743         * m4/inttypes.m4: Likewise.
68744         * m4/inttypes_h.m4: Likewise.
68745         * m4/inttypes-pri.m4: Likewise.
68746         * m4/isapipe.m4: Likewise.
68747         * m4/isnand.m4: Likewise.
68748         * m4/isnanf.m4: Likewise.
68749         * m4/isnanl.m4: Likewise.
68750         * m4/javacomp.m4: Likewise.
68751         * m4/javaexec.m4: Likewise.
68752         * m4/jm-winsz1.m4: Likewise.
68753         * m4/jm-winsz2.m4: Likewise.
68754         * m4/lchown.m4: Likewise.
68755         * m4/lcmessage.m4: Likewise.
68756         * m4/ldexpl.m4: Likewise.
68757         * m4/lib-ld.m4: Likewise.
68758         * m4/lib-link.m4: Likewise.
68759         * m4/libsigsegv.m4: Likewise.
68760         * m4/link-follow.m4: Likewise.
68761         * m4/localcharset.m4: Likewise.
68762         * m4/locale-fr.m4: Likewise.
68763         * m4/locale-ja.m4: Likewise.
68764         * m4/locale-tr.m4: Likewise.
68765         * m4/locale-zh.m4: Likewise.
68766         * m4/lock.m4: Likewise.
68767         * m4/longlong.m4: Likewise.
68768         * m4/ls-mntd-fs.m4: Likewise.
68769         * m4/lstat.m4: Likewise.
68770         * m4/malloc.m4: Likewise.
68771         * m4/mathl.m4: Likewise.
68772         * m4/mbrtowc.m4: Likewise.
68773         * m4/mbstate_t.m4: Likewise.
68774         * m4/mbswidth.m4: Likewise.
68775         * m4/memchr.m4: Likewise.
68776         * m4/memcmp.m4: Likewise.
68777         * m4/memcpy.m4: Likewise.
68778         * m4/memmem.m4: Likewise.
68779         * m4/memmove.m4: Likewise.
68780         * m4/mempcpy.m4: Likewise.
68781         * m4/memrchr.m4: Likewise.
68782         * m4/memset.m4: Likewise.
68783         * m4/minmax.m4: Likewise.
68784         * m4/mkdir-slash.m4: Likewise.
68785         * m4/mkdtemp.m4: Likewise.
68786         * m4/mktime.m4: Likewise.
68787         * m4/mmap-anon.m4: Likewise.
68788         * m4/mountlist.m4: Likewise.
68789         * m4/nanosleep.m4: Likewise.
68790         * m4/nls.m4: Likewise.
68791         * m4/nocrash.m4: Likewise.
68792         * m4/open.m4: Likewise.
68793         * m4/openat.m4: Likewise.
68794         * m4/openmp.m4: Likewise.
68795         * m4/pathmax.m4: Likewise.
68796         * m4/perl.m4: Likewise.
68797         * m4/physmem.m4: Likewise.
68798         * m4/pipe.m4: Likewise.
68799         * m4/po.m4: Likewise.
68800         * m4/poll.m4: Likewise.
68801         * m4/posixtm.m4: Likewise.
68802         * m4/posixver.m4: Likewise.
68803         * m4/printf-frexp.m4: Likewise.
68804         * m4/printf-frexpl.m4: Likewise.
68805         * m4/printf-posix.m4: Likewise.
68806         * m4/printf-posix-rpl.m4: Likewise.
68807         * m4/printf.m4: Likewise.
68808         * m4/progtest.m4: Likewise.
68809         * m4/putenv.m4: Likewise.
68810         * m4/readline.m4: Likewise.
68811         * m4/readlink.m4: Likewise.
68812         * m4/readutmp.m4: Likewise.
68813         * m4/realloc.m4: Likewise.
68814         * m4/regex.m4: Likewise.
68815         * m4/relocatable.m4: Likewise.
68816         * m4/relocatable-lib.m4: Likewise.
68817         * m4/rename-dest-slash.m4: Likewise.
68818         * m4/rename.m4: Likewise.
68819         * m4/rmdir-errno.m4: Likewise.
68820         * m4/rmdir.m4: Likewise.
68821         * m4/roundf.m4: Likewise.
68822         * m4/roundl.m4: Likewise.
68823         * m4/rpmatch.m4: Likewise.
68824         * m4/save-cwd.m4: Likewise.
68825         * m4/selinux-selinux-h.m4: Likewise.
68826         * m4/setenv.m4: Likewise.
68827         * m4/settime.m4: Likewise.
68828         * m4/sig2str.m4: Likewise.
68829         * m4/sig_atomic_t.m4: Likewise.
68830         * m4/signalblocking.m4: Likewise.
68831         * m4/signbit.m4: Likewise.
68832         * m4/sigpipe.m4: Likewise.
68833         * m4/sockets.m4: Likewise.
68834         * m4/sockpfaf.m4: Likewise.
68835         * m4/st_dm_mode.m4: Likewise.
68836         * m4/stat-time.m4: Likewise.
68837         * m4/stdbool.m4: Likewise.
68838         * m4/stdint.m4: Likewise.
68839         * m4/stdint_h.m4: Likewise.
68840         * m4/stpcpy.m4: Likewise.
68841         * m4/stpncpy.m4: Likewise.
68842         * m4/strcase.m4: Likewise.
68843         * m4/strchrnul.m4: Likewise.
68844         * m4/strcspn.m4: Likewise.
68845         * m4/strdup.m4: Likewise.
68846         * m4/strftime.m4: Likewise.
68847         * m4/strndup.m4: Likewise.
68848         * m4/strnlen.m4: Likewise.
68849         * m4/strpbrk.m4: Likewise.
68850         * m4/strptime.m4: Likewise.
68851         * m4/strsep.m4: Likewise.
68852         * m4/strtod.m4: Likewise.
68853         * m4/strtoimax.m4: Likewise.
68854         * m4/strtok_r.m4: Likewise.
68855         * m4/strtol.m4: Likewise.
68856         * m4/strtoll.m4: Likewise.
68857         * m4/strtoul.m4: Likewise.
68858         * m4/strtoull.m4: Likewise.
68859         * m4/strtoumax.m4: Likewise.
68860         * m4/strverscmp.m4: Likewise.
68861         * m4/threadlib.m4: Likewise.
68862         * m4/timegm.m4: Likewise.
68863         * m4/tm_gmtoff.m4: Likewise.
68864         * m4/tmpdir.m4: Likewise.
68865         * m4/tmpfile.m4: Likewise.
68866         * m4/tzset.m4: Likewise.
68867         * m4/uintmax_t.m4: Likewise.
68868         * m4/unlinkdir.m4: Likewise.
68869         * m4/unlocked-io.m4: Likewise.
68870         * m4/uptime.m4: Likewise.
68871         * m4/userspec.m4: Likewise.
68872         * m4/utimbuf.m4: Likewise.
68873         * m4/utime.m4: Likewise.
68874         * m4/utimes-null.m4: Likewise.
68875         * m4/utimes.m4: Likewise.
68876         * m4/vararrays.m4: Likewise.
68877         * m4/vasnprintf.m4: Likewise.
68878         * m4/vfprintf-posix.m4: Likewise.
68879         * m4/vprintf-posix.m4: Likewise.
68880         * m4/wait-process.m4: Likewise.
68881         * m4/wchar_t.m4: Likewise.
68882         * m4/wint_t.m4: Likewise.
68883         * m4/write-any-file.m4: Likewise.
68884         * m4/yield.m4: Likewise.
68886 2009-01-13  Bruno Haible  <bruno@clisp.org>
68888         Avoid test-copy-file.sh failures when ACL support insufficient.
68889         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
68890         TESTS_ENVIRONMENT.
68891         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
68892         Reported by Jim Meyering.
68894 2009-01-13  Bruno Haible  <bruno@clisp.org>
68896         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
68897         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
68898         * modules/unistdio/u8-printf-parse (Files): Likewise.
68899         * modules/unistdio/u32-printf-parse (Files): Likewise.
68900         * modules/unistdio/ulc-printf-parse (Files): Likewise.
68902 2009-01-13  Simon Josefsson  <simon@josefsson.org>
68904         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
68905         and m4/inttypes_h.m4 too.
68907 2009-01-12  Eric Blake  <ebb9@byu.net>
68909         tests: IRIX 6.2 cc can't compile -0.0 into .data
68910         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
68911         rather than at compile-time.
68912         * tests/test-floorl.c (minus_zero): Likewise.
68913         * tests/test-frexpl.c (minus_zero): Likewise.
68914         * tests/test-isnan.c (minus_zerol): Likewise.
68915         * tests/test-isnanl.h (minus_zero): Likewise.
68916         * tests/test-ldexpl.c (minus_zero): Likewise.
68917         * tests/test-roundl.c (minus_zero): Likewise.
68918         * tests/test-signbit.c (minus_zerol): Likewise.
68919         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
68920         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
68921         * tests/test-truncl.c (minus_zero): Likewise.
68922         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
68923         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
68924         Reported by Tom G. Christensen and Nelson H. F. Beebe.
68926 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68928         regex: fix glibc bug 9697
68929         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
68930         handling.
68932 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68934         regex: fix glibc bug 697
68935         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
68936         being NULL also if there are no backreferences.
68938 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68940         regex: merge glibc changes
68941         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
68942         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
68943         re_string_skip_chars, re_string_reconstruct): Likewise.
68944         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
68946 2009-01-07  Jim Meyering  <meyering@redhat.com>
68948         poll: filter through cppi
68949         * lib/poll.c: Indent cpp directives to reflect nesting.
68951 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
68953         poll: don't return uninitialized
68954         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
68956 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
68958         avoid compile failure on AIX 6.1
68959         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
68960         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
68962 2009-01-04  Jim Meyering  <meyering@redhat.com>
68964         remove duplicate inclusion of <stdio.h>
68965         * tests/test-fprintf-posix.c: Likewise.
68966         * tests/test-printf-posix.c: Likewise.
68967         * tests/test-snprintf-posix.c: Likewise.
68968         * tests/test-sprintf-posix.c: Likewise.
68969         * tests/test-vasprintf-posix.c: Likewise.
68970         * tests/test-vfprintf-posix.c: Likewise.
68971         * tests/test-vprintf-posix.c: Likewise.
68972         * tests/test-vsnprintf-posix.c: Likewise.
68973         * tests/test-vsprintf-posix.c: Likewise.
68975 2009-01-03  Jim Meyering  <meyering@redhat.com>
68977         gnulib-tool: fix sed-based filtering
68978         * gnulib-tool (func_filter_filelist): Remove extra backslash
68979         in sed_fff_filter definition.
68981 2009-01-02  Jim Meyering  <meyering@redhat.com>
68983         strftime: avoid compilation failure on Solaris 2.6
68984         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
68985         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
68986         Don't #define mbrlen or mbsinit, since now they're guaranteed to
68987         be available.  Reported by Tom G. Christensen.  Details in
68988         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
68990 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68991             Bruno Haible  <bruno@clisp.org>
68993         Speed up gnulib-tool by doing more string processing through shell
68994         built-ins.
68995         * gnulib-tool (fast_func_append): New variable.
68996         (func_remove_prefix, func_remove_suffix): New functions.
68997         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
68998         (func_filter_filelist): New function.
68999         (func_get_dependencies): Use func_remove_suffix instead of sed.
69000         (func_get_automake_snippet): Use func_filter_filelist instead of a
69001         subshell and sed invocation.
69003 2009-01-01  Bruno Haible  <bruno@clisp.org>
69005         Fix a security bug.
69006         * gnulib-tool (func_import, import, update): Don't allow the characters
69007         '"', '$', '`', '\' in macro arguments that become part of commands that
69008         are evaluated.
69010 2009-01-01  Bruno Haible  <bruno@clisp.org>
69012         * gnulib-tool (func_reset_sigpipe): Add more comments.
69014 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69016         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
69017         func_emit_tests_Makefile_am, func_import): Abort loops early if we
69018         already know the answer.
69020 2009-01-01  Jim Meyering  <meyering@redhat.com>
69022         * lib/version-etc.c (version_etc_va): Update copyright year.
69024 2008-12-30  Bruno Haible  <bruno@clisp.org>
69026         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
69027         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
69028         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
69030 2008-12-29  Eric Blake  <ebb9@byu.net>
69032         multiarch: avoid autoconf AC_REQUIRE bug
69033         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
69034         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
69035         2.63 and older.
69036         Reported by Bruno Haible, and analyzed in
69037         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
69039 2008-12-29  Bruno Haible  <bruno@clisp.org>
69041         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
69042         files in subdirectories correctly.
69043         Reported by Ralf Wildenhues.
69045 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69047         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
69048         rather than 'join FILE -', for Solaris join.
69050 2008-12-29  Bruno Haible  <bruno@clisp.org>
69052         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
69053         quoting.
69054         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69055         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
69056         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
69057         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
69058         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
69059         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
69060         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
69061         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
69062         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69063         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
69064         * m4/nls.m4 (AM_NLS): Likewise.
69065         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
69066         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
69067         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
69068         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
69069         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
69070         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
69071         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
69072         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
69073         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
69074         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69075         * m4/xsize.m4 (gl_XSIZE): Likewise.
69076         Suggested by Jim Meyering.
69078 2008-11-17  Bruce Korb  <bkorb@gnu.org>
69080         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
69081         * lib/parse-duration.c: use a switch instead of cascading if's.
69083 2008-12-29  Eric Blake  <ebb9@byu.net>
69085         wchar.h: supply WEOF on Irix 5.3
69086         * lib/wchar.in.h (wint_t): Also supply WEOF.
69087         * lib/wctype.in.h (wint_t): Likewise.
69088         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
69089         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
69090         Reported by Tom G. Christensen.
69092 2008-12-26  Bruno Haible  <bruno@clisp.org>
69094         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
69095         i486, i586, i686.
69097 2008-12-26  Bruno Haible  <bruno@clisp.org>
69099         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
69101 2008-12-26  Bruno Haible  <bruno@clisp.org>
69103         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
69104         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
69105         not __STDC_CONSTANT_MACROS.
69106         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
69108 2008-12-25  Bruno Haible  <bruno@clisp.org>
69110         Add support for universal builds to vasnprintf.
69111         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
69112         universal builds, guess no.
69113         * modules/vasnprintf-posix (Depends-on): Add multiarch.
69114         * modules/vasprintf-posix (Depends-on): Likewise.
69115         * modules/fprintf-posix (Depends-on): Likewise.
69116         * modules/vfprintf-posix (Depends-on): Likewise.
69117         * modules/snprintf-posix (Depends-on): Likewise.
69118         * modules/vsnprintf-posix (Depends-on): Likewise.
69119         * modules/sprintf-posix (Depends-on): Likewise.
69120         * modules/vsprintf-posix (Depends-on): Likewise.
69121         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
69122         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
69123         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
69124         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
69125         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
69126         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
69127         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
69129         Add support for universal builds to <inttypes.h>.
69130         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
69131         _SCNu64_PREFIX): In Apple
69132         universal builds, define directly, using _LP64.
69133         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
69134         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
69135         * modules/inttypes (Depends-on): Add multiarch.
69136         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
69138         Add support for universal builds to <stdint.h>.
69139         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
69140         universal builds, define directly, using _LP64.
69141         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
69142         Apple universal builds, don't test for the size and suffix of ptrdiff_t
69143         and size_t.
69144         * modules/stdint (Depends-on): Add multiarch.
69145         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
69147         New module 'multiarch'.
69148         * modules/multiarch: New file.
69149         * m4/multiarch.m4: New file.
69151 2008-12-25  Bruno Haible  <bruno@clisp.org>
69153         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
69155 2008-12-25  Bruno Haible  <bruno@clisp.org>
69157         * modules/btowc (License): Relicense under LGPLv2+.
69158         * modules/mbsinit (License): Likewise.
69159         * modules/mbrtowc (License): Likewise.
69160         * modules/wcrtomb (License): Likewise.
69161         * modules/streq (License): Likewise.
69162         Reported by David Lutterkort <lutter@redhat.com>.
69164 2008-12-23  Bruno Haible  <bruno@clisp.org>
69166         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
69168 2008-12-23  Bruno Haible  <bruno@clisp.org>
69170         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
69171         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
69172         GETADDRINFO_LIB, not in LIBS.
69173         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
69174         * modules/canon-host (Link): Likewise.
69175         * NEWS: Mention the change.
69176         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
69177         GETADDRINFO_LIB.
69179 2008-12-22  Bruno Haible  <bruno@clisp.org>
69181         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
69182         * doc/posix-functions/iswalpha_l.texi: Likewise.
69183         * doc/posix-functions/iswblank_l.texi: Likewise.
69184         * doc/posix-functions/iswcntrl_l.texi: Likewise.
69185         * doc/posix-functions/iswctype_l.texi: Likewise.
69186         * doc/posix-functions/iswdigit_l.texi: Likewise.
69187         * doc/posix-functions/iswgraph_l.texi: Likewise.
69188         * doc/posix-functions/iswlower_l.texi: Likewise.
69189         * doc/posix-functions/iswprint_l.texi: Likewise.
69190         * doc/posix-functions/iswpunct_l.texi: Likewise.
69191         * doc/posix-functions/iswspace_l.texi: Likewise.
69192         * doc/posix-functions/iswupper_l.texi: Likewise.
69193         * doc/posix-functions/iswxdigit_l.texi: Likewise.
69194         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
69195         * doc/posix-functions/open_wmemstream.texi: Likewise.
69196         * doc/posix-functions/swscanf.texi: Likewise.
69197         * doc/posix-functions/towctrans_l.texi: Likewise.
69198         * doc/posix-functions/towlower.texi: Likewise.
69199         * doc/posix-functions/towlower_l.texi: Likewise.
69200         * doc/posix-functions/towupper.texi: Likewise.
69201         * doc/posix-functions/towupper_l.texi: Likewise.
69202         * doc/posix-functions/vfwprintf.texi: Likewise.
69203         * doc/posix-functions/vfwscanf.texi: Likewise.
69204         * doc/posix-functions/vswscanf.texi: Likewise.
69205         * doc/posix-functions/vwprintf.texi: Likewise.
69206         * doc/posix-functions/vwscanf.texi: Likewise.
69207         * doc/posix-functions/wcpcpy.texi: Likewise.
69208         * doc/posix-functions/wcpncpy.texi: Likewise.
69209         * doc/posix-functions/wcscasecmp.texi: Likewise.
69210         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
69211         * doc/posix-functions/wcscoll_l.texi: Likewise.
69212         * doc/posix-functions/wcsdup.texi: Likewise.
69213         * doc/posix-functions/wcsncasecmp.texi: Likewise.
69214         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
69215         * doc/posix-functions/wcsnlen.texi: Likewise.
69216         * doc/posix-functions/wcsnrtombs.texi: Likewise.
69217         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
69218         * doc/posix-functions/wctrans_l.texi: Likewise.
69219         * doc/posix-functions/wctype_l.texi: Likewise.
69220         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
69221         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
69222         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
69223         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
69224         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
69225         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
69226         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
69227         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
69228         * doc/glibc-functions/wcschrnul.texi: Likewise.
69229         * doc/glibc-functions/wcsftime_l.texi: Likewise.
69230         * doc/glibc-functions/wcstod_l.texi: Likewise.
69231         * doc/glibc-functions/wcstof_l.texi: Likewise.
69232         * doc/glibc-functions/wcstol_l.texi: Likewise.
69233         * doc/glibc-functions/wcstold_l.texi: Likewise.
69234         * doc/glibc-functions/wcstoll_l.texi: Likewise.
69235         * doc/glibc-functions/wcstoq.texi: Likewise.
69236         * doc/glibc-functions/wcstoul_l.texi: Likewise.
69237         * doc/glibc-functions/wcstoull_l.texi: Likewise.
69238         * doc/glibc-functions/wcstouq.texi: Likewise.
69239         * doc/glibc-functions/wmempcpy.texi: Likewise.
69241 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
69242             Eric Blake  <ebb9@byu.net>
69243             Paolo Bonzini  <bonzini@gnu.org>
69244             Bruno Haible  <bruno@clisp.org>
69246         Make c-stack work on Haiku.
69247         * lib/c-stack.c (SA_ONSTACK): Define fallback.
69248         (c_stack_action): Use SA_ONSTACK flag.
69250 2008-12-22  Bruno Haible  <bruno@clisp.org>
69252         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
69254 2008-12-22  Bruno Haible  <bruno@clisp.org>
69256         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
69257         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
69258         being overridden.
69259         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
69260         New macros.
69261         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
69262         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
69263         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
69264         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
69266 2008-12-22  Bruno Haible  <bruno@clisp.org>
69268         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
69269         from test code.
69271 2008-12-22  Eric Blake  <ebb9@byu.net>
69273         Avoid gcc warnings on cygwin.
69274         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
69275         Avoid unused variable.
69276         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
69277         Likewise.
69279 2008-12-22  Bruno Haible  <bruno@clisp.org>
69281         Remove HAVE_MBRTOWC conditionals.
69282         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
69283         (mbscasecmp): Assume mbrtowc function.
69284         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
69285         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
69286         * lib/mbschr.c: Include mbuiter.h unconditionally.
69287         (mbschr): Assume mbrtowc function.
69288         * lib/mbscspn.c: Include mbuiter.h unconditionally.
69289         (mbscspn): Assume mbrtowc function.
69290         * lib/mbslen.c: Include mbuiter.h unconditionally.
69291         (mbslen): Assume mbrtowc function.
69292         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
69293         (mbsncasecmp): Assume mbrtowc function.
69294         * lib/mbsnlen.c: Include mbiter.h unconditionally.
69295         (mbsnlen): Assume mbrtowc function.
69296         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
69297         (mbspbrk): Assume mbrtowc function.
69298         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
69299         (mbspcasecmp): Assume mbrtowc function.
69300         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
69301         (mbsrchr): Assume mbrtowc function.
69302         * lib/mbssep.c: Include mbuiter.h unconditionally.
69303         (mbssep): Assume mbrtowc function.
69304         * lib/mbsspn.c: Include mbuiter.h unconditionally.
69305         (mbsspn): Assume mbrtowc function.
69306         * lib/mbsstr.c: Include mbuiter.h unconditionally.
69307         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
69308         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
69309         (mbstok_r): Assume mbrtowc function.
69310         * lib/propername.c: Include mbuiter.h unconditionally.
69311         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
69312         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
69313         (trim2): Assume mbrtowc function.
69314         * lib/mbswidth.c (mbsinit): Remove fallback definition.
69315         (mbsnwidth): Assume mbrtowc function.
69316         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
69317         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
69318         fallback definitions.
69319         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
69321 2008-12-22  Bruno Haible  <bruno@clisp.org>
69323         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
69325 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
69327         * modules/regex: Request emulations for the mb*/wc* functions we need.
69328         * m4/regex.m4: Don't look for those functions here.
69329         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
69331 2008-12-22  Bruno Haible  <bruno@clisp.org>
69333         * modules/fnmatch (Depends-on): Remove duplicated dependency.
69335 2008-12-21  Bruno Haible  <bruno@clisp.org>
69337         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
69338         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
69339         (Include): Remove conditionalization.
69340         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
69341         (Include): Remove conditionalization.
69342         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
69343         (Include): Remove conditionalization.
69344         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
69345         * m4/mbfile.m4 (gl_MBFILE): Likewise.
69346         * NEWS: Mention the change.
69347         Reported by Alan Hourihane <alanh@fairlite.co.uk>
69348         via Sergey Poznyakoff <gray@gnu.org.ua>.
69350 2008-12-21  Bruno Haible  <bruno@clisp.org>
69352         * MODULES.html.sh (Extended multibyte and wide character utilities
69353         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
69354         wcrtomb, wcsrtombs.
69355         (Support for systems lacking POSIX:2008): Add accept, bind, close,
69356         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
69357         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
69358         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
69360 2008-12-21  Bruno Haible  <bruno@clisp.org>
69362         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
69364 2008-12-21  Bruno Haible  <bruno@clisp.org>
69366         * modules/wcsnrtombs-tests: New file.
69367         * tests/test-wcsnrtombs1.sh: New file.
69368         * tests/test-wcsnrtombs2.sh: New file.
69369         * tests/test-wcsnrtombs3.sh: New file.
69370         * tests/test-wcsnrtombs4.sh: New file.
69371         * tests/test-wcsnrtombs.c: New file.
69373         New module 'wcsnrtombs'.
69374         * lib/wchar.in.h (wcsnrtombs): New declaration.
69375         * lib/wcsnrtombs.c: New file.
69376         * lib/wcsrtombs-state.c: New file.
69377         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
69378         (internal_state): Remove variable.
69379         * m4/wcsnrtombs.m4: New file.
69380         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
69381         compilation units.
69382         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
69383         HAVE_WCSNRTOMBS.
69384         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
69385         HAVE_WCSNRTOMBS.
69386         * modules/wcsnrtombs: New file.
69387         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
69388         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
69390 2008-12-21  Bruno Haible  <bruno@clisp.org>
69392         * modules/wcsrtombs-tests: New file.
69393         * tests/test-wcsrtombs1.sh: New file.
69394         * tests/test-wcsrtombs2.sh: New file.
69395         * tests/test-wcsrtombs3.sh: New file.
69396         * tests/test-wcsrtombs4.sh: New file.
69397         * tests/test-wcsrtombs.c: New file.
69399         New module 'wcsrtombs'.
69400         * lib/wchar.in.h (wcsrtombs): New declaration.
69401         * lib/wcsrtombs.c: New file.
69402         * m4/wcsrtombs.m4: New file.
69403         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
69404         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
69405         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
69406         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
69407         * modules/wcsrtombs: New file.
69408         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
69409         bugs.
69411 2008-12-21  Bruno Haible  <bruno@clisp.org>
69413         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
69414         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
69415         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
69416         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
69417         if not correct.
69418         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
69419         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
69420         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
69421         m4/locale-zh.m4, m4/codeset.m4.
69422         * doc/posix-functions/wcrtomb.texi: Document the bug.
69424 2008-12-21  Bruno Haible  <bruno@clisp.org>
69426         Work around a btowc() bug on IRIX 6.5.
69427         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
69428         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
69429         REPLACE_WTOBC if not.
69430         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
69431         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
69432         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
69434 2008-12-21  Bruno Haible  <bruno@clisp.org>
69436         * modules/wcrtomb-tests: New file.
69437         * tests/test-wcrtomb.sh: New file.
69438         * tests/test-wcrtomb.c: New file.
69440         New module 'wcrtomb'.
69441         * lib/wchar.in.h (wcrtomb): New declaration.
69442         * lib/wcrtomb.c: New file.
69443         * m4/wcrtomb.m4: New file.
69444         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
69445         HAVE_WCRTOMB.
69446         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
69447         HAVE_WCRTOMB.
69448         * modules/wcrtomb: New file.
69449         * doc/posix-functions/wcrtomb.texi: Mention the new module.
69451 2008-12-21  Bruno Haible  <bruno@clisp.org>
69453         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
69454         * modules/mbsrtowcs (Files): Likewise.
69455         * modules/wctob (Files): Likewise.
69456         * modules/c-strcase-tests (Files): Likewise.
69457         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
69458         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
69459         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
69460         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
69461         * modules/vasnprintf-posix-tests (Files): Likewise.
69463 2008-12-21  William Pursell  <bill.pursell@gmail.com>
69465         gitlog-to-changelog: pass all command-line arguments to git-log
69466         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
69467         it is sometimes convenient to filter the commits in various ways.
69468         gitlog-to-changelog only allows --since to specify a start date,
69469         but git-log itself supports many other filtering mechanisms.
69470         At the moment, I want to filter by branch name.  Rather than
69471         adding a --branch option to gitlog-to-changelog, it seems more
69472         flexible to simply pass all options directly to git-log and let
69473         git do the work.  Notice that this effectively makes --since a
69474         redundant option for gitlog-to-changelog, but removing it would
69475         require current usage to change since calls would then require
69476         an additional '--'.
69478 2008-12-21  Bruno Haible  <bruno@clisp.org>
69480         * modules/mbsnrtowcs-tests: New file.
69481         * tests/test-mbsnrtowcs1.sh: New file.
69482         * tests/test-mbsnrtowcs2.sh: New file.
69483         * tests/test-mbsnrtowcs3.sh: New file.
69484         * tests/test-mbsnrtowcs4.sh: New file.
69485         * tests/test-mbsnrtowcs.c: New file.
69487         New module 'mbsnrtowcs'.
69488         * lib/wchar.in.h (mbsnrtowcs): New declaration.
69489         * lib/mbsnrtowcs.c: New file.
69490         * lib/mbsrtowcs-state.c: New file.
69491         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
69492         (internal_state): Remove variable.
69493         * m4/mbsnrtowcs.m4: New file.
69494         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
69495         compilation units.
69496         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
69497         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
69498         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
69499         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
69500         * modules/mbsnrtowcs: New file.
69501         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
69502         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
69503         portability problem.
69505 2008-12-21  Bruno Haible  <bruno@clisp.org>
69507         Work around mbsrtowcs bug.
69508         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
69509         (gl_FUNC_MBSRTOWCS): Invoke it.
69510         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
69511         m4/locale-zh.m4.
69512         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
69514 2008-12-21  Bruno Haible  <bruno@clisp.org>
69516         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
69518 2008-12-21  Bruno Haible  <bruno@clisp.org>
69520         Update doc for AIX.
69521         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
69522         16-bit wchar_t type.
69523         * doc/posix-functions/btowc.texi: Likewise.
69524         * doc/posix-functions/fgetwc.texi: Likewise.
69525         * doc/posix-functions/fgetws.texi: Likewise.
69526         * doc/posix-functions/fputwc.texi: Likewise.
69527         * doc/posix-functions/fputws.texi: Likewise.
69528         * doc/posix-functions/fwide.texi: Likewise.
69529         * doc/posix-functions/fwprintf.texi: Likewise.
69530         * doc/posix-functions/fwscanf.texi: Likewise.
69531         * doc/posix-functions/getwchar.texi: Likewise.
69532         * doc/posix-functions/getwc.texi: Likewise.
69533         * doc/posix-functions/iswalnum.texi: Likewise.
69534         * doc/posix-functions/iswalpha.texi: Likewise.
69535         * doc/posix-functions/iswblank.texi: Likewise.
69536         * doc/posix-functions/iswcntrl.texi: Likewise.
69537         * doc/posix-functions/iswctype.texi: Likewise.
69538         * doc/posix-functions/iswdigit.texi: Likewise.
69539         * doc/posix-functions/iswgraph.texi: Likewise.
69540         * doc/posix-functions/iswlower.texi: Likewise.
69541         * doc/posix-functions/iswprint.texi: Likewise.
69542         * doc/posix-functions/iswpunct.texi: Likewise.
69543         * doc/posix-functions/iswspace.texi: Likewise.
69544         * doc/posix-functions/iswupper.texi: Likewise.
69545         * doc/posix-functions/iswxdigit.texi: Likewise.
69546         * doc/posix-functions/mbrtowc.texi: Likewise.
69547         * doc/posix-functions/mbsrtowcs.texi: Likewise.
69548         * doc/posix-functions/mbstowcs.texi: Likewise.
69549         * doc/posix-functions/mbtowc.texi: Likewise.
69550         * doc/posix-functions/putwchar.texi: Likewise.
69551         * doc/posix-functions/putwc.texi: Likewise.
69552         * doc/posix-functions/swprintf.texi: Likewise.
69553         * doc/posix-functions/tolower.texi: Likewise.
69554         * doc/posix-functions/toupper.texi: Likewise.
69555         * doc/posix-functions/towctrans.texi: Likewise.
69556         * doc/posix-functions/ungetwc.texi: Likewise.
69557         * doc/posix-functions/vswprintf.texi: Likewise.
69558         * doc/posix-functions/wcrtomb.texi: Likewise.
69559         * doc/posix-functions/wcscat.texi: Likewise.
69560         * doc/posix-functions/wcschr.texi: Likewise.
69561         * doc/posix-functions/wcscmp.texi: Likewise.
69562         * doc/posix-functions/wcscoll.texi: Likewise.
69563         * doc/posix-functions/wcscpy.texi: Likewise.
69564         * doc/posix-functions/wcscspn.texi: Likewise.
69565         * doc/posix-functions/wcsftime.texi: Likewise.
69566         * doc/posix-functions/wcslen.texi: Likewise.
69567         * doc/posix-functions/wcsncat.texi: Likewise.
69568         * doc/posix-functions/wcsncmp.texi: Likewise.
69569         * doc/posix-functions/wcsncpy.texi: Likewise.
69570         * doc/posix-functions/wcspbrk.texi: Likewise.
69571         * doc/posix-functions/wcsrchr.texi: Likewise.
69572         * doc/posix-functions/wcsrtombs.texi: Likewise.
69573         * doc/posix-functions/wcsspn.texi: Likewise.
69574         * doc/posix-functions/wcsstr.texi: Likewise.
69575         * doc/posix-functions/wcstod.texi: Likewise.
69576         * doc/posix-functions/wcstof.texi: Likewise.
69577         * doc/posix-functions/wcstoimax.texi: Likewise.
69578         * doc/posix-functions/wcstok.texi: Likewise.
69579         * doc/posix-functions/wcstold.texi: Likewise.
69580         * doc/posix-functions/wcstoll.texi: Likewise.
69581         * doc/posix-functions/wcstol.texi: Likewise.
69582         * doc/posix-functions/wcstombs.texi: Likewise.
69583         * doc/posix-functions/wcstoull.texi: Likewise.
69584         * doc/posix-functions/wcstoul.texi: Likewise.
69585         * doc/posix-functions/wcstoumax.texi: Likewise.
69586         * doc/posix-functions/wcswidth.texi: Likewise.
69587         * doc/posix-functions/wcsxfrm.texi: Likewise.
69588         * doc/posix-functions/wctob.texi: Likewise.
69589         * doc/posix-functions/wctomb.texi: Likewise.
69590         * doc/posix-functions/wctrans.texi: Likewise.
69591         * doc/posix-functions/wctype.texi: Likewise.
69592         * doc/posix-functions/wcwidth.texi: Likewise.
69593         * doc/posix-functions/wmemchr.texi: Likewise.
69594         * doc/posix-functions/wmemcmp.texi: Likewise.
69595         * doc/posix-functions/wmemcpy.texi: Likewise.
69596         * doc/posix-functions/wmemmove.texi: Likewise.
69597         * doc/posix-functions/wmemset.texi: Likewise.
69598         * doc/posix-functions/wprintf.texi: Likewise.
69599         * doc/posix-functions/wscanf.texi: Likewise.
69601 2008-12-21  Bruno Haible  <bruno@clisp.org>
69603         Update doc for HP-UX 11.11.
69604         * doc/posix-functions/btowc.texi: Clarify that the function is missing
69605         in HP-UX version 11.00, not in all versions of HP-UX 11.
69606         * doc/posix-functions/fwide.texi: Likewise.
69607         * doc/posix-functions/fwprintf.texi: Likewise.
69608         * doc/posix-functions/fwscanf.texi: Likewise.
69609         * doc/posix-functions/inet_ntop.texi: Likewise.
69610         * doc/posix-functions/inet_pton.texi: Likewise.
69611         * doc/posix-functions/mbrlen.texi: Likewise.
69612         * doc/posix-functions/mbrtowc.texi: Likewise.
69613         * doc/posix-functions/mbsinit.texi: Likewise.
69614         * doc/posix-functions/mbsrtowcs.texi: Likewise.
69615         * doc/posix-functions/swprintf.texi: Likewise.
69616         * doc/posix-functions/swscanf.texi: Likewise.
69617         * doc/posix-functions/towctrans.texi: Likewise.
69618         * doc/posix-functions/vfwprintf.texi: Likewise.
69619         * doc/posix-functions/vswprintf.texi: Likewise.
69620         * doc/posix-functions/vwprintf.texi: Likewise.
69621         * doc/posix-functions/wcrtomb.texi: Likewise.
69622         * doc/posix-functions/wcsrtombs.texi: Likewise.
69623         * doc/posix-functions/wcsstr.texi: Likewise.
69624         * doc/posix-functions/wctob.texi: Likewise.
69625         * doc/posix-functions/wctrans.texi: Likewise.
69626         * doc/posix-functions/wmemchr.texi: Likewise.
69627         * doc/posix-functions/wmemcmp.texi: Likewise.
69628         * doc/posix-functions/wmemcpy.texi: Likewise.
69629         * doc/posix-functions/wmemmove.texi: Likewise.
69630         * doc/posix-functions/wmemset.texi: Likewise.
69631         * doc/posix-functions/wprintf.texi: Likewise.
69632         * doc/posix-functions/wscanf.texi: Likewise.
69634 2008-12-21  Bruno Haible  <bruno@clisp.org>
69636         Work around a portability problem.
69637         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
69638         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
69640 2008-12-20  Bruno Haible  <bruno@clisp.org>
69642         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
69643         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
69644         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
69645         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
69646         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
69648         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
69649         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
69650         set.
69651         (GNULIB_defined_mbstate_t): New macro.
69652         (mbsinit): Redefine if REPLACE_MBSINIT is set.
69653         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
69654         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
69655         reuses the system's mbrtowc function but works around the bugs.
69656         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
69657         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
69658         macros.
69659         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
69660         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
69661         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
69662         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
69663         REPLACE_MBSINIT if mbsinit needs to be overridden.
69664         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
69665         REPLACE_MBSINIT, REPLACE_MBRTOWC.
69666         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
69667         REPLACE_MBSINIT, REPLACE_MBRTOWC.
69668         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
69669         m4/locale-zh.m4.
69670         (Depends): Add mbsinit.
69671         * modules/mbsinit (Depends): Add mbrtowc.
69672         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
69674 2008-12-20  Bruno Haible  <bruno@clisp.org>
69676         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
69677         so that there are no conversion errors on AIX.
69678         * tests/test-mbsrtowcs.c (main): LIkewise.
69680 2008-12-20  Bruno Haible  <bruno@clisp.org>
69682         Work around wctob bug on Solaris <= 9.
69683         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
69684         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
69685         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
69686         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
69687         * modules/wctob (Files): Add m4/locale-fr.m4.
69688         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
69690 2008-12-20  Bruno Haible  <bruno@clisp.org>
69692         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
69693         /dev/null.
69694         * tests/test-select-in.sh: Likewise.
69695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69697 2008-12-20  Bruno Haible  <bruno@clisp.org>
69699         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
69700         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
69701         Cygwin 1.5.x.
69703 2008-12-20  Bruno Haible  <bruno@clisp.org>
69705         Ensure mbstate_t is defined on HP-UX 11.11.
69706         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
69707         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
69708         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
69709         AC_USE_SYSTEM_EXTENSIONS.
69710         * modules/fnmatch (Depends-on): Add extensions.
69711         * modules/mbrlen (Depends-on): Likewise.
69712         * modules/mbrtowc (Depends-on): Likewise.
69713         * modules/mbsinit (Depends-on): Likewise.
69714         * modules/mbsrtowcs (Depends-on): Likewise.
69715         * modules/mbswidth (Depends-on): Likewise.
69716         * modules/quotearg (Depends-on): Likewise.
69717         * modules/strftime (Depends-on): Likewise.
69719 2008-12-20  Bruno Haible  <bruno@clisp.org>
69721         Ensure wctob is declared on IRIX 6.5.
69722         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
69723         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
69724         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
69725         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
69726         of HAVE_WCTOB.
69727         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
69728         HAVE_WCTOB.
69729         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
69731 2008-12-19  Bruno Haible  <bruno@clisp.org>
69733         * modules/mbsrtowcs-tests: New file.
69734         * tests/test-mbsrtowcs1.sh: New file.
69735         * tests/test-mbsrtowcs2.sh: New file.
69736         * tests/test-mbsrtowcs3.sh: New file.
69737         * tests/test-mbsrtowcs4.sh: New file.
69738         * tests/test-mbsrtowcs.c: New file.
69740         New module 'mbsrtowcs'.
69741         * lib/wchar.in.h (mbsrtowcs): New declaration.
69742         * lib/mbsrtowcs.c: New file.
69743         * m4/mbsrtowcs.m4: New file.
69744         * modules/mbsrtowcs: New file.
69745         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
69746         HAVE_MBSRTOWCS.
69747         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
69748         HAVE_MBSRTOWCS.
69749         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
69751 2008-12-19  Bruno Haible  <bruno@clisp.org>
69753         New module 'mbrlen'.
69754         * lib/wchar.in.h (mbrlen): New declaration.
69755         * lib/mbrlen.c: New file.
69756         * m4/mbrlen.m4: New file.
69757         * modules/mbrlen: New file.
69758         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
69759         HAVE_MBRLEN.
69760         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
69761         HAVE_MBRLEN.
69762         * doc/posix-functions/mbrlen.texi: Document the new module.
69764 2008-12-19  Bruno Haible  <bruno@clisp.org>
69766         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
69767         * modules/mbrtowc (Depends-on): Add verify.
69768         Suggested by Paul Eggert.
69770 2008-12-18  Bruno Haible  <bruno@clisp.org>
69772         * modules/mbsinit-tests: New file.
69773         * tests/test-mbsinit.sh: New file.
69774         * tests/test-mbsinit.c: New file.
69776 2008-12-18  Bruno Haible  <bruno@clisp.org>
69778         * modules/mbrtowc-tests: New file.
69779         * tests/test-mbrtowc1.sh: New file.
69780         * tests/test-mbrtowc2.sh: New file.
69781         * tests/test-mbrtowc3.sh: New file.
69782         * tests/test-mbrtowc4.sh: New file.
69783         * tests/test-mbrtowc.c: New file.
69785         New module 'mbrtowc'.
69786         * lib/wchar.in.h (mbstate_t): Override when the system does not have
69787         mbsinit and mbrtowc.
69788         (mbrtowc): New declaration.
69789         * lib/mbrtowc.c: New file.
69790         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
69791         * modules/mbrtowc: New file.
69792         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
69793         HAVE_MBRTOWC.
69794         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
69795         HAVE_MBRTOWC.
69796         * doc/posix-functions/mbrtowc.texi: Document the new module.
69798 2008-12-18  Bruno Haible  <bruno@clisp.org>
69800         New module 'wctob'.
69801         * lib/wchar.in.h (wctob): New declaration.
69802         * lib/wctob.c: New file.
69803         * m4/wctob.m4: New file.
69804         * modules/wctob: New file.
69805         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
69806         HAVE_WCTOB.
69807         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
69808         * doc/posix-functions/wctob.texi: Document the new module.
69810 2008-12-18  Bruno Haible  <bruno@clisp.org>
69812         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
69813         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
69815 2008-12-18  Simon Josefsson  <simon@josefsson.org>
69817         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
69818         G. Christensen" <tgc@jupiterrise.com>.
69820         * lib/flock.c: Need to include errno.h.  Reported by "Tom
69821         G. Christensen" <tgc@jupiterrise.com>.
69823         * lib/flock.c: Need to include string.h.  Reported by "Tom
69824         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
69825         <ebb9@byu.net>.
69827 2008-12-18  Bruno Haible  <bruno@clisp.org>
69829         * m4/locale-ja.m4: New file, from GNU gettext.
69831 2008-12-17  Bruno Haible  <bruno@clisp.org>
69833         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
69834         Suggested by Eric Blake.
69836 2008-12-17  Bruno Haible  <bruno@clisp.org>
69838         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
69840 2008-12-17  Bruno Haible  <bruno@clisp.org>
69842         * lib/mbsinit.c: Include verify.h. Verify an assumption.
69843         * modules/mbsinit (Depends-on): Add verify.
69844         Suggested by Paul Eggert.
69846 2008-12-17  Bruno Haible  <bruno@clisp.org>
69848         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
69849         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
69850         gl_FUNC_MBRTOWC.
69851         * m4/mbiter.m4 (gl_MBITER): LIkewise.
69852         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
69853         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
69854         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
69855         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
69856         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
69857         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
69858         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
69859         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
69860         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
69861         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
69862         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
69863         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
69864         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
69865         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
69866         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69867         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
69868         * modules/trim (configure.ac): Likewise.
69870 2008-12-17  Bruno Haible  <bruno@clisp.org>
69872         * modules/btowc-tests: New file.
69873         * tests/test-btowc1.sh: New file.
69874         * tests/test-btowc2.sh: New file.
69875         * tests/test-btowc.c: New file.
69877         New module 'btowc'.
69878         * lib/wchar.in.h (btowc): New declaration.
69879         * lib/btowc.c: New file.
69880         * m4/btowc.m4: New file.
69881         * modules/btowc: New file.
69882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
69883         HAVE_BTOWC.
69884         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
69885         * doc/posix-functions/btowc.texi: Document the new module.
69887 2008-12-17  Bruno Haible  <bruno@clisp.org>
69889         New module 'mbsinit'.
69890         * lib/wchar.in.h (mbsinit): New declaration.
69891         * lib/mbsinit.c: New file.
69892         * m4/mbsinit.m4: New file.
69893         * modules/mbsinit: New file.
69894         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
69895         HAVE_MBSINIT.
69896         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
69897         HAVE_MBSINIT.
69898         * doc/posix-functions/mbsinit.texi: Document the new module.
69900 2008-12-16  Bruno Haible  <bruno@clisp.org>
69902         * lib/unistd.in.h: Add comment.
69903         * tests/test-environ.c: Don't include <stdlib.h>.
69905 2008-12-16  Bruno Haible  <bruno@clisp.org>
69907         * lib/parse-duration.h (parse_duration): Document return value
69908         convention.
69909         * lib/parse-duration.c: Include specification header first. Add
69910         comments.
69911         (_): Remove macro.
69912         (parse_year_month_day, parse_hour_minute_second): Move side effects
69913         outside of strchr call.
69914         (parse_non_iso8601): Move side effects outside of isspace call.
69915         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
69916         call.
69918 2008-12-16  Bruno Haible  <bruno@clisp.org>
69920         * tests/test-parse-duration.sh: Produce no output when the test
69921         succeeds.
69923 2008-12-16  Bruno Haible  <bruno@clisp.org>
69925         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
69926         expressions.
69928 2008-12-15  Bruno Haible  <bruno@clisp.org>
69930         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
69931         * doc/glibc-functions/flistxattr.texi: Likewise.
69932         * doc/glibc-functions/fopencookie.texi: Likewise.
69933         * doc/glibc-functions/fremovexattr.texi: Likewise.
69934         * doc/glibc-functions/fsetxattr.texi: Likewise.
69935         * doc/glibc-functions/getxattr.texi: Likewise.
69936         * doc/glibc-functions/lgetxattr.texi: Likewise.
69937         * doc/glibc-functions/listxattr.texi: Likewise.
69938         * doc/glibc-functions/llistxattr.texi: Likewise.
69939         * doc/glibc-functions/lremovexattr.texi: Likewise.
69940         * doc/glibc-functions/lsetxattr.texi: Likewise.
69941         * doc/glibc-functions/removexattr.texi: Likewise.
69942         * doc/glibc-functions/setxattr.texi: Likewise.
69943         * doc/posix-functions/open_memstream.texi: Likewise.
69945 2008-12-15  Eric Blake  <ebb9@byu.net>
69947         Update doc for cygwin 1.7.
69948         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
69949         functions.
69950         * doc/posix-functions/fchmodat.texi: Likewise.
69951         * doc/posix-functions/fchownat.texi: Likewise.
69952         * doc/posix-functions/fdopendir.texi: Likewise.
69953         * doc/posix-functions/fmemopen.texi: Likewise.
69954         * doc/posix-functions/freeaddrinfo.texi: Likewise.
69955         * doc/posix-functions/fstatat.texi: Likewise.
69956         * doc/posix-functions/futimens.texi: Likewise.
69957         * doc/posix-functions/gai_strerror.texi: Likewise.
69958         * doc/posix-functions/getaddrinfo.texi: Likewise.
69959         * doc/posix-functions/getnameinfo.texi: Likewise.
69960         * doc/posix-functions/if_freenameindex.texi: Likewise.
69961         * doc/posix-functions/if_indextoname.texi: Likewise.
69962         * doc/posix-functions/if_nameindex.texi: Likewise.
69963         * doc/posix-functions/if_nametoindex.texi: Likewise.
69964         * doc/posix-functions/insque.texi: Likewise.
69965         * doc/posix-functions/linkat.texi: Likewise.
69966         * doc/posix-functions/llrint.texi: Likewise.
69967         * doc/posix-functions/llrintf.texi: Likewise.
69968         * doc/posix-functions/llrintl.texi: Likewise.
69969         * doc/posix-functions/lockf.texi: Likewise.
69970         * doc/posix-functions/lrintl.texi: Likewise.
69971         * doc/posix-functions/mkdirat.texi: Likewise.
69972         * doc/posix-functions/mkfifoat.texi: Likewise.
69973         * doc/posix-functions/mknodat.texi: Likewise.
69974         * doc/posix-functions/mq_close.texi: Likewise.
69975         * doc/posix-functions/mq_getattr.texi: Likewise.
69976         * doc/posix-functions/mq_notify.texi: Likewise.
69977         * doc/posix-functions/mq_open.texi: Likewise.
69978         * doc/posix-functions/mq_receive.texi: Likewise.
69979         * doc/posix-functions/mq_send.texi: Likewise.
69980         * doc/posix-functions/mq_setattr.texi: Likewise.
69981         * doc/posix-functions/mq_timedreceive.texi: Likewise.
69982         * doc/posix-functions/mq_timedsend.texi: Likewise.
69983         * doc/posix-functions/mq_unlink.texi: Likewise.
69984         * doc/posix-functions/open_memstream.texi: Likewise.
69985         * doc/posix-functions/openat.texi: Likewise.
69986         * doc/posix-functions/posix_fadvise.texi: Likewise.
69987         * doc/posix-functions/posix_fallocate.texi: Likewise.
69988         * doc/posix-functions/posix_madvise.texi: Likewise.
69989         * doc/posix-functions/posix_memalign.texi: Likewise.
69990         * doc/posix-functions/posix_openpt.texi: Likewise.
69991         * doc/posix-functions/readlinkat.texi: Likewise.
69992         * doc/posix-functions/remque.texi: Likewise.
69993         * doc/posix-functions/renameat.texi: Likewise.
69994         * doc/posix-functions/rintl.texi: Likewise.
69995         * doc/posix-functions/sem_unlink.texi: Likewise.
69996         * doc/posix-functions/shm_open.texi: Likewise.
69997         * doc/posix-functions/shm_unlink.texi: Likewise.
69998         * doc/posix-functions/signgam.texi: Likewise.
69999         * doc/posix-functions/sigset.texi: Likewise.
70000         * doc/posix-functions/stpcpy.texi: Likewise.
70001         * doc/posix-functions/stpncpy.texi: Likewise.
70002         * doc/posix-functions/strerror.texi: Likewise.
70003         * doc/posix-functions/strtod.texi: Likewise.
70004         * doc/posix-functions/symlinkat.texi: Likewise.
70005         * doc/posix-functions/unlinkat.texi: Likewise.
70006         * doc/posix-functions/utimensat.texi: Likewise.
70007         * doc/glibc-functions/bindresvport.texi: Likewise.
70008         * doc/glibc-functions/dn_expand.texi: Likewise.
70009         * doc/glibc-functions/exp10.texi: Likewise.
70010         * doc/glibc-functions/exp10f.texi: Likewise.
70011         * doc/glibc-functions/fgetxattr.texi: Likewise.
70012         * doc/glibc-functions/flistxattr.texi: Likewise.
70013         * doc/glibc-functions/fopencookie.texi: Likewise.
70014         * doc/glibc-functions/freeifaddrs.texi: Likewise.
70015         * doc/glibc-functions/fremovexattr.texi: Likewise.
70016         * doc/glibc-functions/fsetxattr.texi: Likewise.
70017         * doc/glibc-functions/getifaddrs.texi: Likewise.
70018         * doc/glibc-functions/getxattr.texi: Likewise.
70019         * doc/glibc-functions/lgetxattr.texi: Likewise.
70020         * doc/glibc-functions/listxattr.texi: Likewise.
70021         * doc/glibc-functions/llistxattr.texi: Likewise.
70022         * doc/glibc-functions/lremovexattr.texi: Likewise.
70023         * doc/glibc-functions/lsetxattr.texi: Likewise.
70024         * doc/glibc-functions/pow10.texi: Likewise.
70025         * doc/glibc-functions/pow10f.texi: Likewise.
70026         * doc/glibc-functions/rcmd_af.texi: Likewise.
70027         * doc/glibc-functions/removexattr.texi: Likewise.
70028         * doc/glibc-functions/res_init.texi: Likewise.
70029         * doc/glibc-functions/res_mkquery.texi: Likewise.
70030         * doc/glibc-functions/res_query.texi: Likewise.
70031         * doc/glibc-functions/res_querydomain.texi: Likewise.
70032         * doc/glibc-functions/res_send.texi: Likewise.
70033         * doc/glibc-functions/rresvport_af.texi: Likewise.
70034         * doc/glibc-functions/setxattr.texi: Likewise.
70035         * doc/glibc-functions/strcasestr.texi: Likewise.
70037 2008-12-15  Bruno Haible  <bruno@clisp.org>
70039         Fix compilation error on OSF/1 4.0.
70040         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
70041         <sys/time.h>, simply delegate to the system header.
70042         Reported by Daniel Richard G. <oss@teragram.com>.
70044 2008-12-15  Bruno Haible  <bruno@clisp.org>
70046         * doc/posix-functions/openat.texi: Mention the 'openat' module.
70047         * doc/posix-functions/fchmodat.texi: Likewise.
70048         * doc/posix-functions/fchownat.texi: Likewise.
70049         * doc/posix-functions/fdopendir.texi: Likewise.
70050         * doc/posix-functions/fstatat.texi: Likewise.
70051         * doc/posix-functions/mkdirat.texi: Likewise.
70052         * doc/posix-functions/unlinkat.texi: Likewise.
70054 2008-12-14  Bruno Haible  <bruno@clisp.org>
70056         Update doc for POSIX:2008.
70057         * doc/posix-functions/faccessat.texi: New file.
70058         * doc/posix-functions/fchmodat.texi: New file.
70059         * doc/posix-functions/fchownat.texi: New file.
70060         * doc/posix-functions/fdopendir.texi: New file.
70061         * doc/posix-functions/fstatat.texi: New file.
70062         * doc/posix-functions/futimens.texi: New file.
70063         * doc/posix-functions/linkat.texi: New file.
70064         * doc/posix-functions/mkdirat.texi: New file.
70065         * doc/posix-functions/mkfifoat.texi: New file.
70066         * doc/posix-functions/mknodat.texi: New file.
70067         * doc/posix-functions/open_wmemstream.texi: New file.
70068         * doc/posix-functions/openat.texi: New file.
70069         * doc/posix-functions/psiginfo.texi: New file.
70070         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
70071         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
70072         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
70073         * doc/posix-functions/readlinkat.texi: New file.
70074         * doc/posix-functions/renameat.texi: New file.
70075         * doc/posix-functions/strerror_l.texi: New file.
70076         * doc/posix-functions/symlinkat.texi: New file.
70077         * doc/posix-functions/unlinkat.texi: New file.
70078         * doc/posix-functions/utimensat.texi: New file.
70079         * doc/gnulib.texi (Function Substitutes): Add these subsections.
70081 2008-12-14  Bruno Haible  <bruno@clisp.org>
70083         Update doc for POSIX:2008.
70084         * doc/posix-functions/alphasort.texi: Renamed from
70085         doc/glibc-functions/alphasort.texi.
70086         * doc/posix-functions/dirfd.texi: Renamed from
70087         doc/glibc-functions/dirfd.texi.
70088         * doc/posix-functions/dprintf.texi: Renamed from
70089         doc/glibc-functions/dprintf.texi.
70090         * doc/posix-functions/duplocale.texi: Renamed from
70091         doc/glibc-functions/duplocale.texi.
70092         * doc/posix-functions/fexecve.texi: Renamed from
70093         doc/glibc-functions/fexecve.texi.
70094         * doc/posix-functions/fmemopen.texi: Renamed from
70095         doc/glibc-functions/fmemopen.texi.
70096         * doc/posix-functions/freelocale.texi: Renamed from
70097         doc/glibc-functions/freelocale.texi.
70098         * doc/posix-functions/getdate_err.texi: Renamed from
70099         doc/glibc-functions/getdate_err.texi.
70100         * doc/posix-functions/isalnum_l.texi: Renamed from
70101         doc/glibc-functions/isalnum_l.texi.
70102         * doc/posix-functions/isalpha_l.texi: Renamed from
70103         doc/glibc-functions/isalpha_l.texi.
70104         * doc/posix-functions/isblank_l.texi: Renamed from
70105         doc/glibc-functions/isblank_l.texi.
70106         * doc/posix-functions/iscntrl_l.texi: Renamed from
70107         doc/glibc-functions/iscntrl_l.texi.
70108         * doc/posix-functions/isdigit_l.texi: Renamed from
70109         doc/glibc-functions/isdigit_l.texi.
70110         * doc/posix-functions/isgraph_l.texi: Renamed from
70111         doc/glibc-functions/isgraph_l.texi.
70112         * doc/posix-functions/islower_l.texi: Renamed from
70113         doc/glibc-functions/islower_l.texi.
70114         * doc/posix-functions/isprint_l.texi: Renamed from
70115         doc/glibc-functions/isprint_l.texi.
70116         * doc/posix-functions/ispunct_l.texi: Renamed from
70117         doc/glibc-functions/ispunct_l.texi.
70118         * doc/posix-functions/isspace_l.texi: Renamed from
70119         doc/glibc-functions/isspace_l.texi.
70120         * doc/posix-functions/isupper_l.texi: Renamed from
70121         doc/glibc-functions/isupper_l.texi.
70122         * doc/posix-functions/iswalnum_l.texi: Renamed from
70123         doc/glibc-functions/iswalnum_l.texi.
70124         * doc/posix-functions/iswalpha_l.texi: Renamed from
70125         doc/glibc-functions/iswalpha_l.texi.
70126         * doc/posix-functions/iswblank_l.texi: Renamed from
70127         doc/glibc-functions/iswblank_l.texi.
70128         * doc/posix-functions/iswcntrl_l.texi: Renamed from
70129         doc/glibc-functions/iswcntrl_l.texi.
70130         * doc/posix-functions/iswctype_l.texi: Renamed from
70131         doc/glibc-functions/iswctype_l.texi.
70132         * doc/posix-functions/iswdigit_l.texi: Renamed from
70133         doc/glibc-functions/iswdigit_l.texi.
70134         * doc/posix-functions/iswgraph_l.texi: Renamed from
70135         doc/glibc-functions/iswgraph_l.texi.
70136         * doc/posix-functions/iswlower_l.texi: Renamed from
70137         doc/glibc-functions/iswlower_l.texi.
70138         * doc/posix-functions/iswprint_l.texi: Renamed from
70139         doc/glibc-functions/iswprint_l.texi.
70140         * doc/posix-functions/iswpunct_l.texi: Renamed from
70141         doc/glibc-functions/iswpunct_l.texi.
70142         * doc/posix-functions/iswspace_l.texi: Renamed from
70143         doc/glibc-functions/iswspace_l.texi.
70144         * doc/posix-functions/iswupper_l.texi: Renamed from
70145         doc/glibc-functions/iswupper_l.texi.
70146         * doc/posix-functions/iswxdigit_l.texi: Renamed from
70147         doc/glibc-functions/iswxdigit_l.texi.
70148         * doc/posix-functions/isxdigit_l.texi: Renamed from
70149         doc/glibc-functions/isxdigit_l.texi.
70150         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
70151         doc/glibc-functions/mbsnrtowcs.texi.
70152         * doc/posix-functions/mkdtemp.texi: Renamed from
70153         doc/glibc-functions/mkdtemp.texi.
70154         * doc/posix-functions/newlocale.texi: Renamed from
70155         doc/glibc-functions/newlocale.texi.
70156         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
70157         doc/glibc-functions/nl_langinfo_l.texi.
70158         * doc/posix-functions/open_memstream.texi: Renamed from
70159         doc/glibc-functions/open_memstream.texi.
70160         * doc/posix-functions/opterr.texi: Renamed from
70161         doc/glibc-functions/opterr.texi.
70162         * doc/posix-functions/optind.texi: Renamed from
70163         doc/glibc-functions/optind.texi.
70164         * doc/posix-functions/optopt.texi: Renamed from
70165         doc/glibc-functions/optopt.texi.
70166         * doc/posix-functions/psignal.texi: Renamed from
70167         doc/glibc-functions/psignal.texi.
70168         * doc/posix-functions/scandir.texi: Renamed from
70169         doc/glibc-functions/scandir.texi.
70170         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
70171         doc/glibc-functions/sched_get_priority_min.texi.
70172         * doc/posix-functions/signgam.texi: Renamed from
70173         doc/glibc-functions/signgam.texi.
70174         * doc/posix-functions/stpcpy.texi: Renamed from
70175         doc/glibc-functions/stpcpy.texi.
70176         * doc/posix-functions/stpncpy.texi: Renamed from
70177         doc/glibc-functions/stpncpy.texi.
70178         * doc/posix-functions/strcasecmp_l.texi: Renamed from
70179         doc/glibc-functions/strcasecmp_l.texi.
70180         * doc/posix-functions/strcoll_l.texi: Renamed from
70181         doc/glibc-functions/strcoll_l.texi.
70182         * doc/posix-functions/strfmon_l.texi: Renamed from
70183         doc/glibc-functions/strfmon_l.texi.
70184         * doc/posix-functions/strftime_l.texi: Renamed from
70185         doc/glibc-functions/strftime_l.texi.
70186         * doc/posix-functions/strncasecmp_l.texi: Renamed from
70187         doc/glibc-functions/strncasecmp_l.texi.
70188         * doc/posix-functions/strndup.texi: Renamed from
70189         doc/glibc-functions/strndup.texi.
70190         * doc/posix-functions/strnlen.texi: Renamed from
70191         doc/glibc-functions/strnlen.texi.
70192         * doc/posix-functions/strsignal.texi: Renamed from
70193         doc/glibc-functions/strsignal.texi.
70194         * doc/posix-functions/strxfrm_l.texi: Renamed from
70195         doc/glibc-functions/strxfrm_l.texi.
70196         * doc/posix-functions/timer_gettime.texi: Renamed from
70197         doc/glibc-functions/timer_gettime.texi.
70198         * doc/posix-functions/tolower_l.texi: Renamed from
70199         doc/glibc-functions/tolower_l.texi.
70200         * doc/posix-functions/toupper_l.texi: Renamed from
70201         doc/glibc-functions/toupper_l.texi.
70202         * doc/posix-functions/towctrans_l.texi: Renamed from
70203         doc/glibc-functions/towctrans_l.texi.
70204         * doc/posix-functions/towlower_l.texi: Renamed from
70205         doc/glibc-functions/towlower_l.texi.
70206         * doc/posix-functions/towupper_l.texi: Renamed from
70207         doc/glibc-functions/towupper_l.texi.
70208         * doc/posix-functions/uselocale.texi: Renamed from
70209         doc/glibc-functions/uselocale.texi.
70210         * doc/posix-functions/vdprintf.texi: Renamed from
70211         doc/glibc-functions/vdprintf.texi.
70212         * doc/posix-functions/wcpcpy.texi:
70213         Renamed from doc/glibc-functions/wcpcpy.texi.
70214         * doc/posix-functions/wcpncpy.texi: Renamed from
70215         doc/glibc-functions/wcpncpy.texi.
70216         * doc/posix-functions/wcscasecmp.texi: Renamed from
70217         doc/glibc-functions/wcscasecmp.texi.
70218         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
70219         doc/glibc-functions/wcscasecmp_l.texi.
70220         * doc/posix-functions/wcscoll_l.texi: Renamed from
70221         doc/glibc-functions/wcscoll_l.texi.
70222         * doc/posix-functions/wcsdup.texi: Renamed from
70223         doc/glibc-functions/wcsdup.texi.
70224         * doc/posix-functions/wcsncasecmp.texi: Renamed from
70225         doc/glibc-functions/wcsncasecmp.texi.
70226         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
70227         doc/glibc-functions/wcsncasecmp_l.texi.
70228         * doc/posix-functions/wcsnlen.texi: Renamed from
70229         doc/glibc-functions/wcsnlen.texi.
70230         * doc/posix-functions/wcsnrtombs.texi: Renamed from
70231         doc/glibc-functions/wcsnrtombs.texi.
70232         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
70233         doc/glibc-functions/wcsxfrm_l.texi.
70234         * doc/posix-functions/wctrans_l.texi: Renamed from
70235         doc/glibc-functions/wctrans_l.texi.
70236         * doc/posix-functions/wctype_l.texi: Renamed from
70237         doc/glibc-functions/wctype_l.texi.
70238         * doc/gnulib.texi (Function Substitutes): Add these subsections.
70239         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
70240         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
70241         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
70242         these subsections.
70243         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
70244         Remove sections.
70246 2008-12-14  Bruno Haible  <bruno@clisp.org>
70248         Update doc for POSIX:2008.
70249         * doc/posix-functions/*.texi: Update URL of POSIX specification.
70251 2008-12-14  Bruno Haible  <bruno@clisp.org>
70253         Update doc for POSIX:2008.
70254         * doc/pastposix-functions/bcmp.texi: Renamed from
70255         doc/posix-functions/bcmp.texi.
70256         * doc/pastposix-functions/bcopy.texi: Renamed from
70257         doc/posix-functions/bcopy.texi.
70258         * doc/pastposix-functions/bsd_signal.texi: Renamed from
70259         doc/posix-functions/bsd_signal.texi.
70260         * doc/pastposix-functions/bzero.texi: Renamed from
70261         doc/posix-functions/bzero.texi.
70262         * doc/pastposix-functions/ecvt.texi: Renamed from
70263         doc/posix-functions/ecvt.texi.
70264         * doc/pastposix-functions/fcvt.texi: Renamed from
70265         doc/posix-functions/fcvt.texi.
70266         * doc/pastposix-functions/ftime.texi: Renamed from
70267         doc/posix-functions/ftime.texi.
70268         * doc/pastposix-functions/gcvt.texi: Renamed from
70269         doc/posix-functions/gcvt.texi.
70270         * doc/pastposix-functions/getcontext.texi: Renamed from
70271         doc/posix-functions/getcontext.texi.
70272         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
70273         doc/posix-functions/gethostbyaddr.texi.
70274         * doc/pastposix-functions/gethostbyname.texi: Renamed from
70275         doc/posix-functions/gethostbyname.texi.
70276         * doc/pastposix-functions/getwd.texi: Renamed from
70277         doc/posix-functions/getwd.texi.
70278         * doc/pastposix-functions/h_errno.texi: Renamed from
70279         doc/posix-functions/h_errno.texi.
70280         * doc/pastposix-functions/index.texi: Renamed from
70281         doc/posix-functions/index.texi.
70282         * doc/pastposix-functions/makecontext.texi: Renamed from
70283         doc/posix-functions/makecontext.texi.
70284         * doc/pastposix-functions/mktemp.texi: Renamed from
70285         doc/posix-functions/mktemp.texi.
70286         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
70287         doc/posix-functions/pthread_attr_getstackaddr.texi.
70288         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
70289         doc/posix-functions/pthread_attr_setstackaddr.texi.
70290         * doc/pastposix-functions/rindex.texi: Renamed from
70291         doc/posix-functions/rindex.texi.
70292         * doc/pastposix-functions/scalb.texi: Renamed from
70293         doc/posix-functions/scalb.texi.
70294         * doc/pastposix-functions/setcontext.texi: Renamed from
70295         doc/posix-functions/setcontext.texi.
70296         * doc/pastposix-functions/swapcontext.texi: Renamed from
70297         doc/posix-functions/swapcontext.texi.
70298         * doc/pastposix-functions/ualarm.texi: Renamed from
70299         doc/posix-functions/ualarm.texi.
70300         * doc/pastposix-functions/usleep.texi: Renamed from
70301         doc/posix-functions/usleep.texi.
70302         * doc/pastposix-functions/vfork.texi: Renamed from
70303         doc/posix-functions/vfork.texi.
70304         * doc/pastposix-functions/wcswcs.texi: Renamed from
70305         doc/posix-functions/wcswcs.texi.
70306         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
70307         (Function Substitutes): Update.
70309 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70311         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
70312         m4/strerror.m4.
70314 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70315             Bruno Haible  <bruno@clisp.org>
70317         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
70319 2008-12-13  Bruno Haible  <bruno@clisp.org>
70321         * modules/strtoull (Depends-on): Remove unistd.
70323 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70325         * modules/strtoull (Depends-on): Add stdlib.
70327 2008-12-11  Simon Josefsson  <simon@josefsson.org>
70329         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
70331 2008-12-10  Jim Meyering  <meyering@redhat.com>
70333         gl_ASSERT: don't say assertions are disabled when they're not
70334         * m4/assert.m4 (gl_ASSERT): Do not make configure report
70335         "checking whether to enable assertions... no", when they are in
70336         fact enabled.  This is solely a bug in the output of configure.
70337         In spite of saying "no", NDEBUG was not defined in that case.
70338         Also, as noted by Eric Blake, leave assertions enabled upon
70339         --enable-assert=INVALID.
70341 2008-12-10  Bruno Haible  <bruno@clisp.org>
70343         Change MODULES.html to refer to POSIX:2008 where possible.
70344         * MODULES.html.sh (POSIX2008_URL): New variable.
70345         (posix_headers): Remove sys/timeb, ucontext.
70346         (posix2001_headers): New variable.
70347         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
70348         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
70349         index, makecontext, mktemp, pthread_attr_getstackaddr,
70350         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
70351         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
70352         (posix2001_functions): New variable.
70353         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
70354         otherwise.
70356 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70358         add missing include to parse-duration.c
70359         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
70360         * modules/parse-duration (Depends-on): Add xalloc.
70362         fix sed script reading maint.mk
70363         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
70364         (syntax-check-rules): Use it.
70366 2008-12-09  Bruno Haible  <bruno@clisp.org>
70368         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
70369         MacOS X 10.4/PowerPC.
70370         Reported by Simon Josefsson.
70372 2008-12-08  Jim Meyering  <meyering@redhat.com>
70374         work around mingw's lack of some S_IF definitions
70375         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
70376         Reported by Simon Josefsson.
70378 2008-12-08  Bruno Haible  <bruno@clisp.org>
70380         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
70381         applied to variables. Needed on MacOS X 10.4/PowerPC.
70382         Reported by Simon Josefsson.
70384 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
70385         and Eric Blake  <ebb9@byu.net>
70387         assert: honor --enable-assert
70388         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
70389         order to honor --enable-assert, rather than treating it as a
70390         synonym for --disable-assert.
70392 2008-12-08  Jim Meyering  <meyering@redhat.com>
70394         * lib/posixtm.c: Remove now-useless declaration of mktime.
70396         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
70398 2008-12-07  Bruno Haible  <bruno@clisp.org>
70400         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
70401         test_once): Mark functions as static.
70402         * tests/test-tls.c (test_tls): Likewise.
70404 2008-12-07  Bruno Haible  <bruno@clisp.org>
70406         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
70407         iconv_register_autodetect.
70409 2008-12-07  Jim Meyering  <meyering@redhat.com>
70411         posixtm.c: avoid a warning
70412         * lib/posixtm.c (posixtime): Don't initialize tm0.
70413         It's no longer needed to placate gcc4's -Wuninitialized,
70414         and the attempt to placate would elicit a new warning.
70416         unicodeio.c: mark unused parameters
70417         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
70418         (fallback_failure_callback): Likewise.
70420 2008-12-07  Bruno Haible  <bruno@clisp.org>
70422         * gnulib-tool (func_create_testdir): When building the tests
70423         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
70424         Reported by Simon Josefsson.
70426 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70428         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
70430 2008-12-06  Bruno Haible  <bruno@clisp.org>
70432         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
70433         Suggested by Eric Blake.
70435 2008-12-06  Bruno Haible  <bruno@clisp.org>
70437         Fix a c-stack test failure on MacOS X.
70438         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
70439         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
70440         handler for SIGBUS as well.
70441         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
70442         install a signal handler for SIGBUS as well.
70443         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
70445 2008-12-06  Bruno Haible  <bruno@clisp.org>
70447         Advocacy documentation.
70448         * doc/gnulib-intro.texi (Benefits): New section.
70449         * doc/gnulib.texi: Update.
70451 2008-12-06  Bruno Haible  <bruno@clisp.org>
70453         Document the 'manywarnings' module.
70454         * doc/manywarnings.texi: New file.
70455         * doc/gnulib.texi: Include it.
70457 2008-12-05  Eric Blake  <ebb9@byu.net>
70459         tests: silence some gcc warnings
70460         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
70461         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
70462         type mismatches.
70464 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70465             Bruno Haible  <bruno@clisp.org>
70467         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
70469 2008-11-29  Jim Meyering  <meyering@redhat.com>
70471         unicodeio.c: mark unused parameters
70472         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
70473         (fallback_failure_callback): Likewise.
70475         fts: fix a thinko
70476         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
70477         (set_stat_type): Return S_IF*-valued "type" directly.
70478         Prompted by James Youngman's spotting a related bug.
70479         Confirmed by further testing through find.
70481         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
70482         * lib/fts.c (D_TYPE): Define.
70483         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
70484         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
70485         (s_ifmt_shift_bits): New function.
70486         (set_stat_type): New function.
70487         (fts_build): When not calling fts_stat, call set_stat_type
70488         to propagate dirent.d_type info to fts_read caller.
70489         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
70490         fts_statp->st_mode type information may be valid.
70492 2008-11-28  Simon Josefsson  <simon@josefsson.org>
70494         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
70495         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
70496         <sds@gnu.org>.
70498 2008-11-20  Bruno Haible  <bruno@clisp.org>
70500         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
70501         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
70502         INCLUDE_NEXT.
70503         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
70504         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
70505         * modules/math (Makefile.am): Substitute
70506         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
70507         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70509 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
70510             Bruno Haible  <bruno@clisp.org>
70512         * lib/stdint.in.h: Define all type macros so that their expansion is
70513         a single typedef'ed token. Fixes a compilation failure in Boost which
70514         does "using ::int8_t;".
70516 2008-11-18  Simon Josefsson  <simon@josefsson.org>
70518         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
70519         gl_MANYWARN_ALL_GCC.
70520         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
70521         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
70522         * modules/manywarnings: New file.
70523         * MODULES.html.sh: Mention manywarnings module.
70525 2008-11-18  Bruno Haible  <bruno@clisp.org>
70527         * doc/gnulib-tool.texi (Unit tests): New section.
70529 2008-11-18  Simon Josefsson  <simon@josefsson.org>
70531         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
70532         paths like 'lib/po/foo.po'.
70534 2008-11-17  Simon Josefsson  <simon@josefsson.org>
70536         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
70537         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
70539 2008-11-17  Simon Josefsson  <simon@josefsson.org>
70541         * m4/warnings.m4: Use CPPFLAGS to really check whether the
70542         parameter works.
70544 2008-11-17  Simon Josefsson  <simon@josefsson.org>
70546         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
70548 2008-11-17  Bruce Korb  <bkorb@gnu.org>
70550         * modules/parse-duration-tests: New file.
70551         * tests/test-parse-duration.sh: New file.
70552         * tests/test-parse-duration.c: New file.
70554         New module 'parse-duration'.
70555         * lib/parse-duration.h: New file.
70556         * lib/parse-duration.c: New file.
70557         * modules/parse-duration: New file.
70559 2008-11-17  Bruno Haible  <bruno@clisp.org>
70561         * tests/test-select-out.sh: Comment out the first pipe test.
70562         Reported by Simon Josefsson.
70564 2008-11-17  Bruno Haible  <bruno@clisp.org>
70566         * modules/getaddrinfo (Depends-on): Add servent, hostent.
70567         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
70568         gl_HOSTENT.
70570 2008-11-17  Bruno Haible  <bruno@clisp.org>
70572         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
70573         -lnetwork and -lnet. Needed for Haiku and BeOS.
70575 2008-11-16  Bruno Haible  <bruno@clisp.org>
70577         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
70579 2008-11-16  Bruno Haible  <bruno@clisp.org>
70581         Avoid test failure on Haiku.
70582         * tests/test-fsync.c: Include <errno.h>.
70583         (main): Don't require that fsync (0) fails.
70585 2008-11-15  Bruno Haible  <bruno@clisp.org>
70587         New module 'hostent'.
70588         * modules/hostent: New file.
70589         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
70591 2008-11-15  Bruno Haible  <bruno@clisp.org>
70593         New module 'servent'.
70594         * modules/servent: New file.
70595         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
70597 2008-11-15  Bruno Haible  <bruno@clisp.org>
70599         Avoid generating same test program with two different rules.
70600         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
70601         test-frexp to test-frexp-nolibm.
70602         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
70603         test-frexpl to test-frexpl-nolibm.
70605 2008-11-15  Bruno Haible  <bruno@clisp.org>
70607         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
70608         $(FREXPL_LIBM).
70610 2008-11-15  Bruno Haible  <bruno@clisp.org>
70612         * lib/netdb.in.h: Activate the definitions also when the system's
70613         <netdb.h> has 'struct addrinfo'.
70614         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
70615         EAI_OVERFLOW or AI_NUMERICSERV.
70616         * doc/posix-headers/netdb.texi: Document the problem.
70618 2008-11-15  Bruno Haible  <bruno@clisp.org>
70620         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
70622         Make the 'sched' module work on platforms where <sched.h> exists but
70623         is incomplete (such as Haiku).
70624         * lib/sched.in.h; Include the system's <sched.h> if it exists.
70625         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
70626         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
70627         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
70628         HAVE_STRUCT_SCHED_PARAM.
70629         * modules/sched (Depends-on): Add include_next.
70630         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
70631         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
70632         * doc/posix-headers/sched.texi: Document the issue.
70634 2008-11-13  Jim Meyering  <meyering@redhat.com>
70636         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
70637         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
70638         test would fail due to the difference in the Report bugs to ...
70639         line.  The expected address is empty, "<>", while the actual
70640         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
70642 2008-11-12  Bruno Haible  <bruno@clisp.org>
70644         lstat: don't compile lstat.c on systems lacking lstat
70645         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
70646         which don't have lstat; this is handled by lib/sys_stat.in.h already.
70647         Reported by Daniel P. Berrange via Jim Meyering.
70649 2008-11-12  Jim Meyering  <meyering@redhat.com>
70651         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
70653 2008-11-12  Simon Josefsson  <simon@josefsson.org>
70655         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
70656         instead.
70658 2008-11-12  Bruno Haible  <bruno@clisp.org>
70660         * lib/unicodeio.c: Include unistr.h.
70661         (utf8_wctomb): Remove function.
70662         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
70664 2008-11-12  Simon Josefsson  <simon@josefsson.org>
70666         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
70667         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
70668         <bruno@clisp.org>.
70669         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
70671 2008-11-12  Simon Josefsson  <simon@josefsson.org>
70673         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
70674         * doc/gnulib.texi: Add section for warnings.
70676 2008-11-11  Bruno Haible  <bruno@clisp.org>
70678         * lib/sockets.h: Add a comment.
70680 2008-11-11  Karl Berry  <karl@gnu.org>
70682         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
70684 2008-11-11  Eric Blake  <ebb9@byu.net>
70686         fdl.texi: avoid git symlinks
70687         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
70689 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70691         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
70693 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70695         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
70696         (gl_WARN_ADD): Substitute $2 if literal.
70698 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70700         * m4/warning.m4: Remove.
70702 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70704         * m4/warnings.m4: Almost complete rewrite. :-)
70706 2008-11-10  Simon Josefsson  <simon@josefsson.org>
70708         * modules/warnings: New module.
70709         * m4/warnings.m4: New file.
70710         * MODULES.html.sh: Mention warnings module.
70711         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
70712         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70714 2008-11-10  Eric Blake  <ebb9@byu.net>
70716         fdl.texi: make a symlink to the latest version
70717         * doc/standards.texi: Revert today's earlier change.
70718         * doc/fdl-1.2.texi: Rename from old fdl.texi...
70719         * doc/fdl.texi: ...and replace this with a symlink to the newer
70720         fdl-1.3.texi.
70722 2008-11-10  Bruno Haible  <bruno@clisp.org>
70724         * tests/test-select-fd.c (main): Accept the result file name as fourth
70725         argument.
70726         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
70727         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
70729 2008-11-10  Bruno Haible  <bruno@clisp.org>
70731         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
70732         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
70733         as autoconf-substituted macros.
70734         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
70735         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
70736         gl_NETDB_H_DEFAULTS. Set these variables.
70737         * modules/netdb (Makefile.am): Substitute these variables.
70739 2008-11-10  Eric Blake  <ebb9@byu.net>
70741         standards.texi: include correct file for FDL 1.3
70742         * doc/standards.texi (GNU Free Documentation License): Change
70743         include file to pull in FDL 1.3, not 1.2.
70745         fdl.texi: revert accidental change to license
70746         * doc/fdl.texi: This is FDL 1.2, not 1.3.
70748 2008-11-10  Bruno Haible  <bruno@clisp.org>
70750         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
70751         cross-compiling guesses also when the native compile gives no result.
70753 2008-11-10  Bruno Haible  <bruno@clisp.org>
70755         * lib/spawni.c (__spawni): Force variable into the stack.
70757 2008-11-10  Bruno Haible  <bruno@clisp.org>
70759         Add support for Haiku.
70760         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
70761         glibc and BeOS, but also on Haiku.
70762         * lib/fpurge.c (fpurge): Likewise.
70763         * lib/freadable.c (freadable): Likewise.
70764         * lib/freadahead.c (freadahead): Likewise.
70765         * lib/freading.c (freading): Likewise.
70766         * lib/freadptr.c (freadptr): Likewise.
70767         * lib/freadseek.c (freadptrinc): Likewise.
70768         * lib/fseeko.c (rpl_fseeko): Likewise.
70769         * lib/fseterr.c (fseterr): Likewise.
70770         * lib/fwritable.c (fwritable): Likewise.
70771         * lib/fwriting.c (fwriting): Likewise.
70772         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
70774 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
70776         * lib/config.charset: Treat Haiku like BeOS.
70778 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
70780         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
70781         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
70783 2008-11-08  Bruno Haible  <bruno@clisp.org>
70785         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
70786         AC_CACHE_CHECK.
70788 2008-11-08  Bruno Haible  <bruno@clisp.org>
70790         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
70792 2008-11-08  Bruno Haible  <bruno@clisp.org>
70794         * tests/test-select-fd.c: New file.
70795         * tests/test-select-in.sh: New file.
70796         * tests/test-select-out.sh: New file.
70797         * tests/test-select-stdin.c: New file.
70798         * modules/select-tests (Files): Add the new files.
70799         (Depends-on): Add gettimeofday.
70800         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
70801         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
70802         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
70804 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
70805             Bruno Haible  <bruno@clisp.org>
70807         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
70809 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
70811         * build-aux/pmccabe2html: Added support for C++ source files.
70813 2008-11-05  Ben Pfaff  <blp@gnu.org>
70815         Fix lib/close.c build on Windows.
70816         * modules/close (Files): Add lib/w32sock.h.
70818 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
70820         Accept Bison's NEWS format.
70821         * build-aux/announce-gen (print_news_deltas): Tweak
70822         $re_prefix.
70824 2008-11-04  Bruno Haible  <bruno@clisp.org>
70826         * modules/random_r (Maintainer): Add glibc.
70828 2008-11-04  Simon Josefsson  <simon@josefsson.org>
70830         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
70831         by karl@freefriends.org (Karl Berry).
70832         * doc/alloca.texi: Likewise.
70833         * doc/c-ctype.texi: Likewise.
70834         * doc/c-strcase.texi: Likewise.
70835         * doc/c-strcaseeq.texi: Likewise.
70836         * doc/c-strcasestr.texi: Likewise.
70837         * doc/c-strstr.texi: Likewise.
70838         * doc/c-strtod.texi: Likewise.
70839         * doc/c-strtold.texi: Likewise.
70840         * doc/ctime.texi: Likewise.
70841         * doc/error.texi: Likewise.
70842         * doc/fdl.texi: Likewise.
70843         * doc/gcd.texi: Likewise.
70844         * doc/getdate.texi: Likewise.
70845         * doc/gnulib-intro.texi: Likewise.
70846         * doc/gnulib-tool.texi: Likewise.
70847         * doc/gnulib.texi: Likewise.
70848         * doc/inet_ntoa.texi: Likewise.
70849         * doc/maintain.texi: Likewise.
70850         * doc/make-stds.texi: Likewise.
70851         * doc/quote.texi: Likewise.
70852         * doc/regexprops-generic.texi: Likewise.
70853         * doc/standards.texi: Likewise.
70854         * doc/verify.texi: Likewise.
70855         * doc/visibility.texi: Likewise.
70856         * doc/gnulib.texi (GNU Free Documentation License): Include
70857         fdl-1.3.texi instead of fdl.texi.
70859 2008-11-04  Simon Josefsson  <simon@josefsson.org>
70861         * doc/fdl-1.3.texi: New file, from
70862         <http://www.gnu.org/licenses/fdl-1.3.texi>.
70863         * modules/fdl-1.3: Add.
70864         * MODULES.html.sh: Add fdl-1.3.
70866 2008-11-03  Bruno Haible  <bruno@clisp.org>
70868         Make determination of absolute name of header file work with AIX xlc.
70869         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
70870         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
70871         preprocessing.
70872         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
70873         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
70875 2008-11-03  Simon Josefsson  <simon@josefsson.org>
70877         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
70878         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
70879         <ludo@gnu.org>.
70881 2008-11-02  Bruno Haible  <bruno@clisp.org>
70883         Mark 'strpbrk' obsolete.
70884         * modules/strpbrk (Status, Notice): New sections.
70885         * modules/strtok_r (Depends-on): Add strpbrk.
70887 2008-11-02  Bruno Haible  <bruno@clisp.org>
70889         Mark 'strdup' obsolete.
70890         * modules/strdup (Status, Notice): New sections.
70891         * modules/findprog (Depends-on): Add strdup.
70892         * modules/getaddrinfo (Depends-on): Likewise.
70893         * modules/localename (Depends-on): Likewise.
70894         * modules/relocatable-lib (Depends-on): Likewise.
70895         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
70896         * modules/relocatable-prog (Depends-on): Likewise.
70897         * modules/trim (Depends-on): Likewise.
70898         * modules/unictype/gen-ctype (Depends-on): Likewise.
70899         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
70901 2008-11-02  Bruno Haible  <bruno@clisp.org>
70903         Mark 'strcspn' obsolete.
70904         * modules/strcspn (Status, Notice): New sections.
70906 2008-11-02  Bruno Haible  <bruno@clisp.org>
70908         Mark 'rmdir' obsolete.
70909         * modules/rmdir (Status, Notice): New sections.
70910         * modules/clean-temp (Depends-on): Add rmdir.
70911         * modules/openat (Depends-on): Likewise.
70913 2008-11-02  Bruno Haible  <bruno@clisp.org>
70915         Mark 'raise' obsolete.
70916         * modules/raise (Status, Notice): New sections.
70917         (Include): Specify <signal.h>.
70918         * modules/stdio (Depends-on): Add raise.
70919         * modules/write (Depends-on): Likewise.
70921 2008-11-02  Bruno Haible  <bruno@clisp.org>
70923         Mark 'memset' obsolete.
70924         * modules/memset (Status, Notice): New sections.
70926 2008-11-02  Bruno Haible  <bruno@clisp.org>
70928         Mark 'memmove' obsolete.
70929         * modules/memmove (Status, Notice): New sections.
70930         * modules/argp (Depends-on): Add memmove.
70931         * modules/argz (Depends-on): Likewise.
70932         * modules/canonicalize (Depends-on): Likewise.
70933         * modules/canonicalize-lgpl (Depends-on): Likewise.
70934         * modules/fts (Depends-on): Likewise.
70935         * modules/getcwd (Depends-on): Likewise.
70936         * modules/human (Depends-on): Likewise.
70937         * modules/regex (Depends-on): Likewise.
70938         * modules/striconveh (Depends-on): Likewise.
70939         * modules/trim (Depends-on): Likewise.
70940         * modules/unistr/u8-move (Depends-on): Likewise.
70941         * modules/unistr/u16-move (Depends-on): Likewise.
70942         * modules/unistr/u32-move (Depends-on): Likewise.
70944 2008-11-02  Bruno Haible  <bruno@clisp.org>
70946         Mark 'memcpy' obsolete.
70947         * modules/memcpy (Status, Notice): New sections.
70949 2008-11-02  Bruno Haible  <bruno@clisp.org>
70951         Mark 'memcmp' obsolete.
70952         * modules/memcmp (Status, Notice): New sections.
70953         * modules/argmatch (Depends-on): Add memchr.
70954         * modules/backupfile (Depends-on): Likewise.
70955         * modules/c-strcasestr (Depends-on): Likewise.
70956         * modules/crypto/des (Depends-on): Likewise.
70957         * modules/csharpcomp (Depends-on): Likewise.
70958         * modules/fnmatch (Depends-on): Likewise.
70959         * modules/git-merge-changelog (Depends-on): Likewise.
70960         * modules/isnand (Depends-on): Likewise.
70961         * modules/isnand-nolibm (Depends-on): Likewise.
70962         * modules/isnanf (Depends-on): Likewise.
70963         * modules/isnanf-nolibm (Depends-on): Likewise.
70964         * modules/isnanl (Depends-on): Likewise.
70965         * modules/isnanl-nolibm (Depends-on): Likewise.
70966         * modules/mbchar (Depends-on): Likewise.
70967         * modules/memcoll (Depends-on): Likewise.
70968         * modules/quotearg (Depends-on): Likewise.
70969         * modules/regex (Depends-on): Likewise.
70970         * modules/relocatable-prog (Depends-on): Likewise.
70971         * modules/same (Depends-on): Likewise.
70972         * modules/signbit (Depends-on): Likewise.
70973         * modules/strcasestr-simple (Depends-on): Likewise.
70974         * modules/unictype/gen-ctype (Depends-on): Likewise.
70975         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
70976         * modules/uniname/uniname (Depends-on): Likewise.
70977         * modules/unistr/u8-cmp (Depends-on): Likewise.
70979 2008-11-02  Bruno Haible  <bruno@clisp.org>
70981         Mark 'memchr' obsolete.
70982         * modules/memchr (Status, Notice): New sections.
70983         * modules/argp (Depends-on): Add memchr.
70984         * modules/base64 (Depends-on): Likewise.
70985         * modules/c-strcasestr (Depends-on): Likewise.
70986         * modules/chdir-long (Depends-on): Likewise.
70987         * modules/fnmatch (Depends-on): Likewise.
70988         * modules/getsubopt (Depends-on): Likewise.
70989         * modules/git-merge-changelog (Depends-on): Likewise.
70990         * modules/glob (Depends-on): Likewise.
70991         * modules/strcasestr-simple (Depends-on): Likewise.
70992         * modules/strnlen (Depends-on): Likewise.
70994 2008-11-02  Bruno Haible  <bruno@clisp.org>
70996         Mark 'atexit' obsolete.
70997         * modules/atexit (Status, Notice): New sections.
70998         * modules/chdir-long (Depends-on): Add atexit.
70999         * modules/wait-process (Depends-on): Likewise.
71001 2008-11-02  Bruno Haible  <bruno@clisp.org>
71003         * gnulib-tool: New option --with-obsolete.
71004         (func_usage): Document it.
71005         (func_modules_transitive_closure): Drop obsolete dependencies if
71006         incobsolete is not true.
71007         (func_import): Read and save the incobsolete variable to the cache.
71009 2008-11-02  Bruno Haible  <bruno@clisp.org>
71011         * modules/TEMPLATE-EXTENDED: New field 'Status'.
71012         * gnulib-tool: New option --extract-status.
71013         (func_usage): Document it.
71014         (sed_extract_prog): Recognize it.
71015         (func_get_status): New function.
71017 2008-10-30  Simon Josefsson  <simon@josefsson.org>
71019         * modules/sockets (License): Change from LGPL to LGPLv2+.
71021 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71023         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
71025 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71027         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71028         Mention times and sys_times.
71029         * modules/sys_times, modules/sys_times-tests: New modules.
71030         * modules/times, modules/times-tests: Likewise
71031         * m4/sys_times_h.m4: New file.
71032         * lib/sys_times.in.h: Likewise
71033         * lib/times.c: Likewise.
71034         * tests/test-sys_times.c: Likewise.
71035         * tests/test-times.c: Likewise.
71036         * doc/posix-headers/sys_times.texi: Update.
71037         * doc/posix-functions/times.texi: Update.
71039 2008-10-28  Jim Meyering  <meyering@redhat.com>
71041         * modules/tempname (Depends-on): Add lstat.
71043         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
71045 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71047         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
71048         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
71049         using idiom used elsewhere in gnulib.
71051 2008-10-27  Jim Meyering  <meyering@redhat.com>
71053         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
71055 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71057         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
71058         TESTS_ENVIRONMENT, for shell scripts that needs to call built
71059         programs.
71060         * tests/test-argp-2.sh: Use $EXEEXT when needed.
71062 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71064         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
71066 2008-10-27  Bruno Haible  <bruno@clisp.org>
71068         * tests/test-lstat.c: Include <stdio.h>.
71070 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71072         * modules/lstat-tests: New module.
71073         * tests/test-lstat.c: New file.
71075 2008-10-26  Jim Meyering  <meyering@redhat.com>
71077         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
71079 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71080             Bruno Haible  <bruno@clisp.org>
71082         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
71083         * modules/configmake (Include): Add a note that the include must come
71084         after all system headers.
71085         * lib/javaversion.c: Include configmake.h after all other includes.
71087 2008-10-26  Bruno Haible  <bruno@clisp.org>
71089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
71090         HAVE_STRUCT_RANDOM_DATA to 1.
71091         (gl_STDLIB_H): Simplify.
71093 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71095         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
71096         substitute HAVE_STRUCT_RANDOM_DATA.
71097         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
71098         random_data.
71099         * modules/stdlib (Makefile.am): Substitute
71100         HAVE_STRUCT_RANDOM_DATA.
71102 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71104         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
71105         * doc/gnulib-intro.texi (Copyright): Likewise.
71107 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71109         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
71110         findings.
71112 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
71113             Bruno Haible  <bruno@clisp.org>
71115         * lib/unistd.in.h: Include <winsock2.h>.
71116         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
71117         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
71118         Provide dummy declarations.
71119         (gethostname): Override.
71120         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
71121         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
71122         gl_PREREQ_SYS_H_WINSOCK2.
71123         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
71124         * doc/posix-functions/gethostname.texi: More details.
71126 2008-10-25  Bruno Haible  <bruno@clisp.org>
71128         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
71129         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
71130         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
71132         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
71133         here ...
71134         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
71135         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
71136         gl_UNISTD_H_DEFAULTS.
71138 2008-10-25  Eric Blake  <ebb9@byu.net>
71140         signbit: avoid spurious compiler failure
71141         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
71142         declarations inside function.
71144 2008-10-24  Simon Josefsson  <simon@josefsson.org>
71145             Bruno Haible  <bruno@clisp.org>
71147         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
71148         * modules/random_r (Depends-on): Add stdint.
71150 2008-10-24  Bruno Haible  <bruno@clisp.org>
71152         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
71153         Eggert.
71154         * modules/strerror (License): Likewise.
71156 2008-10-24  Jim Meyering  <meyering@redhat.com>
71158         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
71159         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
71161 2008-10-24  Eric Blake  <ebb9@byu.net>
71163         getgroups: fix compilation when getgroups is available
71164         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
71165         but with <config.h> override of getgroups disabled.
71167 2008-10-24  Simon Josefsson  <simon@josefsson.org>
71169         * doc/gnulib.texi (Header files): Add note about C++ problems.
71170         Explained by Bruno Haible <bruno@clisp.org>.
71172 2008-10-23  Bruno Haible  <bruno@clisp.org>
71174         Define a dummy SA_NODEFER macro on Interix.
71175         * lib/signal.in.h (SA_NODEFER): Define fallback.
71176         Reported by Aleksey Cheusov <cheusov@tut.by> via
71177         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
71179 2008-10-23  Bruno Haible  <bruno@clisp.org>
71181         * modules/freadahead (License): Change to LGPLv2+.
71182         Suggested by Simon Josefsson.
71184 2008-10-23  Jim Meyering  <meyering@redhat.com>
71186         random_r: new module
71187         * modules/random_r: New file.
71188         * m4/random_r.m4: New file.
71189         * lib/random_r.c: New file, from glibc.
71190         * modules/random_r-tests: New file.
71191         * tests/test-random_r.c: New file.
71192         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
71193          Declare.
71194         (RAND_MAX): Define.
71195         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
71196         * modules/stdlib: Substitute them, too.
71197         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
71198         * doc/glibc-functions/initstate_r.texi: Mention the new module.
71199         * doc/glibc-functions/random_r.texi: Likewise.
71200         * doc/glibc-functions/setstate_r.texi: Likewise.
71201         * doc/glibc-functions/srandom_r.texi: Likewise.
71202         * config/srclist.txt: Mention it.
71204 2008-10-23  David Lutterkort  <lutter@redhat.com>
71206         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
71207         link requirement
71209 2008-10-23  Jim Meyering  <meyering@redhat.com>
71211         selinux-h: mark parameters of stub functions as intentionally unused
71212         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
71213         * lib/se-context.in.h: Likewise.
71215 2008-10-22  Simon Josefsson  <simon@josefsson.org>
71217         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
71219 2008-10-22  Simon Josefsson  <simon@josefsson.org>
71221         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
71223 2008-10-22  Eric Blake  <ebb9@byu.net>
71225         glthread/thread: avoid compiler warning
71226         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
71227         Add unreachable abort to silence compiler.
71229 2008-10-22  Eric Blake  <ebb9@byu.net>
71231         netdb: also supply struct addrinfo for cygwin 1.5.x
71232         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
71233         older cygwin.
71234         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
71235         cygwin.
71236         * doc/posix-headers/netdb.texi (netdb.h): Document this.
71238 2008-10-22  Bruno Haible  <bruno@clisp.org>
71240         * users.txt: Update entry about pspp.
71242 2008-10-21  Bruno Haible  <bruno@clisp.org>
71244         Simplification.
71245         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
71246         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
71248         Simplification.
71249         * lib/ioctl.c (ioctl): Don't undefine.
71250         * lib/socket.c (socket): Don't undefine.
71252         Remove unused module indicator macros.
71253         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
71254         GNULIB_$1 as a C macro.
71256         * doc/posix-functions/close.texi: Undo last change.
71257         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
71258         Windows platforms.
71260 2008-10-21  Bruno Haible  <bruno@clisp.org>
71262         Add gethostname() declaration to <unistd.h>.
71263         * lib/unistd.in.h (gethostname): New declaration.
71264         * lib/gethostname.c: Include <unistd.h>.
71265         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
71266         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
71267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
71268         and HAVE_GETHOSTNAME.
71269         * modules/gethostname (Depends-on): Add unistd.
71270         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71271         (Include): Specify <unistd.h>.
71272         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
71273         HAVE_GETHOSTNAME.
71274         * tests/test-gethostname.c: Include <unistd.h> first.
71276 2008-10-21  Bruno Haible  <bruno@clisp.org>
71278         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
71279         * modules/select-tests (Depends-on): Likewise.
71280         Reported by Simon Josefsson.
71282 2008-10-21  Simon Josefsson  <simon@josefsson.org>
71284         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
71285         * lib/accept.c: New file, based on winsock.c.
71286         * lib/bind.c: New file, based on winsock.c.
71287         * lib/connect.c: New file, based on winsock.c.
71288         * lib/getpeername.c: New file, based on winsock.c.
71289         * lib/getsockname.c: New file, based on winsock.c.
71290         * lib/getsockopt.c: New file, based on winsock.c.
71291         * lib/ioctl.c: New file, based on winsock.c.
71292         * lib/listen.c: New file, based on winsock.c.
71293         * lib/recv.c: New file, based on winsock.c.
71294         * lib/recvfrom.c: New file, based on winsock.c.
71295         * lib/send.c: New file, based on winsock.c.
71296         * lib/sendto.c: New file, based on winsock.c.
71297         * lib/setsockopt.c: New file, based on winsock.c.
71298         * lib/shutdown.c: New file, based on winsock.c.
71299         * lib/socket.c: New file, based on winsock.c.
71300         * lib/w32sock.h: New file, based on winsock.c.
71301         * lib/winsock.c: Remove file.
71302         * modules/accept: Likewise.
71303         * modules/bind: Likewise.
71304         * modules/connect: Likewise.
71305         * modules/getpeername: Likewise.
71306         * modules/getsockname: Likewise.
71307         * modules/getsockopt: Likewise.
71308         * modules/ioctl: Likewise.
71309         * modules/listen: Likewise.
71310         * modules/recv: Likewise.
71311         * modules/recvfrom: Likewise.
71312         * modules/send: Likewise.
71313         * modules/sendto: Likewise.
71314         * modules/setsockopt: Likewise.
71315         * modules/shutdown: Likewise.
71316         * modules/socket: Use socket.c instead of winsock.c.
71317         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
71318         * doc/posix-functions/accept.texi: Doc fix.
71319         * doc/posix-functions/bind.texi: Doc fix.
71320         * doc/posix-functions/close.texi: Doc fix.
71321         * doc/posix-functions/connect.texi: Doc fix.
71322         * doc/posix-functions/getpeername.texi: Doc fix.
71323         * doc/posix-functions/getsockname.texi: Doc fix.
71324         * doc/posix-functions/getsockopt.texi: Doc fix.
71325         * doc/posix-functions/ioctl.texi: Doc fix.
71326         * doc/posix-functions/listen.texi: Doc fix.
71327         * doc/posix-functions/recv.texi: Doc fix.
71328         * doc/posix-functions/recvfrom.texi: Doc fix.
71329         * doc/posix-functions/send.texi: Doc fix.
71330         * doc/posix-functions/sendto.texi: Doc fix.
71331         * doc/posix-functions/setsockopt.texi: Doc fix.
71332         * doc/posix-functions/shutdown.texi: Doc fix.
71333         * doc/posix-functions/socket.texi: Doc fix.
71335 2008-10-20  Bruno Haible  <bruno@clisp.org>
71337         Take into account the role of SIGABRT_COMPAT on Windows 2008.
71338         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
71339         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
71340         as an alias for SIGABRT.
71341         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
71342         (sigaction): Map it to SIGABRT.
71343         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
71345 2008-10-20  Bruno Haible  <bruno@clisp.org>
71347         * lib/fts.c: Don't include lstat.h.
71348         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
71350         Move the lstat() declaration to <sys/stat.h>.
71351         * lib/lstat.h: Remove file.
71352         * lib/sys_stat.in.h: Add special invocation convention.
71353         (lstat): New declaration.
71354         * lib/lstat.c (orig_lstat): New function.
71355         (rpl_lstat): Use orig_lstat instead of lstat.
71356         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
71357         AC_C_INLINE. Set REPLACE_LSTAT.
71358         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
71359         and REPLACE_LSTAT.
71360         * modules/lstat (Files): Remove lib/lstat.h.
71361         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
71362         (Include): Specify <sys/stat.h> instead of lstat.h.
71363         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
71364         REPLACE_LSTAT.
71365         * NEWS: Mention the change.
71367 2008-10-20  Bruno Haible  <bruno@clisp.org>
71369         * modules/posix_spawn-tests: New file.
71370         * tests/test-posix_spawn3.c: New file.
71372 2008-10-20  Bruno Haible  <bruno@clisp.org>
71374         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
71375         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
71376         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
71377         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
71378         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
71380 2008-10-20  Bruno Haible  <bruno@clisp.org>
71382         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
71383         of posix_spawn on AIX 5.3.
71385 2008-10-20  Bruno Haible  <bruno@clisp.org>
71387         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
71389 2008-10-20  Bruno Haible  <bruno@clisp.org>
71391         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
71392         of AC_LANG_PROGRAM.
71394 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71396         * lib/netdb.in.h: Don't define GNU specific constants until they
71397         are supported or needed.  Reported by Bruno Haible
71398         <bruno@clisp.org>.
71400 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71402         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
71404 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71406         * lib/getaddrinfo.h: Remove file.
71407         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
71408         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
71409         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
71410         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
71411         * modules/netdb: Substitute GNULIB_GETADDRINFO.
71412         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
71413         * tests/test-getaddrinfo.c: Likewise.
71414         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
71415         * NEWS: Mention change.
71417 2008-10-19  Bruno Haible  <bruno@clisp.org>
71419         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
71421 2008-10-19  Bruno Haible  <bruno@clisp.org>
71423         * lib/wait-process.c: Include simply <sys/wait.h>.
71424         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
71425         WIFSTOPPED): Remove fallback definitions.
71426         * modules/wait-process (Depends-on): Add sys_wait.
71428         New module 'sys_wait'.
71429         * modules/sys_wait: New file.
71430         * lib/sys_wait.in.h: New file, partially copied from
71431         lib/wait-process.c.
71432         * m4/sys_wait_h.m4: New file.
71433         * doc/posix-headers/sys_wait.texi: Mention the new module.
71435 2008-10-19  Bruno Haible  <bruno@clisp.org>
71437         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
71439 2008-10-19  Bruno Haible  <bruno@clisp.org>
71441         Assume that waitpid() fills an 'int' status, not a 'union wait'.
71442         * lib/wait-process.c (WAIT_T): Remove type.
71443         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
71444         (wait_subprocess): Update.
71446 2008-10-19  Bruno Haible  <bruno@clisp.org>
71448         New module 'atoll'.
71449         * modules/atoll: New file.
71450         * lib/stdlib.in.h (atoll): New declaration.
71451         * lib/atoll.c: New file, from glibc with modifications.
71452         * m4/atoll.m4: New file.
71453         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
71454         HAVE_ATOLL.
71455         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
71456         * doc/posix-functions/atoll.texi: Mention the new module.
71458 2008-10-19  Bruno Haible  <bruno@clisp.org>
71460         Add strtoull() declaration to <stdlib.h>.
71461         * lib/stdlib.in.h (strtoull): New declaration.
71462         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
71463         Set HAVE_STRTOULL.
71464         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
71465         HAVE_STRTOULL.
71466         * modules/strtoull (Depends-on): Add stdlib.
71467         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71468         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
71469         HAVE_STRTOULL.
71471 2008-10-19  Bruno Haible  <bruno@clisp.org>
71473         Add strtoll() declaration to <stdlib.h>.
71474         * lib/stdlib.in.h (strtoll): New declaration.
71475         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
71476         Set HAVE_STRTOLL.
71477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
71478         HAVE_STRTOLL.
71479         * modules/strtoll (Depends-on): Add stdlib.
71480         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71481         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
71483 2008-10-19  Bruno Haible  <bruno@clisp.org>
71485         * modules/bcopy (Depends-on): Add strings.
71486         (Include): Specify <strings.h>.
71488 2008-10-19  Bruno Haible  <bruno@clisp.org>
71490         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
71492 2008-10-19  Bruno Haible  <bruno@clisp.org>
71494         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
71495         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
71496         mingw.
71498 2008-10-19  Bruno Haible  <bruno@clisp.org>
71500         * lib/atanl.c: Don't include isnanl.h.
71501         * lib/cosl.c: Likewise.
71502         * lib/ldexpl.c: Likewise.
71503         * lib/logl.c: Likewise.
71504         * lib/sinl.c: Likewise.
71505         * lib/sqrtl.c: Likewise.
71506         * lib/tanl.c: Likewise.
71508         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
71509         * lib/isnanf.h: Remove file.
71510         * lib/isnand.h: Remove file.
71511         * lib/isnanl.h: Remove file.
71512         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
71513         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
71514         macros.
71515         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
71516         HAVE_ISNANF, don't define it as a C macro.
71517         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
71518         HAVE_ISNAND, don't define it as a C macro.
71519         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
71520         HAVE_ISNANL, don't define it as a C macro.
71521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
71522         HAVE_ISNAN[FDL].
71523         * modules/isnanf (Files): Remove lib/isnanf.h.
71524         (Depends-on): Add math.
71525         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
71526         (Include): Specify <math.h> instead of isnanf.h.
71527         * modules/isnand (Files): Remove lib/isnand.h.
71528         (Depends-on): Add math.
71529         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
71530         (Include): Specify <math.h> instead of isnand.h.
71531         * modules/isnanl (Files): Remove lib/isnanl.h.
71532         (Depends-on): Add math.
71533         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
71534         (Include): Specify <math.h> instead of isnanl.h.
71535         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
71536         HAVE_ISNAN[FDL].
71537         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
71538         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
71539         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
71540         * NEWS: Mention the change.
71542 2008-10-18  Bruno Haible  <bruno@clisp.org>
71544         Add getusershell(), setusershell(), endusershell() declarations to
71545         <unistd.h>.
71546         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
71547         declarations.
71548         * lib/getusershell.c: Include unistd.h.
71549         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
71550         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
71551         HAVE_GETUSERSHELL.
71552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
71553         and HAVE_GETUSERSHELL.
71554         * modules/getusershell (Depends-on): Add unistd, extensions.
71555         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71556         (Include): Specify <unistd.h>.
71557         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
71558         HAVE_GETUSERSHELL.
71560 2008-10-18  Bruno Haible  <bruno@clisp.org>
71562         Add a getloadavg() declaration to <stdlib.h>.
71563         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
71564         getloadavg declaration.
71565         (getloadavg): New declaration.
71566         * lib/getloadavg.c: Include <stdlib.h> first.
71567         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
71568         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
71569         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
71570         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
71571         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
71572         * modules/getloadavg (Depends-on): Add stdlib, extensions.
71573         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71574         (Include): Specify <stdlib.h>.
71575         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
71576         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
71578 2008-10-18  Bruno Haible  <bruno@clisp.org>
71580         * lib/dirchownmod.c: Don't include lchmod.h.
71582         Move the lchmod() declaration to <sys/stat.h>.
71583         * lib/lchmod.h: Remove file.
71584         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
71585         (lchmod): New declaration, moved here from lib/lchown.h.
71586         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
71587         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
71588         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
71589         and HAVE_LCHMOD.
71590         * modules/lchmod (Files): Remove lib/lchmod.h.
71591         (Depends-on): Add sys_stat, extensions.
71592         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
71593         (Include): Specify <sys/stat.h> instead of lchmod.h.
71594         * modules/sys_stat (Depends-on): Add link-warning.
71595         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
71596         definition of GL_LINK_WARNING.
71597         * NEWS: Mention the change.
71599 2008-10-18  Bruno Haible  <bruno@clisp.org>
71601         * lib/fchdir.c: Don't include dirfd.h.
71602         * lib/fts.c: Likewise.
71603         * lib/getcwd.c: Likewise.
71604         * lib/glob.c: Likewise.
71606         Move the dirfd() declaration to <dirent.h>.
71607         * lib/dirfd.h: Remove file.
71608         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
71609         (dirfd): New declaration.
71610         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
71611         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
71612         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
71613         HAVE_DECL_DIRFD.
71614         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
71615         HAVE_DECL_DIRFD.
71616         * modules/dirfd (Files): Remove lib/dirfd.h.
71617         (Depends-on): Add dirent, extensions.
71618         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
71619         (Include): Specify <dirent.h> instead of dirfd.h.
71620         * modules/dirent (Depends-on): Add link-warning.
71621         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
71622         definition of GL_LINK_WARNING.
71623         * NEWS: Mention the change.
71625 2008-10-18  Bruno Haible  <bruno@clisp.org>
71627         Move the euidaccess() declaration to <unistd.h>.
71628         * lib/euidaccess.h: Remove file.
71629         * lib/unistd.in.h (euidaccess): New declaration.
71630         * lib/euidaccess.c: Don't include euidaccess.h.
71631         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
71632         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
71633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
71634         and HAVE_EUIDACCESS.
71635         * modules/euidaccess (Files): Remove lib/euidaccess.h.
71636         (Depends-on): Add unistd.
71637         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71638         (Include): Specify <unistd.h> instead of euidaccess.h.
71639         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
71640         HAVE_EUIDACCESS.
71641         * NEWS: Mention the change.
71643 2008-10-18  Bruno Haible  <bruno@clisp.org>
71645         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
71647         Move the getdomainname() declaration to <unistd.h>.
71648         * lib/getdomainname.h: Remove file.
71649         * lib/unistd.in.h (getdomainname): New declaration.
71650         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
71651         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
71652         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
71653         HAVE_GETDOMAINNAME.
71654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71655         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
71656         * modules/getdomainname (Files): Remove lib/getdomainname.h.
71657         (Depends-on): Add unistd, extensions.
71658         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71659         (Includes): Specify <unistd.h> instead of getdomainname.h.
71660         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
71661         HAVE_GETDOMAINNAME.
71662         * NEWS: Mention the change.
71664 2008-10-18  Bruno Haible  <bruno@clisp.org>
71666         * modules/dirent: New file.
71667         * m4/dirent_h.m4: New file.
71668         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
71669         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
71670         * modules/fchdir (Files): Remove lib/dirent.in.h.
71671         (Depends-on): Add dirent.
71672         (Makefile.am): Move rules to modules/dirent.
71673         * doc/posix-headers/dirent.texi: Mention the new module.
71675 2008-10-18  Bruno Haible  <bruno@clisp.org>
71677         Avoid -Wunused-parameter warnings in public gnulib header files.
71678         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
71679         macro.
71680         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
71682 2008-10-18  Bruno Haible  <bruno@clisp.org>
71684         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
71685         * doc/glibc-functions/error.texi: Mention the module 'error'.
71686         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
71687         * doc/glibc-functions/getdomainname.texi: Mention the module
71688         'getdomainname'.
71689         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
71690         * doc/glibc-functions/getpagesize.texi: Mention the module
71691         'getpagesize'.
71692         * doc/glibc-functions/getusershell.texi: Mention the module
71693         'getusershell'.
71694         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
71695         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
71696         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
71697         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
71698         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
71699         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
71700         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
71701         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
71702         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
71703         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
71704         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
71705         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
71706         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
71707         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
71709 2008-10-17  Bruno Haible  <bruno@clisp.org>
71711         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
71712         HP-UX and IRIX, use -0.0L.
71713         * tests/test-ceill.c (minus_zero): Likewise.
71714         * tests/test-floorl.c (minus_zero): Likewise.
71715         * tests/test-frexpl.c (minus_zero): Likewise.
71716         * tests/test-isnan.c (minus_zerol): Likewise.
71717         * tests/test-isnanl.h (minus_zero): Likewise.
71718         * tests/test-ldexpl.c (minus_zero): Likewise.
71719         * tests/test-roundl.c (minus_zero): Likewise.
71720         * tests/test-signbit.c (minus_zerol): Likewise.
71721         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
71722         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
71723         * tests/test-truncl.c (minus_zero): Likewise.
71724         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
71725         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
71726         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
71727         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
71729 2008-10-17  Bruno Haible  <bruno@clisp.org>
71731         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
71732         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
71733         that it gets activated only for gcc >= 3.0.
71734         * lib/dirent.in.h: Likewise.
71735         * lib/errno.in.h: Likewise.
71736         * lib/fcntl.in.h: Likewise.
71737         * lib/float.in.h: Likewise.
71738         * lib/iconv.in.h: Likewise.
71739         * lib/inttypes.in.h: Likewise.
71740         * lib/locale.in.h: Likewise.
71741         * lib/math.in.h: Likewise.
71742         * lib/netdb.in.h: Likewise.
71743         * lib/netinet_in.in.h: Likewise.
71744         * lib/search.in.h: Likewise.
71745         * lib/signal.in.h: Likewise.
71746         * lib/spawn.in.h: Likewise.
71747         * lib/stdarg.in.h: Likewise.
71748         * lib/stdint.in.h: Likewise.
71749         * lib/stdio.in.h: Likewise.
71750         * lib/stdlib.in.h: Likewise.
71751         * lib/string.in.h: Likewise.
71752         * lib/strings.in.h: Likewise.
71753         * lib/sys_file.in.h: Likewise.
71754         * lib/sys_ioctl.in.h: Likewise.
71755         * lib/sys_select.in.h: Likewise.
71756         * lib/sys_socket.in.h: Likewise.
71757         * lib/sys_stat.in.h: Likewise.
71758         * lib/sys_time.in.h: Likewise.
71759         * lib/sysexits.in.h: Likewise.
71760         * lib/time.in.h: Likewise.
71761         * lib/unistd.in.h: Likewise.
71762         * lib/wchar.in.h: Likewise.
71763         * lib/wctype.in.h: Likewise.
71764         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71766 2008-10-17  Jim Meyering  <meyering@redhat.com>
71768         ignore-value: don't depend on inline module
71769         * modules/ignore-value (Depends-on): Remove 'inline'.
71770         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
71771         Suggestion from Bruno Haible.
71773 2008-10-17  Bruno Haible  <bruno@clisp.org>
71775         New implementation of condition variables for Win32.
71776         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
71777         (gl_linked_waitqueue_t): New type.
71778         (gl_cond_t): Use it.
71779         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
71780         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
71781         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
71782         (glthread_cond_init_func, glthread_cond_wait_func,
71783         glthread_cond_timedwait_func, glthread_cond_signal_func,
71784         glthread_cond_broadcast_func, glthread_cond_destroy_func):
71785         Reimplemented on the basis of gl_linked_waitqueue_t.
71786         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
71787         gl_waitqueue_t.
71788         (gl_rwlock_t): Update.
71789         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
71791 2008-10-17  Simon Josefsson  <simon@josefsson.org>
71793         * modules/recvfrom (Depends-on): Add dependency on getpeername.
71794         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71796 2008-10-17  Jim Meyering  <meyering@redhat.com>
71798         ignore-value: new module
71799         * modules/ignore-value: New file.
71800         * lib/ignore-value.h: New file.
71801         * MODULES.html.sh (Compiler warning management): New section,
71802         just for this module.  More to come.
71804 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71806         open-safer.c: avoid 'signed and unsigned in conditional...' warning
71807         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
71808         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
71810 2008-10-16  Jim Meyering  <meyering@redhat.com>
71812         openat-die.c: avoid 'no previous prototype' warning
71813         * lib/openat-die.c: Include "openat.h".
71814         Reported by Reuben Thomas <rrt@sc3d.org>.
71816 2008-10-16  Simon Josefsson  <simon@josefsson.org>
71818         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
71819         * lib/netdb.in.h: Fix typo.
71820         Reported by Bruno Haible  <bruno@clisp.org>
71822         * lib/netdb.in.h: Include sys/socket.h for platforms without
71823         netdb.h, to get structures like hostent on MinGW.
71824         * modules/netdb (Depends-on): Add sys_socket.
71826 2008-10-15  Simon Josefsson  <simon@josefsson.org>
71828         * modules/netdb, modules/netdb-tests: New file.
71829         * m4/netdb_h.m4: New file.
71830         * lib/netdb.in.h: Add, currently just an empty file pending
71831         definitions.
71832         * tests/test-netdb.c: New file.
71833         * doc/posix-headers/netdb.texi: Mention that we replace it if
71834         needed.
71835         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71836         netdb.
71838 2008-10-15  Simon Josefsson  <simon@josefsson.org>
71840         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
71841         with code.
71843 2008-10-13  Bruno Haible  <bruno@clisp.org>
71845         * lib/glthread/cond.c (glthread_cond_wait_func,
71846         glthread_cond_timedwait_func): Add a comment.
71848 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71850         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
71851         * tests/test-select.c: Likewise,
71853 2008-10-13  Bruno Haible  <bruno@clisp.org>
71855         * lib/glthread/cond.c (glthread_cond_wait_func,
71856         glthread_cond_timedwait_func): Fix variable name.
71857         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71859 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
71861         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
71862         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
71863         struct sockaddr.sa_len.
71864         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
71866 2008-10-13  Simon Josefsson  <simon@josefsson.org>
71868         * build-aux/pmccabe2html: Add css and css_url parameters.
71870 2008-10-12  Bruno Haible  <bruno@clisp.org>
71872         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
71873         calling aclx_get.
71874         Reported by Rainer Tammer <tammer@tammer.net>.
71876 2008-10-12  Bruno Haible  <bruno@clisp.org>
71878         Use msvcrt aware primitives for creation/termination of Win32 threads.
71879         * lib/glthread/thread.c: Include <process.h>.
71880         (glthread_create_func): Use _beginthreadex instead of CreateThread.
71881         (wrapper_func): Update signature.
71882         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
71884 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71885             Bruno Haible  <bruno@clisp.org>
71887         Provide a Win32 implementation of the 'cond' module.
71888         * lib/glthread/cond.h [USE_WIN32]: New implementation.
71889         * lib/glthread/cond.c (glthread_cond_init_func,
71890         glthread_cond_wait_func, glthread_cond_timedwait_func,
71891         glthread_cond_signal_func, glthread_cond_broadcast_func,
71892         glthread_cond_destroy_func) [USE_WIN32]: New functions.
71893         * modules/cond (Dependencies): Add gettimeofday.
71895 2008-10-11  Bruno Haible  <bruno@clisp.org>
71897         Make sleep work on older versions of mingw.
71898         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
71899         only whether it exists.
71900         * doc/posix-functions/sleep.texi: Mention the problem with older
71901         versions of mingw.
71903 2008-10-11  Bruno Haible  <bruno@clisp.org>
71905         New module 'shutdown'.
71906         * modules/shutdown: New file.
71907         * lib/sys_socket.in.h (shutdown): New declaration.
71908         * lib/winsock.c (shutdown): New function.
71909         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
71910         GNULIB_SHUTDOWN.
71911         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
71912         * doc/posix-functions/shutdown.texi: Document the new module.
71914 2008-10-11  Jim Meyering  <meyering@redhat.com>
71916         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
71918 2008-10-11  Bruno Haible  <bruno@clisp.org>
71920         New module 'fclose'.
71921         * modules/fclose: New file.
71922         * lib/stdio.in.h (fclose): New declaration.
71923         * lib/fclose.c: New file.
71924         * m4/fclose.m4: New file.
71925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
71926         REPLACE_FCLOSE.
71927         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
71928         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
71929         REPLACE_FCLOSE.
71930         * modules/close (Depends-on): fclose.
71931         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
71933 2008-10-11  Bruno Haible  <bruno@clisp.org>
71935         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
71936         set errno and don't call _close.
71938 2008-10-10  Bruno Haible  <bruno@clisp.org>
71940         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
71941         ACL, not afterwards. Fixes test failure on Cygwin.
71943 2008-10-09  Ben Pfaff  <blp@gnu.org>
71945         * build-aux/announce-gen: Fix gnulib version related part of usage
71946         message.  Die with a useful error message if no tarballs are
71947         found.
71949 2008-10-10  Jim Meyering  <meyering@redhat.com>
71951         bootstrap: use git's --depth=N option only if it's supported
71952         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
71953         recognize the --depth option.  Reported by Pádraig Brady.
71955 2008-10-09  Bruno Haible  <bruno@clisp.org>
71957         New module 'ioctl'.
71958         * modules/ioctl: New file.
71959         * lib/sys_socket.in.h (ioctl): Remove declaration.
71960         * lib/winsock.c: Include <sys/ioctl.h>.
71961         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
71962         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
71963         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
71964         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
71965         * doc/posix-functions/ioctl.texi: Mention the new module.
71967 2008-10-09  Bruno Haible  <bruno@clisp.org>
71969         New module 'sys_ioctl'.
71970         * lib/sys_ioctl.in.h: New file.
71971         * m4/sys_ioctl_h.m4: New file.
71972         * modules/sys_ioctl: New file.
71973         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
71975 2008-10-09  Bruno Haible  <bruno@clisp.org>
71977         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
71978         * lib/winsock.c: Include <stdarg.h>.
71979         (rpl_ioctl): Change to second argument 'int' and then varargs.
71981 2008-10-09  Bruno Haible  <bruno@clisp.org>
71983         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
71984         when the sys_socket module is present and the system has <winsock2.h>.
71986 2008-10-09  Bruno Haible  <bruno@clisp.org>
71988         * doc/posix-functions/close.texi: Mention module 'close' instead of
71989         module 'sys_socket'.
71991 2008-10-09  Bruno Haible  <bruno@clisp.org>
71993         * doc/glibc-headers/sys_ioctl.texi: New file.
71994         * doc/gnulib.texi: Include it.
71996 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71997             Bruno Haible  <bruno@clisp.org>
71999         Combine the two replacements of 'close'.
72000         * lib/sys_socket.in.h (close): Define to a reminder to include
72001         <unistd.h>.
72002         (_gl_close_fd_maybe_socket): New declaration.
72003         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
72004         * lib/winsock.c (close): Remove undefinition.
72005         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
72006         needed for the gnulib module 'close'.
72007         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
72008         define to an error symbol or to a warning, if suitable.
72009         * lib/close.c: Include <sys/socket.h>.
72010         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
72011         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
72012         UNISTD_H_HAVE_WINSOCK2_H.
72013         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
72014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72015         UNISTD_H_HAVE_WINSOCK2_H.
72016         * modules/sys_socket (Files): Add m4/unistd_h.m4.
72017         (configure.ac): Set a module indicator.
72018         (Makefile.am): Substitute GNULIB_CLOSE.
72019         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
72020         * modules/poll-tests (Depends-on): Add close.
72021         * modules/select-tests (Depends-on): Likewise.
72023 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72024             Bruno Haible  <bruno@clisp.org>
72026         New module 'close'.
72027         * modules/close: New file.
72028         * lib/unistd.in.h (close): Move declaration out of the
72029         FCHDIR_REPLACEMENT scope.
72030         (_gl_unregister_fd): New declaration.
72031         * lib/close.c: New file.
72032         * lib/fchdir.c (rpl_close): Remove function.
72033         * m4/close.m4: New file.
72034         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
72035         close.
72036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
72037         REPLACE_CLOSE.
72038         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
72039         REPLACE_CLOSE.
72040         * modules/fchdir (Depends-on): Add close.
72042 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72043             Bruno Haible  <bruno@clisp.org>
72045         * lib/fcntl.in.h (open): Simplify conditionals.
72046         (_gl_register_fd): New declaration.
72047         * lib/fchdir.c (rpl_open): Remove function.
72048         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
72049         also.
72050         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
72051         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
72052         open.
72054 2008-10-09  Jim Meyering  <meyering@redhat.com>
72056         GNUmakefile: use the more name-space-friendly "_version"
72057         * top/GNUmakefile (_dummy): Update.
72058         (_version): Rename from "version".
72060 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72061             Bruno Haible  <bruno@clisp.org>
72063         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
72064         rpl_close.
72065         (_gl_register_fd): New function, extracted from rpl_open.
72066         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
72067         (rpl_open, rpl_opendir): Use _gl_register_fd.
72069 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72071         Fix organization of 'open' replacement.
72072         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
72073         (gl_FUNC_OPEN): Use it.
72074         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
72076 2008-10-08  Bruno Haible  <bruno@clisp.org>
72078         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
72080 2008-10-08  Simon Josefsson  <simon@josefsson.org>
72082         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
72083         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
72084         listen).
72086 2008-10-08  Eric Blake  <ebb9@byu.net>
72088         GNUmakefile: add 'make version' target
72089         * top/GNUmakefile (_curr-ver): Split version update rules...
72090         (version): ...into a target.
72092 2008-10-07  Bruno Haible  <bruno@clisp.org>
72094         Use a more portable replacement expression for -0.0L.
72095         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
72096         instead of -0.0L. Fix m4 quotation.
72098         * tests/test-signbit.c: Include <float.h>.
72099         (minus_zero): New variable.
72100         (test_signbitl): Use minus_zero instead of -zero.
72101         * modules/signbit-tests (Depends-on): Add float.
72103         * tests/test-ceill.c: Include <float.h>.
72104         (zero): Remove variable.
72105         (minus_zero): New variable.
72106         (main): Use minus_zero instead of -zero.
72107         * modules/ceill-tests (Depends-on): Add float.
72109         * tests/test-floorl.c: Include <float.h>.
72110         (zero): Remove variable.
72111         (minus_zero): New variable.
72112         (main): Use minus_zero instead of -zero.
72113         * modules/floorl-tests (Depends-on): Add float.
72115         * tests/test-roundl.c: Include <float.h>.
72116         (zero): Remove variable.
72117         (minus_zero): New variable.
72118         (main): Use minus_zero instead of -zero.
72119         * modules/roundl-tests (Depends-on): Add float.
72121         * tests/test-truncl.c: Include <float.h>.
72122         (zero): Remove variable.
72123         (minus_zero): New variable.
72124         (main): Use minus_zero instead of -zero.
72125         * modules/truncl-tests (Depends-on): Add float.
72127         * tests/test-frexpl.c (zero): Remove variable.
72128         (minus_zero): New variable.
72129         (main): Use minus_zero instead of -zero.
72130         * modules/frexpl-tests (Depends-on): Add float.
72132         * tests/test-isnan.c (zerol): Remove variable.
72133         (minus_zerol): New variable.
72134         (test_long_double): Use minus_zerol instead of -zerol.
72135         * modules/isnan-tests (Depends-on): Add float.
72137         * tests/test-isnanl.h (zero): Remove variable.
72138         (minus_zero): New variable.
72139         (main): Use minus_zero instead of -zero.
72140         * modules/isnanl-nolibm-tests (Depends-on): Add float.
72141         * modules/isnanl-tests (Depends-on): Add float.
72143         * tests/test-ldexpl.c (zero): Remove variable.
72144         (minus_zero): New variable.
72145         (main): Use minus_zero instead of -zero.
72146         * modules/ldexpl-tests (Depends-on): Add float.
72148         * tests/test-snprintf-posix.h (zerol): Remove variable.
72149         (minus_zerol): New variable.
72150         (test_function): Use minus_zerol instead of -zerol.
72151         * modules/snprintf-posix-tests (Depends-on): Add float.
72152         * modules/vsnprintf-posix-tests (Depends-on): Add float.
72154         * tests/test-sprintf-posix.h (zerol): Remove variable.
72155         (minus_zerol): New variable.
72156         (test_function): Use minus_zerol instead of -zerol.
72157         * modules/sprintf-posix-tests (Depends-on): Add float.
72158         * modules/vsprintf-posix-tests (Depends-on): Add float.
72160         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
72161         (minus_zerol): New variable.
72162         (test_function): Use minus_zerol instead of -zerol.
72163         * modules/vasnprintf-posix-tests (Depends-on): Add float.
72165         * tests/test-vasprintf-posix.c (zerol): Remove variable.
72166         (minus_zerol): New variable.
72167         (test_function): Use minus_zerol instead of -zerol.
72168         * modules/vasprintf-posix-tests (Depends-on): Add float.
72170 2008-10-07  Simon Josefsson  <simon@josefsson.org>
72172         * MODULES.html.sh (Support for building documentation): Mention
72173         pmccabe2html.  Sort entries.
72175         Add pmccabe2html module, from gnupdf.
72176         * build-aux/pmccabe.css: New file.
72177         * build-aux/pmccabe2html: New file.
72178         * m4/pmccabe2html.m4: New file.
72179         * modules/pmccabe2html: New file.
72181 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
72183         flock: new module
72184         * MODULES.html.sh: Add to list of modules.
72185         * lib/flock.c: flock implementation for Windows and Unix systems
72186         which have fcntl.
72187         * doc/glibc-functions/flock.texi: Update documentation.
72188         * lib/sys_file.in.h: <sys/file.h> header file.
72189         * m4/flock.m4: M4 macros.
72190         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
72191         * modules/flock: flock module.
72192         * modules/flock-tests: flock tests module.
72193         * modules/sys_file: sys/file.h module.
72194         * tests/test-flock.c: test suite for flock.
72196 2008-10-06  Jim Meyering  <meyering@redhat.com>
72198         bootstrap: check for LT_INIT more portably still ;-)
72199         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
72200         Spotted by Bruno Haible.
72202 2008-10-06  Eric Blake  <ebb9@byu.net>
72204         test-signbit: avoid tripping Irix cc bug on -0.0L
72205         * tests/test-signbit.c (minus_zerol): Delete, and replace with
72206         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
72207         entire testsuite consistent and avoids an Irix 6.2 bug.
72209 2008-10-05  Bruno Haible  <bruno@clisp.org>
72210             Jim Meyering  <jim@meyering.net>
72212         Add an option for ignoring EPIPE during close_stdout.
72213         * lib/closeout.h: Include <stdbool.h>.
72214         (close_stdout_set_ignore_EPIPE): New declaration.
72215         * lib/closeout.c: Include <stdbool.h>.
72216         (ignore_EPIPE): New variable.
72217         (close_stdout_set_ignore_EPIPE): New function.
72218         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
72219         * lib/close-stream.c (close_stream): Mention the possible EPIPE
72220         failure.
72221         * modules/closeout (Depends-on): Add stdbool.
72223 2008-10-05  Bruno Haible  <bruno@clisp.org>
72225         * modules/accept: New file.
72226         * modules/bind: New file.
72227         * modules/connect: New file.
72228         * modules/getpeername: New file.
72229         * modules/getsockname: New file.
72230         * modules/getsockopt: New file.
72231         * modules/listen: New file.
72232         * modules/recv: New file.
72233         * modules/recvfrom: New file.
72234         * modules/send: New file.
72235         * modules/sendto: New file.
72236         * modules/setsockopt: New file.
72237         * modules/socket: New file.
72238         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
72239         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
72240         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
72241         the particular module is requested. Add a link warning when the
72242         particular module is not requested.
72243         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
72244         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
72245         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
72246         the particular module is requested.
72247         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
72248         gl_SYS_SOCKET_H_DEFAULTS): New macros.
72249         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
72250         * modules/sys_socket (Depends-on): Add link-warning.
72251         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
72252         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
72253         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
72254         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
72255         GL_LINK_WARNING.
72256         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
72257         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
72258         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
72259         * doc/posix-functions/getpeername.texi: Mention the new module
72260         'getpeername'.
72261         * doc/posix-functions/getsockname.texi: Mention the new module
72262         'getsockname'.
72263         * doc/posix-functions/getsockopt.texi: Mention the new module
72264         'getsockopt'.
72265         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
72266         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
72267         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
72268         * doc/posix-functions/send.texi: Mention the new module 'send'.
72269         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
72270         * doc/posix-functions/setsockopt.texi: Mention the new module
72271         'setsockopt'.
72272         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
72273         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
72274         listen, connect, accept.
72275         * modules/select-tests (Depends-on): Likewise.
72277 2008-10-05  Bruno Haible  <bruno@clisp.org>
72279         * lib/winsock.c (strerror): Remove unused #undef.
72280         (rpl_close): Remove unused local variable.
72282         * modules/sys_socket (Depends-on); Add errno.
72284 2008-10-05  Bruno Haible  <bruno@clisp.org>
72286         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
72287         (select): Add a link warning when the 'select' module is not used.
72288         * modules/sys_select (Depends-on): Add link-warning.
72289         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
72290         Suggested by Paolo Bonzini.
72292 2008-10-05  Jim Meyering  <meyering@redhat.com>
72294         bootstrap: check for LT_INIT more portably
72295         * build-aux/bootstrap: Avoid using grep -E, since it's not
72296         portable enough.  Suggestion from Bruno Haible.
72298 2008-10-05  Bruno Haible  <bruno@clisp.org>
72300         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
72301         as being fixed by gnulib.
72303 2008-10-05  Bruno Haible  <bruno@clisp.org>
72305         * modules/select-tests: New file, mostly copied from
72306         modules/sys_select-tests.
72307         * tests/test-select.c: New file, mostly copied from
72308         tests/test-sys_select.c.
72309         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
72310         * modules/sys_select-tests (Depends-on): Remove all dependencies.
72311         (Makefile.am): Remove test_sys_select_LDADD.
72313         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
72314         to an undefined symbol, for an error message.
72315         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
72316         (gl_SYS_SELECT_H_DEFAULTS): New macro.
72317         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
72318         winsock-select.c here.
72319         * modules/sys_select (Files): Remove lib/winsock-select.c.
72320         (Depends-on): Remove alloca.
72321         (Makefile.am): Substitute GNULIB_SELECT.
72322         * modules/select: New file.
72323         * doc/posix-functions/select.texi: Update.
72325 2008-10-05  Bruno Haible  <bruno@clisp.org>
72327         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
72328         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
72329         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
72330         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
72331         getdtablesize.
72332         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
72333         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
72335 2008-10-05  Bruno Haible  <bruno@clisp.org>
72337         * modules/getdtablesize-tests: New file.
72338         * tests/test-getdtablesize.c: New file.
72340         New module 'getdtablesize'.
72341         * lib/unistd.in.h (getdtablesize): New declaration.
72342         * lib/getdtablesize.c: New file.
72343         * m4/getdtablesize.m4: New file.
72344         * modules/getdtablesize: New file.
72345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72346         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
72347         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
72348         HAVE_GETDTABLESIZE.
72349         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
72351 2008-10-05  Bruno Haible  <bruno@clisp.org>
72353         * modules/sched (Makefile.am): Fix typo.
72354         Reported by Simon Josefsson.
72356 2008-10-05  Jim Meyering  <meyering@redhat.com>
72358         bootstrap: check for LT_INIT, too
72359         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
72360         are deprecated.  Suggestion from Ralf Wildenhues.
72362 2008-10-05  Bruno Haible  <bruno@clisp.org>
72364         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
72365         overriding them by ours.
72366         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
72368 2008-10-05  Jim Meyering  <meyering@redhat.com>
72370         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
72371         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
72372         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
72374 2008-10-04  Bruno Haible  <bruno@clisp.org>
72376         * modules/dup2 (License): Change to LGPLv2+.
72377         * modules/sleep (License): Likewise.
72378         * modules/perror (License): Likewise.
72379         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
72380         Blake.
72381         * modules/signal (License): Likewise.
72382         * modules/sigprocmask (License): Likewise.
72383         * modules/raise (License): Change to LGPLv2+, with approval by Jim
72384         Meyering.
72386 2008-10-04  Bruno Haible  <bruno@clisp.org>
72388         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
72389         Reported by Rainer Tammer <tammer@tammer.net>.
72391 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
72392             Bruno Haible  <bruno@clisp.org>
72394         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
72395         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
72396         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
72398 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
72400         filevercmp: new module
72401         * lib/filevercmp.h: New function filevercmp comparing version strings.
72402         * lib/filevercmp.c: Implementation of filevercmp function.
72403         * modules/filevercmp: Module metadata.
72404         * tests/test-filevercmp.c: Unit test for new module.
72405         * modules/filevercmp-tests: Unit test metadata.
72406         * MODULES.html.sh: Add filevercmp module.
72408 2008-10-03  Bruno Haible  <bruno@clisp.org>
72410         * lib/c-ctype.h: Add comment.
72411         Reported by Jim Meyering.
72413 2008-10-02  Bruno Haible  <bruno@clisp.org>
72415         * modules/posix_spawn-internal (Depends-on): Add 'open'.
72417 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72419         * build-aux/bootstrap: Allow renaming bootstrap, and change the
72420         name of bootstrap.conf accordingly.
72422 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72424         * build-aux/bootstrap: Install git-merge-changelog configuration
72425         items into .gitconfig if needed.
72427 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72429         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
72430         git repository, and initialize/update it accordingly.
72432 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
72434         * modules/fsync-tests: New file.
72435         * tests/test-fsync.c: New file.
72437         New module 'fsync'.
72438         * lib/fsync.c: New file.
72439         * m4/fsync.m4: New file.
72440         * modules/fsync: New file.
72441         * lib/unistd.in.h (fsync): New declaration.
72442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
72443         GNULIB_FSYNC and HAVE_FSYNC.
72444         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
72445         * MODULES.html.sh (posix_functions): Add fsync.
72446         * doc/posix-functions/fsync.texi: Mention the new module.
72448 2008-10-02  Jim Meyering  <meyering@redhat.com>
72450         fts.c: sync with similar code from coreutils' remove.c
72451         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
72452         Guard also with "#if defined __linux__", since for now at least,
72453         this code is Linux-kernel-specific.
72455 2008-10-02  Jim Meyering  <meyering@redhat.com>
72457         fts: bug fixes
72458         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
72459         Include <sys/vfs.h>, not <sys/statfs.h>.
72461         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
72462         Include <sys/vfs.h>, not <sys/statfs.h>.
72464 2008-10-01  Bruno Haible  <bruno@clisp.org>
72466         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
72467         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
72468         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
72469         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
72470         * doc/posix-functions/posix_spawnp.texi: Likewise.
72471         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
72472         whether posix_spawn actually works.
72473         * m4/pipe.m4 (gl_PIPE): Likewise.
72474         * modules/execute (Files): Add m4/posix_spawn.m4.
72475         * modules/pipe (Files): Add m4/posix_spawn.m4.
72476         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
72478 2008-10-01  Jim Meyering  <meyering@redhat.com>
72480         remove trailing spaces
72481         * NEWS: Likewise.
72482         * lib/poll.c (poll): Likewise.
72483         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
72484         * lib/winsock.c (rpl_close): Likewise.
72485         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
72486         * modules/yield: Likewise.
72487         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
72488         * tests/test-sys_select.c (connect_to_socket): Likewise.
72490         fts.c: adjust a new interface to be more generally useful
72491         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
72492         (fts_build): Adjust caller.
72494 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72496         * modules/cond-tests: New file.
72497         * tests/test-cond.c: New file.
72499 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72500             Bruno Haible  <bruno@clisp.org>
72502         * modules/cond (Dependencies): Add errno, time.
72503         * lib/glthread/cond.h: Include <time.h>.
72504         (gl_cond_define, gl_cond_define_initialized): Use the same definition
72505         across platforms.
72507 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72508             Bruno Haible  <bruno@clisp.org>
72510         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
72512 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72513             Bruno Haible  <bruno@clisp.org>
72515         * modules/tls-tests (Depends-on): Add thread, yield.
72516         (configure.ac): Remove all checks.
72517         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
72518         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
72519         gl_thread_self): Remove definitions. Include glthread/thread.h and
72520         glthread/yield.h instead.
72521         (test_tls): Pass an additional NULL argument to gl_thread_join.
72523 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72524             Bruno Haible  <bruno@clisp.org>
72526         * modules/lock-tests (Depends-on): Add thread, yield.
72527         (configure.ac): Remove all checks.
72528         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
72529         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
72530         gl_thread_self): Remove definitions. Include glthread/thread.h and
72531         glthread/yield.h instead.
72532         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
72533         additional NULL argument to gl_thread_join.
72535 2008-09-30  Bruno Haible  <bruno@clisp.org>
72537         Fix the Win32 implementation of the 'thread' module.
72538         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
72539         pointer type.
72540         (gl_thread_self): Invoke gl_thread_self_func.
72541         (gl_thread_self_func): New declaration.
72542         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
72543         (do_init_self_key, init_self_key): New functions.
72544         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
72545         Remove some fields.
72546         (running_threads, running_lock): Remove variables.
72547         (get_current_thread_handle): New function.
72548         (gl_thread_self_func, wrapper_func, glthread_create_func,
72549         glthread_join_func, gl_thread_exit_func): Largely rewritten and
72550         simplified.
72552 2008-09-30  Bruno Haible  <bruno@clisp.org>
72554         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
72555         files.
72557 2008-09-30  Jim Meyering  <meyering@redhat.com>
72559         fts.m4: correct the test for statfs.f_type
72560         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
72561         when checking for statfs.f_type.
72563 2008-09-15  Simon Josefsson  <simon@josefsson.org>
72565         tests: avoid some compiler warnings
72566         * tests/test-memchr.c (main): Pass NULL indirectly.
72567         * tests/test-getdate.c (main): Remove unused variable 'ret'.
72569 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
72571         getdate.y: disallow countable dayshifts like "4 yesterday ago"
72572         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
72573         exactly specified dayshifts.
72574         (dayshift): New rule.
72575         (rel): Add dayshift.
72576         (relative_time_table) [tomorrow, yesterday, today, now]:
72577         Use tDAY_SHIFT in place of tDAY_UNIT.
72578         * tests/test-getdate.c: Add tests for now-disallowed countable
72579         dayshifts, e.g., "4 yesterday ago".
72581 2008-09-29  Bruno Haible  <bruno@clisp.org>
72583         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
72584         * tests/test-posix_spawn1.in.sh: Renamed from
72585         tests/test-posix_spawn.in.sh.
72586         * tests/test-posix_spawn2.c: New file.
72587         * tests/test-posix_spawn2.in.sh: New file.
72588         * modules/posix_spawnp-tests (Files): Update.
72589         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
72591 2008-09-29  Bruno Haible  <bruno@clisp.org>
72593         Propagate effects of putenv/setenv/unsetenv to child processes.
72594         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
72595         * lib/pipe.c (create_pipe): Likewise.
72597 2008-09-29  Bruno Haible  <bruno@clisp.org>
72599         Enable use of shell scripts as executables in mingw.
72600         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
72601         run the program as a shell script.
72602         * lib/pipe.c (create_pipe): Likewise.
72603         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
72604         resulting array.
72606 2008-09-29  Eric Blake  <ebb9@byu.net>
72608         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
72610 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
72612         * doc/posix-functions/accept.texi: Update mingw problems.
72613         * doc/posix-functions/bind.texi: Update mingw problems.
72614         * doc/posix-functions/close.texi: Update mingw problems.
72615         * doc/posix-functions/connect.texi: Update mingw problems.
72616         * doc/posix-functions/getpeername.texi: Update mingw problems.
72617         * doc/posix-functions/getsockname.texi: Update mingw problems.
72618         * doc/posix-functions/getsockopt.texi: Update mingw problems.
72619         * doc/posix-functions/ioctl.texi: Update mingw problems.
72620         * doc/posix-functions/listen.texi: Update mingw problems.
72621         * doc/posix-functions/recv.texi: Update mingw problems.
72622         * doc/posix-functions/recvfrom.texi: Update mingw problems.
72623         * doc/posix-functions/select.texi: Update mingw problems.
72624         * doc/posix-functions/send.texi: Update mingw problems.
72625         * doc/posix-functions/sendto.texi: Update mingw problems.
72626         * doc/posix-functions/setsockopt.texi: Update mingw problems.
72627         * doc/posix-functions/socket.texi: Update mingw problems.
72629 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
72630             Bruno Haible  <bruno@clisp.org>
72632         * lib/sys_select.in.h: Include sys/time.h.
72633         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
72634         * modules/sys_select: Depend on sys_time.
72635         * tests/test-sys_select.c: Test that sys/select.h defines struct
72636         timeval fully.
72638 2008-09-29  Bruno Haible  <bruno@clisp.org>
72640         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
72641         * lib/sys_select.in.h: Likewise.
72643 2008-09-29  Bruno Haible  <bruno@clisp.org>
72645         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
72647 2008-09-29  Bruno Haible  <bruno@clisp.org>
72649         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
72650         Set LIBSOCKET instead of augmenting LIBS.
72651         * modules/sockets (Link): New section.
72652         * modules/sockets-tests (test_sockets_LDADD): New variable.
72653         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
72654         * modules/poll-tests (test_poll_LDADD): New variable.
72655         * NEWS: Document the change.
72657 2008-09-29  Bruno Haible  <bruno@clisp.org>
72659         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
72660         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
72661         ARPA_INET_H directly.
72662         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
72664 2008-09-28  Bruno Haible  <bruno@clisp.org>
72666         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
72667         from gl_HEADER_SYS_SOCKET.
72668         (gl_HEADER_SYS_SOCKET): Invoke it.
72669         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72671 2008-09-28  Bruno Haible  <bruno@clisp.org>
72673         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
72674         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
72675         Needed on OSF/1 4.0.
72677 2008-09-28  Bruno Haible  <bruno@clisp.org>
72679         Override open more carefully.
72680         * lib/open.c (orig_open): New function.
72681         (rpl_open): Use orig_open instead of open.
72682         * lib/fcntl.in.h: Add special invocation convention.
72683         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
72684         (gl_FUNC_OPEN): Invoke it.
72686         Override freopen more carefully.
72687         * lib/freopen.c (orig_freopen): New function.
72688         (rpl_freopen): Use orig_freopen instead of freopen.
72689         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
72690         (gl_FUNC_FREOPEN): Invoke it.
72692         Override fopen more carefully.
72693         * lib/fopen.c (orig_fopen): New function.
72694         (rpl_fopen): Use orig_fopen instead of fopen.
72695         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
72696         (gl_FUNC_FOPEN): Invoke it.
72697         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
72699 2008-09-28  Bruno Haible  <bruno@clisp.org>
72701         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
72702         SIGPIPE.
72704 2008-09-28  Bruno Haible  <bruno@clisp.org>
72706         * tests/test-sigaction.c (handler, main): Disable the check whether
72707         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
72708         glibc systems with LinuxThreads.
72710 2008-09-28  Bruno Haible  <bruno@clisp.org>
72712         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
72714         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
72715         with AIX xlc.
72716         * lib/fcntl.in.h (open): Likewise.
72717         Reported by Rainer Tammer <tammer@tammer.net>.
72719 2008-09-28  Bruno Haible  <bruno@clisp.org>
72721         * modules/posix_spawnp-tests: New file.
72722         * tests/test-posix_spawn.c: New file.
72723         * tests/test-posix_spawn.in.sh: New file.
72725         New module 'posix_spawnp'.
72726         * modules/posix_spawnp: New file.
72727         * lib/spawnp.c: New file, from GNU libc with modifications.
72728         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
72730         New module 'posix_spawn'.
72731         * modules/posix_spawn: New file.
72732         * lib/spawn.c: New file, from GNU libc with modifications.
72733         * doc/posix-functions/posix_spawn.texi: Mention the new module.
72735         New module 'posix_spawnattr_destroy'.
72736         * modules/posix_spawnattr_destroy: New file.
72737         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
72738         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
72739         module.
72741         New module 'posix_spawnattr_setsigmask'.
72742         * modules/posix_spawnattr_setsigmask: New file.
72743         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
72744         modifications.
72745         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
72746         new module.
72748         New module 'posix_spawnattr_getsigmask'.
72749         * modules/posix_spawnattr_getsigmask: New file.
72750         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
72751         modifications.
72752         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
72753         new module.
72755         New module 'posix_spawnattr_setsigdefault'.
72756         * modules/posix_spawnattr_setsigdefault: New file.
72757         * lib/spawnattr_setdefault.c: New file, from GNU libc with
72758         modifications.
72759         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
72760         new module.
72762         New module 'posix_spawnattr_getsigdefault'.
72763         * modules/posix_spawnattr_getsigdefault: New file.
72764         * lib/spawnattr_getdefault.c: New file, from GNU libc with
72765         modifications.
72766         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
72767         new module.
72769         New module 'posix_spawnattr_setschedpolicy'.
72770         * modules/posix_spawnattr_setschedpolicy: New file.
72771         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
72772         modifications.
72773         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
72774         new module.
72776         New module 'posix_spawnattr_getschedpolicy'.
72777         * modules/posix_spawnattr_getschedpolicy: New file.
72778         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
72779         modifications.
72780         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
72781         new module.
72783         New module 'posix_spawnattr_setschedparam'.
72784         * modules/posix_spawnattr_setschedparam: New file.
72785         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
72786         modifications.
72787         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
72788         new module.
72790         New module 'posix_spawnattr_getschedparam'.
72791         * modules/posix_spawnattr_getschedparam: New file.
72792         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
72793         modifications.
72794         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
72795         new module.
72797         New module 'posix_spawnattr_setpgroup'.
72798         * modules/posix_spawnattr_setpgroup: New file.
72799         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
72800         modifications.
72801         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
72802         module.
72804         New module 'posix_spawnattr_getpgroup'.
72805         * modules/posix_spawnattr_getpgroup: New file.
72806         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
72807         modifications.
72808         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
72809         module.
72811         New module 'posix_spawnattr_setflags'.
72812         * modules/posix_spawnattr_setflags: New file.
72813         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
72814         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
72815         module.
72817         New module 'posix_spawnattr_getflags'.
72818         * modules/posix_spawnattr_getflags: New file.
72819         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
72820         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
72821         module.
72823         New module 'posix_spawnattr_init'.
72824         * modules/posix_spawnattr_init: New file.
72825         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
72826         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
72827         module.
72829         New module 'posix_spawn_file_actions_destroy'.
72830         * modules/posix_spawn_file_actions_destroy: New file.
72831         * lib/spawn_faction_destroy.c: New file, from GNU libc with
72832         modifications.
72833         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
72834         the new module.
72836         New module 'posix_spawn_file_actions_addopen'.
72837         * modules/posix_spawn_file_actions_addopen: New file.
72838         * lib/spawn_faction_addopen.c: New file, from GNU libc with
72839         modifications.
72840         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
72841         the new module.
72843         New module 'posix_spawn_file_actions_adddup2'.
72844         * modules/posix_spawn_file_actions_adddup2: New file.
72845         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
72846         modifications.
72847         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
72848         the new module.
72850         New module 'posix_spawn_file_actions_addclose'.
72851         * modules/posix_spawn_file_actions_addclose: New file.
72852         * lib/spawn_faction_addclose.c: New file, from GNU libc with
72853         modifications.
72854         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
72855         the new module.
72857         New module 'posix_spawn_file_actions_init'.
72858         * modules/posix_spawn_file_actions_init: New file.
72859         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
72860         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
72861         new module.
72863         New module 'posix_spawn-internal'.
72864         * modules/posix_spawn-internal: New file.
72865         * lib/spawn_int.h: New file, from GNU libc with modifications.
72866         * lib/spawni.c: New file, from GNU libc with modifications.
72867         * m4/posix_spawn.m4: New file.
72869         New module 'spawn'.
72870         * modules/spawn: New file.
72871         * lib/spawn.in.h: New file, from GNU libc with modifications.
72872         * m4/spawn_h.m4: New file.
72873         * doc/posix-headers/spawn.texi: Mention the new module.
72875 2008-09-28  Bruno Haible  <bruno@clisp.org>
72877         * modules/sched-tests: New file.
72878         * tests/test-sched.c: New file.
72880         New module 'sched'.
72881         * modules/sched: New file.
72882         * lib/sched.in.h: New file.
72883         * m4/sched_h.m4: New file.
72884         * doc/posix-headers/sched.texi: Mention the new module.
72886 2008-09-27  Eric Blake  <ebb9@byu.net>
72888         Fix previous patch, and tweak references to $0.
72889         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
72890         (func_version, func_gnulib_dir): Don't call this program
72891         gnulib-tool.
72892         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
72893         with using $0 in function.
72894         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
72895         (func_fatal_error): Reuse the name the user invoked us with.
72897 2008-09-27  Bruno Haible  <bruno@clisp.org>
72899         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
72900         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
72901         (gl_ICONV_H): Not here.
72902         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
72903         instead of assigning ICONV_H directly.
72905         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
72906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
72907         WCHAR_H directly.
72909 2008-09-27  Bruno Haible  <bruno@clisp.org>
72911         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
72912         * modules/arpa_inet (Depends-on): Add link-warning.
72913         (Makefile.am): Insert the definition of GL_LINK-WARNING.
72914         * modules/unistd (Makefile.am): Likewise.
72916 2008-09-26  Bruno Haible  <bruno@clisp.org>
72918         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
72919         variables.
72920         (func_version): Essentially copied from gnulib-tool.
72921         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
72922         func_readlink): Copied from gnulib-tool.
72924 2008-09-26  Bruno Haible  <bruno@clisp.org>
72926         * gnulib-tool (func_version): Change directory to $gnulib_dir before
72927         invoking git-version-gen.
72929 2008-09-26  Bruno Haible  <bruno@clisp.org>
72931         * posix-modules: Update to directory names changed on 2008-01-19.
72932         Remove commas in output before splitting into words. No more need to
72933         avoid 'ftruncate' since 2007-02-19.
72935 2008-09-26  Bruno Haible  <bruno@clisp.org>
72937         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
72939 2008-09-26  Bruno Haible  <bruno@clisp.org>
72941         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
72942         * modules/fwriteerror (Depends-on): Add errno.
72944 2008-09-26  Bruno Haible  <bruno@clisp.org>
72946         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
72947         * tests/test-vc-list-files-cvs.sh: Likewise.
72949 2008-09-26  Bruno Haible  <bruno@clisp.org>
72951         * doc/posix-headers/sys_resource.texi: Reorder items.
72953 2008-09-26  Jim Meyering  <meyering@redhat.com>
72955         fts: tweak inode comparison function
72956         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
72957         inode numbers, as documented.
72959         fts: sort dirent entries on inode number before traversing
72960         This avoids a quadratic, seek-related performance penalty when
72961         operating on a directory containing many entries (measurable at 10k;
72962         3.5 hours at 2 million entries with a cold cache) on certain types
72963         of file systems, including ext3 and ext4, but not tmpfs.
72964         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
72965         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
72966         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
72967         (fs_handles_readdir_ordered_dirents_efficiently): New function.
72968         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
72969         (fts_build): Set the stat.st_ino member from D_INO.
72970         If it is likely to be useful, sort dirent entries on inode number.
72972         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
72973         and the struct statfs.f_type member.
72974         * modules/fts (Depends-on): Add d-ino.
72976 2008-09-26  Bruno Haible  <bruno@clisp.org>
72978         * modules/sigpipe-die (Depends-on): Add sigpipe.
72980         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
72981         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
72982         and GNULIB_STDIO_H_SIGPIPE are set.
72983         * lib/stdio-write.c: New file.
72984         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
72985         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72986         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72987         REPLACE_STDIO_WRITE_FUNCS.
72988         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
72989         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72990         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72991         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
72992         * modules/stdio (Files): Add lib/stdio-write.c.
72993         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
72994         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72995         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72996         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
72997         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
72998         REPLACE_FPRINTF_POSIX.
72999         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
73000         REPLACE_PRINTF_POSIX.
73001         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
73002         REPLACE_VFPRINTF_POSIX.
73003         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
73004         REPLACE_VPRINTF_POSIX.
73005         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
73006         SIGPIPE issue.
73007         * doc/posix-functions/fputc.texi: Likewise.
73008         * doc/posix-functions/fputs.texi: Likewise.
73009         * doc/posix-functions/fwrite.texi: Likewise.
73010         * doc/posix-functions/printf.texi: Likewise.
73011         * doc/posix-functions/putc.texi: Likewise.
73012         * doc/posix-functions/putchar.texi: Likewise.
73013         * doc/posix-functions/puts.texi: Likewise.
73014         * doc/posix-functions/vfprintf.texi: Likewise.
73015         * doc/posix-functions/vprintf.texi: Likewise.
73017         * modules/safe-write (Depends-on): Add write.
73019         * modules/sigpipe-tests: New file.
73020         * tests/test-sigpipe.c: New file.
73021         * tests/test-sigpipe.sh: New file.
73023         * modules/write: New file.
73024         * lib/unistd.in.h: Include <sys/types.h>.
73025         (write): New declaration.
73026         * lib/write.c: New file.
73027         * m4/write.m4: New file.
73028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73029         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
73030         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
73031         GNULIB_WRITE, REPLACE_WRITE.
73032         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
73033         and the SIGPIPE issue.
73035         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
73036         (raise): New declaration.
73037         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
73038         (ext_signal): New function.
73039         (rpl_raise): New function.
73040         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
73041         GNULIB_SIGNAL_H_SIGPIPE.
73042         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
73043         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
73045         * modules/sigpipe: New file.
73046         * m4/sigpipe.m4: New file.
73048 2008-09-25  Derek Price  <derek@ximbiot.com>
73049             Bruno Haible  <bruno@clisp.org>
73051         * gnulib-tool (func_import): Report all license incompatibilities, not
73052         just the first one.
73054 2008-09-25  Bruno Haible  <bruno@clisp.org>
73056         * gnulib-tool (func_import): When computing the edits, consider not
73057         only the Makefile.ams that exist but also those that will be generated.
73059 2008-09-25  Simon Josefsson  <simon@josefsson.org>
73061         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
73062         fixes gnulib-tool --test warning about duplicate dependency.
73064 2008-09-25  Bruno Haible  <bruno@clisp.org>
73066         * gnulib-tool: Don't ask the user to perform edits in the generated
73067         Makefile.ams.
73068         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
73069         apply to the Makefile.am being generated.
73070         (func_emit_tests_Makefile_am): Execute edits that apply to the
73071         Makefile.am being generated.
73072         (func_import): Setup list of Makefile.am edits before emitting the
73073         Makefile.ams, not at the end.
73074         (func_create_testdir): Update.
73075         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73077 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73079         * gnulib-tool (func_import): Store the --tests-base option in the
73080         comment in gnulib-cache.m4.
73082 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
73084         * NEWS: Document increased portability that sys_select now provides.
73086         * lib/sys_select.in.h: Install select wrapper.
73087         * lib/sys_socket.in.h: Use more descriptive name when there is no
73088         select wrapper.
73089         * lib/winsock-select.c: New.
73090         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
73091         Require gl_HEADER_SYS_SOCKET.
73092         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
73093         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
73094         * tests/test-sys_select.c: Add functional tests.
73096 2008-09-24  Eric Blake  <ebb9@byu.net>
73098         open, fopen: close fd leak in last patch
73099         * lib/open.c (rpl_open): Close fd before returning error.
73100         * lib/fopen.c (rpl_fopen): Close fd before returning error.
73101         * doc/posix-functions/open.texi (open): Document that Irix also
73102         has the bug.
73103         * doc/posix-functions/fopen.texi (fopen): Likewise.
73104         Reported by Paolo Bonzini.
73106 2008-09-24  Bruno Haible  <bruno@clisp.org>
73108         Ensure that a filename ending in a slash cannot be used to access a
73109         non-directory.
73110         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
73111         to check whether it's really a directory.
73112         * lib/fopen.c: Include fcntl.h, unistd.h.
73113         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
73114         and fdopen().
73115         * modules/fopen (Depends-on): Add unistd.
73116         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
73117         * tests/test-fopen.c (main): Likewise.
73118         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
73119         * doc/posix-functions/fopen.texi: Likewise.
73120         Reported by Eric Blake.
73122 2008-09-23  Eric Blake  <ebb9@byu.net>
73124         c-stack: avoid compiler optimizations when provoking overflow
73125         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
73126         recursion harder to optimize, to ensure a stack overflow occurs.
73127         * tests/test-c-stack.c (recurse): Likewise.
73128         Borrowed from libsigsegv.
73130         c-stack: work around Irix sigaltstack bug
73131         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
73132         whether sigaltstack uses wrong end of stack_t (copied in part from
73133         libsigsegv).
73134         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
73135         Irix bug, without requiring an over-allocation.
73136         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
73137         bug.
73139         fopen: document mingw bug on directories
73140         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
73141         not allowing a stream visiting a directory, even though reading
73142         from such a stream is not portable.
73144 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73146         * lib/poll.c: Rewrite.
73147         * modules/poll: Depend on alloca.
73149 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73151         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
73152         instead define prototypes for a full set of wrappers.  Ensure
73153         that Cygwin does not use the compatibility code, which is only
73154         for MinGW.
73155         * lib/winsock.c: New.
73156         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
73157         * modules/sys_socket: Add lib/winsock.c.
73159         * modules/poll-tests: Add errno and perror.
73160         * tests/test-poll.c: Use ioctl, not ioctlsocket.
73162 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73164         * tests/test-poll.c: Downgrade minimum needed Winsock version.
73166 2008-09-23  Bruno Haible  <bruno@clisp.org>
73168         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
73169         * doc/glibc-functions/*: Likewise.
73171 2008-09-23  Simon Josefsson  <simon@josefsson.org>
73173         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
73174         success.
73176 2008-09-22  Eric Blake  <ebb9@byu.net>
73177             Bruno Haible  <bruno@clisp.org>
73179         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
73180         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
73181         supply %A but mishandle pseudo-NaN.
73182         Reported by Simon Josefsson.
73184 2008-09-21  Bruno Haible  <bruno@clisp.org>
73186         * tests/test-lock.c (main): Tweak skip message.
73187         * tests/test-tls.c (main): Likewise.
73189 2008-09-21  Bruno Haible  <bruno@clisp.org>
73191         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
73192         whether 'struct sigaction' has sa_sigaction here...
73193         (gl_PREREQ_SIG_HANDLER_H): ... not here.
73194         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
73196 2008-09-21  Bruno Haible  <bruno@clisp.org>
73198         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
73199         section.
73200         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
73201         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
73202         the new section.
73203         (Support for obsolete systems lacking POSIX:2001): New section.
73204         (String handling <string.h>): Move strdup to the new section.
73205         Suggested by Simon Josefsson and Paolo Bonzini.
73207 2008-09-21  Bruno Haible  <bruno@clisp.org>
73209         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
73210         exponents in %e and %g results on 'long double'. Needed for mingw's
73211         improved *printf functions.
73212         * tests/test-vasprintf-posix.c (test_function): Likewise.
73213         * tests/test-snprintf-posix.h (test_function): Likewise.
73214         * tests/test-sprintf-posix.h (test_function): Likewise.
73215         Reported by Eric Blake.
73217 2008-09-21  Bruno Haible  <bruno@clisp.org>
73219         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
73220         * tests/test-sprintf-posix.h (test_function): Likewise.
73222 2008-09-21  Bruno Haible  <bruno@clisp.org>
73224         * modules/getpass (Depends-on): Add strdup-posix.
73226         New module 'strdup-posix'.
73227         * modules/strdup-posix: New file.
73228         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
73229         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
73230         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73231         REPLACE_STRDUP.
73232         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
73233         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
73234         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73235         strdup-posix.
73237         * modules/strdup (Depends-on): Remove malloc-posix.
73239 2008-09-20  Bruno Haible  <bruno@clisp.org>
73241         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
73242         Wildenhues.
73244 2008-09-20  Bruno Haible  <bruno@clisp.org>
73246         Ensure that wint_t gets defined on IRIX 5.3.
73247         * lib/wchar.in.h (wint_t): Define if not defined by the system.
73248         * lib/wctype.in.h (wint_t): Likewise.
73249         (__wctype_wint_t): Remove type.
73250         (isw*): Use wint_t instead of __wctype_wint_t.
73251         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
73252         * modules/wchar (Files): Add m4/wint_t.m4.
73253         (Makefile.am): Substitute HAVE_WINT_T.
73254         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
73255         * tests/test-wctype.c: Check that wint_t is defined.
73256         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
73257         * doc/posix-headers/wctype.texi: Likewise.
73258         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
73260 2008-09-18  Bruno Haible  <bruno@clisp.org>
73262         * gnulib-tool (func_exit): Update comment.
73264 2008-09-18  Simon Josefsson  <simon@josefsson.org>
73266         * modules/getaddrinfo (Depends-on): Remove strdup, this module
73267         assumes strdup exists and does not depend on strdup to return
73268         ENOMEM on out of memory conditions.
73270 2008-09-18  Bruno Haible  <bruno@clisp.org>
73272         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
73273         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
73274         digits for the exponent.
73276 2008-09-18  Jim Meyering  <meyering@redhat.com>
73277             Bruno Haible  <bruno@clisp.org>
73279         * lib/vasnprintf.c (decimal_point_char): Define also if
73280         NEED_PRINTF_INFINITE_LONG_DOUBLE.
73282 2008-09-16  Bruno Haible  <bruno@clisp.org>
73283         and Eric Blake  <ebb9@byu.net>
73285         vasnprintf: support Irix 5.3
73286         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
73287         that mishandle long double infinity.
73288         Reported by Tom G. Christensen.
73290 2008-09-16  Bruno Haible  <bruno@clisp.org>
73292         * doc/glibc-functions/scandir.texi: Mention the function is missing on
73293         Solaris 9.
73294         * doc/glibc-functions/alphasort.texi: Likewise.
73295         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
73297 2008-09-16  Jim Meyering  <meyering@redhat.com>
73299         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
73300         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
73301         a umask modification leak out of a subshell.  Otherwise, the
73302         opensolaris /bin/sh would be accepted and thus cause unwarranted
73303         failures in the coreutils test suite.
73305 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
73307         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
73308         to succeed.
73310 2008-09-16  Jim Meyering  <meyering@redhat.com>
73312         avoid spurious test failure when library is built without ACL support
73313         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
73314         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
73315         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
73316         * tests/test-copy-acl.sh: Likewise.
73318 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73320         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
73321         based on character occurrence counts.
73323 2008-09-15  Eric Blake  <ebb9@byu.net>
73325         tests: avoid some compiler warnings
73326         * tests/test-memchr.c (main): Pass NULL indirectly.
73327         * tests/test-closein.c (main): Avoid unused variable.
73329 2008-09-15  Bruno Haible  <bruno@clisp.org>
73331         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
73332         are missing on OpenBSD 4.0 individually.
73333         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73335 2008-09-15  Bruno Haible  <bruno@clisp.org>
73337         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
73338         * doc/posix-functions/strerror.texi: Mention also Cygwin.
73339         * doc/posix-functions/perror.texi: Likewise.
73340         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
73341         is missing.
73342         Reported by Eric Blake.
73344         * lib/errno.in.h: Use replacement values >= 2000.
73345         Reported by Eric Blake.
73347 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73349         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
73350         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
73351         limit.
73352         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
73353         compareseq was aborted.
73355 2008-09-14  Bruno Haible  <bruno@clisp.org>
73357         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
73358         yvec_edit_count.
73359         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
73360         (fstrcmp_bounded): Simplify result computation accordingly.
73362 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73364         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
73365         (fstrcmp): Define in terms of fstrcmp_bounded.
73366         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
73367         lower_bound argument.
73368         Return quickly if the result is certainly < lower_bound.
73369         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
73371 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73373         * lib/diffseq.h (EARLY_ABORT): New macro.
73374         (compareseq): Change return type to bool. Return true when EARLY_ABORT
73375         evaluates to true.
73377 2008-09-14  Bruno Haible  <bruno@clisp.org>
73379         * modules/perror-tests: New file.
73380         * tests/test-perror.sh: New file.
73381         * tests/test-perror.c: New file.
73383         New module 'perror'.
73384         * lib/stdio.in.h (perror): New declaration.
73385         * lib/perror.c: New file.
73386         * m4/perror.m4: New file.
73387         * modules/perror: New file.
73388         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
73389         * doc/posix-functions/perror.texi: Mention the perror module.
73390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
73391         REPLACE_PERROR.
73392         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
73393         REPLACE_PERROR.
73395 2008-09-14  Bruno Haible  <bruno@clisp.org>
73397         * modules/stdio (Makefile.am): Reorder to match the order in
73398         lib/stdio.in.h.
73399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
73401 2008-09-13  Bruno Haible  <bruno@clisp.org>
73403         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
73405 2008-09-13  Bruno Haible  <bruno@clisp.org>
73407         Extend strerror to cover the added errno values.
73408         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
73409         (rpl_strerror): Provide error messages for the added errno values and
73410         for the WSA* values.
73411         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
73412         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
73413         strerror.
73414         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
73415         * modules/strerror (Depends-on): Add errno.
73416         * doc/posix-functions/strerror.texi: Document the change.
73417         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
73418         and EOVERFLOW.
73420 2008-09-13  Bruno Haible  <bruno@clisp.org>
73422         * modules/EOVERFLOW: Remove file.
73423         * m4/eoverflow.m4: Remove file.
73424         * modules/EOVERFLOW-tests: Remove file.
73425         * tests/test-EOVERFLOW.c: Remove file.
73426         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
73427         * modules/ftell (Depends-on): Likewise.
73428         * modules/getdelim (Depends-on): Likewise.
73429         * modules/getugroups (Depends-on): Likewise.
73430         * modules/poll (Depends-on): Likewise.
73431         * modules/snprintf (Depends-on): Likewise.
73432         * modules/sprintf-posix (Depends-on): Likewise.
73433         * modules/vasnprintf (Depends-on): Likewise.
73434         * modules/vasprintf (Depends-on): Likewise.
73435         * modules/vfprintf-posix (Depends-on): Likewise.
73436         * modules/vsnprintf (Depends-on): Likewise.
73437         * modules/vsprintf-posix (Depends-on): Likewise.
73438         * modules/xvasprintf (Depends-on): Likewise.
73439         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
73440         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
73441         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
73442         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
73443         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
73444         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
73445         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
73446         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
73447         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
73448         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
73449         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
73450         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
73451         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
73452         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
73453         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
73454         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
73455         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
73456         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
73457         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
73458         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
73459         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
73460         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
73461         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
73462         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
73463         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
73464         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
73465         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
73466         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
73467         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
73468         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
73469         * MODULES.html.sh: Remove EOVERFLOW.
73470         * NEWS: Mention the change.
73472 2008-09-13  Bruno Haible  <bruno@clisp.org>
73474         * modules/errno-tests: New file.
73475         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
73477         * lib/errno.in.h: New file.
73478         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
73479         * modules/errno: New file.
73480         * doc/posix-headers/errno.texi: Update documentation.
73481         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
73483 2008-09-13  Bruno Haible  <bruno@clisp.org>
73485         * tests/test-poll.c: Use #if for native Windows, rather than testing
73486         __MSVCRT__.
73488 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73489             Bruno Haible  <bruno@clisp.org>
73491         * lib/glob.c: Don't include <pwd.h> on native Windows.
73492         (WINDOWS32): New macro.
73493         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
73495 2008-09-13  Bruno Haible  <bruno@clisp.org>
73497         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
73498         (ETIMEDOUT): Remove macro.
73499         (glthread_cond_timedwait_multithreaded): New declaration.
73500         (glthread_cond_timedwait): Use it.
73501         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
73502         (glthread_cond_timedwait_multithreaded): New function.
73504 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
73506         * modules/poll-tests: Do not check for io.h.
73507         * tests/test-poll.c: Check for __MSVCRT__ instead.
73509 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
73511         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
73512         * modules/poll-tests: Add inet_pton, stdbool, sockets.
73513         * tests/test-poll.c: Use them.  Use _pipe on Windows.
73515 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
73517         * modules/poll-tests: New.
73518         * tests/test-poll.c: New.
73520 2008-09-12  Eric Blake  <ebb9@byu.net>
73522         frexp: test for NetBSD failure on -0.0
73523         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
73524         not all, bugs from NetBSD 3.0 have been fixed.
73525         * doc/posix-functions/frexp.texi (frexp): Document bug.
73526         Reported by Thomas Klausner.
73528         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
73529         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
73530         literal -0.0.
73531         Reported by Jonathan C. Patschke <jp@centtech.com>.
73533 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73535         * lib/glthread/cond.h: Use dummy implementation also if
73536         USE_WIN32_THREADS.
73538 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73540         * modules/fnmatch-posix (License): Change to LGPLv2+.
73541         * modules/fnmatch-gnu (License): Likewise.
73543 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73545         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
73547 2008-09-11  Jim Meyering  <meyering@redhat.com>
73549         * users.txt: Add gtk-vnc.
73551 2008-09-08  Simon Josefsson  <simon@josefsson.org>
73553         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
73554         rotate amounts.
73556         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
73557         required for 16-bit and 8-bit rotates.
73558         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
73559         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
73560         UINT8_MAX instead of hard-coded constants.
73561         Suggested by Paul Eggert.
73563 2008-09-07  Bruno Haible  <bruno@clisp.org>
73565         * tests/test-striconveh.c (main): Check behaviour when converting from
73566         UTF-7.
73568         Make striconveh work better with stateful encodings.
73569         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
73570         that iconv does not increment the inptr when returning -1/EINVAL.
73572 2008-09-07  Bruno Haible  <bruno@clisp.org>
73574         * build-aux/config.rpath: Update according to libtool-2.2.6.
73575         * build-aux/config.libpath: Likewise.
73577 2008-09-06  Bruno Haible  <bruno@clisp.org>
73579         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
73580         * lib/freadptr.c (freadptr): Likewise.
73581         * lib/freadseek.c (freadptrinc): Likewise.
73582         Reported by Simon Josefsson.
73584 2008-09-06  Bruno Haible  <bruno@clisp.org>
73586         * modules/freadptr (License): Change to LGPLv2+.
73587         * modules/freadseek (License): Likewise.
73588         Suggested by Eric Blake.
73590         * modules/memchr2 (License): Change to LGPLv2+.
73591         Approved by Eric Blake.
73593 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73594             Bruno Haible  <bruno@clisp.org>
73596         Make gnulib-tool work with native 'sed' on AIX.
73597         * gnulib-tool (sed_noop): New variable.
73598         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
73599         func_add_or_update, func_create_testdir): Use it to initialize sed
73600         script variables.
73601         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73603 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
73604             Bruno Haible  <bruno@clisp.org>
73606         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
73607         also works after #include directives.
73609 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
73611         getdate.y: reject an out-of-range timezone value
73612         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
73613         the range [-24...+24].  When specified with only one or two digits,
73614         * tests/test-getdate.c: Tests for the fix.
73615         * doc/getdate.texi: Document this change.
73617 2008-09-03  Bruno Haible  <bruno@clisp.org>
73619         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
73621 2008-09-02  Simon Josefsson  <simon@josefsson.org>
73623         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
73624         <bruce.korb@gmail.com> with ideas from Ben Pfaff
73625         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
73626         Blake <ebb9@byu.net>.
73628         * tests/test-bitrotate.c: Add more test vectors.
73630 2008-09-02  Eric Blake  <ebb9@byu.net>
73632         vasnprintf-posix: handle large precision via %.*d
73633         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
73634         when handling it ourselves.
73635         * tests/test-vasnprintf-posix.c (test_function): Add test.
73636         * tests/test-snprintf-posix.h (test_function): Likewise.
73637         * tests/test-sprintf-posix.h (test_function): Likewise.
73638         * tests/test-vasprintf-posix.c (test_function): Likewise.
73639         Reported by Alain Guibert.
73641 2008-09-01  Eric Blake  <ebb9@byu.net>
73643         c-stack: make configure-time check more robust
73644         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
73645         successful sigaction call.
73646         Reported by Tom G. Christensen.
73648 2008-09-01  Bruno Haible  <bruno@clisp.org>
73650         New module 'findprog-lgpl'.
73651         * modules/findprog-lgpl: New file.
73652         * lib/findprog-lgpl.c: New file.
73653         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
73654         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
73655         to decide whether to use strdup or xstrdup, concatenated_filename or
73656         xconcatenated_filename.
73658 2008-09-01  Bruno Haible  <bruno@clisp.org>
73660         Split module 'concat-filename' into 'concat-filename' (LGPL) and
73661         'xconcat-filename' (GPL).
73662         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
73663         (License): Change to LGPLv2+.
73664         * modules/xconcat-filename: New file.
73665         * lib/concat-filename.h (concatenated_filename): Change specification.
73666         (xconcatenated_filename): New declaration.
73667         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
73668         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
73669         memory situations.
73670         * lib/xconcat-filename.c: New file.
73671         * NEWS: Mention the change.
73672         * lib/findprog.c: Include concat-filename.h, not filename.h.
73673         (find_in_path): Use xconcatenated_filename instead of
73674         concatenated_filename.
73675         * lib/javacomp.c: Include concat-filename.h, not filename.h.
73676         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73677         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73678         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73679         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
73680         instead of concatenated_filename.
73681         * lib/javaexec.c: Include concat-filename.h, not filename.h.
73682         (execute_java_class): Use xconcatenated_filename instead of
73683         concatenated_filename.
73684         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
73685         * modules/javacomp (Depends-on): Likewise.
73686         * modules/javaexec (Depends-on): Likewise.
73688 2008-09-01  Bruno Haible  <bruno@clisp.org>
73690         Split module 'filename' into 'filename' and 'concat-filename'.
73691         * modules/filename: Keep only lib/filename.h.
73692         (License): Change to LGPLv2+.
73693         * modules/concat-filename: New file, extracted from modules/filename.
73694         * lib/filename.h (concatenated_filename): Remove declaration.
73695         * lib/concat-filename.h: New file, extracted from lib/filename.h.
73696         * lib/concat-filename.c: Include concat-filename.h.
73697         * NEWS: Mention the change.
73699 2008-09-01  Simon Josefsson  <simon@josefsson.org>
73701         * lib/bitrotate.h (rotl8, rotr8): Add.
73703         * modules/bitrotate (configure.ac): Need
73704         AC_REQUIRE([AC_C_INLINE]).
73705         (Description): Mention stdint.h.  Reported by Bruno Haible
73706         <bruno@clisp.org>.
73708         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
73709         Paolo Bonzini <bonzini@gnu.org>.
73711 2008-08-31  Bruno Haible  <bruno@clisp.org>
73713         Assume Solaris specific bi-arch conventions on Solaris systems.
73714         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
73715         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
73716         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
73717         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
73718         like acl_libdirstem.
73719         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
73720         acl_libdirstem.
73721         * NEWS: Mention the change.
73722         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
73724 2008-08-31  Jim Meyering  <meyering@redhat.com>
73726         * lib/strftime.h: Add comments describing the two added arguments.
73728         remove duplicate #include directives
73729         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
73730         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
73732 2008-08-31  Bruno Haible  <bruno@clisp.org>
73734         New module 'sigpipe-die'.
73735         * modules/sigpipe-die: New file.
73736         * lib/sigpipe-die.h: New file.
73737         * lib/sigpipe-die.c: New file.
73738         * MODULES.html.sh (Signal handling): Add sigpipe-die.
73740 2008-08-31  Bruno Haible  <bruno@clisp.org>
73742         Don't override previously installed signal handlers.
73743         * lib/fatal-signal.c (saved_sigactions): New variable.
73744         (uninstall_handlers): Reset the signal to the saved handler, not
73745         to SIG_DFL (except when ignored).
73746         (install_handlers): Save the previous handlers.
73748 2008-08-30  Bruno Haible  <bruno@clisp.org>
73750         * gnulib-tool (func_reset_sigpipe): New function.
73751         (func_get_automake_snippet, func_modules_transitive_closure,
73752         func_import): Invoke it before a join command that reads from stdin,
73753         to avoid "echo: write error: Broken pipe" error messages on stderr.
73754         Reported by Sam Steingold <sds@gnu.org>.
73756 2008-08-30  Bruno Haible  <bruno@clisp.org>
73758         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
73759         Code copied from m4/open.m4.
73760         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
73761         access and the filename ends in a slash. Code copied from lib/open.c.
73762         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
73763         * tests/test-fopen.c (main): Check against bug with trailing slash.
73765 2008-08-29  Bruno Haible  <bruno@clisp.org>
73767         Avoid some "gcc -pedantic" warnings.
73768         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
73769         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
73770         * lib/dirent.in.h: Likewise.
73771         * lib/fcntl.in.h: Likewise.
73772         * lib/float.in.h: Likewise.
73773         * lib/iconv.in.h: Likewise.
73774         * lib/inttypes.in.h: Likewise.
73775         * lib/locale.in.h: Likewise.
73776         * lib/math.in.h: Likewise.
73777         * lib/netinet_in.in.h: Likewise.
73778         * lib/search.in.h: Likewise.
73779         * lib/signal.in.h: Likewise.
73780         * lib/stdarg.in.h: Likewise.
73781         * lib/stdint.in.h: Likewise.
73782         * lib/stdio.in.h: Likewise.
73783         * lib/stdlib.in.h: Likewise.
73784         * lib/string.in.h: Likewise.
73785         * lib/strings.in.h: Likewise.
73786         * lib/sys_select.in.h: Likewise.
73787         * lib/sys_socket.in.h: Likewise.
73788         * lib/sys_stat.in.h: Likewise.
73789         * lib/sys_time.in.h: Likewise.
73790         * lib/sysexits.in.h: Likewise.
73791         * lib/time.in.h: Likewise.
73792         * lib/unistd.in.h: Likewise.
73793         * lib/wchar.in.h: Likewise.
73794         * lib/wctype.in.h: Likewise.
73795         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
73796         * modules/fchdir (Makefile.am): Likewise.
73797         * modules/fcntl (Makefile.am): Likewise.
73798         * modules/float (Makefile.am): Likewise.
73799         * modules/iconv_open (Makefile.am): Likewise.
73800         * modules/inttypes (Makefile.am): Likewise.
73801         * modules/locale (Makefile.am): Likewise.
73802         * modules/math (Makefile.am): Likewise.
73803         * modules/netinet_in (Makefile.am): Likewise.
73804         * modules/search (Makefile.am): Likewise.
73805         * modules/signal (Makefile.am): Likewise.
73806         * modules/stdarg (Makefile.am): Likewise.
73807         * modules/stdint (Makefile.am): Likewise.
73808         * modules/stdio (Makefile.am): Likewise.
73809         * modules/stdlib (Makefile.am): Likewise.
73810         * modules/string (Makefile.am): Likewise.
73811         * modules/strings (Makefile.am): Likewise.
73812         * modules/sys_select (Makefile.am): Likewise.
73813         * modules/sys_socket (Makefile.am): Likewise.
73814         * modules/sys_stat (Makefile.am): Likewise.
73815         * modules/sys_time (Makefile.am): Likewise.
73816         * modules/sysexits (Makefile.am): Likewise.
73817         * modules/time (Makefile.am): Likewise.
73818         * modules/unistd (Makefile.am): Likewise.
73819         * modules/wchar (Makefile.am): Likewise.
73820         * modules/wctype (Makefile.am): Likewise.
73821         Reported by Reuben Thomas <rrt@sc3d.org>.
73823 2008-08-29  Bruno Haible  <bruno@clisp.org>
73825         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
73826         any more.
73828 2008-08-29  Simon Josefsson  <simon@josefsson.org>
73830         * MODULES.html.sh (Misc): Add bitrotate.
73832         * modules/bitrotate: New file.
73834         * lib/bitrotate.h: New file.
73836         * modules/bitrotate-tests: New file.
73838         * tests/test-bitrotate.c: New file.
73840         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
73841         on the bitrotate module.
73843         * lib/arctwo.c: Use new bitrotate module.
73845 2008-08-29  Jim Meyering  <meyering@redhat.com>
73847         bootstrap: merge changes from coreutils
73848         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
73849         of copied files.  Remove a kludge, now that this is fixed.
73850         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
73851         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
73852         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
73854 2008-08-29  Bruno Haible  <bruno@clisp.org>
73856         * MODULES.html.sh: Remove --cvs-urls option.
73858 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
73860         maint.mk: adjust to file name change
73861         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
73863 2008-08-28  Jim Meyering  <meyering@redhat.com>
73865         * modules/getndelim2 (License): Relicense to LGPLv2+.
73866         Approved by Richard Stallman for the version of 1995, and by
73867         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
73869 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
73871         * lib/getdelim.c (flockfile, funlockfile): Make all of them
73872         dummy if one is not available.  Do not touch them if
73873         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
73874         (getc_maybe_unlocked): New.
73875         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
73877 2008-08-26  Eric Blake  <ebb9@byu.net>
73879         doc/INSTALL: resync from autoconf
73880         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
73881         (INSTALL_PRELUDE): Delete; this is done more efficiently by
73882         moving...
73883         * install.texi [!autoconf]: ...here.  Resync from autoconf.
73884         * INSTALL: Regenerate.
73885         * INSTALL.ISO: New file.
73886         * INSTALL.UTF-8: Likewise.
73888 2008-08-26  Jim Meyering  <meyering@redhat.com>
73890         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
73891         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
73892         these definitions conditional, so that they may be overridden, too.
73894 2008-08-26  Bruno Haible  <bruno@clisp.org>
73896         Generate INSTALL file variants with prettier quotes.
73897         * doc/Makefile (INSTALL_PRELUDE): New macro.
73898         (INSTALL): Use it.
73899         (INSTALL.ISO, INSTALL.UTF-8): New rules.
73901 2008-08-26  Bruno Haible  <bruno@clisp.org>
73903         Run makeinfo in an English locale.
73904         * doc/Makefile (MAKEINFO): New variable.
73906 2008-08-26  Bruno Haible  <bruno@clisp.org>
73908         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
73909         Suggested by Eric Blake.
73911 2008-08-25  Bruno Haible  <bruno@clisp.org>
73913         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
73915 2008-08-25  Eric Blake  <ebb9@byu.net>
73917         c-stack: test that stack overflow can be caught
73918         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
73919         that platform allows handling stack overflow; at least OS/2 EMX
73920         has sigaltstack, but crashes before transferring control to
73921         handler on stack overflow.
73922         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
73923         check for HAVE_STACK_OVERFLOW_HANDLING.
73924         Reported by Elbert Pol.
73926 2008-08-25  Bruno Haible  <bruno@clisp.org>
73928         * doc/posix-functions/strftime.texi: Fix description of strftime
73929         module.
73931 2008-08-24  Bruno Haible  <bruno@clisp.org>
73933         * tests/uniwidth/test-uc_width2.c: New file.
73934         * tests/uniwidth/test-uc_width2.sh: New file.
73935         * modules/uniwidth/width-tests (Files): Add the new files.
73936         (TESTS): Add uniwidth/test-uc_width2.sh.
73937         (TESTS_ENVIRONMENT): New variable.
73938         (check_PROGRAMS): Add test-uc_width2.
73939         (test_uc_width2_SOURCES): New variable.
73941         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
73942         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
73943         not 0x00AB.
73944         Reported by Alexander V. Lukyanov <lav@netis.ru>.
73946 2008-08-22  Eric Blake  <ebb9@byu.net>
73948         test-lock, test-tls: mention why a test is skipped
73949         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
73950         skipped.
73951         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
73953         count-one-bits: relax license
73954         * modules/count-one-bits (License): Relicense to LGPLv2+.
73955         Suggested by Ludovic Courtès, approved by Ben Pfaff.
73957 2008-08-22  Andreas Schwab  <schwab@suse.de>
73959         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
73960         Remove spurious space in assignment.
73962 2008-08-21  Simon Josefsson  <simon@josefsson.org>
73964         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
73965         Paul Eggert <eggert@CS.UCLA.EDU>.
73967 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
73969         * modules/gettext: Add m4/threadlib.m4.
73971 2008-08-19  Eric Blake  <ebb9@byu.net>
73973         test-c-stack: fix compilation failure on FreeBSD 5.0
73974         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
73975         headers before <sys/resource.h>.
73976         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
73977         the bug.
73978         Reported by Nelson H. F. Beebe.
73980         strverscmp: migrate from "strverscmp.h" to <string.h>
73981         * modules/string (Makefile.am): Add new hooks.
73982         * modules/strverscmp (Files): Remove strverscmp.h.
73983         (Depends-on): Add string.
73984         (configure.ac): Add indicator.
73985         (Include): Mention new header.
73986         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
73987         defaults.
73988         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
73989         results.
73990         * lib/strverscmp.h: Delete.
73991         * lib/string.in.h (strverscmp): Provide declaration, when needed.
73992         * tests/test-strverscmp.c (includes): Adjust client.
73993         * lib/check-version.c (includes): Likewise.
73994         * NEWS: Document the change.
73996         strverscmp: add unit test
73997         * modules/strverscmp-tests: New file.
73998         * tests/test-strverscmp.c: Likewise.
74000 2008-08-19  Simon Josefsson  <simon@josefsson.org>
74002         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
74003         regarding Windows crypto stuff, from Mono.
74005 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
74007         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
74008         if present, for intel RND.  Return error on failures.
74010 2008-08-18  Ben Pfaff  <blp@gnu.org>
74012         gitlog-to-changelog: give better diagnostic for failed pipe-open
74013         * build-aux/gitlog-to-changelog: Improve error message: suggest
74014         that the version of Git may be too old.
74016 2008-08-18  Simon Josefsson  <simon@josefsson.org>
74018         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
74019         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
74021 2008-08-18  Bruno Haible  <bruno@clisp.org>
74023         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
74024         pthread_in_use().
74026 2008-08-18  Bruno Haible  <bruno@clisp.org>
74028         * lib/glthread/threadlib.c: Include <pthread.h>.
74030 2008-08-18  Bruno Haible  <bruno@clisp.org>
74032         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
74033         glthread_recursive_lock_* macros.
74034         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
74035         Fix syntax error.
74037 2008-08-18  Bruno Haible  <bruno@clisp.org>
74039         * lib/glthread/thread.c: Avoid forcing a context switch right after
74040         thread creation.
74042 2008-08-17  Bruno Haible  <bruno@clisp.org>
74044         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
74045         * lib/glthread/thread.h: Provide Win32 specific implementation.
74046         * modules/thread (Files): Add lib/glthread/thread.c.
74047         (Depends-on): Add lock.
74048         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
74050 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74052         New module 'yield'.
74053         * modules/yield: New file.
74054         * lib/glthread/yield.h: New file.
74055         * m4/yield.m4: New file.
74056         * MODULES.html.sh (Multithreading): Add yield.
74058 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74060         New module 'thread'.
74061         * modules/thread: New file.
74062         * lib/glthread/thread.h: New file.
74063         * m4/thread.m4: New file.
74064         * MODULES.html.sh (Multithreading): Add thread.
74066 2008-08-17  Bruno Haible  <bruno@clisp.org>
74068         * lib/glthread/lock.h: Include <stdlib.h> always.
74069         * lib/glthread/tls.h: Likewise.
74070         * lib/glthread/cond.h: Likewise.
74072 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74074         New module 'cond'.
74075         * modules/cond: New file.
74076         * lib/glthread/cond.h: New file.
74077         * lib/glthread/cond.c: New file.
74078         * m4/cond.m4: New file.
74079         * MODULES.html.sh (Multithreading): Add cond.
74081 2008-08-16  Eric Blake  <ebb9@byu.net>
74083         c-stack: fix regression on Irix 5.3 from 2008-06-21
74084         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
74085         sa_sigaction...
74086         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
74087         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
74088         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
74089         * modules/signal (Makefile.am): Use the value.
74090         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
74091         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
74092         * doc/posix-headers/signal.texi (signal.h): Document this
74093         portability issue.
74094         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
74095         Reported by Tom G. Christensen.
74097 2008-08-17  Bruno Haible  <bruno@clisp.org>
74099         New module 'threadlib'.
74100         * modules/threadlib: New file.
74101         * lib/glthread/threadlib.c: New file, extracted from
74102         lib/glthread/lock.c.
74103         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
74104         functions.
74105         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
74106         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
74107         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
74108         macros.
74109         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
74110         (gl_DISABLE_THREADS): Remove macro.
74111         * modules/lock (Files): Remove build-aux/config.rpath.
74112         (Depends-on): Remove havelib. Add threadlib.
74113         (configure.ac-early): Remove section.
74114         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
74115         * modules/tls (Depends-on): Remove lock. Add threadlib.
74116         (Link): New section, copied from threadlib.
74117         * MODULES.html.sh (Multithreading): Add threadlib.
74119 2008-08-14  Bruno Haible  <bruno@clisp.org>
74121         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
74122         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
74123         glthread_rwlock_unlock, glthread_rwlock_destroy,
74124         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
74125         glthread_recursive_lock_destroy): Define as macros always.
74126         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
74127         glthread_lock_lock.
74128         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
74129         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
74130         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
74131         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
74132         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
74133         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
74134         (glthread_recursive_lock_lock_func): Renamed from
74135         glthread_recursive_lock_lock.
74136         (glthread_recursive_lock_unlock_func): Renamed from
74137         glthread_recursive_lock_unlock.
74138         (glthread_recursive_lock_destroy_func): Renamed from
74139         glthread_recursive_lock_destroy.
74141 2008-08-14  Bruno Haible  <bruno@clisp.org>
74143         * lib/glthread/lock.h: Renamed from lib/lock.h.
74144         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
74145         * lib/glthread/tls.h: Renamed from lib/tls.h.
74146         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
74147         * lib/fstrcmp.c: Update includes.
74148         * lib/strsignal.c: Update includes.
74149         * modules/lock (Files, Makefile.am): Update.
74150         (Include): Change to "glthread/lock.h".
74151         * modules/tls (Files, Makefile.am): Update.
74152         (Include): Change to "glthread/tls.h".
74153         * tests/test-lock.c: Update includes.
74154         * tests/test-tls.c: Update includes.
74155         * NEWS: Mention the renamed header files.
74157 2008-08-11  Jim Meyering  <meyering@redhat.com>
74159         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
74161 2008-08-11  Eric Blake  <ebb9@byu.net>
74163         test-c-stack: avoid C99-ism
74164         * tests/test-c-stack.c (main): Fix whitespace, move declaration
74165         before statement.
74166         Reported by Alain Guibert.
74168 2008-08-10  Jim Meyering  <meyering@redhat.com>
74170         ensure that return value of uinttostr et al are not ignored
74171         * lib/inttostr.h (__GNUC_PREREQ): Define.
74172         (__attribute_warn_unused_result__): Define.
74173         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
74175 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
74177         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
74178         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
74180 2008-08-07  Jim Meyering  <meyering@redhat.com>
74182         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
74184         * modules/mkstemp (License): Relicense under LGPLv2+.
74185         * modules/tempname (License): Likewise.
74187 2008-08-06  Bruno Haible  <bruno@clisp.org>
74189         * lib/poll.c (poll): Further micro-optimization.
74191 2008-08-06  Jim Meyering  <meyering@redhat.com>
74193         inet_pton.c: use locale-independent tolower
74194         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
74195         (inet_pton6): Use c_tolower rather than tolower.
74196         * modules/inet_pton (Depends-on): Add c-ctype.
74198 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
74200         * lib/poll.c (poll): Avoid division when timeout is 0, cache
74201         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
74203 2008-08-06  Jim Meyering  <meyering@redhat.com>
74205         * modules/inet_pton (License): Relicense under LGPLv2+.
74207 2008-08-03  Bruno Haible  <bruno@clisp.org>
74209         Additional non-aborting API for lock and tls.
74210         * lib/lock.h: Include <errno.h>.
74211         (glthread_lock_init): New macro/function.
74212         (gl_lock_init): Define as wrapper around glthread_lock_init.
74213         (glthread_lock_lock): New macro/function.
74214         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
74215         (glthread_lock_unlock): New macro/function.
74216         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
74217         (glthread_lock_destroy): New macro/function.
74218         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
74219         (glthread_rwlock_init): New macro/function.
74220         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
74221         (glthread_rwlock_rdlock): New macro/function.
74222         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
74223         (glthread_rwlock_wrlock): New macro/function.
74224         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
74225         (glthread_rwlock_unlock): New macro/function.
74226         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
74227         (glthread_rwlock_destroy): New macro/function.
74228         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
74229         (glthread_recursive_lock_init): New macro/function.
74230         (gl_recursive_lock_init): Define as wrapper around
74231         glthread_recursive_lock_init.
74232         (glthread_recursive_lock_lock): New macro/function.
74233         (gl_recursive_lock_lock): Define as wrapper around
74234         glthread_recursive_lock_lock.
74235         (glthread_recursive_lock_unlock): New macro/function.
74236         (gl_recursive_lock_unlock): Define as wrapper around
74237         glthread_recursive_lock_unlock.
74238         (glthread_recursive_lock_destroy): New macro/function.
74239         (gl_recursive_lock_destroy): Define as wrapper around
74240         glthread_recursive_lock_destroy.
74241         (glthread_once): New macro/function.
74242         (gl_once): Define as wrapper around glthread_once.
74243         Update function declarations.
74244         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
74245         glthread_rwlock_init. Return error code.
74246         (glthread_rwlock_rdlock_multithreaded): Renamed from
74247         glthread_rwlock_rdlock. Return error code.
74248         (glthread_rwlock_wrlock_multithreaded): Renamed from
74249         glthread_rwlock_wrlock. Return error code.
74250         (glthread_rwlock_unlock_multithreaded): Renamed from
74251         glthread_rwlock_unlock. Return error code.
74252         (glthread_rwlock_destroy_multithreaded): Renamed from
74253         glthread_rwlock_destroy. Return error code.
74254         (glthread_recursive_lock_init_multithreaded): Renamed from
74255         glthread_recursive_lock_init. Return error code.
74256         (glthread_recursive_lock_lock_multithreaded): Renamed from
74257         glthread_recursive_lock_lock. Return error code.
74258         (glthread_recursive_lock_unlock_multithreaded): Renamed from
74259         glthread_recursive_lock_unlock. Return error code.
74260         (glthread_recursive_lock_destroy_multithreaded): Renamed from
74261         glthread_recursive_lock_destroy. Return error code.
74262         (glthread_once_call): Make static.
74263         (glthread_once_multithreaded): Renamed from glthread_once.
74264         * lib/tls.h: Include <errno.h>.
74265         (glthread_tls_key_init): New macro/function.
74266         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
74267         (glthread_tls_set): New macro/function.
74268         (gl_tls_set): Define as wrapper around glthread_tls_set.
74269         (glthread_tls_key_destroy): New macro/function.
74270         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
74271         Update function declarations.
74272         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
74273         glthread_tls_get.
74274         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74276 2008-08-04  Eric Blake  <ebb9@byu.net>
74278         gnumakefile: use space, not TAB, outside of targets
74279         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
74281 2008-08-02  Jim Meyering  <meyering@redhat.com>
74283         getdate.y: avoid locale-dependent date parsing failure
74284         In Turkish locales, getdate would fail to recognize keywords
74285         containing a lowercase "i".  The solution is not to rely on
74286         locale-sensitive case-conversion.
74287         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
74288         (lookup_word): Use c_toupper in place of toupper.
74289         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
74290         Reported by Vefa Bicakci <bicave@superonline.com> in
74291         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
74292         * modules/getdate (Depends-on): Add c-ctype.
74294 2008-08-02  Bruno Haible  <bruno@clisp.org>
74296         * gnulib-tool (func_import): When updating or creating a .gitignore
74297         file, prepend each added line with a slash, and ignore leading slashes
74298         from the existing lines.
74299         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74301 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74303         Portability fix for GNU make 3.79.1.
74304         * top/GNUmakefile: Avoid 'else COND', which older GNU make
74305         versions do not understand.
74307 2008-08-01  Bruno Haible  <bruno@clisp.org>
74309         Work around bug of HP-UX 10.20 cc with -0.0 literal.
74310         * tests/test-isnanf.h (zero): New variable.
74311         (main): Avoid literal -0.0f.
74312         * tests/test-isnand.h (zero): New variable.
74313         (main): Avoid literal -0.0.
74314         * tests/test-isnanl.h (zero): New variable.
74315         (main): Avoid literal -0.0L.
74316         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
74317         (test_float, test_double, test_long_double): Avoid literals -0.0f,
74318         -0.0, -0.0L.
74319         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
74320         (test_signbitd): Avoid literal -0.0.
74321         (test_signbitl): Avoid literal -0.0L.
74322         * tests/test-ceilf1.c (zero): New variable.
74323         (main): Avoid literal -0.0f.
74324         * tests/test-ceill.c (zero): New variable.
74325         (main): Avoid literal -0.0L.
74326         * tests/test-floorf1.c (zero): New variable.
74327         (main): Avoid literal -0.0f.
74328         * tests/test-floorl.c (zero): New variable.
74329         (main): Avoid literal -0.0L.
74330         * tests/test-roundf1.c (zero): New variable.
74331         (main): Avoid literal -0.0f.
74332         * tests/test-round1.c (zero): New variable.
74333         (main): Avoid literal -0.0.
74334         * tests/test-roundl.c (zero): New variable.
74335         (main): Avoid literal -0.0L.
74336         * tests/test-truncf1.c (zero): New variable.
74337         (main): Avoid literal -0.0f.
74338         * tests/test-trunc1.c (zero): New variable.
74339         (main): Avoid literal -0.0.
74340         * tests/test-truncl.c (zero): New variable.
74341         (main): Avoid literal -0.0L.
74342         * tests/test-frexp.c (zero): New variable.
74343         (main): Avoid literal -0.0.
74344         * tests/test-frexpl.c (zero): New variable.
74345         (main): Avoid literal -0.0L.
74346         * tests/test-ldexpl.c (zero): New variable.
74347         (main): Avoid literal -0.0L.
74348         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
74349         (zerod, zerol): New variables.
74350         (test_function): Avoid literals -0.0, -0.0L.
74351         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
74352         (zerod, zerol): New variables.
74353         (test_function): Avoid literals -0.0, -0.0L.
74354         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
74355         (zerod, zerol): New variables.
74356         (test_function): Avoid literals -0.0, -0.0L.
74357         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
74358         (zerod, zerol): New variables.
74359         (test_function): Avoid literals -0.0, -0.0L.
74360         * tests/test-strtod.c (zero): New variable.
74361         (main): Avoid literal -0.0.
74362         Reported by Jonathan C. Patschke <jp@centtech.com>.
74364 2008-07-31  Jim Meyering  <meyering@redhat.com>
74366         sha256.h: correct definition of SHA224_DIGEST_SIZE
74367         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
74368         Reported by Paulie Pena IV <paulie4@gmail.com>.
74369         Define as 224 / 8, rather than as a literal.
74370         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
74371         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
74372         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
74374 2008-07-31  Bruno Haible  <bruno@clisp.org>
74376         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
74377         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
74378         Reported by Jonathan Patschke <jp@centtech.com>.
74380 2008-07-31  Bruno Haible  <bruno@clisp.org>
74382         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
74383         Reported by Paolo Bonzini <bonzini@gnu.org>.
74385 2008-07-30  Eric Blake  <ebb9@byu.net>
74387         test-strtod: allow compilation without -lm
74388         * tests/test-strtod.c (main): Avoid link dependence on fabs.
74389         Reported by Dennis Clarke <blastwave@gmail.com>.
74391 2008-07-28  Jim Meyering  <meyering@redhat.com>
74393         bootstrap: work also when there are no .po files in po/
74394         * build-aux/bootstrap (update_po_files): Complete the change
74395         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
74397 2008-07-27  Jim Meyering  <meyering@redhat.com>
74399         * users.txt: Add zile.
74401 2008-07-26  Ben Pfaff  <blp@gnu.org>
74403         Add missing dependencies on new m4/exponent[fdl].m4 files.
74404         * modules/isnanf-nolibm: Add m4/exponentf.m4.
74405         * modules/isnand-nolibm: Add m4/exponentd.m4.
74406         * modules/isnanl-nolibm: Add m4/exponentl.m4.
74407         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
74408         m4/isnan[fdl].m4, because the macros actually used moved.
74409         Reported by Jim Meyering.
74411 2008-07-14  Ben Pfaff  <blp@gnu.org>
74413         Add isinf module.
74414         * lib/isinf.c: New file.
74415         * lib/math.in.h: Define isinf macro if we have decided to replace
74416         it.
74417         * m4/isinf.m4: New file.
74418         * m4/math_h.m4: Initialize and substitute variables for isinf
74419         module.
74420         * modules/isinf: New file.
74421         * modules/isinf-tests: New file.
74422         * modules/math: Add substitutions for new module.
74423         * tests/test-isinf.c: New file.
74424         * doc/posix-functions/isinf.texi: Mention new module.
74425         * MODULES.html.sh: Mention new module.
74427 2008-07-14  Ben Pfaff  <blp@gnu.org>
74429         Factor out some macros for use by additional modules.
74430         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
74431         exponentf.m4.
74432         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
74433         exponentd.m4.
74434         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
74435         file exponentl.m4.
74436         * m4/exponentf.m4: New file.
74437         * m4/exponentd.m4: New file.
74438         * m4/exponentl.m4: New file.
74439         * modules/isnanf: Use new file m4/exponentf.m4.
74440         * modules/isnand: Use new file m4/exponentd.m4.
74441         * modules/isnanl: Use new file m4/exponentl.m4.
74443 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
74445         mktime.c: normalize tp->tm_isdst value to -1/0/1.
74446         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
74447         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
74448         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
74450         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
74451         readlink on platforms without PATH_MAX.
74453 2008-07-21  Eric Blake  <ebb9@byu.net>
74455         Warn, not fail, on stale version.
74456         * top/GNUmakefile (_curr-ver): Tone down previous patch.
74458         Don't allow installation with stale devel version number.
74459         * top/GNUmakefile (_is-install-target): New macro.
74460         (_curr-ver): Forbid installation with stale version number.
74462 2008-07-20  Bruno Haible  <bruno@clisp.org>
74464         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
74465         TESTS_ENVIRONMENT.
74466         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
74468 2008-07-20  Bruno Haible  <bruno@clisp.org>
74470         * lib/c-stack.h (c_stack_action): Add documentation.
74471         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
74473 2008-07-20  Bruno Haible  <bruno@clisp.org>
74475         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
74476         * modules/readlink (License): Likewise.
74478 2008-07-17  Eric Blake  <ebb9@byu.net>
74480         * modules/c-stack (Link): Fix typo.
74482         Make c-stack use libsigsegv, when available.
74483         * modules/c-stack (Depends-on): Add libsigsegv.
74484         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
74485         needed.
74486         * lib/c-stack.c (SIGSTKSZ): Define fallback.
74487         (segv_handler, overflow_handler, c_stack_action)
74488         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
74489         implementation when libsigsegv is available, but only when using
74490         the library is necessary.
74491         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
74492         comment, explaining why XSI check fails on Linux.
74493         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
74494         * tests/test-c-stack2.sh: Tweak skip message.
74495         * NEWS: Document new link-time requirements.
74497 2008-07-16  Eric Blake  <ebb9@byu.net>
74499         c-stack: Expose false positives when not using libsigsegv.
74500         * modules/c-stack-tests (Files): Expand test.
74501         * tests/test-c-stack.c (main): Add means to conditionally trigger
74502         non-overflow SIGSEGV.
74503         * tests/test-c-stack2.sh: New file.
74505 2008-07-14  Bruno Haible  <bruno@clisp.org>
74507         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
74508         Reported by Eric Blake.
74510 2008-07-14  Sam Steingold  <sds@gnu.org>
74511             Bruno Haible  <bruno@clisp.org>
74513         New module libsigsegv.
74514         * modules/libsigsegv: New file.
74515         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
74516         modifications.
74517         * MODULES.html.sh (Signal handling): New section.
74519 2008-07-14  Bruno Haible  <bruno@clisp.org>
74521         * modules/unictype/ctype-* (Description): Add the word "function".
74522         Improves the resulting doc in MODULES.html.
74524 2008-07-12  Ben Pfaff  <blp@gnu.org>
74526         Add longlong module.
74527         * modules/longlong: New file.
74529 2008-07-12  Bruno Haible  <bruno@clisp.org>
74531         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
74532         to empty.
74534 2008-07-10  Ben Pfaff  <blp@gnu.org>
74536         Add isnan module.
74537         * doc/posix-functions/isnan.texi: Mention new module.
74538         * lib/math.in.h: Define isnan macro if we have decided to replace
74539         it.
74540         * m4/isnan.m4: New file.
74541         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
74542         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
74543         also.
74544         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
74545         redundancy.
74546         * m4/math_h.m4: Initialize and substitute variables for isnan
74547         module.
74548         * modules/isnan: New file.
74549         * modules/isnan-tests: New file.
74550         * modules/math: Add substitutions for new module.
74551         * tests/test-isnan.c: New file.
74552         * MODULES.html.sh: Mention new module.
74554 2008-07-10  Ben Pfaff  <blp@gnu.org>
74556         Add isnanf module.
74557         * lib/isnanf.m4: New file.
74558         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
74559         (gl_HAVE_ISNANF_IN_LIBM): New macro.
74560         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
74561         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
74562         * modules/isnanf: New file.
74563         * modules/isnanf-tests: New file.
74564         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
74565         files.
74566         * tests/test-isnanf-nolibm.c: factored most of its contents into
74567         new file tests/test-isnanf.h.
74568         * tests/test-isnanf.h: New file.
74569         * tests/test-isnanf.c: New file.
74570         * MODULES.html.sh: Mention new module.
74571         * doc/glibc-functions/isnanf.texi: Mention new module.
74573 2008-07-10  Ben Pfaff  <blp@gnu.org>
74575         Add isnand module.
74576         * lib/isnand.h: New file.
74577         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
74578         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
74579         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
74580         functionality also.
74581         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
74582         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
74583         (gl_HAVE_ISNAND_IN_LIBM): New macro.
74584         * modules/isnand: New file.
74585         * modules/isnand-tests: New file.
74586         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
74587         files.
74588         * tests/test-isnand-nolibm.c: factored most of its contents into
74589         new file tests/test-isnand.h.
74590         * tests/test-isnand.h: New file.
74591         * tests/test-isnand.c: New file.
74592         * MODULES.html.sh: Mention new module.
74594 2008-07-10  Ben Pfaff  <blp@gnu.org>
74596         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
74597         * lib/isnand.h: Rename lib/isnand-nolibm.h.
74598         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
74599         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
74600         * modules/isnanf-nolibm: Update references to renamed files.
74601         * modules/isnand-nolibm: Likewise.
74602         * modules/isnanf-nolibm-tests: Likewise.
74603         * modules/isnand-nolibm-tests: Likewise.
74604         * lib/frexp.c: Likewise.
74605         * lib/isfinite.c: Likewise.
74606         * lib/signbitd.c: Likewise.
74607         * lib/signbitf.c: Likewise.
74608         * lib/vasnprintf.c: Likewise.
74609         * tests/test-ceilf1.c: Likewise.
74610         * tests/test-ceilf2.c: Likewise.
74611         * tests/test-floorf1.c: Likewise.
74612         * tests/test-floorf2.c: Likewise.
74613         * tests/test-frexp.c: Likewise.
74614         * tests/test-round1.c: Likewise.
74615         * tests/test-round2.c: Likewise.
74616         * tests/test-roundf1.c: Likewise.
74617         * tests/test-strtod.c: Likewise.
74618         * tests/test-trunc1.c: Likewise.
74619         * tests/test-trunc2.c: Likewise.
74620         * tests/test-truncf1.c: Likewise.
74621         * tests/test-truncf2.c: Likewise.
74622         * NEWS: Mention the renamed header files.
74624 2008-07-11  Jim Meyering  <meyering@redhat.com>
74626         vc-list-files: make the last-resort awk code more portable
74627         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
74628         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
74629         does not support it.
74631 2008-07-10  Eric Blake  <ebb9@byu.net>
74633         Work with tar's bootstrap.
74634         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
74635         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
74636         an m4 comment.
74638 2008-07-09  Jim Meyering  <meyering@redhat.com>
74640         posix-shell.m4: fix typo that made this test malfunction
74641         * m4/posix-shell.m4: Remove capitalization in variable name.
74643 2008-07-08  Bruno Haible  <bruno@clisp.org>
74645         * m4/onceonly.m4: Update comments.
74646         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74648 2008-07-04  Jim Meyering  <meyering@redhat.com>
74650         * users.txt: Add vc-dwim.
74651         (bison, coreutils): Use the gitweb URL.
74653 2008-07-03  Jim Meyering  <meyering@redhat.com>
74655         * users.txt: Add libffcall.  From Sam Steingold.
74657 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
74659         getdate.y: do not ignore TZ with relative day, month or year offset
74660         * lib/getdate.y (get_date): Move the tz-handling block to follow the
74661         relative-date-handling, since otherwise, the latter would clobber the
74662         sole output (an updated Start value) of the tz-handling block.
74663         * tests/test-getdate.c: Tests for the fix
74665 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74667         Recognize 'foo_LIBRARIES += libgnu.a'.
74668         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
74669         makefile snippet has already specified an installation location,
74670         also using '+='.
74672 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
74674         getdate.y: factor out common actions
74675         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
74676         Use them in place of open-coded actions.
74678 2008-07-01  Simon Josefsson  <simon@josefsson.org>
74680         Add self-test for getdate module.
74681         * modules/getdate-tests: New file.
74682         * tests/test-getdate.c: New file.
74684 2008-06-29  Bruno Haible  <bruno@clisp.org>
74686         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
74687         .gitignore.
74688         Reported by Sylvain Beucler <beuc@beuc.net>.
74690 2008-06-29  Bruno Haible  <bruno@clisp.org>
74692         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
74693         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
74695 2008-06-29  Bruno Haible  <bruno@clisp.org>
74697         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
74698         EXTRA_DIST.
74699         Reported by Sylvain Beucler <beuc@beuc.net>.
74701 2008-06-26  Jim Meyering  <meyering@redhat.com>
74703         make several modules depend on the "open" module
74704         This provides slightly increased consistency when opening-for-write
74705         the name of a non-directory spelled with a trailing slash.
74706         * modules/chdir-safer: Likewise.
74707         * modules/chown: Likewise.
74708         * modules/clean-temp: Likewise.
74709         * modules/copy-file: Likewise.
74710         * modules/fchdir: Likewise.
74711         * modules/fcntl-safer: Likewise.
74712         * modules/pipe: Likewise.
74713         * modules/utime: Likewise.
74714         Prompted by Eric Blake and Bruno Haible.
74716 2008-06-24  Andreas Schwab  <schwab@suse.de>
74718         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
74719         literals can be used as initializers for global variables.
74721 2008-06-23  Eric Blake  <ebb9@byu.net>
74723         Make gnulib-cache.m4 easier to diff.
74724         * gnulib-tool (func_import): Allow newlines when reading cached
74725         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
74727 2008-06-23  Bruno Haible  <bruno@clisp.org>
74729         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
74730         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
74731         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
74732         m4/signalblocking.m4.
74733         (gl_PREREQ_SIGACTION): Don't invoke it.
74734         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
74735         gl_PREREQ_SIG_HANDLER_H.
74736         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74737         Don't check for sigaction here.
74739 2008-06-23  Bruno Haible  <bruno@clisp.org>
74741         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
74742         (install_handlers): Don't set the SA_RESETHAND flag.
74744 2008-06-23  Bruno Haible  <bruno@clisp.org>
74746         * m4/sigaction.m4: Comment fixes.
74747         * lib/signal.in.h: Likewise.
74749 2008-06-23  Eric Blake  <ebb9@byu.net>
74751         Fix typo.
74752         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
74754         Avoid SA_ namespace.
74755         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
74756         Reported by Ralf Wildenhues.
74758         Avoid test failure due to SA_RESTORER.
74759         * tests/test-sigaction.c (SA_MASK): New macro.
74760         (main): Avoid failing due to extension flags being set.
74761         Reported by Jim Meyering.
74763         Revert use of sig-handler.h in sigprocmask.c.
74764         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
74765         it requires the existence of struct sigaction.
74766         * lib/sigprocmask.c (handler_t): Restore typedef.
74767         (rpl_signal, old_handlers): Use local type.
74769 2008-06-22  Bruno Haible  <bruno@clisp.org>
74771         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
74772         conditionally.
74773         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
74775 2008-06-22  Bruno Haible  <bruno@clisp.org>
74777         * doc/posix-functions/siginterrupt.texi: Move note.
74779         * lib/signal.in.h (SA_RESTART): New macro.
74780         * lib/sigaction.c: Update comment.
74782         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
74784         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
74785         (gl_PREREQ_SIGPROCMASK): Invoke it.
74786         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
74788         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
74790         * lib/sigprocmask.c: Update a comment.
74792 2008-06-21  Eric Blake  <ebb9@byu.net>
74794         Use sigaction module rather than signal().
74795         * modules/c-stack (Depends-on): Add sigaction.
74796         * modules/fatal-signal (Depends-on): Likewise.
74797         * modules/nanosleep (Depends-on): Likewise.
74798         * modules/sigprocmask (Files): Add sig-handler.h.
74799         * modules/sigaction (Files): Likewise.
74800         * lib/sig-handler.h (get_handler): New file, suggested by Paul
74801         Eggert.
74802         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
74803         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
74804         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
74805         (init_fatal_signals): Likewise.
74806         * lib/nanosleep.c (rpl_nanosleep): Likewise.
74807         (siginterrupt): Delete fallback.
74808         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
74809         instead.
74810         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
74811         siginterrupt.
74813         New module sigaction, for mingw.
74814         * modules/sigaction: New module...
74815         * modules/sigaction-tests: ...and its test.
74816         * m4/sigaction.m4: New file.
74817         * lib/sigaction.c: Likewise.
74818         * tests/test-sigaction.c: Likewise.
74819         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
74820         * modules/signal (Makefile.am): Likewise.
74821         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
74822         needed.
74823         * doc/posix-headers/signal.texi (signal.h): Mention provided
74824         types.
74825         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
74826         that sigaction is preferable.
74827         * doc/posix-functions/sigaction.texi (sigaction): Mention new
74828         module.
74829         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74830         sigaction.
74832         Improve robustness of sigprocmask by overriding signal.
74833         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
74834         is in use.
74835         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
74836         (SIGKILL, SIGSTOP): Provide fallbacks.
74837         (rpl_signal): Implement.
74838         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
74839         signal can be called inside handlers.
74841         Fix nanosleep module on mingw.
74842         * modules/nanosleep (Depends-on): Add sys_select.
74843         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
74845         Fix licensing of sigprocmask.
74846         * modules/raise (License): Relicense as LGPL.
74848 2008-06-21  Bruno Haible  <bruno@clisp.org>
74850         * lib/propername.c (proper_name_utf8): Don't use the transliterated
74851         result if it contains question marks.
74852         Reported by Michael Geng <linux@michaelgeng.de>.
74854 2008-06-19  Bruno Haible  <bruno@clisp.org>
74856         Fix CVS-ism.
74857         * doc/gnulib.texi: Include updated-stamp.texi.
74858         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
74859         (updated-stamp.texi): New rule.
74860         (gnulib.info): Depend on it.
74861         * doc/.gitignore: Add updated-stamp.texi.
74862         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
74864 2008-06-19  Bruno Haible  <bruno@clisp.org>
74866         * doc/Makefile (gnulib.info): Update and simplify dependencies.
74867         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
74869 2008-06-19  Eric Blake  <ebb9@byu.net>
74871         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
74872         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
74873         Reported by Stepan Kasal.
74875 2008-06-18  Bruno Haible  <bruno@clisp.org>
74877         * lib/fatal-signal.c (init_fatal_signals): Add comment.
74878         Reported by Eric Blake.
74880 2008-06-18  Eric Blake  <ebb9@byu.net>
74882         Work around cygwin 1.5.25 strsignal bug.
74883         * tests/test-strsignal.c: Allow for const char *.
74884         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
74886 2008-06-18  Simon Josefsson  <simon@josefsson.org>
74888         * users.txt: Update URL to article and add author/date
74889         information.
74891 2008-06-17  Bruno Haible  <bruno@clisp.org>
74893         New macro gl_DISABLE_THREADS.
74894         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
74895         if the user did not pass --enable-threads or --disable-threads option.
74896         (gl_DISABLE_THREADS): New macro.
74897         Reported by Eric Blake <ebb9@byu.net>.
74899 2008-06-17  Bruno Haible  <bruno@clisp.org>
74901         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
74902         when the macro ignores it.
74903         Based on a patch by Eric Blake <ebb9@byu.net>.
74905 2008-06-17  Bruno Haible  <bruno@clisp.org>
74907         * modules/tls (License): Change to LGPLv2+.
74908         Reported by Eric Blake.
74910 2008-06-17  Eric Blake  <ebb9@byu.net>
74912         Simplify c-stack prerequisites.
74913         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
74914         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
74915         no longer requires <ucontext.h> to exist.  Optimize setrlimit
74916         check.
74917         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
74918         <sys/resource.h>.
74920         Move c-stack test into testsuite.
74921         * modules/c-stack-tests: New file.
74922         * lib/c-stack.c [DEBUG]: Move test program...
74923         * tests/test-c-stack.c: ...into this new file.  Skip rather than
74924         fail test if sigaltstack is lacking.
74925         * tests/test-c-stack.sh: New driver file.
74927 2008-06-16  Eric Blake  <ebb9@byu.net>
74929         Use raise module consistently.
74930         * modules/fatal-signal (Depends-on): Add raise.
74931         * modules/sigprocmask (Depends-on): Likewise.
74932         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
74933         * lib/sigprocmask.c (sigprocmask): Likewise.
74934         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74935         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
74937         Fix compliance bug in sigpending.
74938         * lib/sigprocmask.c (sigpending): Return pending array via
74939         parameter, not return value.
74941 2008-06-14  Eric Blake  <ebb9@byu.net>
74943         Improve obstack-printf test code.
74944         * tests/test-obstack-printf.c (test_function): Fix comment, and
74945         simplify usage of obstack_* in macros.  Add a test for coverage.
74946         Reported by Bruno Haible.
74948 2008-06-14  Bruno Haible  <bruno@clisp.org>
74950         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
74951         array size as a constant, not as a const variable.
74952         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
74953         AC_USE_SYSTEM_EXTENSIONS.
74954         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
74955         Test whether the obstack_printf function actually exists.
74956         * modules/obstack-printf (Depends-on): Add extensions.
74957         (Include): Remove obstack.h.
74958         * modules/obstack-printf-posix (Depends-on): Add extensions.
74959         (Include): Remove obstack.h.
74961 2008-06-13  Eric Blake  <ebb9@byu.net>
74963         Add obstack-printf and obstack-printf-posix modules.
74964         * modules/obstack-printf: New file.
74965         * modules/obstack-printf-posix: Likewise.
74966         * MODULES.html.sh (Misc): Mention them.
74967         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
74968         Likewise.
74969         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
74970         Likewise.
74971         * modules/stdio (Makefile.am): Accomodate new modules.
74972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
74973         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
74974         Declare.
74975         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
74976         functions.
74977         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
74978         (gl_REPLACE_OBSTACK_PRINTF): New macros
74979         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
74980         * tests/test-obstack-printf.c: New file.
74981         * modules/obstack-printf-tests: Likewise.
74982         * modules/obstack-printf-posix-tests: Likewise.
74984 2008-06-11  Bruno Haible  <bruno@clisp.org>
74986         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
74987         * lib/open.c: Include errno.h.
74988         (open): Fail when attempting to write to a file that has a trailing
74989         slash.
74990         * tests/test-open.c (main): Test against trailing slash bug.
74991         * doc/posix-functions/open.texi: Mention the trailing slash bug.
74993 2008-06-10  Bruno Haible  <bruno@clisp.org>
74995         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
74996         for $? to work inside the trap command, with various /bin/sh-s.
74997         * tests/test-vc-list-files-cvs.sh: Likewise.
74999 2008-06-10  Bruno Haible  <bruno@clisp.org>
75001         * lib/acl-internal.h: Don't include gettext.h here.
75002         * lib/set-mode-acl.c: Include gettext.h here.
75003         * lib/copy-acl.c: Likewise.
75005 2008-06-10  Bruno Haible  <bruno@clisp.org>
75007         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
75008         * lib/wait-process.c (wait_subprocess): Likewise.
75009         * lib/execute.h (execute): Add termsigp argument.
75010         * lib/execute.c (execute): Likewise.
75011         * lib/csharpcomp.c (compile_csharp_using_pnet,
75012         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
75013         * lib/csharpexec.c (execute_csharp_using_pnet,
75014         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
75015         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
75016         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
75017         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
75018         is_jikes_present): Update.
75019         * lib/javaexec.c (execute_java_class): Update.
75020         * lib/javaversion.c (execute_and_read_line): Update.
75021         * NEWS: Document the changes.
75022         Reported by Eric Blake.
75024 2008-06-10  Eric Blake  <ebb9@byu.net>
75026         Add missing include.
75027         * tests/test-strstr.c (includes): Add <signal.h>.
75028         * tests/test-strcasestr.c (includes): Likewise.
75029         * tests/test-memmem.c (includes): Likewise.
75031 2008-06-10  Bruno Haible  <bruno@clisp.org>
75033         * lib/wait-process.c (wait_subprocess): Add an assertion.
75035 2008-06-10  Bruno Haible  <bruno@clisp.org>
75037         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
75039 2008-06-10  Bruno Haible  <bruno@clisp.org>
75041         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
75042         using alarm().
75043         * tests/test-strcasestr.c (main): Likewise.
75044         * tests/test-strstr.c (main): Likewise.
75046 2008-06-09  Bruno Haible  <bruno@clisp.org>
75048         Work around the Solaris 10 ACE ACLs ABI change.
75049         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
75050         declare if ACL_NO_TRIVIAL is present.
75051         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
75052         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
75053         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
75054         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
75055         define if ACL_NO_TRIVIAL is present.
75056         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
75057         and use the current ABI.
75058         (file_has_acl): Use same #if condition as elsewhere.
75059         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
75060         in use, and use the current ABI.
75061         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
75062         Reported by Jim Meyering.
75064 2008-06-09  Eric Blake  <ebb9@byu.net>
75066         Work around environments that (stupidly) ignore SIGALRM.
75067         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
75068         before using alarm().
75069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75070         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
75071         Reported by Ian Beckwith <ianb@erislabs.net>.
75073         Produce autobuild blurb earlier in log.
75074         * modules/autobuild (configure.ac-early): Move AB_INIT here.
75076 2008-06-09  Jim Meyering  <meyering@redhat.com>
75077         and Ondřej Vašík  <ovasik@redhat.com>
75079         utimens.c: correct kernel bug work-around
75080         Ondřej Vašík found that the invalid return value of 280 indicates
75081         failure, not success, and the kernel bug we're trying to work
75082         around affects not just the utimensat call, but also the fallback
75083         futimens call.
75084         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
75085         not success.
75086         [HAVE_FUTIMENS]: Use the same work-around, here.
75088 2008-06-09  Jim Meyering  <meyering@redhat.com>
75090         add more guards around definition of ACE_-related code
75091         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
75092         ALLOW and ACE_OWNER are also defined.
75094 2008-06-08  Bruno Haible  <bruno@clisp.org>
75096         * lib/acl-internal.h: Add me as co-author.
75097         * lib/file-has-acl.c: Likewise.
75098         * lib/set-mode-acl.c: Likewise.
75099         * lib/copy-acl.c: Likewise.
75101 2008-06-08  Bruno Haible  <bruno@clisp.org>
75103         Add support for AIX ACLs.
75104         * lib/acl-internal.h (acl_nontrivial): New declaration.
75105         * lib/file-has-acl.c (acl_nontrivial): New function.
75106         (file_has_acl): Add implementation using AIX 4 ACL API.
75107         * lib/set-mode-acl.c (qset_acl): Likewise.
75108         * lib/copy-acl.c (qcopy_acl): Likewise.
75110 2008-06-08  Bruno Haible  <bruno@clisp.org>
75112         Add support for HP-UX ACLs.
75113         * lib/acl-internal.h (acl_nontrivial): New declaration.
75114         * lib/file-has-acl.c (acl_nontrivial): New function.
75115         (file_has_acl): Add implementation using HP-UX 11 ACL API.
75116         * lib/set-mode-acl.c (qset_acl): Likewise.
75117         * lib/copy-acl.c (qcopy_acl): Likewise.
75119 2008-06-08  Bruno Haible  <bruno@clisp.org>
75121         Add support for Cygwin ACLs.
75122         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
75123         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
75124         the chmod_or_fchmod call.
75125         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
75127 2008-06-08  Bruno Haible  <bruno@clisp.org>
75129         Fix bug with setuid modes in Solaris 10+ code.
75130         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
75131         succeeded, when the mode contains some special bits.
75133 2008-06-08  Bruno Haible  <bruno@clisp.org>
75135         Add support for Solaris 7..10 ACLs.
75136         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
75137         declarations.
75138         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
75139         functions.
75140         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
75141         * lib/set-mode-acl.c (qset_acl): Likewise.
75142         * lib/copy-acl.c (qcopy_acl): Likewise.
75144 2008-06-08  Bruno Haible  <bruno@clisp.org>
75146         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
75147         declaration.
75148         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
75149         (acl_access_nontrivial): Remove MacOS X case.
75150         (file_has_acl): Use acl_extended_nontrivial.
75151         * lib/copy-acl.c (qcopy_acl): Likewise.
75153 2008-06-08  Bruno Haible  <bruno@clisp.org>
75155         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
75157 2008-06-08  Jim Meyering  <meyering@redhat.com>
75159         * modules/acl (Maintainer): Add Bruno Haible.
75161 2008-06-07  Bruno Haible  <bruno@clisp.org>
75163         Improve support for Tru64 ACLs.
75164         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
75165         ACL on OSF/1.
75167 2008-06-07  Bruno Haible  <bruno@clisp.org>
75169         Add support for MacOS X ACLs.
75170         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
75171         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
75172         * lib/set-mode-acl.c (qset_acl): Likewise.
75173         * lib/copy-acl.c (qcopy_acl): Likewise.
75175 2008-06-07  Bruno Haible  <bruno@clisp.org>
75177         Fix memory leak introduced on 2008-05-22.
75178         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
75179         use.
75181 2008-06-07  Bruno Haible  <bruno@clisp.org>
75183         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
75184         to construct an empty ACL.
75186 2008-06-07  Bruno Haible  <bruno@clisp.org>
75188         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
75189         precisely.
75190         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
75192 2008-06-07  Bruno Haible  <bruno@clisp.org>
75194         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
75195         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
75197 2008-06-07  Bruno Haible  <bruno@clisp.org>
75199         * doc/posix-functions/_setjmp.texi: Explain the use of this function
75200         regardless of POSIX.
75201         * doc/posix-functions/_longjmp.texi: Likewise.
75202         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
75203         SystemV platform in this case.
75205 2008-06-06  Eric Blake  <ebb9@byu.net>
75207         Document abort() bugs.
75208         * doc/posix-functions/abort.texi (abort): Mention anomalies.
75210         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
75211         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
75212         sigsetjmp.
75213         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
75214         siglongjmp, but only as a macro.
75215         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
75216         is obsolete.
75217         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
75219         Tweak documentation to cover cygwin argz bugs.
75220         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
75221         argz bug fix; no code change needed since no cygwin releases
75222         occurred between the last fix and the bug being tested.
75223         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
75224         module and recently fixed cygwin bugs.
75225         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
75226         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
75227         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
75228         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
75229         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
75230         Likewise.
75231         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
75232         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
75233         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
75234         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
75235         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
75236         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
75237         Likewise.
75239         Avoid gcc warning on cygwin.
75240         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
75241         !ACL_NO_TRIVIAL]: Avoid unused variable.
75243 2008-06-05  Eric Blake  <ebb9@byu.net>
75245         Be tolerant of UNKNOWN version in gnulib-tool test dir.
75246         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
75247         git-version-gen fails to come up with a version.
75248         Reported by Simon Josefsson.
75250 2008-06-05  Jim Meyering  <meyering@redhat.com>
75251             Paul Eggert  <eggert@cs.ucla.edu>
75253         utimens.c: work around a probable Linux kernel bug
75254         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
75255         appears to be a kernel bug that causes utimensat to return 280
75256         instead of 0, indicating success.
75258 2008-06-04  Bruno Haible  <bruno@clisp.org>
75260         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
75261         2008-06-01 commit.
75263 2008-06-04  Bruno Haible  <bruno@clisp.org>
75265         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
75266         * lib/file-has-acl.c (acl_access_nontrivial): New function.
75267         (file_has_acl): Use it. Save errno afterwards.
75268         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
75270 2008-06-03  Bruno Haible  <bruno@clisp.org>
75272         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
75273         draft code. Simplify #ifs.
75274         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
75275         Put Solaris code after POSIX-draft code. Fix comments regarding
75276         Solaris 10, HP-UX. Mention Cygwin.
75277         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
75279 2008-06-03  Eric Blake  <ebb9@byu.net>
75281         Provide fallback for older kernels.
75282         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
75283         Provide runtime fallback if kernel lacks support.
75284         Reported by Mike Frysinger.
75286 2008-06-02  Bruno Haible  <bruno@clisp.org>
75288         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
75289         it exists.
75291 2008-06-02  Bruno Haible  <bruno@clisp.org>
75293         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
75294         * lib/copy-acl.c (qcopy_acl): Update comment.
75296 2008-06-02  Bruno Haible  <bruno@clisp.org>
75298         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
75299         like ACL APIs.
75301 2008-06-02  Bruno Haible  <bruno@clisp.org>
75303         * tests/test-file-has-acl.sh: Use different code for Cygwin.
75304         * tests/test-set-mode-acl.sh: Likewise.
75305         * tests/test-copy-acl.sh: Likewise.
75306         * tests/test-copy-file.sh: Likewise.
75308 2008-06-02  Bruno Haible  <bruno@clisp.org>
75310         * tests/test-file-has-acl.sh: Remove unused code.
75312 2008-06-01  Bruno Haible  <bruno@clisp.org>
75314         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
75315         (copy_acl): Just a wrapper around qcopy_acl that emits the error
75316         messages.
75317         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
75319 2008-06-01  Bruno Haible  <bruno@clisp.org>
75321         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
75322         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
75323         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
75324         APIs.
75325         * modules/acl-tests (configure.ac): Remove tests now contained in
75326         m4/acl.m4.
75328 2008-06-02  Jim Meyering  <meyering@redhat.com>
75330         announce-gen: use a better key-server host name
75331         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
75332         it may be more consistently reliable.  Suggested by Werner Koch
75333         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
75335 2008-06-01  Bruno Haible  <bruno@clisp.org>
75337         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
75338         Reported by Voroskoi Andras <voroskoi@gmail.com>.
75340 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
75342         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
75344 2008-06-01  Bruno Haible  <bruno@clisp.org>
75346         New ACL tests.
75347         * tests/test-file-has-acl.sh: New file.
75348         * tests/test-file-has-acl.c: New file.
75349         * tests/test-set-mode-acl.sh: New file.
75350         * tests/test-set-mode-acl.c: New file.
75351         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
75352         * tests/test-copy-acl.c: New file.
75353         * modules/acl-tests: New file, based on modules/copy-file-tests.
75354         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
75355         (Depends-on): Add acl-tests.
75356         (configure.ac): Remove checks.
75357         (Makefile.am): Don't create test-sameacls program here any more.
75359 2008-06-01  Bruno Haible  <bruno@clisp.org>
75361         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
75362         * tests/test-sameacls.c: Include progname.h.
75363         (main): Invoke set_program_name. Portability fixes for MacOS X,
75364         Solaris, HP-UX.
75366 2008-06-01  Bruno Haible  <bruno@clisp.org>
75368         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
75369         function.
75370         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
75372 2008-06-01  Bruno Haible  <bruno@clisp.org>
75374         * modules/rpmatch (Depends-on): Add strdup.
75376 2008-06-01  Bruno Haible  <bruno@clisp.org>
75378         * lib/pipe.c: Include unistd-safer.h.
75379         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
75380         * modules/pipe (Depends-on): Add unistd-safer.
75382 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75384         * modules/autobuild (configure.ac): Call AB_INIT.
75386 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75388         * tests/test-getaddrinfo.c: Don't print debug messages by default.
75389         Suggested by Bruno Haible <bruno@clisp.org>.
75391 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75393         * tests/test-base64.c: Cast size_t to unsigned long when invoking
75394         printf.  Use %lu instead of %d.  Reported by Bruno Haible
75395         <bruno@clisp.org>.
75397 2008-05-29  Eric Blake  <ebb9@byu.net>
75399         Prefer new POSIX 200x interfaces over futimesat.
75400         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
75401         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
75402         when available.
75403         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
75405 2008-05-28  Bruno Haible  <bruno@clisp.org>
75407         * modules/stpcpy (License): Change to LGPLv2+.
75408         Requested by David Lutterkort <dlutter@redhat.com>.
75410 2008-05-27  Bruno Haible  <bruno@clisp.org>
75412         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
75413         current mingw.
75414         Reported by Jose E. Marchesi <jemarch@gnu.org>.
75416 2008-05-27  Bruno Haible  <bruno@clisp.org>
75418         * modules/iconv_open (Link): New section, from module 'iconv'.
75419         * modules/striconv (Link): Likewise.
75420         * modules/striconveh (Link): Likewise.
75421         * modules/xstriconv (Link): Likewise.
75422         * modules/unicodeio (Link): Likewise.
75423         * modules/propername (Link): Likewise.
75424         Reported by Jim Meyering.
75426 2008-05-26  Jim Meyering  <meyering@redhat.com>
75428         sha256: do not artificially restrict buffer length to be < 2^32
75429         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
75430         uint32_t to size_t.
75431         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
75432         to match.
75434         avoid unaligned access errors, e.g., on sparc
75435         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
75436         direct access through a possibly-unaligned uint64* pointer.
75437         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
75438         direct access through a possibly-unaligned uint32* pointer.
75439         Prompted by this patch from Tom "spot" Callaway:
75440         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
75442         sha512.c: fix typo in comment
75443         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
75445 2008-05-25  Bruno Haible  <bruno@clisp.org>
75447         * lib/set-mode-acl.c: Renamed from lib/acl.c.
75448         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
75449         (Makefile.am): Update lib_SOURCES.
75451 2008-05-25  Bruno Haible  <bruno@clisp.org>
75453         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
75455 2008-05-25  Jim Meyering  <meyering@redhat.com>
75457         useless-if-before-free: freed expr may have white-space differences
75458         * build-aux/useless-if-before-free: Recognize cases in which the
75459         freed expression differs from the tested one in embedded white
75460         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
75461         $1 was used, so we can't make any regexp shy.  Improved tests now
75462         detect this.
75464         useless-if-before-free: accept white space in the expression.
75465         * build-aux/useless-if-before-free: For now, any white space
75466         in the expression must be identical in the free argument.
75468         useless-if-before-free: efficiency tweak
75469         * build-aux/useless-if-before-free: Make the expression-matching
75470         regexp "shy".
75471         Make the *outer* regexp shy, not the expr-matching one.
75473         update code-in-comment to accept cast of free arg
75474         * build-aux/useless-if-before-free: Update regexp.
75476 2008-05-25  Bruno Haible  <bruno@clisp.org>
75478         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
75479         * modules/copy-file-tests (Files, Makefile.am): Update.
75480         * tests/test-copy-file.c (func_test_copy): Update.
75482 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
75484         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
75486 2008-05-23  Bruno Haible  <bruno@clisp.org>
75488         Improve support for ACLs on OSF/1.
75489         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
75490         Remove fallback for unknown flavors of ACLs.
75492 2008-05-22  Bruno Haible  <bruno@clisp.org>
75494         Add support for ACLs on OSF/1.
75495         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
75496         replacements.
75497         (acl_free_text): New macro fallback.
75498         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
75499         acl_free.
75500         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
75501         acl_free_text function. Require AC_C_INLINE.
75503 2008-05-22  Bruno Haible  <bruno@clisp.org>
75505         Make copy_acl work on MacOS X 10.5.
75506         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
75507         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
75508         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
75509         If MODE_INSIDE_ACL, don't assume that every system has the same text
75510         representation for ACLs as FreeBSD.
75511         * lib/copy-acl.c (copy_acl): Add support for platforms with
75512         !MODE_INSIDE_ACL.
75513         * lib/file-has-acl.c (file_has_acl): Likewise.
75514         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
75515         FreeBSD, MacOS X, or IRIX, respectively.
75517 2008-05-22  Bruno Haible  <bruno@clisp.org>
75519         * lib/acl.h: Don't include <sys/acl.h>.
75520         (GETACLCNT): Move fallback to lib/acl-internal.h.
75521         * lib/acl-internal.h: Include <sys/acl.h> here.
75522         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
75524 2008-05-22  Bruno Haible  <bruno@clisp.org>
75526         Split off copy_acl function to separate file.
75527         * lib/copy-acl.c: New file, extracted from lib/acl.c.
75528         * lib/acl.c (copy_acl): Moved function to separate file.
75529         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
75530         * modules/acl (Files): Add lib/copy-acl.c.
75531         (Makefiles.am): Augment lib_SOURCES.
75533 2008-05-22  Bruno Haible  <bruno@clisp.org>
75535         * modules/copy-file-tests: New file.
75536         * tests/test-copy-file.sh: New file.
75537         * tests/test-copy-file.c: New file.
75538         * tests/test-copy-file-sameacls.c: New file.
75540 2008-05-22  Eric Blake  <ebb9@byu.net>
75542         Avoid gcc warning.
75543         * tests/test-memcmp.c (main): Pass NULL indirectly.
75545 2008-05-21  Bruno Haible  <bruno@clisp.org>
75547         Add reference doc about ACLs.
75548         * doc/acl-resources.txt: New file.
75549         * doc/acl-cygwin.txt: New file.
75551 2008-05-21  Bruno Haible  <bruno@clisp.org>
75553         Avoid one more warning from gcc.
75554         * lib/vasnprintf.c (IF_LINT): Update comments.
75555         (VASNPRINTF): Use it also for the 'prefix' array initializer.
75557 2008-05-21  Jim Meyering  <meyering@redhat.com>
75559         avoid a warning from gcc
75560         * lib/vasnprintf.c (IF_LINT): Define.
75561         (scale10_round_decimal_long_double):
75562         Use it to avoid a "may be used uninitialized" warning.
75563         (scale10_round_decimal_double): Likewise.
75565 2008-05-21  Simon Josefsson  <simon@josefsson.org>
75567         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
75568         declared.
75570 2008-05-20  Bruno Haible  <bruno@clisp.org>
75572         * tests/test-memcmp.c (main): Test also the sign of the result. Test
75573         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
75575 2008-05-20  Simon Josefsson  <simon@josefsson.org>
75577         * modules/memcmp-tests: New file.
75578         * tests/test-memcmp.c: New file.
75580 2008-05-19  Bruno Haible  <bruno@clisp.org>
75582         * modules/propername (Notice, configure.ac): Put quoted "..." into
75583         --keyword option.
75584         * lib/propername.h: Update comments accordingly.
75585         Reported by Eric Blake.
75587 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
75589         * modules/getpass-gnu (Depends-on): Add fseeko.
75591 2008-05-19  Simon Josefsson  <simon@josefsson.org>
75593         * modules/base64-tests: New file.
75595 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
75597         * lib/base64.c (base64_decode_ctx): If a decode context structure
75598         was passed in use it to ignore newlines.  If a context structure
75599         was _not_ passed in, continue to treat newlines as garbage (this
75600         is the historical behavior).  Formerly base64_decode.
75601         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
75602         takes a decode context structure.
75603         * lib/base64.h (base64_decode): Macro for four-argument calls.
75604         (base64_decode_alloc): Likewise.
75605         * lib/base64.c (base64_decode_ctx): If a decode context structure
75606         was passed in use it to ignore newlines.  If a context structure
75607         was _not_ passed in, continue to treat newlines as garbage (this
75608         is the historical behavior).  Formerly base64_decode.
75609         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
75610         takes a decode context structure.
75611         * lib/base64.h (base64_decode): Macro for four-argument calls.
75612         (base64_decode_alloc): Likewise.
75614 2008-05-19  Jim Meyering  <meyering@redhat.com>
75616         avoid a warning from gcc
75617         * lib/trim.c (IF_LINT): Define.
75618         (trim2): Use it to avoid a "may be used uninitialized" warning.
75620         Fix doc typo.
75621         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
75623 2008-05-19  Bruno Haible  <bruno@clisp.org>
75625         * doc/glibc-functions/getpass.texi: Document limits of other
75626         implementations.
75628 2008-05-19  Simon Josefsson  <simon@josefsson.org>
75629             Bruno Haible <bruno@clisp.org>
75631         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
75633 2008-05-18  Bruno Haible  <bruno@clisp.org>
75635         * modules/propername: New file, from GNU gettext.
75636         * lib/propername.h: New file, from GNU gettext.
75637         * lib/propername.c: New file, from GNU gettext.
75638         * MODULES.html.sh (Internationalization functions): Add propername.
75640 2008-05-16  Jim Meyering  <meyering@redhat.com>
75641             Bruno Haible  <bruno@clisp.org>
75643         Avoid some warnings from "gcc -Wshadow".
75644         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
75646 2008-05-15  Eric Blake  <ebb9@byu.net>
75648         Extend previous patch to cygwin 1.7.0.
75649         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
75650         fast implementation in cygwin >= 1.7.0.
75651         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75654 2008-05-15  Bruno Haible  <bruno@clisp.org>
75656         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
75657         implementation in glibc >= 2.9.
75658         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75659         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75661 2008-05-15  Bruno Haible  <bruno@clisp.org>
75663         * MODULES.html.sh (Internationalization functions): Remove linebreak.
75664         (Unicode string functions): Add unilbrk/*.
75665         Reported by Karl Berry.
75667 2008-05-15  Eric Blake  <ebb9@byu.net>
75669         Fix violation of <stdbool.h> replacement in regex.
75670         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
75671         * lib/regexec.c (re_search_internal): Likewise.
75672         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
75674 2008-05-15  Jim Meyering  <meyering@redhat.com>
75676         avoid distracting test output when git or cvs is not found
75677         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
75678         * tests/test-vc-list-files-git.sh: Likewise.
75680 2008-05-15  Eric Blake  <ebb9@byu.net>
75682         Glibc finally accepted the memmem speedup code, bugzilla #5514.
75683         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
75684         glibc version.
75685         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
75686         * doc/posix-functions/strstr.texi (strstr): Likewise.
75687         * lib/str-two-way.h (MAX): Sychronize with glibc.
75689 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
75691         * lib/regcomp.c (optimize_utf8): Add a note on why we test
75692         opr.ctx_type.
75693         (calc_first): Initialize constraint field.
75694         (duplicate_node_closure): Use it instead of special casing ANCHORS.
75695         Fix grammar.
75696         (duplicate_node): Merge constraint field for all node types.
75697         (calc_eclosure_iter): Look at constraint field for all node types.
75698         * lib/regex_internal.c (create_cd_newstate): Don't look at
75699         opr.ctx_type.
75701 2008-05-14  Bruno Haible  <bruno@clisp.org>
75703         Help GCC to do better code generation.
75704         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
75705         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
75706         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
75707         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
75708         Declare with attribute 'malloc' if supported.
75710 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
75712         use "echo STR|wc -c" rather than unportable "expr length STR"
75713         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
75714         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
75716 2008-05-14  Jim Meyering  <meyering@redhat.com>
75718         use dd ibs=$n count=1 ... rather than less-portable head -c$n
75719         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
75720         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
75721         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
75722         via Collin Lasse.
75724 2008-05-14  Eric Blake  <ebb9@byu.net>
75726         Avoid quadratic growth in gl_LIBSOURCES.
75727         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
75728         Suggested by Bruno Haible.
75730         Test xmemdup0.
75731         * modules/xmemdup0-tests: New file.
75732         * tests/test-xmemdup0.c: Likewise.
75734 2008-05-13  Eric Blake  <ebb9@byu.net>
75736         Split xmemdup0 into its own module.
75737         * modules/xmemdup0: New file.
75738         * lib/xmemdup0.h: Likewise.
75739         * lib/xmemdup0.c: Likewise.
75740         * MODULES.html.sh (Memory management functions): Add xmemdup0.
75741         * lib/xalloc.h (xmemdup0): Remove.
75742         * lib/xmalloc.c (xmemdup0): Likewise.
75744 2008-05-13  Eric Blake  <ebb9@byu.net>
75745             Bruno Haible  <bruno@clisp.org>
75747         Reduce number of forks required during autoconf.
75748         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
75749         and gl_LIBSOURCES_DIR.
75750         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
75751         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
75752         m4_syscmd per file.
75753         <m4_foreach_w>: Move...
75754         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
75756 2008-05-13  Eric Blake  <ebb9@byu.net>
75758         * gnulib-tool: Fix various comment typos.
75760 2008-05-12  Bruno Haible  <bruno@clisp.org>
75762         Tailor the linebreaking algorithm.
75763         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
75765 2008-05-12  Bruno Haible  <bruno@clisp.org>
75767         Update to Unicode 5.0.0.
75768         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
75769         LBP_JV, LBP_JT. Redistribute values.
75770         (unilbrk_table): Change size.
75771         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
75772         Unicode TR#14 rev. 22.
75773         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
75774         LBP_JV, LBP_JT. Redistribute values.
75775         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
75776         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
75777         Update.
75778         * lib/unilbrk/lbrkprop1.h: Regenerated.
75779         * lib/unilbrk/lbrkprop2.h: Regenerated.
75780         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
75781         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
75782         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
75783         Likewise.
75784         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
75785         Likewise.
75786         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
75787         result.
75788         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
75789         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
75790         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
75791         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
75792         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
75793         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
75795 2008-05-11  Bruno Haible  <bruno@clisp.org>
75797         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
75799 2008-05-11  Bruno Haible  <bruno@clisp.org>
75801         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
75802         * modules/unilbrk/gen-lbrk: New file.
75804 2008-05-11  Bruno Haible  <bruno@clisp.org>
75806         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
75807         * m4/sha512.m4 (gl_SHA512): Likewise.
75809 2008-05-11  Jim Meyering  <meyering@redhat.com>
75811         New modules: crypto/sha256, crypto/sha512 (from coreutils)
75812         * modules/crypto/sha256: New file.
75813         * modules/crypto/sha512: Likewise.
75814         * lib/sha256.c: Likewise.
75815         * lib/sha256.h: Likewise.
75816         * lib/sha512.c: Likewise.
75817         * lib/sha512.h: Likewise.
75818         * lib/u64.h: Likewise.
75819         * m4/sha256.m4: Likewise.
75820         * m4/sha512.m4: Likewise.
75821         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
75823 2008-05-10  Bruno Haible  <bruno@clisp.org>
75825         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
75826         (Input/Output <stdio.h>): Add xprintf.
75827         (Signal handling <signal.h>): Add strsignal.
75828         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
75829         (Core language properties): Add func.
75830         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
75831         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
75832         strings.
75833         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
75834         (Input/output): New section.
75835         (File system functions): Add openat-die, stat-macros.
75836         (Networking functions): Add sockets.
75837         (Unicode string functions): Add unictype/*.
75838         (Support for building libraries and executables): Add gperf.
75839         (Support for building documentation): Add agpl-3.0.
75840         (Misc): Add nocrash.
75842 2008-05-10  Bruno Haible  <bruno@clisp.org>
75844         * modules/unictype/gen-ctype: New file.
75846 2008-05-10  Jim Meyering  <meyering@redhat.com>
75848         Make chdir-safer.c more efficient on a system with no symlinks.
75849         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
75850         also if ELOOP is zero.  Suggested by Bruno Haible.
75852         Make chdir-safer.c slightly safer.
75853         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
75854         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
75856         Avoid compile failure on systems without ELOOP (like mingw).
75857         * lib/chdir-safer.c (ELOOP): Define if not already defined.
75858         Reported by Bruno Haible.
75860 2008-05-10  Bruno Haible  <bruno@clisp.org>
75862         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
75863         (is_utf8_encoding): Use a case-insensitive comparison.
75864         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
75865         streq.
75867 2008-05-10  Bruno Haible  <bruno@clisp.org>
75869         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
75870         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
75871         * lib/unilbrk/ulc-common.h (iconv_string_length,
75872         iconv_string_keeping_offsets): Remove declarations.
75873         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
75874         Don't include <iconv.h>, streq.h, xsize.h.
75875         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
75876         conversion.
75877         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
75878         <iconv.h>, streq.h, xsize.h.
75879         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
75880         conversion.
75881         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
75882         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
75883         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
75884         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
75886 2008-05-10  Bruno Haible  <bruno@clisp.org>
75888         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
75889         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
75891         * modules/unilbrk/u32-width-linebreaks-tests: New file.
75892         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
75894         * modules/unilbrk/u16-width-linebreaks-tests: New file.
75895         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
75897         * modules/unilbrk/u8-width-linebreaks-tests: New file.
75898         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
75900         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
75901         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
75903         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
75904         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
75906         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
75907         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
75909         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
75910         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
75912 2008-05-10  Bruno Haible  <bruno@clisp.org>
75914         Split up 'linebreak' module.
75915         * lib/unilbrk.h: New file, based on lib/linebreak.h.
75916         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
75917         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
75918         modifications.
75919         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
75920         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
75921         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
75922         lib/linebreak.c.
75923         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
75924         lib/linebreak.c.
75925         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
75926         lib/linebreak.c.
75927         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
75928         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
75929         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
75930         lib/linebreak.c.
75931         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
75932         lib/linebreak.c.
75933         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
75934         lib/linebreak.c.
75935         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
75936         lib/linebreak.c.
75937         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
75938         lib/linebreak.c.
75939         * modules/unilbrk/base: New file.
75940         * modules/unilbrk/tables: New file.
75941         * modules/unilbrk/u8-possible-linebreaks: New file.
75942         * modules/unilbrk/u16-possible-linebreaks: New file.
75943         * modules/unilbrk/u32-possible-linebreaks: New file.
75944         * modules/unilbrk/ulc-common: New file.
75945         * modules/unilbrk/ulc-possible-linebreaks: New file.
75946         * modules/unilbrk/u8-width-linebreaks: New file.
75947         * modules/unilbrk/u16-width-linebreaks: New file.
75948         * modules/unilbrk/u32-width-linebreaks: New file.
75949         * modules/unilbrk/ulc-width-linebreaks: New file.
75950         * lib/linebreak.h: Remove file.
75951         * lib/linebreak.c: Remove file.
75952         * m4/linebreak.m4: Remove file.
75953         * modules/linebreak: Remove file.
75954         * NEWS: Mention the changes.
75956 2008-05-09  Eric Blake  <ebb9@byu.net>
75958         Add xmemdup0.
75959         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
75960         implementation.
75961         * lib/xmalloc.c (xmemdup0): New C implementation.
75963 2008-05-08  Bruno Haible  <bruno@clisp.org>
75965         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
75967 2008-05-07  Eric Blake  <ebb9@byu.net>
75969         Support cross-compilation of <wctype.h>.
75970         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
75971         AC_CACHE_CHECK.
75973 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
75975         * build-aux/vc-list-files: Add support for bzr.
75977 2008-05-03  Jim Meyering  <meyering@redhat.com>
75979         avoid failed assertion with tight malloc
75980         * tests/test-getndelim2.c: Correct an off-by-one assertion.
75982 2008-05-03  Simon Josefsson  <simon@josefsson.org>
75984         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
75985         are needed from arpa/inet.h.
75986         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
75987         Reported by Bruno Haible.
75989 2008-05-02  Jim Meyering  <meyering@redhat.com>
75991         avoid compilation error on FreeBSD 6
75992         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
75994 2008-05-01  Jim Meyering  <meyering@redhat.com>
75996         useless-if-before-free: correct --help's exit status description
75997         * build-aux/useless-if-before-free (usage): Like grep, exit 0
75998         for one or more matches, etc.  Reported by Bruno Haible.
76000         vc-list-files: make the stand-alone gnulib test work
76001         * modules/vc-list-files-tests (configure.ac):
76002         Define and AC_SUBST abs_aux_dir.
76003         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
76004         $(abs_top_srcdir) to each script and having each of them
76005         duplicate the work of setting PATH, set PATH here, using
76006         the new variable, abs_aux_dir instead.
76007         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
76008         * tests/test-vc-list-files-git.sh: Likewise.
76009         Reported by Bruno Haible.
76011 2008-05-01  Bruno Haible  <bruno@clisp.org>
76013         * lib/getndelim2.c (getndelim2): Fix newsize computation during
76014         reallocation. Rename 'done' to 'found_delimiter'.
76016 2008-05-01  Jim Meyering  <meyering@redhat.com>
76018         vc-list-files: accommodate /bin/sh like the one from Solaris 10
76019         * build-aux/vc-list-files: Use `...`, not $(...).
76021 2008-04-30  Jim Meyering  <meyering@redhat.com>
76023         add tests for vc-list-files
76024         * modules/vc-list-files-tests: New module.
76025         * tests/test-vc-list-files-cvs.sh: New file.
76026         * tests/test-vc-list-files-git.sh: New file.
76028         avoid a warning from gcc
76029         * lib/getndelim2.c (IF_LINT): Define.
76030         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
76032         vc-list-files: work properly with build-aux/cvsu, too
76033         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
76034         to all cvs-based clauses.
76036         vc-list-files: work properly in the CVS+awk case, too
76037         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
76039         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
76040         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
76041         take more than one file argument, so .  Add quotes, just in case $dir
76042         ever contains a shell meta-character.  Prompted by Soren Hansen in
76043         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
76045 2008-04-29  Eric Blake  <ebb9@byu.net>
76047         Optimize getndelim2 to use block operations when possible.
76048         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
76049         freadseek, and memchr2.
76050         * lib/getndelim2.c (getndelim2): Use them for block reads.
76052 2008-04-29  Bruno Haible  <bruno@clisp.org>
76054         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
76055         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76056         * modules/inet_ntop (Depends-on): Add extensions.
76057         * modules/inet_pton (Depends-on): Likewise.
76058         Reported by Simon Josefsson.
76060 2008-04-29  Jim Meyering  <meyering@redhat.com>
76062         When the is more than one match in a block, match all of them.
76063         * build-aux/useless-if-before-free: Iterate through each block
76064         until there are no more matches.
76066         Fix broken useless-if-before-free script.
76067         * build-aux/useless-if-before-free: Fix typo: missing "?" after
76068         the expression to match cast of argument to free-like function.
76070 2008-04-29  Eric Blake  <ebb9@byu.net>
76072         Use new header.
76073         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
76075 2008-04-29  Jim Meyering  <meyering@redhat.com>
76077         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
76078         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
76079         by gnulib to exist and to declare e.g., inet_ntop.
76080         Don't include "inet_ntop.h", now removed.
76082         * m4/arpa_inet_h.m4: Remove trailing blanks.
76084 2008-04-29  Eric Blake  <ebb9@byu.net>
76086         Silence valgrind on safe reads beyond potential array bounds.
76087         * lib/rawmemchr.valgrind: New file.
76088         * lib/strchrnul.valgrind: Likewise.
76089         * modules/rawmemchr (Files): Distribute new file.
76090         * modules/strchrnul (Files): Likewise.
76091         Suggested by Bruno Haible.
76093 2008-04-29  Bruno Haible  <bruno@clisp.org>
76095         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
76096         (inet_ntop, inet_pton): Change portability warning's wording.
76097         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
76098         Invoke gl_CHECK_NEXT_HEADERS.
76099         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
76100         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
76101         set ARPA_INET_H.
76102         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76103         * modules/arpa_inet (Description): No longer only for systems that
76104         lack it.
76105         (Depends-on): Add include_next.
76106         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
76107         HAVE_ARPA_INET_H.
76109 2008-04-29  Jim Meyering  <meyering@redhat.com>
76111         * modules/mkdir (License): Re-license as LGPLv2+.
76113 2008-04-29  Bruno Haible  <bruno@clisp.org>
76115         * modules/rawmemchr (Maintainer): Set to Eric.
76116         * modules/strchrnul (Maintainer): Likewise.
76118 2008-04-29  Simon Josefsson  <simon@josefsson.org>
76120         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
76121         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
76123         * modules/arpa_inet (arpa/inet.h): Use them.
76125 2008-04-28  Eric Blake  <ebb9@byu.net>
76127         Test getndelim2.
76128         * modules/getndelim2-tests: New file.
76129         * tests/test-getndelim2.c: Likewise.
76130         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
76131         stream.
76132         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
76134         * MODULES.html.sh: Document new module.
76136 2008-04-20  Bruno Haible  <bruno@clisp.org>
76138         * lib/c-stack.c (die): Use raise.
76139         * modules/c-stack (Depends-on): Add raise.
76141 2008-04-28  Bruno Haible  <bruno@clisp.org>
76143         Expect rpmatch to be declared.
76144         * lib/yesno.c (rpmatch): Remove declaration.
76146         Declare rpmatch.
76147         * lib/stdlib.in.h (rpmatch): New declaration.
76148         * lib/rpmatch.c: Include <stdlib.h> first.
76149         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
76150         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
76151         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
76152         HAVE_RPMATCH.
76153         * modules/rpmatch (Depends-on): Add stdlib, extensions.
76154         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
76155         (Include): Set to <stdlib.h>.
76156         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
76157         HAVE_RPMATCH.
76158         * NEWS: Document the change.
76160 2008-04-28  Bruno Haible  <bruno@clisp.org>
76162         Change rpmatch to use nl_langinfo when appropriate.
76163         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
76164         (N_): New macro.
76165         (localized_pattern): New function/macro.
76166         (try): Remove match, nomatch arguments. Copy the pattern into safe
76167         memory before caching it.
76168         (rpmatch): Use localized_pattern. Add translator comments.
76169         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
76170         Suggested by Eric Blake.
76171         * modules/rpmatch (Depends-on): Add stdbool.
76173 2008-04-28  Eric Blake  <ebb9@byu.net>
76175         Add rawmemchr module, matching glibc.
76176         * modules/string (Makefile.am): New indicator.
76177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
76178         * lib/string.in.h (rawmemchr): Declare when appropriate.
76179         * modules/rawmemchr: New file.
76180         * m4/rawmemchr.m4: Likewise.
76181         * lib/rawmemchr.c: Likewise.
76182         * modules/rawmemchr-tests: Likewise.
76183         * tests/test-rawmemchr.c: Likewise.
76184         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
76185         module.
76186         * modules/strchrnul (Depends-on): Add rawmemchr.
76187         * lib/strchrnul.c (strchrnul): Optimize a corner case.
76189         Whitespace cleanup.
76190         * tests/test-strchrnul.c: Reindent.
76191         * lib/strchrnul.c: Likewise.
76193         Optimize and test strchrnul.
76194         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
76195         * modules/strchrnul-tests: New file.
76196         * tests/test-strchrnul.c: Likewise.
76198         Remove intprops dependency.
76199         * modules/memchr (Depends-on): Remove intprops.
76200         * modules/memrchr (Depends-on): Likewise.
76201         * modules/memchr2 (Depends-on): Likewise.
76202         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
76203         * lib/memrchr.c (__memrchr): Likewise.
76204         * lib/memrchr2.c (memchr2): Likewise.
76205         Reported by Simon Josefsson.
76207 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76209         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
76210         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76212 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76214         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
76216         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
76218         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
76220         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
76221         declarations.
76222         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
76224         * m4/inet_pton.m4: Don't check for header files.
76226         * m4/inet_ntop.m4: Don't check for header files.
76228 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76230         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
76231         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
76232         trigger for cygwin).
76233         Reported by Bruno Haible  <bruno@clisp.org>.
76235 2008-04-28  Bruno Haible  <bruno@clisp.org>
76237         * doc/posix-functions/strdup.texi: Mention mingw problem.
76239 2008-04-27  Bruno Haible  <bruno@clisp.org>
76241         * modules/stat-time-tests (Depends-on): Add sleep.
76242         * tests/test-stat-time.c (force_unlink): New function.
76243         (cleanup): Use it.
76244         (test_mtime): Remove the ctime related tests.
76245         (test_ctime): New function, containing the ctime related tests.
76246         (main): Call test_ctime, except on native Windows platforms.
76248 2008-04-27  Bruno Haible  <bruno@clisp.org>
76250         * lib/rpmatch.c (rpmatch): Add some comments.
76251         Reported by James Youngman <jay@gnu.org>.
76253 2008-04-27  Bruno Haible  <bruno@clisp.org>
76255         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
76256         quiet NaNs.
76258 2008-04-27  Bruno Haible  <bruno@clisp.org>
76260         Make test-yesno.sh work on mingw.
76261         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
76262         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
76263         (main): Set stdin to binary mode.
76264         * modules/yesno-tests (Depends-on): Add binary-io.
76266 2008-04-27  Bruno Haible  <bruno@clisp.org>
76268         Fix 'isfinite' on x86, x86_64, ia64 platforms.
76269         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
76270         argument that lie outside the IEEE 854 domain.
76271         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
76272         (gl_ISFINITE): Use it.
76273         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
76275 2008-04-27  Bruno Haible  <bruno@clisp.org>
76277         Allow local renaming in config.h.
76278         * lib/memrchr.c (memrchr): Don't undefine outside libc.
76280 2008-04-27  Bruno Haible  <bruno@clisp.org>
76282         * lib/memchr.c (__memchr): Change type of 'i'.
76283         * lib/memchr2.c (memchr2): Likewise.
76285 2008-04-26  Eric Blake  <ebb9@byu.net>
76286         and Bruno Haible  <bruno@clisp.org>
76288         Optimize and test memrchr.
76289         * modules/memrchr (Depends-on): Add intprops.
76290         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
76291         * modules/memrchr-tests: New file.
76292         * tests/test-memrchr.c: New file.
76294 2008-04-26  Bruno Haible  <bruno@clisp.org>
76296         Add tentative support for DragonFly BSD.
76297         * lib/stdio-impl.h: Add macros for DragonFly BSD.
76298         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
76299         fp.
76300         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
76301         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
76302         * lib/fpurge.c (fpurge): Likewise.
76303         * lib/freadable.c (freaadable): Likewise.
76304         * lib/freadahead.c (freadahead): Likewise.
76305         * lib/freading.c (freading): Likewise.
76306         * lib/freadptr.c (freadptr): Likewise.
76307         * lib/freadseek.c (freadptrinc): Likewise.
76308         * lib/fseeko.c (fseeko): Likewise.
76309         * lib/fseterr.c (fseterr): Likewise.
76310         * lib/fwritable.c (fwritable): Likewise.
76311         * lib/fwriting.c (fwriting): Likewise.
76313 2008-04-26  Bruno Haible  <bruno@clisp.org>
76315         * lib/stdio-impl.h: New file.
76316         * lib/fbufmode.c: Include stdio-impl.h.
76317         (fbufmode): Use fp_, remove redundant #defines.
76318         * lib/fflush.c: Include stdio-impl.h.
76319         (clear_ungetc_buffer): Remove redundant #defines.
76320         * lib/fpurge.c: Include stdio-impl.h.
76321         (fpurge): Remove redundant #defines.
76322         * lib/freadable.c: Include stdio-impl.h.
76323         (freadable): Remove redundant #defines.
76324         * lib/freadahead.c: Include stdio-impl.h.
76325         (freadahead): Remove redundant #defines.
76326         * lib/freading.c: Include stdio-impl.h.
76327         (freading): Remove redundant #defines.
76328         * lib/freadptr.c: Include stdio-impl.h.
76329         (freadptr): Remove redundant #defines.
76330         * lib/freadseek.c: Include stdio-impl.h.
76331         (freadptrinc): Remove redundant #defines.
76332         * lib/fseeko.c: Include stdio-impl.h.
76333         (rpl_fseeko): Remove redundant #defines.
76334         * lib/fseterr.c: Include stdio-impl.h.
76335         (fseterr): Remove redundant #defines.
76336         * lib/fwritable.c: Include stdio-impl.h.
76337         (fwritable: Remove redundant #defines.
76338         * lib/fwriting.c: Include stdio-impl.h.
76339         (fwriting): Remove redundant #defines.
76340         * modules/fbufmode (Files): Add lib/stdio-impl.h.
76341         * modules/fflush (Files): Likewise.
76342         * modules/fpurge (Files): Likewise.
76343         * modules/freadable (Files): Likewise.
76344         * modules/freadahead (Files): Likewise.
76345         * modules/freading (Files): Likewise.
76346         * modules/freadptr (Files): Likewise.
76347         * modules/freadseek (Files): Likewise.
76348         * modules/fseeko (Files): Likewise.
76349         * modules/fseterr (Files): Likewise.
76350         * modules/fwritable (Files): Likewise.
76351         * modules/fwriting (Files): Likewise.
76353 2008-04-26  Bruno Haible  <bruno@clisp.org>
76355         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
76356         restore_seek_optimization, update_fpos_cache): New functions, extracted
76357         from rpl_fflush.
76358         (rpl_fflush): Use them.
76359         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
76360         (gl_REPLACE_FFLUSH): Use it.
76362 2008-04-26  Bruno Haible  <bruno@clisp.org>
76364         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
76365         on Solaris.
76366         * tests/test-xstrtoimax.sh: Likewise.
76367         * tests/test-xstrtoumax.sh: Likewise.
76368         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76370 2008-04-26  Bruno Haible  <bruno@clisp.org>
76372         * modules/memchr-tests: New file.
76373         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
76375 2008-04-26  Eric Blake  <ebb9@byu.net>
76376             Bruno Haible  <bruno@clisp.org>
76378         * lib/memchr.c: Include intprops.h.
76379         (__memchr): Optimize parallel detection of matching bytes. Rename local
76380         variables. Add explanatory comments.
76382 2008-04-26  Bruno Haible  <bruno@clisp.org>
76384         Fix module 'memchr', broken since 2000-10-28.
76385         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
76387 2008-04-26  Bruno Haible  <bruno@clisp.org>
76389         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
76390         comments.
76392 2008-04-25  Eric Blake  <ebb9@byu.net>
76394         Use native fstatat on cygwin 1.7.0.
76395         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
76396         first.
76398 2008-04-23  Eric Blake  <ebb9@byu.net>
76400         Improve memchr2 performance.
76401         * lib/memchr2.c (memchr2): Further optimize parallel detection of
76402         NUL bytes.
76403         * modules/memchr2 (Depends-on): Use intprops.h.
76405 2008-04-23  Simon Josefsson  <simon@josefsson.org>
76407         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
76408         an inline function instead of a CPP macro.  Patch by Ben Pfaff
76409         <blp@cs.stanford.edu>.
76411 2008-04-23  Simon Josefsson  <simon@josefsson.org>
76413         * lib/arpa_inet.in.h: New file.
76415         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
76416         (Makefile.am): Sed in substitute header file.
76418         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
76419         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
76421         * modules/inet_ntop (configure.ac): Use
76422         gl_ARPA_INET_MODULE_INDICATOR.
76424         * modules/inet_pton (configure.ac): Use
76425         gl_ARPA_INET_MODULE_INDICATOR.
76427 2008-04-22  Jim Meyering  <meyering@redhat.com>
76429         * modules/verify (License): Re-license as LGPLv2+.
76431 2008-04-22  Simon Josefsson  <simon@josefsson.org>
76433         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
76434         parameter to void* as per POSIX standard (MinGW uses char*).
76436 2008-04-21  Bruno Haible  <bruno@clisp.org>
76438         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76439         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76440         Define to replacements if REPLACE_ISWCNTRL is 1.
76441         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
76442         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
76443         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
76444         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
76445         what it fixes.
76446         * doc/posix-functions/iswalpha.texi: Likewise.
76447         * doc/posix-functions/iswblank.texi: Likewise.
76448         * doc/posix-functions/iswcntrl.texi: Likewise.
76449         * doc/posix-functions/iswdigit.texi: Likewise.
76450         * doc/posix-functions/iswgraph.texi: Likewise.
76451         * doc/posix-functions/iswlower.texi: Likewise.
76452         * doc/posix-functions/iswprint.texi: Likewise.
76453         * doc/posix-functions/iswpunct.texi: Likewise.
76454         * doc/posix-functions/iswspace.texi: Likewise.
76455         * doc/posix-functions/iswupper.texi: Likewise.
76456         * doc/posix-functions/iswxdigit.texi: Likewise.
76457         Reported by Alain Guibert.
76459 2008-04-21  Bruno Haible  <bruno@clisp.org>
76461         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
76462         Patch by Alain Guibert.
76464 2008-04-21  Bruno Haible  <bruno@clisp.org>
76466         Fix test failures on mingw.
76467         * tests/test-xstrtol.c (print_no_progname): New function.
76468         (main): Install it in error_print_progname hook.
76469         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
76470         * tests/test-xstrtoimax.sh: Likewise.
76471         * tests/test-xstrtoumax.sh: Likewise.
76473 2008-04-21  Bruno Haible  <bruno@clisp.org>
76475         Fix test failure on mingw.
76476         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
76478 2008-04-21  Bruno Haible  <bruno@clisp.org>
76480         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
76481         Actually assign a value.
76483 2008-04-20  Bruno Haible  <bruno@clisp.org>
76485         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
76486         take 2.
76487         * lib/canonicalize.c (canonicalize_file_name): Elide if the
76488         'canonicalize-lgpl' module is also used.
76489         * lib/canonicalize-lgpl.c: Undo last change.
76490         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
76492 2008-04-20  Bruno Haible  <bruno@clisp.org>
76494         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
76495         config.h. Provide _mkdir based fallback for mingw.
76496         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
76497         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
76498         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
76499         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
76500         rather than defining mkdir in config.h.
76501         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
76502         (gl_SYS_STAT_H_DEFAULTS): New macro.
76503         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
76504         HAVE_IO_H any more.
76505         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
76506         HAVE_DECL_MKDIR and HAVE_IO_H.
76508 2008-04-20  Bruno Haible  <bruno@clisp.org>
76510         * lib/isapipe.c: Port to native Windows platforms.
76512 2008-04-20  Bruno Haible  <bruno@clisp.org>
76514         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
76516 2008-04-21  Eric Blake  <ebb9@byu.net>
76518         Work around preprocessors that don't handle UINTMAX_MAX.
76519         * lib/memchr2.c (memchr2): Avoid embedded #if.
76520         Reported by Alain Guibert, fix suggested by Bruno Haible.
76522 2008-04-21  Simon Josefsson  <simon@josefsson.org>
76524         * doc/posix-functions/strftime.texi (strftime): Explain better
76525         Windows incompatibility.  Suggested by Micah Cowan
76526         <micah@cowan.name>.
76528 2008-04-20  Bruno Haible  <bruno@clisp.org>
76530         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
76531         unistr/u8-mblen.
76533 2008-04-20  Bruno Haible  <bruno@clisp.org>
76535         Fix test failure on platforms with non-GNU iconv.
76536         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
76537         (U_TO_U8): Use it, rather than u16_to_u8.
76538         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
76539         units at the end of the input string.
76540         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
76542 2008-04-20  Bruno Haible  <bruno@clisp.org>
76544         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
76545         when the resulting length is 0.
76546         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
76548 2008-04-20  Bruno Haible  <bruno@clisp.org>
76550         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
76551         works.
76552         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
76554 2008-04-20  Bruno Haible  <bruno@clisp.org>
76556         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
76557         * modules/tsearch-tests (configure.ac): Test for initstate function.
76559 2008-04-20  Bruno Haible  <bruno@clisp.org>
76561         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
76562         for nlink_t if missing.
76563         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
76565 2008-04-19  Bruno Haible  <bruno@clisp.org>
76567         Work around snprintf bug on Linux libc5.
76568         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
76569         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
76570         gl_SNPRINTF_SIZE1.
76571         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
76572         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
76573         that test failed.
76574         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
76575         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
76576         * modules/snprintf (Files): Add m4/printf.m4.
76577         * modules/vsnprintf (Files): Likewise.
76578         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
76579         * doc/posix-functions/vsnprintf.texi: Likewise.
76581 2008-04-19  Bruno Haible  <bruno@clisp.org>
76583         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
76584         from 0.0058 to less than 10^-7.
76586 2008-04-19  Bruno Haible  <bruno@clisp.org>
76588         Fix rounding when a precision is given.
76589         * lib/vasnprintf.c (is_borderline): New function.
76590         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
76591         9...9x.
76592         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
76593         %e, %g.
76594         * tests/test-vasprintf-posix.c (test_function): Likewise.
76595         * tests/test-snprintf-posix.h (test_function): Likewise.
76596         * tests/test-sprintf-posix.h (test_function): Likewise.
76597         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
76598         * tests/test-printf-posix.h (test_function): Likewise.
76599         * tests/test-printf-posix.output: Update.
76600         Reported by John Darrington <john@darrington.wattle.id.au> via
76601         Ben Pfaff <blp@cs.stanford.edu>.
76603 2008-04-18  Simon Josefsson  <simon@josefsson.org>
76605         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
76606         Suggested by Bruno Haible <bruno@clisp.org>.
76608 2008-04-17  Bruno Haible  <bruno@clisp.org>
76610         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
76611         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
76612         implementation.
76613         Patch by Bruce Merry <bmerry@gmail.com>.
76615 2008-04-17  Simon Josefsson  <simon@josefsson.org>
76617         * doc/posix-functions/strftime.texi (strftime): Mention that %e
76618         doesn't work under Windows.
76620 2008-04-16  Bruno Haible  <bruno@clisp.org>
76622         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
76623         New macros.
76624         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
76625         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
76626         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
76627         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
76628         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
76629         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
76630         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
76631         macros.
76632         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
76633         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
76634         Northern Sotho, Uighur.
76636 2008-04-16  Bruno Haible  <bruno@clisp.org>
76638         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
76639         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
76640         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
76641         Reported by Daniel Bergström <daniel@octocode.com>.
76643 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
76644             Bruno Haible  <bruno@clisp.org>
76646         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
76647         function.
76648         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
76649         New functions, mostly extracted from gl_locale_name_default.
76650         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
76652 2008-04-16  Eric Blake  <ebb9@byu.net>
76654         Adjust strtod detection to catch glibc 2.7 bug.
76655         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
76656         Reported by John Gatewood Ham.
76658 2008-04-16  Bruno Haible  <bruno@clisp.org>
76660         Add tentative support for Linux libc5.
76661         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
76662         * lib/fpurge.c (fpurge): Likewise.
76663         * lib/freadable.c (freadable): Likewise.
76664         * lib/freadahead.c (freadahead): Likewise.
76665         * lib/freading.c (freading): Likewise.
76666         * lib/freadptr.c (freadptr): Likewise.
76667         * lib/freadseek.c (freadptrinc): Likewise.
76668         * lib/fseeko.c (rpl_fseeko): Likewise.
76669         * lib/fseterr.c (fseterr): Likewise.
76670         * lib/fwritable.c (fwritable): Likewise.
76671         * lib/fwriting.c (fwriting): Likewise.
76672         Reported by Alain Guibert <alguibert+bts@free.fr>.
76674 2008-04-15  Bruno Haible  <bruno@clisp.org>
76676         * modules/mathl (configure.ac): Define module indicator.
76678 2008-04-15  Bruno Haible  <bruno@clisp.org>
76680         * lib/logl.c (logl): Remove unused variables.
76682 2008-04-15  Bruno Haible  <bruno@clisp.org>
76684         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
76685         fails.
76687 2008-04-15  Bruno Haible  <bruno@clisp.org>
76689         * lib/trim.c (trim2): Fix argument of isspace() macro.
76691 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
76693         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
76694         to 0.
76695         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
76697 2008-04-14  Bruno Haible  <bruno@clisp.org>
76699         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
76700         AC_LANG_PROGRAM argument.
76701         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
76702         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
76703         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
76704         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
76705         * m4/math_h.m4 (gl_MATH_H): Likewise.
76706         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
76707         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
76708         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
76709         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
76710         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76711         * m4/regex.m4 (gl_REGEX): Likewise.
76712         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
76713         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
76714         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
76715         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
76716         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
76717         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
76718         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
76719         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
76721 2008-04-14  Jim Meyering  <meyering@redhat.com>
76723         test-strtod: fix typos: s/abs/fabs/
76724         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
76726 2008-04-13  Bruno Haible  <bruno@clisp.org>
76728         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
76729         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
76730         module is also used and while not building the reloc-wrapper.
76732 2008-04-13  Bruno Haible  <bruno@clisp.org>
76734         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
76736 2008-04-13  Bruno Haible  <bruno@clisp.org>
76738         Fix AIX compilation failure introduced on 2008-04-02.
76739         * tests/test-frexp.c (exp): Undefine before redefining.
76740         * tests/test-frexpl.c (exp): Likewise.
76742 2008-04-13  Bruno Haible  <bruno@clisp.org>
76744         Work around a HP-UX stdio bug.
76745         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
76746         * tests/test-ftello.c (main): Likewise.
76747         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
76748         * doc/posix-functions/ftello.texi: Likewise.
76750 2008-04-13  Bruno Haible  <bruno@clisp.org>
76752         Make test-signbit pass on HP-UX/hppa.
76753         * tests/test-signbit.c (minus_zerol): New variable.
76754         (test_signbitl): Use it.
76756 2008-04-13  Bruno Haible  <bruno@clisp.org>
76758         Make truncl work on OSF/1 4.0.
76759         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
76760         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
76761         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
76762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
76763         HAVE_DECL_TRUNCL.
76764         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
76765         HAVE_DECL_TRUNCL.
76766         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
76768 2008-04-13  Bruno Haible  <bruno@clisp.org>
76770         * lib/unictype.h: Remove trailing comma from enumeration definitions.
76772 2008-04-13  Bruno Haible  <bruno@clisp.org>
76774         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
76775         expression, so as to avoid HP-UX 11 cc compiler bug.
76777 2008-04-13  Bruno Haible  <bruno@clisp.org>
76779         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
76781 2008-04-13  Bruno Haible  <bruno@clisp.org>
76783         * lib/git-merge-changelog.c: Remove empty declaration outside of
76784         functions.
76786 2008-04-13  Bruno Haible  <bruno@clisp.org>
76788         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
76790 2008-04-13  Bruno Haible  <bruno@clisp.org>
76792         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
76793         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
76794         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
76795         also if it exists but lacks definitions of the SHUT_* macros.
76796         * modules/sys_socket (Description): Update.
76797         Reported by Elbert Pol <e.pol@chello.nl>.
76799 2008-04-13  Bruno Haible  <bruno@clisp.org>
76801         * lib/localcharset.c (OS2): Don't redefine if already defined.
76802         Reported by Elbert Pol <e.pol@chello.nl>.
76804 2008-04-13  Bruno Haible  <bruno@clisp.org>
76806         * lib/binary-io.h [__EMX__]: Include <io.h>.
76807         Reported by Elbert Pol <e.pol@chello.nl>.
76809 2008-04-12  Bruno Haible  <bruno@clisp.org>
76811         * lib/fpucw.h: Enable the definitions also for x86_64.
76812         Needed for NetBSD/x86_64.
76813         Reported by Thomas Klausner <tk@giga.or.at>.
76815 2008-04-12  Bruno Haible  <bruno@clisp.org>
76817         * tests/test-strtod.c: Include isnand.h.
76818         (main): Use isnand instead of isnan.
76819         Reported by Jim Meyering.
76821 2008-04-12  Bruno Haible  <bruno@clisp.org>
76823         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
76824         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76826 2008-04-12  Jim Meyering  <meyering@redhat.com>
76828         * m4/math_h.m4 (gl_MATH_H): Fix typos.
76830 2008-04-12  Bruno Haible  <bruno@clisp.org>
76832         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
76833         Reported by Elbert Pol <e.pol@chello.nl>.
76835 2008-04-12  Eric Blake  <ebb9@byu.net>
76837         Work around Solaris 10 math.h bug.
76838         * m4/math_h.m4 (gl_MATH_H): Check for bug.
76839         (gl_MATH_H_DEFAULTS): Set up default.
76840         * modules/math (Makefile.am): Replace new indicators.
76841         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
76842         * tests/test-math.c (main): Test this.
76843         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
76844         * doc/posix-headers/math.texi (math.h): Mention bug.
76845         Reported by Nelson H. F. Beebe and Jim Meyering.
76847 2008-04-11  Bruno Haible  <bruno@clisp.org>
76849         Adapt to future versions of Apple GCC.
76850         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
76851         Reported by Peter O'Gorman <peter@pogma.com>.
76853 2008-04-11  Bruno Haible  <bruno@clisp.org>
76855         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
76857 2008-04-11  Bruno Haible  <bruno@clisp.org>
76859         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
76861         * modules/getaddrinfo-tests (Makefile.am): Define
76862         test_getaddrinfo_LDADD.
76864 2008-04-11  Bruno Haible  <bruno@clisp.org>
76866         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
76867         (init): Fix syntax error.
76868         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
76869         is declared.
76871 2008-04-11  Bruno Haible  <bruno@clisp.org>
76873         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
76874         * modules/glob (Depends-on): Add stdbool.
76876 2008-04-11  Bruno Haible  <bruno@clisp.org>
76878         * lib/trim.c: Include <string.h>.
76880 2008-04-11  Eric Blake  <ebb9@byu.net>
76882         Avoid compile failure on OS/2.
76883         * lib/regex_internal.h (internal_function): Disable optimization
76884         on OS/2 (__EMX__), where it caused compiler error.
76885         Reported by Elbert Pol.
76887 2008-04-11  Bruno Haible  <bruno@clisp.org>
76889         Flush the standard error stream before aborting. Needed on mingw.
76890         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
76891         * tests/test-array_list.c (ASSERT): Likewise.
76892         * tests/test-array_oset.c (ASSERT): Likewise.
76893         * tests/test-avltree_list.c (ASSERT): Likewise.
76894         * tests/test-avltree_oset.c (ASSERT): Likewise.
76895         * tests/test-avltreehash_list.c (ASSERT): Likewise.
76896         * tests/test-binary-io.c (ASSERT): Likewise.
76897         * tests/test-byteswap.c (ASSERT): Likewise.
76898         * tests/test-c-ctype.c (ASSERT): Likewise.
76899         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
76900         * tests/test-c-strcasestr.c (ASSERT): Likewise.
76901         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
76902         * tests/test-c-strstr.c (ASSERT): Likewise.
76903         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
76904         * tests/test-canonicalize.c (ASSERT): Likewise.
76905         * tests/test-carray_list.c (ASSERT): Likewise.
76906         * tests/test-ceilf1.c (ASSERT): Likewise.
76907         * tests/test-ceilf2.c (ASSERT): Likewise.
76908         * tests/test-ceill.c (ASSERT): Likewise.
76909         * tests/test-count-one-bits.c (ASSERT): Likewise.
76910         * tests/test-fbufmode.c (ASSERT): Likewise.
76911         * tests/test-fflush2.c (ASSERT): Likewise.
76912         * tests/test-floorf1.c (ASSERT): Likewise.
76913         * tests/test-floorf2.c (ASSERT): Likewise.
76914         * tests/test-floorl.c (ASSERT): Likewise.
76915         * tests/test-fopen.c (ASSERT): Likewise.
76916         * tests/test-fpending.c (ASSERT): Likewise.
76917         * tests/test-fprintf-posix.c (ASSERT): Likewise.
76918         * tests/test-fpurge.c (ASSERT): Likewise.
76919         * tests/test-freadable.c (ASSERT): Likewise.
76920         * tests/test-freadahead.c (ASSERT): Likewise.
76921         * tests/test-freading.c (ASSERT): Likewise.
76922         * tests/test-freadptr.c (ASSERT): Likewise.
76923         * tests/test-freadptr2.c (ASSERT): Likewise.
76924         * tests/test-freadseek.c (ASSERT): Likewise.
76925         * tests/test-freopen.c (ASSERT): Likewise.
76926         * tests/test-frexp.c (ASSERT): Likewise.
76927         * tests/test-frexpl.c (ASSERT): Likewise.
76928         * tests/test-fseek.c (ASSERT): Likewise.
76929         * tests/test-fseeko.c (ASSERT): Likewise.
76930         * tests/test-fstrcmp.c (ASSERT): Likewise.
76931         * tests/test-ftell.c (ASSERT): Likewise.
76932         * tests/test-ftello.c (ASSERT): Likewise.
76933         * tests/test-func.c (ASSERT): Likewise.
76934         * tests/test-fwritable.c (ASSERT): Likewise.
76935         * tests/test-fwriting.c (ASSERT): Likewise.
76936         * tests/test-getdelim.c (ASSERT): Likewise.
76937         * tests/test-getline.c (ASSERT): Likewise.
76938         * tests/test-i-ring.c (ASSERT): Likewise.
76939         * tests/test-iconv-utf.c (ASSERT): Likewise.
76940         * tests/test-iconv.c (ASSERT): Likewise.
76941         * tests/test-isfinite.c (ASSERT): Likewise.
76942         * tests/test-isnand.c (ASSERT): Likewise.
76943         * tests/test-isnanf.c (ASSERT): Likewise.
76944         * tests/test-isnanl.h (ASSERT): Likewise.
76945         * tests/test-ldexpl.c (ASSERT): Likewise.
76946         * tests/test-linked_list.c (ASSERT): Likewise.
76947         * tests/test-linkedhash_list.c (ASSERT): Likewise.
76948         * tests/test-localename.c (ASSERT): Likewise.
76949         * tests/test-lseek.c (ASSERT): Likewise.
76950         * tests/test-mbscasecmp.c (ASSERT): Likewise.
76951         * tests/test-mbscasestr1.c (ASSERT): Likewise.
76952         * tests/test-mbscasestr2.c (ASSERT): Likewise.
76953         * tests/test-mbscasestr3.c (ASSERT): Likewise.
76954         * tests/test-mbscasestr4.c (ASSERT): Likewise.
76955         * tests/test-mbschr.c (ASSERT): Likewise.
76956         * tests/test-mbscspn.c (ASSERT): Likewise.
76957         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
76958         * tests/test-mbspbrk.c (ASSERT): Likewise.
76959         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
76960         * tests/test-mbsrchr.c (ASSERT): Likewise.
76961         * tests/test-mbsspn.c (ASSERT): Likewise.
76962         * tests/test-mbsstr1.c (ASSERT): Likewise.
76963         * tests/test-mbsstr2.c (ASSERT): Likewise.
76964         * tests/test-mbsstr3.c (ASSERT): Likewise.
76965         * tests/test-memchr2.c (ASSERT): Likewise.
76966         * tests/test-memmem.c (ASSERT): Likewise.
76967         * tests/test-open.c (ASSERT): Likewise.
76968         * tests/test-printf-frexp.c (ASSERT): Likewise.
76969         * tests/test-printf-frexpl.c (ASSERT): Likewise.
76970         * tests/test-printf-posix.c (ASSERT): Likewise.
76971         * tests/test-quotearg.c (ASSERT): Likewise.
76972         * tests/test-rbtree_list.c (ASSERT): Likewise.
76973         * tests/test-rbtree_oset.c (ASSERT): Likewise.
76974         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
76975         * tests/test-round1.c (ASSERT): Likewise.
76976         * tests/test-roundf1.c (ASSERT): Likewise.
76977         * tests/test-roundl.c (ASSERT): Likewise.
76978         * tests/test-signbit.c (ASSERT): Likewise.
76979         * tests/test-sleep.c (ASSERT): Likewise.
76980         * tests/test-snprintf-posix.c (ASSERT): Likewise.
76981         * tests/test-snprintf.c (ASSERT): Likewise.
76982         * tests/test-sprintf-posix.c (ASSERT): Likewise.
76983         * tests/test-stat-time.c (ASSERT): Likewise.
76984         * tests/test-strcasestr.c (ASSERT): Likewise.
76985         * tests/test-strerror.c (ASSERT): Likewise.
76986         * tests/test-striconv.c (ASSERT): Likewise.
76987         * tests/test-striconveh.c (ASSERT): Likewise.
76988         * tests/test-striconveha.c (ASSERT): Likewise.
76989         * tests/test-strsignal.c (ASSERT): Likewise.
76990         * tests/test-strstr.c (ASSERT): Likewise.
76991         * tests/test-strtod.c (ASSERT): Likewise.
76992         * tests/test-trunc1.c (ASSERT): Likewise.
76993         * tests/test-trunc2.c (ASSERT): Likewise.
76994         * tests/test-truncf1.c (ASSERT): Likewise.
76995         * tests/test-truncf2.c (ASSERT): Likewise.
76996         * tests/test-truncl.c (ASSERT): Likewise.
76997         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
76998         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
76999         * tests/test-vasnprintf.c (ASSERT): Likewise.
77000         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
77001         * tests/test-vasprintf.c (ASSERT): Likewise.
77002         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
77003         * tests/test-vprintf-posix.c (ASSERT): Likewise.
77004         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
77005         * tests/test-vsnprintf.c (ASSERT): Likewise.
77006         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
77007         * tests/test-wcwidth.c (ASSERT): Likewise.
77008         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
77009         * tests/test-xprintf-posix.c (ASSERT): Likewise.
77010         * tests/test-xvasprintf.c (ASSERT): Likewise.
77011         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
77012         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
77013         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
77014         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
77015         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
77016         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
77017         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
77018         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
77019         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
77020         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
77021         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
77022         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
77023         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
77024         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
77025         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
77026         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
77027         * tests/unictype/test-block_list.c (ASSERT): Likewise.
77028         * tests/unictype/test-block_of.c (ASSERT): Likewise.
77029         * tests/unictype/test-block_test.c (ASSERT): Likewise.
77030         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
77031         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
77032         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
77033         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
77034         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
77035         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
77036         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
77037         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
77038         * tests/unictype/test-combining.c (ASSERT): Likewise.
77039         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
77040         * tests/unictype/test-digit.c (ASSERT): Likewise.
77041         * tests/unictype/test-mirror.c (ASSERT): Likewise.
77042         * tests/unictype/test-numeric.c (ASSERT): Likewise.
77043         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
77044         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
77045         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
77046         * tests/unictype/test-scripts.c (ASSERT): Likewise.
77047         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
77048         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
77049         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
77050         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
77051         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
77052         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
77053         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
77054         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
77055         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
77056         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
77057         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
77058         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
77059         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
77060         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
77061         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
77062         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
77063         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
77064         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
77065         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
77066         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
77067         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
77068         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
77069         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
77070         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
77071         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
77072         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
77073         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
77074         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
77075         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
77076         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
77077         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
77078         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
77079         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
77080         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
77081         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
77082         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
77083         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
77084         Reported by Eric Blake.
77086 2008-04-11  Bruno Haible  <bruno@clisp.org>
77088         * lib/wchar.in.h: Tweak comment.
77090 2008-04-11  Bruno Haible  <bruno@clisp.org>
77092         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
77093         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
77094         gl_COMMON.
77095         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
77097 2008-04-11  Bruno Haible  <bruno@clisp.org>
77099         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
77101 2008-04-11  Simon Josefsson  <simon@josefsson.org>
77103         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
77104         of attempting to use non-existing /dev/*random.  Based on patch
77105         from Adam Strzelecki <ono@java.pl> in
77106         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
77108 2008-04-08  Bruno Haible  <bruno@clisp.org>
77110         Add tentative support for emx+gcc.
77111         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
77112         * lib/fpurge.c (fpurge): Likewise.
77113         * lib/freadable.c (freadable): Likewise.
77114         * lib/freadahead.c (freadahead): Likewise.
77115         * lib/freading.c (freading): Likewise.
77116         * lib/freadptr.c (freadptr): Likewise.
77117         * lib/freadseek.c (freadptrinc): Likewise.
77118         * lib/fseeko.c (rpl_fseeko): Likewise.
77119         * lib/fseterr.c (fseterr): Likewise.
77120         * lib/fwritable.c (fwritable): Likewise.
77121         * lib/fwriting.c (fwriting): Likewise.
77122         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
77124 2008-04-09  Eric Blake  <ebb9@byu.net>
77126         Avoid some autoconf warnings.
77127         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
77128         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
77129         * m4/afs.m4 (gl_AFS): Likewise.
77130         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
77131         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
77132         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
77133         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
77134         (gl_INTEGER_TYPE_SUFFIX): Likewise.
77135         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
77136         (AC_CHECK_DECLS_ONCE): Likewise.
77137         Rename file...
77138         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
77139         gnulib-tool requires autoconf 2.59 or better.
77140         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
77142 2008-04-08  Eric Blake  <ebb9@byu.net>
77144         Use 'git describe --match' if present (added in git 1.5.5).
77145         * build-aux/git-version-gen: Limit result to tags that match 'v*'
77146         if possible.
77148 2008-04-08  Bruno Haible  <bruno@clisp.org>
77150         Add tentative support for OpenServer.
77151         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
77152         _ptr, _cnt.
77153         * lib/fpurge.c (fpurge): Likewise.
77154         * lib/freadable.c (freadable): Likewise.
77155         * lib/freadahead.c (freadahead): Likewise.
77156         * lib/freading.c (freading): Likewise.
77157         * lib/freadptr.c (freadptr): Likewise.
77158         * lib/freadseek.c (freadptrinc): Likewise.
77159         * lib/fseeko.c (rpl_fseeko): Likewise.
77160         * lib/fseterr.c (fseterr): Likewise.
77161         * lib/fwritable.c (fwritable): Likewise.
77162         * lib/fwriting.c (fwriting): Likewise.
77163         Reported by Roger Cornelius <rac@tenzing.org> and
77164         Brian K. White <brian@aljex.com>.
77166 2008-04-06  Jim Meyering  <meyering@redhat.com>
77168         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
77170 2008-04-06  Bruno Haible  <bruno@clisp.org>
77172         Avoid possible error with non-ASCII bytes in UTF-8 locales.
77173         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
77174         * tests/test-printf-posix.sh: Likewise.
77175         * tests/test-vfprintf-posix.sh: Likewise.
77176         * tests/test-vprintf-posix.sh: Likewise.
77177         * tests/test-xprintf-posix.sh: Likewise.
77179 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77181         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
77182         hide error from 'ls', needed on OS/2.
77183         Report by Elbert Pol <elbert.pol@gmail.com>.
77185 2008-04-04  Eric Blake  <ebb9@byu.net>
77187         Make test-fseeko.c failures meaningful.
77188         * tests/test-fseeko.c: Print line number on failure.
77189         * tests/test-fseek.c: Likewise.
77190         Reported by Nelson H. F. Beebe.
77192         Improve strtod bug detection check.
77193         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
77194         required for Solaris 10.
77195         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
77197 2008-04-04  Bruno Haible  <bruno@clisp.org>
77199         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
77200         by m4/setenv.m4.
77202 2008-04-03  Eric Blake  <ebb9@byu.net>
77204         Ensure sane .version contents.
77205         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
77206         version string.
77207         * build-aux/git-version-gen: Improve documentation.
77209         Make GNU make output nicer.
77210         * top/GNUmakefile [!_have-Makefile]: Add dependency on
77211         MAKECMDGOALS to enforce message for all command line targets.  Set
77212         srcdir for use in maint.mk.
77214         Another maintainer tweak.
77215         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
77216         a target that regenerates version.
77218 2008-04-03  Jim Meyering  <meyering@redhat.com>
77220         vc-list-files: don't cause coreutils "make po-check" failure
77221         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
77223 2008-04-03  Eric Blake  <ebb9@byu.net>
77225         Allow VPATH usage of vc-list-files.
77226         * build-aux/vc-list-files (scriptversion): Add timestamp.
77227         (options): Add --help, --version, -C.
77228         (CVS): Support installed cvsu.
77230 2008-04-02  Bruno Haible  <bruno@clisp.org>
77232         Avoid some "statement with no effect" warnings from gcc.
77233         * tests/test-wctype.c (main): Explicitly ignore unused values.
77234         Reported by Jim Meyering.
77236 2008-04-02  Jim Meyering  <meyering@redhat.com>
77238         Avoid some warnings from "gcc -Wshadow".
77239         * tests/test-frexp.c (exp): Define to a different identifier.
77240         * tests/test-frexpl.c (exp): Likewise.
77242 2008-04-03  Jim Meyering  <meyering@redhat.com>
77244         bootstrap: remove dangling *.[ch] symlinks from lib
77245         * build-aux/bootstrap [dangling symlink removal]: Move find's
77246         -depth option to precede all others, to avoid a warning.
77247         Remove *.[ch] files too, and from "$source_base" (usually lib/).
77249 2008-04-02  Bruno Haible  <bruno@clisp.org>
77251         Avoid some warnings from "gcc -Wshadow".
77252         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
77253         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
77254         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
77255         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
77256         Reported by Jim Meyering.
77258 2008-04-01  Bruno Haible  <bruno@clisp.org>
77260         Fix test to work on IRIX 6.5 with cc.
77261         * tests/test-math.c (numeric_equal): New function.
77262         (main): Use it.
77264 2008-04-01  Bruno Haible  <bruno@clisp.org>
77266         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
77268 2008-04-01  Bruno Haible  <bruno@clisp.org>
77270         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
77271         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77272         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
77273         (Depends-on): Remove math.
77275         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
77276         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77277         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
77278         (Depends-on): Remove math.
77280         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
77281         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77282         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
77283         (Depends-on): Remove math.
77284         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
77285         (Depends-on): Remove math.
77287         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
77288         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77289         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
77290         (Depends-on): Remove math.
77291         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
77292         (Depends-on): Remove math.
77294         * tests/test-round1.c: Include nan.h.
77295         (main): Use NaNd instead of NAN.
77296         * modules/round-tests (Files): Add tests/nan.h.
77298         * tests/test-trunc1.c: Include nan.h.
77299         (main): Use NaNd instead of NAN.
77300         * modules/trunc-tests (Files): Add tests/nan.h.
77302         * tests/test-roundf1.c: Include nan.h.
77303         (main): Use NaNf instead of NAN.
77304         * modules/roundf-tests (Files): Add tests/nan.h.
77306         * tests/test-truncf1.c: Include nan.h.
77307         (main): Use NaNf instead of NAN.
77308         * modules/truncf-tests (Files): Add tests/nan.h.
77310         * tests/test-ceilf1.c: Include nan.h.
77311         (main): Use NaNf instead of NAN.
77312         * modules/ceilf-tests (Files): Add tests/nan.h.
77314         * tests/test-floorf1.c: Include nan.h.
77315         (main): Use NaNf instead of NAN.
77316         * modules/floorf-tests (Files): Add tests/nan.h.
77318         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
77319         (main): Use NaNf instead of NAN.
77320         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
77322         * tests/test-isnand.c: Include nan.h instead of <math.h>.
77323         (main): Use NaNd instead of NAN.
77324         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
77326         * tests/test-frexp.c: Include nan.h.
77327         (main): Use NaNd instead of NAN.
77328         * modules/frexp-tests (Files): Add tests/nan.h.
77330         * lib/isnan.c: Don't include <math.h>.
77331         (FUNC): Don't use NAN macro.
77332         * modules/isnand-nolibm (Depends-on): Remove math.
77333         * modules/isnanf-nolibm (Depends-on): Remove math.
77334         * modules/isnanl (Depends-on): Remove math.
77335         * modules/isnanl-nolibm (Depends-on): Remove math.
77337         * tests/nan.h: New file.
77339 2008-04-01  Eric Blake  <ebb9@byu.net>
77341         Fix typos.
77342         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
77343         values to be the right type.
77345         For now, cater to gnulib strtod inaccuracies.
77346         * tests/test-strtod.c (main): Allow 1-ulp error on expected
77347         fractional results.  While not as nice from a QoI perspective, it
77348         is a quicker patch than correctly implementing decimal to binary
77349         rounding.
77351 2008-03-31  Eric Blake  <ebb9@byu.net>
77353         Guarantee a definition of NAN.
77354         * lib/math.in.h (NAN): Define if missing.
77355         * tests/test-math.c (main): Test it.
77356         * doc/posix-headers/math.texi (math.h): Document this.
77357         * lib/isnan.c (rpl_isnand): Use it.
77358         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
77359         * tests/test-floorf1.c (NaN): Likewise.
77360         * tests/test-frexp.c (NaN): Likewise.
77361         * tests/test-isnand.c (NaN): Likewise.
77362         * tests/test-isnanf.c (NaN): Likewise.
77363         * tests/test-round1.c (NaN): Likewise.
77364         * tests/test-roundf1.c (NaN): Likewise.
77365         * tests/test-snprintf-posix.h (NaN): Likewise.
77366         * tests/test-sprintf-posix.h (NaN): Likewise.
77367         * tests/test-trunc1.c (NaN): Likewise.
77368         * tests/test-truncf1.c (NaN): Likewise.
77369         * tests/test-vasnprintf-posix.c (NaN): Likewise.
77370         * tests/test-vasprintf-posix.c (NaN): Likewise.
77371         * modules/isnand-nolibm (Depends-on): Add math.
77372         * modules/isnanf-nolibm (Depends-on): Likewise.
77373         * modules/isnanl (Depends-on): Likewise.
77374         * modules/isnanl-nolibm (Depends-on): Likewise.
77375         * modules/snprintf-posix-tests (Depends-on): Likewise.
77376         * modules/sprintf-posix-tests (Depends-on): Likewise.
77377         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
77378         * modules/vsprintf-posix-tests (Depends-on): Likewise.
77379         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
77380         * modules/vasprintf-posix-tests (Depends-on): Likewise.
77382 2008-03-31  Bruno Haible  <bruno@clisp.org>
77384         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
77385         * doc/posix-functions/strtod.texi: Likewise.
77387 2008-03-31  Bruno Haible  <bruno@clisp.org>
77389         * tests/test-strtod.c (main): Don't use C99 syntax.
77391 2008-03-31  Bruno Haible  <bruno@clisp.org>
77393         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
77394         Reported by Eric Blake.
77396 2008-03-31  Jim Meyering  <meyering@redhat.com>
77398         Don't compare actual signbit return values.
77399         * tests/test-strtod.c (main): Rather, compare only their
77400         zero/non-zero nature.
77402 2008-03-31  Eric Blake  <ebb9@byu.net>
77404         More strtod documentation.
77405         * doc/posix-functions/strtod.texi (strtod): Interpret more test
77406         failures as distinct bugs.
77408 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
77410         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
77411         Problem reported by Erik Benada in
77412         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
77414 2008-03-30  Bruno Haible  <bruno@clisp.org>
77416         * tests/test-strtod.c: Add comments about which assertion fails on which
77417         platform.
77418         * doc/posix-functions/strtod.texi: Add info about many more platforms.
77420 2008-03-30  Eric Blake  <ebb9@byu.net>
77422         Test signbit behavior on zeros.
77423         * tests/test-signbit.c (test_signbitf): Add tests for zero.
77424         (test_signbitd, test_signbitl): Likewise.
77426         More strtod touchups.
77427         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
77428         sign of negative underflow, for now.  Use .5, not .1.
77429         * doc/posix-functions/strtod.texi (strtod): Mention these
77430         limitations.
77431         Reported by Jim Meyering.
77433 2008-03-30  Bruno Haible  <bruno@clisp.org>
77435         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
77436         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
77438 2008-03-30  Bruno Haible  <bruno@clisp.org>
77440         Avoid failure when attempting to return empty iconv results on some
77441         platforms.
77442         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
77443         allocation, don't report ENOMEM when the resulting string is empty.
77445 2008-03-30  Bruno Haible  <bruno@clisp.org>
77447         Fix buffer overrun.
77448         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
77449         Don't consider the width for tmp_length. Check count against tmp_length
77450         before doing the padding. Ensure enough allocation during padding.
77452 2008-03-30  Eric Blake  <ebb9@byu.net>
77454         strtod touchups.
77455         * lib/strtod.c (strtod): Avoid compiler warnings.
77456         Reported by Jim Meyering.
77458 2008-03-30  Bruno Haible  <bruno@clisp.org>
77460         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
77461         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
77462         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
77463         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
77464         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
77465         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
77466         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
77467         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
77469         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
77470         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
77471         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
77472         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
77473         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
77474         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
77475         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
77476         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
77478         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
77479         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
77480         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
77481         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
77482         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
77483         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
77484         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
77485         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
77487         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
77488         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
77490         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
77491         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
77493         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
77494         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
77496         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
77497         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
77498         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
77500         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
77501         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
77502         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
77504         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
77505         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
77506         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
77508         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
77509         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
77510         * modules/vasprintf (Depends-on): Add EOVERFLOW.
77512         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
77513         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
77514         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
77515         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
77516         (Depends-on): Add EOVERFLOW.
77517         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
77518         (Depends-on): Add EOVERFLOW.
77519         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
77520         (Depends-on): Add EOVERFLOW.
77521         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
77522         (Depends-on): Add EOVERFLOW.
77523         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
77524         (Depends-on): Add EOVERFLOW.
77525         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
77526         (Depends-on): Add EOVERFLOW.
77527         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
77528         (Depends-on): Add EOVERFLOW.
77529         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
77530         (Depends-on): Add EOVERFLOW.
77532         * lib/sprintf.c (EOVERFLOW): Remove fallback.
77533         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
77534         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
77536         * lib/snprintf.c (EOVERFLOW): Remove fallback.
77537         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
77538         * modules/snprintf (Depends-on): Add EOVERFLOW.
77540         * lib/poll.c (EOVERFLOW): Remove fallback.
77541         * modules/poll (Depends-on): Add EOVERFLOW.
77543         * lib/getugroups.c (EOVERFLOW): Remove fallback.
77544         * modules/getugroups (Depends-on): Add EOVERFLOW.
77546         * lib/getdelim.c (EOVERFLOW): Remove fallback.
77547         * modules/getdelim (Depends-on): Add EOVERFLOW.
77549         * lib/ftell.c (EOVERFLOW): Remove fallback.
77550         * modules/ftell (Depends-on): Add EOVERFLOW.
77552         * lib/fprintf.c (EOVERFLOW): Remove fallback.
77553         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
77554         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
77556         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
77558         * modules/EOVERFLOW-tests: New file.
77559         * tests/test-EOVERFLOW.c: New file.
77561         * modules/EOVERFLOW: New file.
77562         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
77564 2008-03-30  Bruno Haible  <bruno@clisp.org>
77566         Fix bug introduced on 2007-06-10.
77567         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
77568         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
77570 2008-03-30  Bruno Haible  <bruno@clisp.org>
77572         Improve freadseek's efficiency after ungetc.
77573         * lib/freadseek.c: Include freadahead.h.
77574         (freadptrinc): New function, extracted from freadseek.
77575         (freadseek): Use it in a loop. Use freadahead to determine the number
77576         of loop iterations.
77577         * modules/freadseek (Depends-on): Add freadahead.
77578         (configure.ac): Require AC_C_INLINE.
77580 2008-03-30  Bruno Haible  <bruno@clisp.org>
77582         * lib/freadseek.c (freadseek): Don't ignore the return value of
77583         freadptr.
77585 2008-03-29  Eric Blake  <ebb9@byu.net>
77587         Add hex float support.
77588         * modules/strtod (Depends-on): Add c-ctype.
77589         (Link): Mention POW_LIB.
77590         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
77591         whitespace between 'e' and exponent.
77592         * tests/test-strtod.c (main): Enable hex float tests.
77593         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
77594         now provides.
77596         Document various strtod bugs, with some fixes.
77597         * doc/posix-functions/strtod.texi (strtod): Document bugs with
77598         "-0x", "inf", "nan", and hex constants.
77599         * doc/posix-functions/atof.texi (atof): Likewise.
77600         * modules/stdlib (Makefile.am): Support strtod.
77601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
77602         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
77603         detect additional strtod bugs.
77604         * lib/stdlib.in.h (rpl_strtod): Add declarations.
77605         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
77606         bool where appropriate.  Parse 'inf' and 'nan'.
77607         * tests/test-strtod.c: New file.
77608         * modules/strtod (Depends-on): Add stdbool, stdlib.
77609         (configure.ac): Turn on module indicator.
77610         * modules/strtod-tests: New module.
77612 2008-03-29  Eric Blake  <ebb9@byu.net>
77614         Fix ftell on mingw.
77615         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
77616         * modules/ftell-tests (Depends-on): Add binary-io.
77617         * modules/ftello-tests (Depends-on): Likewise.
77618         * tests/test-ftell.c (main): Enhance test to cover behavior after
77619         ungetc.  Enforce binary mode.
77620         * tests/test-ftello.c (main): Likewise.
77622         Pass test-freadseek on cygwin.
77623         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
77624         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
77625         ungetc buffer.
77627         * tests/test-fflush2.c (main): Fix typo.
77629 2008-03-29  Bruno Haible  <bruno@clisp.org>
77631         * tests/test-fflush2.c (main): Temporarily disable the contents of
77632         this test.
77633         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
77634         Reported by Eric Blake.
77636 2008-03-28  Simon Josefsson  <simon@josefsson.org>
77638         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
77639         (GC_SHA224_DIGEST_SIZE): Add.
77641         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
77642         (gc_hash_digest_length): Likewise.
77643         (gc_hash_buffer): Likewise.
77645 2008-03-25  Bruno Haible  <bruno@clisp.org>
77647         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
77648         detail which gettext release to use.
77649         Reported by Simon Josefsson.
77651 2008-03-26  Jim Meyering  <meyering@redhat.com>
77653         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
77654         * modules/gnumakefile (clean-GNUmakefile): Also, use
77655         test ... && ... || : syntax rather than if-then ... fi.
77657         gnumakefile: Don't double-quote-expand $(VPATH) value.
77658         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
77660 2008-03-24  Eric Blake  <ebb9@byu.net>
77662         Alter GNUmakefile to install into top directory.
77663         * modules/maintainer-makefile: Split, and add dependency...
77664         * modules/gnumakefile: to this new module.
77665         * build-aux/GNUmakefile: Move...
77666         * top/GNUmakefile: ...here.
77667         * build-aux/maint.mk: Move...
77668         * top/maint.mk: ...here.
77669         * MODULES.html.sh (Support for maintaining...): Document new
77670         module.
77672 2008-03-23  Bruno Haible  <bruno@clisp.org>
77674         * gnulib-tool: New options --vc-files, --no-vc-files.
77675         (func_usage): Document them.
77676         (vc_files): New variable.
77677         (func_import): Consider vc_files.
77678         (func_create_testdir): Set vc_files to empty.
77679         Suggested by Jim Meyering and Karl Berry.
77681 2008-03-23  Bruno Haible  <bruno@clisp.org>
77683         Fix regex compilation error on HP-UX 11.
77684         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
77685         * modules/regex (Files): Add m4/mbstate_t.m4.
77686         Reported by Ton Voon <ton.voon@altinity.com>.
77688 2008-03-23  Bruno Haible  <bruno@clisp.org>
77690         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
77692 2008-03-23  Eric Blake  <ebb9@byu.net>
77693             Bruno Haible  <bruno@clisp.org>
77695         Install files from top/ in the destination directory.
77696         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
77697         augmentation also for the files from top/.
77698         (func_import, func_create_testdir): Rewrite file names:
77699         top/filename -> filename.
77701 2008-03-23  Bruno Haible  <bruno@clisp.org>
77703         Tweak "gnulib --version" output.
77704         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
77706 2008-03-23  Bruno Haible  <bruno@clisp.org>
77708         Tweak "gnulib --version" output.
77709         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
77710         rather than contents of ChangeLog, when possible.
77712 2008-03-21  Eric Blake  <ebb9@byu.net>
77714         More --version tweaks.
77715         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
77716         date of last ChangeLog entry.
77718 2008-03-21  Jim Meyering  <meyering@redhat.com>
77720         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
77722 2008-03-20  Eric Blake  <ebb9@byu.net>
77724         VPATH fix.
77725         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
77727 2008-03-20  Simon Josefsson  <simon@josefsson.org>
77729         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
77730         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
77732 2008-03-20  Eric Blake  <ebb9@byu.net>
77734         Sync GNUmakefile with coreutils.
77735         * build-aux/GNUmakefile (have-Makefile): Rename...
77736         (_have-Makefile): ...to this, for namespace consideration.
77737         (GNUmakefile.cfg): Include, if present.
77738         (_autoreconf): Define a default.
77739         (_is-dist-target): New rule for rebuilds to pick up intra-release
77740         version.
77741         (maint-cfg.mk): Rename...
77742         (cfg.mk): ...to this.
77744 2008-03-18  Jim Meyering  <meyering@redhat.com>
77746         New script and module: mktempd
77747         * MODULES.html.sh (maint+release support): Add mktempd.
77748         * build-aux/mktempd: New file.
77749         * modules/mktempd: New file.
77751 2008-03-15  Jim Meyering  <meyering@redhat.com>
77753         Undo last change.
77754         * lib/sha1.c, lib/md5.c: 63 != ~63.
77755         Reported by Andreas Schwab.
77757         sha1.c, md5.c: Hoist a redundant expression.
77758         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
77759         "ctx->buflen" only once, before calling *_process_block.
77760         * lib/md5.c (md5_process_bytes): Likewise.
77762 2008-03-14  Eric Blake  <ebb9@byu.net>
77764         Bump copyright year in files generated by gnulib-tool.
77765         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
77766         gnulib-tool, rather than hard-coding it.
77768         Fix 'gnulib-tool --version' output to work with git.
77769         * gnulib-tool (func_gnulib_dir): New function, extracted from...
77770         (startup): ...here.
77771         (func_version): Use it to invoke git-version-gen, rather than
77772         relying on CVS keyword expansion.  Modernize wording.
77773         (cvsdatestamp, last_checkin_date, version): Kill unused
77774         variables.
77776 2008-03-12  Jim Meyering  <meyering@redhat.com>
77778         Recognize optional cast of the argument to free.
77779         * build-aux/useless-if-before-free: Update regexps.
77781         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
77783 2008-03-11  Bruno Haible  <bruno@clisp.org>
77785         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
77786         by a single package.
77787         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
77788         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
77789         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
77790         Reported by Sam Steingold <sds@gnu.org>.
77792 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77794         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
77795         repositories.
77797 2008-03-11  Bruno Haible  <bruno@clisp.org>
77799         Avoid conflicts between local macro definitions.
77800         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
77801         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
77803 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
77804             Bruno Haible  <bruno@clisp.org>
77806         Make va_copy work with some version of xlc on AIX 5.1.
77807         * lib/stdarg.in.h: New file.
77808         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
77809         On AIX, use a <stdarg.h> file substitute.
77810         * modules/stdarg (Files): Add lib/stdarg.in.h.
77811         (Depends-on): Add include_next.
77812         (Makefile.am): Build a stdarg.h substitute if requested.
77813         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
77815 2008-03-10  Bruno Haible  <bruno@clisp.org>
77817         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
77818         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
77819         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
77821 2008-03-10  Bruno Haible  <bruno@clisp.org>
77823         * modules/stdlib (Depends-on): Add include_next, remove
77824         absolute-header.
77826 2008-03-09  Bruno Haible  <bruno@clisp.org>
77828         * lib/freadahead.h (freadahead): Document more precisely.
77829         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
77830         the sum of both buffer sizes.
77831         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
77832         * NEWS: Document the change.
77834 2008-03-09  Bruno Haible  <bruno@clisp.org>
77836         Extend freadptr to return also the buffer size.
77837         * lib/freadptr.h (freadptr): Add sizep argument.
77838         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
77839         (freadptr): Add sizep argument. Determine buffer size like freadahead
77840         does.
77841         * tests/test-freadptr.c: Don't include freadahead.h.
77842         (main): Adapt for new calling convention of freadptr.
77843         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
77844         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
77845         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
77846         tests/test-freadptr2.sh.
77847         (Depends): Remove freadahead.
77848         (TESTS): Add test-freadptr2.sh.
77849         (check_PROGRAMS): Add test-freadptr2.
77851 2008-03-09  Bruno Haible  <bruno@clisp.org>
77853         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
77854         Report and solution by Simon Josefsson.
77856 2008-03-06  Bruno Haible  <bruno@clisp.org>
77858         Make fflush after ungetc work on BSD platforms.
77859         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
77860         * tests/test-fflush2.c: New file.
77861         * tests/test-fflush2.sh: New file.
77862         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
77863         tests/test-fflush2.c.
77864         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
77865         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
77867 2008-03-06  Eric Blake  <ebb9@byu.net>
77869         Likewise for ftello.
77870         * modules/ftello (Dependencies): Add extensions.
77871         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
77873 2008-03-06  Bruno Haible  <bruno@clisp.org>
77875         * modules/fseeko (Dependencies): Add extensions.
77876         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
77877         Needed on glibc systems.
77879 2008-03-06  Bruno Haible  <bruno@clisp.org>
77881         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
77882         email address.
77883         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77885 2008-03-06  Bruno Haible  <bruno@clisp.org>
77887         * users.txt: Add libgnupdf.
77889 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
77891         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
77892         (Header File Substitutes, Function Substitutes,
77893         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
77894         (Build robot for gnulib): Fix typo.
77896 2008-03-06  Bruno Haible  <bruno@clisp.org>
77898         * doc/gnulib-tool.texi (VCS Issues): Small updates.
77899         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77901 2008-03-06  Bruno Haible  <bruno@clisp.org>
77903         * doc/func.texi: New file, extracted from doc/gnulib.texi.
77904         * doc/gnulib.texi: Include it.
77906 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77908         * modules/func (License): Change license to unlimited; there was
77909         no LGPL parts in the module anyway.
77911 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77913         * modules/__func__: Renamed to modules/func.
77914         * modules/__func__-tests: Renamed to modules/func-tests.
77915         * tests/test-__func__.c: Renamed to tests/test-func.c.
77916         * m4/__func__.m4: Renamed to m4/func.m4.
77917         * doc/gnulib.texi (__func__): Section renamed to func.
77918         Suggested by Eric Blake <ebb9@byu.net>.
77920 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77922         * doc/gnulib.texi (__func__): Use C99 terminology when talking
77923         about __func__.  Make example self-contained.  Suggested by Eric
77924         Blake <ebb9@byu.net>.
77926         * tests/test-__func__.c (main): Avoid extraneous () around __func.
77927         Suggested by Eric Blake <ebb9@byu.net>.
77929 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77931         * modules/__func__: New file.
77932         * modules/__func__-tests: New file.
77933         * tests/test-__func__.c: New file.
77934         * m4/__func__.m4: New file.
77935         * doc/gnulib.texi (__func__): Document __func__ module.
77937 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77939         * modules/byteswap (License): Re-license as LGPLv2+.
77941 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77943         * doc/Makefile: Add pdf target.
77945 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77947         * modules/inline (License): Use 'unlimited', since there are only
77948         *.m4 files in this module.
77950 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
77951             Bruno Haible  <bruno@clisp.org>
77953         Add support for HP C 7.1 on OpenVMS 8.3.
77954         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
77956 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
77958         Update VMS specifics.
77959         * lib/getopt.c [VMS]: Remove include of unixlib.h.
77961 2008-03-02  Jim Meyering  <meyering@redhat.com>
77963         Remove the last dependency on the "free" module.
77964         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
77965         Reported by Bob Proulx.
77967         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
77969         Remove useless "if" tests before free.  Deprecate "free" module.
77970         * doc/posix-functions/free.texi: Mention that this
77971         module is no longer useful.
77972         * modules/free (Notice): Say this module is obsolete.
77973         * modules/readutmp (Depends-on): Remove free.
77974         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
77975         * lib/putenv.c (putenv): Likewise.
77976         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
77977         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
77978         * tests/test-c-strcasestr.c (main): Likewise.
77979         * tests/test-c-strstr.c (main): Likewise.
77980         * tests/test-mbscasestr1.c (main): Likewise.
77981         * tests/test-mbscasestr2.c (main): Likewise.
77982         * tests/test-mbsstr1.c (main): Likewise.
77983         * tests/test-mbsstr2.c (main): Likewise.
77984         * tests/test-memmem.c (main): Likewise.
77985         * tests/test-strcasestr.c (main): Likewise.
77986         * tests/test-striconv.c (main): Likewise.
77987         * tests/test-striconveh.c (main): Likewise.
77988         * tests/test-striconveha.c (main): Likewise.
77989         * tests/test-strstr.c (main): Likewise.
77991         * build-aux/git-version-gen: Adjust a comment and the Usage string.
77993         bootstrap: sync from coreutils again
77994         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
77996 2008-03-01  Jim Meyering  <meyering@redhat.com>
77998         bootstrap: sync from coreutils
77999         * build-aux/bootstrap (update_po_files): Copy a .po file into place
78000         also when the target doesn't exist.
78002 2008-03-01  Eric Blake  <ebb9@byu.net>
78004         Fix bugs in last patch.
78005         * lib/memchr2.c (memchr2): Fix typo.
78006         * tests/test-memchr2.c: Test previous bug, and don't use GNU
78007         extension.
78008         Reported by Bruce Korb.
78010         New module 'memchr2'.
78011         * modules/memchr2: New file.
78012         * modules/memchr2-tests: Likewise.
78013         * lib/memchr2.h: Likewise.
78014         * lib/memchr2.c: Likewise, based on memchr.c.
78015         * tests/test-memchr2.c: New test.
78016         * MODULES.html.sh (String handling): Add memchr2.
78018 2008-02-29  Bruno Haible  <bruno@clisp.org>
78020         * modules/freadseek-tests: New file.
78021         * tests/test-freadseek.sh: New file.
78022         * tests/test-freadseek.c: New file.
78024         New module 'freadseek'.
78025         * modules/freadseek: New file.
78026         * lib/freadseek.h: New file.
78027         * lib/freadseek.c: New file.
78028         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
78030 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
78032         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
78033         wydawca.
78035         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
78036         program_invocation_name and program_invocation_short_name are
78037         present.
78039 2008-02-28  Bruno Haible  <bruno@clisp.org>
78041         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
78042         * tests/test-freadptr.sh: Also test non-seekable stdin.
78044 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
78046         * build-aux/bootstrap (source_base, m4_base)
78047         (doc_base, tests_base): New variables.
78048         (gnulib_tool_options): Do not hardcode base directories, use
78049         the above variables instead.
78051 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
78053         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
78055 2008-02-28  Bruno Haible  <bruno@clisp.org>
78057         * modules/freadptr-tests: New file.
78058         * tests/test-freadptr.sh: New file.
78059         * tests/test-freadptr.c: New file.
78061         New module 'freadptr'.
78062         * modules/freadptr: New file.
78063         * lib/freadptr.h: New file.
78064         * lib/freadptr.c: New file.
78065         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
78067 2008-02-26  Karl Berry  <karl@freefriends.org>
78069         Sync from Libtool:
78070         * libltdl/argz.c (argz_add, argz_count): New functions.
78071         * libltdl/argz.in.h: Declare them.
78072         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
78074 2008-02-22  Bruno Haible  <bruno@clisp.org>
78076         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
78077         is a pointer type.  Needed for HP-UX 10.
78078         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
78079         * doc/posix-functions/gmtime_r.texi: Likewise.
78080         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
78082 2008-02-24  Bruno Haible  <bruno@clisp.org>
78084         * modules/environ-tests: New file.
78085         * tests/test-environ.c: New file.
78087         New module 'environ'.
78088         * modules/environ: New file.
78089         * lib/unistd.in.h (environ): New declaration.
78090         * m4/environ.m4: New file.
78091         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
78092         after use.
78093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
78094         HAVE_DECL_ENVIRON.
78095         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
78096         HAVE_DECL_ENVIRON.
78097         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
78098         wrong claim that 'environ' is missing on some systems.
78099         * modules/execute (Depends-on): Add environ.
78100         * lib/execute.c (environ): Remove fallback declaration.
78101         * modules/pipe (Depends-on): Add environ.
78102         * lib/pipe.c (environ): Remove fallback declaration.
78103         * modules/setenv (Depends-on): Add environ.
78104         * lib/setenv.c (environ): Remove fallback declaration.
78105         * modules/unsetenv (Depends-on): Add environ.
78106         * lib/unsetenv.c (environ): Remove fallback declaration.
78107         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
78108         m4/environ.m4.
78109         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
78110         (gl_PREREQ_UNSETENV): Likewise.
78112 2008-02-24  Bruno Haible  <bruno@clisp.org>
78114         * doc/posix-functions/environ.texi: Document the MacOS X problem.
78116 2008-02-20  Bob Proulx  <bob@proulx.com>
78118         Enable use of older two part flavor 'git describe'.
78119         * build-aux/git-version-gen: If using the older two part flavor of
78120         git version then recreate the third part now present in the
78121         newer three part flavor of git describe.
78123 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
78125         * lib/fts.c (fts_build): Typo correction to comment.
78127 2008-02-17  Bruno Haible  <bruno@clisp.org>
78129         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
78130         generating no-op conflicts.
78132 2008-02-17  Bruno Haible  <bruno@clisp.org>
78134         Speed up by 10%.
78135         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
78136         result_entries, rather than an index-based loop.
78138 2008-02-17  Bruno Haible  <bruno@clisp.org>
78140         Speed up by 25%.
78141         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
78142         'hashcode_cached'.
78143         (entry_create): New function.
78144         (entry_hashcode): Use the cached hashcode if possible.
78145         (read_changelog_file, try_split_merged_entry): Use entry_create.
78147 2008-02-17  Bruno Haible  <bruno@clisp.org>
78149         Speed up from O(n^2) to O(n) for long ChangeLog files.
78150         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
78151         (read_changelog_file): Change implementation of entries_reversed list
78152         to rbtreehash.
78153         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
78155 2008-02-17  Bruno Haible  <bruno@clisp.org>
78157         New option --split-merged-entry.
78158         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
78159         (find_paragraph_end, try_split_merged_entry): New functions.
78160         (long_options): Add option --split-merged-entry.
78161         (usage): Document option --split-merged-entry.
78162         (main): Implement option --split-merged-entry.
78163         Reported by Eric Blake.
78165 2008-02-17  Bruno Haible  <bruno@clisp.org>
78167         * lib/git-merge-changelog.c: Include c-strstr.h.
78168         (main): Support the "git pull --rebase" situation.
78169         * modules/git-merge-changelog (Depends-on): Add c-strstr.
78170         Reported by Eric Blake.
78172 2008-02-16  Eric Blake  <ebb9@byu.net>
78174         Avoid doubling \ in common case of "c-maybe" quoting style.
78175         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
78176         eliding outer quotes.
78177         * lib/quotearg.h: Document this.
78178         * tests/test-quotearg.c (result_strings, inputs, results_g)
78179         (flag_results, locale_results): Test it by adding a new string to
78180         each test group.
78181         (compare_strings): Test new string.
78183 2008-02-13  Eric Blake  <ebb9@byu.net>
78185         Avoid trigraph quoting in default output.
78186         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
78187         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
78188         unless explicitly requested.
78189         * tests/test-quotearg.c (flag_results, main): Add additional tests.
78191 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
78193         Don't rely on signed integer overflowing to negative value.
78194         * lib/getugroups.c (getugroups): Include <limits.h>.
78195         Instead, compare against INT_MAX, and increment only if the test passes.
78197 2008-02-13  Jim Meyering  <meyering@redhat.com>
78198         and Eric Blake  <ebb9@byu.net>
78200         Avoid shadowing warning and compile errors on Linux.
78201         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
78202         forwarding macros on Linux.
78203         (dcgettext): Define a stub, for Linux.
78204         (results_g, main): Avoid warnings.
78206 2008-02-12  Eric Blake  <ebb9@byu.net>
78208         Silence warning in last patch.
78209         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
78211         Quotearg part 4: add tests, fix c-maybe colon quoting.
78212         * lib/quotearg.h: Improve documentation.
78213         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
78214         escapes when adding outer quotes.  When quoting trigraphs, use
78215         valid C notation.  When quoting NUL, omit extra characters if next
78216         character is not digit.  Alter prototype.
78217         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
78218         callers.
78219         * modules/quotearg-tests: New module.
78220         * tests/test-quotearg.c: New test.
78222 2008-02-07  Eric Blake  <ebb9@byu.net>
78224         Quotearg part 3: add flag to control outer quote elision.
78225         * lib/quotearg.h (c_maybe_quoting_style): New style.
78226         (enum quoting_flags): Better documentation of flags.
78227         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
78228         c-maybe style.
78229         (quotearg_buffer_restyled): Handle new flag to elide outer
78230         quotes.
78232         Quotearg part 2: add flag that can control NUL elision.
78233         * lib/quotearg.h (set_quoting_flags): New prototype.
78234         * lib/quotearg.c (struct quoting_options): Add flag field.
78235         (set_quoting_flags): New function.
78236         (quotearg_buffer_restyled): Add flags parameter.
78237         (quotearg_alloc_mem): Set the flag if length cannot be returned.
78238         (quotearg_n_options): Set the flag, since length cannot be
78239         returned.
78240         (quoting_options_from_style): Default flags correctly.
78242         Quotearg part 1: more wrappers, restore quotearg_char state.
78243         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
78244         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
78245         (quotearg_colon_mem): New wrappers.
78246         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
78247         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
78248         functions.
78249         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
78250         (quotearg_colon_mem): New functions.
78252 2008-02-11  Bruno Haible  <bruno@clisp.org>
78254         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
78255         library in the current directory: it does not work with parallel make.
78256         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78258 2008-02-11  Bruno Haible  <bruno@clisp.org>
78260         * .gitattributes: New file.
78262 2008-02-11  Jim Meyering  <meyering@redhat.com>
78264         useless-if-before-free: Fix reversed exit values.
78265         * build-aux/useless-if-before-free: Use correct values
78266         for EXIT_MATCH and EXIT_NO_MATCH.
78268         * build-aux/useless-if-before-free: Close stdout carefully.
78270 2008-02-10  Bruno Haible  <bruno@clisp.org>
78272         New module 'git-merge-changelog'.
78273         * modules/git-merge-changelog: New file.
78274         * lib/git-merge-changelog.c: New file.
78276 2008-02-10  Jim Meyering  <meyering@redhat.com>
78278         useless-if-before-free: New option: --list (-l).
78280         useless-if-before-free: Don't exit immediately upon open failure.
78281         * build-aux/useless-if-before-free: Exit 2 for errors.
78282         Upon failure to open a file, don't exit immediately.
78283         Rather, just warn and continue with any remaining files.
78285 2008-02-10  Bruno Haible  <bruno@clisp.org>
78287         New abstract list operation 'node_set_value'.
78288         * lib/gl_list.h (gl_list_node_set_value): New function.
78289         (struct gl_list_implementation): New field node_set_value.
78290         * lib/gl_list.c (gl_list_node_set_value): New function.
78291         * lib/gl_array_list.c (gl_array_node_set_value): New function.
78292         (gl_array_list_implementation): Update.
78293         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
78294         (gl_carray_list_implementation): Update.
78295         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
78296         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78297         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78298         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
78299         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78300         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78301         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78302         Update.
78303         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78304         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
78305         (gl_sublist_list_implementation): Update.
78307 2008-02-10  Bruno Haible  <bruno@clisp.org>
78309         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
78310         Needed when ELEMENT is #defined to 'some_type *'.
78312 2008-02-10  Jim Meyering  <meyering@redhat.com>
78314         New script and module: useless-if-before-free
78315         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
78316         * build-aux/useless-if-before-free: New file.
78317         * modules/useless-if-before-free: New file.
78319         * build-aux/gitlog-to-changelog: Use committer date, not author date.
78321         xstrtol_error: Fix typo.
78322         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
78323         s/exit_failure/exit_status/.
78325 2008-02-09  Jim Meyering  <meyering@redhat.com>
78327         New script and module: gitlog-to-changelog
78328         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
78329         * modules/gitlog-to-changelog: New file.
78330         * build-aux/gitlog-to-changelog: New file.
78332 2008-02-08  Jim Meyering  <meyering@redhat.com>
78334         Avoid two "parameter unused" warnings.
78335         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
78336         Mark "st" as used.
78338         Use "git COMMAND", not "git-COMMAND".
78339         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
78340         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
78341         * build-aux/git-version-gen: Use "git status", not "git-status".
78343 2008-02-07  Bruno Haible  <bruno@clisp.org>
78345         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
78346         Avoids a crash on Windows Vista.
78347         Reported by Adam Strzelecki <ono@java.pl> via
78348         Simon Josefsson <simon@josefsson.org>.
78350 2008-02-06  Bruno Haible  <bruno@clisp.org>
78352         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
78353         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
78354         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
78355         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
78356         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
78357         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
78358         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
78359         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
78360         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
78361         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
78362         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
78363         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
78364         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
78365         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78366         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
78367         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
78368         left-adjust flag.
78369         * tests/test-snprintf-posix.h (test_function): Likewise.
78370         * tests/test-sprintf-posix.h (test_function): Likewise.
78371         * tests/test-vasprintf-posix.c (test_function): Likewise.
78372         * doc/posix-functions/fprintf.texi: Update.
78373         * doc/posix-functions/printf.texi: Update.
78374         * doc/posix-functions/snprintf.texi: Update.
78375         * doc/posix-functions/sprintf.texi: Update.
78376         * doc/posix-functions/vfprintf.texi: Update.
78377         * doc/posix-functions/vprintf.texi: Update.
78378         * doc/posix-functions/vsnprintf.texi: Update.
78379         * doc/posix-functions/vsprintf.texi: Update.
78380         Reported by Peter Fales <psfales@alcatel-lucent.com>.
78382 2008-02-06  Bruno Haible  <bruno@clisp.org>
78384         Fix bug introduced on 2008-01-26.
78385         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
78387 2008-02-06  Bruno Haible  <bruno@clisp.org>
78389         Fix bug introduced on 2007-06-10.
78390         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
78391         !NEED_PRINTF_FLAG_ZERO.
78393 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
78395         getloadavg: use libperfstat on AIX5
78396         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
78398 2008-02-03  Bruno Haible  <bruno@clisp.org>
78400         * lib/diffseq.h: Add comments about required #includes.
78401         Reported by Michael Biggs <gnulib@doubleplum.net>.
78403 2008-02-01  Bruno Haible  <bruno@clisp.org>
78405         * users.txt: Add gnuit.
78407 2008-01-31  Bruno Haible  <bruno@clisp.org>
78409         * lib/md4.c (set_uint32): Mark as inline.
78410         * lib/md5.c (set_uint32): Likewise.
78411         * lib/sha1.c (set_uint32): Likewise.
78412         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
78413         * m4/md5.m4 (gl_MD5): Likewise.
78414         * m4/sha1.m4 (gl_SHA1): Likewise.
78416 2008-01-31  Jim Meyering  <meyering@redhat.com>
78418         Use "sizeof VAR", rather than a literal "4".
78419         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
78420         * lib/md4.c (md4_read_ctx): Likewise.
78421         * lib/sha1.c (sha1_read_ctx): Likewise.
78423 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78425         * tests/test-sha1.c: New file, based on test-md5.c.
78427         * modules/crypto/sha1-tests: New file.
78429 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78431         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
78433 2008-01-31  Jim Meyering  <meyering@redhat.com>
78435         Prefer "sizeof v" over the equivalent "4".
78436         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
78437         * lib/md5.c (set_uint32): Likewise.
78438         * lib/sha1.c (set_uint32): Likewise.
78440 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78442         * lib/sha1.c (set_uint32): Mark function as static.
78444 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78446         md2: clarify comments to say that alignment is not required.
78447         * lib/md2.h: Remove warning about alignment in comment.
78448         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
78449         never been required.
78451 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78453         md4: adapt alignment constraint fix from sha1.
78454         * lib/md4.c (set_uint32): New function, from sha1.c
78455         (md4_read_ctx): Use it.
78456         (md4_finish_ctx): Doc fix.
78457         * lib/md4.h: Doc fix.
78459 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78461         md5: adapt alignment constraint fix from sha1.
78462         * lib/md5.c (set_uint32): New function, from sha1.c
78463         (md5_read_ctx): Use it.
78464         (md5_finish_ctx): Doc fix.
78465         * lib/md5.h: Doc fix.
78467 2008-01-30  Peter Palfrader  <weasel@debian.org>
78469         sha1: remove the result buffer alignment constraint
78470         * lib/sha1.c (set_uint32): New function.
78471         (sha1_read_ctx): Rewrite to remove the result buffer alignment
78472         constraint.
78473         (sha1_finish_ctx): Remove comment warning about alignment constraint.
78474         * lib/sha1.h: Likewise.
78476 2008-01-30  Andreas Schwab  <schwab@suse.de>
78477             Bruno Haible  <bruno@clisp.org>
78479         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
78480         correct definition of LDBL_MIN_EXP.
78482 2008-01-30  Karl Berry  <karl@gnu.org>
78484         * config/srclist-update: try to preserve x bit on updates.
78485         * config/srclistvars.sh: update for karl.
78487 2008-01-29  Jim Meyering  <meyering@redhat.com>
78489         vasnprintf.c: Avoid warning about unused label
78490         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
78491         "overflow" label definition and associated code with the
78492         same cpp condition that guards the sole use of that label.
78494 2008-01-26  Bruno Haible  <bruno@clisp.org>
78496         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
78497         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
78498         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
78499         * lib/isnanl-nolibm.h (isnanl): Likewise.
78500         Reported by Paul Eggert <eggert@cs.ucla.edu>.
78502 2008-01-26  Bruno Haible  <bruno@clisp.org>
78504         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
78505         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
78507 2008-01-26  Bruno Haible  <bruno@clisp.org>
78509         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
78510         GCC >= 4.0 built-in.
78511         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
78513 2008-01-26  Bruno Haible  <bruno@clisp.org>
78515         Rename isnan, applicable to 'double' only, to isnand.
78516         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
78517         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
78518         (configure.ac): Update.
78519         (Include): Replace "isnan.h" with "isnand.h".
78520         * m4/isnand.m4: Renamed from m4/isnan.m4.
78521         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
78522         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
78523         instead of isnan.c.
78524         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
78525         instead of HAVE_ISNAN_IN_LIBC.
78526         (isnand): Renamed from isnan.
78527         * lib/isnand.c: New file.
78528         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
78529         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
78530         (Makefile.am): Update.
78531         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
78532         Include isnand.h instead of isnan.h.
78533         (main): Test isnand instead of isnan.
78534         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
78535         isnan-nolibm.
78536         * modules/frexp (Depends-on): Likewise.
78537         * modules/frexp-tests (Depends-on): Likewise.
78538         * modules/frexp-nolibm (Depends-on): Likewise.
78539         * modules/frexp-nolibm-tests (Depends-on): Likewise.
78540         * modules/isfinite (Depends-on): Likewise.
78541         * modules/round-tests (Depends-on): Likewise.
78542         * modules/signbit (Depends-on): Likewise.
78543         * modules/signbit-tests (Depends-on): Likewise.
78544         * modules/snprintf-posix (Depends-on): Likewise.
78545         * modules/sprintf-posix (Depends-on): Likewise.
78546         * modules/trunc-tests (Depends-on): Likewise.
78547         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
78548         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
78549         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
78550         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
78551         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
78552         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
78553         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
78554         * modules/vasnprintf-posix (Depends-on): Likewise.
78555         * modules/vasprintf-posix (Depends-on): Likewise.
78556         * modules/vfprintf-posix (Depends-on): Likewise.
78557         * modules/vsnprintf-posix (Depends-on): Likewise.
78558         * modules/vsprintf-posix (Depends-on): Likewise.
78559         * lib/frexp.c: Include isnand.h instead of isnan.h.
78560         (ISNAN): Set to isnand instead of isnan.
78561         * lib/isfinite.c: Include isnand.h instead of isnan.h.
78562         (gl_isfinited): Use isnand instead of isnan.
78563         * lib/signbitd.c: Include isnand.h instead of isnan.h.
78564         (gl_signbitd): Use isnand instead of isnan.
78565         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
78566         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
78567         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
78568         (main): Use isnand instead of isnan.
78569         * tests/test-round1.c: Include isnand.h.
78570         (main): Use isnand instead of isnan.
78571         * tests/test-round2.c: Include isnand.h instead of isnan.h.
78572         (ISNAN): Set to isnand instead of isnan.
78573         * tests/test-trunc1.c: Include isnand.h.
78574         (main): Use isnand instead of isnan.
78575         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
78576         (equal): Use isnand instead of isnan.
78577         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
78578         isnand-nolibm.
78579         * NEWS: Mention the change.
78581 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78582             Bruno Haible  <bruno@clisp.org>
78584         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
78585         the GCC builtins for signbits are present and set
78586         REPLACE_SIGNBIT_USING_GCC if so.
78587         * lib/math.in.h (signbit): Define using GCC builtins if
78588         REPLACE_SIGNBIT_USING_GCC is set.
78589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
78590         REPLACE_SIGNBIT_USING_GCC.
78591         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
78593 2008-01-25  Jim Meyering  <meyering@redhat.com>
78595         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
78596         * lib/poll.c: Include <config.h>, not "config.h".
78597         * tests/test-getaddrinfo.c: Likewise.
78599 2008-01-25  Simon Josefsson  <simon@josefsson.org>
78601         * modules/sockets-tests: New file.
78603 2008-01-24  Simon Josefsson  <simon@josefsson.org>
78605         * modules/sockets: New module, can be used to call WSA_Startup and
78606         WSA_Cleanup when needed.
78608         * lib/sockets.h, lib/sockets.c: New files.
78610         * m4/sockets.m4: New file.
78612         * tests/test-sockets.c: New file.
78614 2008-01-19  Bruno Haible  <bruno@clisp.org>
78616         * doc/posix-headers: Renamed from doc/headers.
78617         * doc/posix-functions: Renamed from doc/functions.
78618         * doc/gnulib.texi: Update.
78620 2008-01-19  Bruno Haible  <bruno@clisp.org>
78622         * doc/glibc-functions/strcasestr.texi: Include contents of
78623         doc/functions/strcasestr.texi, fixing the list of platforms.
78624         * doc/functions/strcasestr.texi: Remove file.
78626 2008-01-19  Bruno Haible  <bruno@clisp.org>
78628         * doc/glibc-functions/memmem.texi: Include contents of
78629         doc/functions/memmem.texi.
78630         * doc/functions/memmem.texi: Remove file.
78632 2008-01-18  Bruno Haible  <bruno@clisp.org>
78634         * doc/glibc-functions/*.texi: New files.
78635         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
78636         to use the new files.
78638 2008-01-17  Bruno Haible  <bruno@clisp.org>
78640         * tests/test-gethostname.c (main): Fix printf statement.
78642 2008-01-17  Simon Josefsson  <simon@josefsson.org>
78644         * modules/gethostname-tests: New file.
78646         * tests/test-gethostname.c: New file.
78648 2008-01-17  Simon Josefsson  <simon@josefsson.org>
78650         * lib/gethostname.c: Include string.h unconditionally, strncpy is
78651         used by the UNAME case.  Reported by Bruno Haible
78652         <bruno@clisp.org>.
78654 2008-01-17  Eric Blake  <ebb9@byu.net>
78656         Convert c-strcasestr to be more efficient.
78657         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
78658         (Depends-on): Add c-strcase, remove malloca, strnlen.
78659         * tests/test-c-strcasestr.c (main): Enhance test.
78660         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
78662 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
78664         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
78665         Use it in creating po/Makevars.
78667 2008-01-15  Simon Josefsson  <simon@josefsson.org>
78669         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
78670         Applications that requires it should initialize libgcrypt
78671         manually.
78673 2008-01-16  Simon Josefsson  <simon@josefsson.org>
78675         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
78677 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
78679         Fix problem with getdate on mingw32 reported by Simon Josefsson
78680         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
78681         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
78682         tzname", when deciding whether to declare tzname.
78683         * lib/strftime.c (tzname): Likewise.
78685 2008-01-15  Bruno Haible  <bruno@clisp.org>
78687         Work around a MacOS X 10.5 bug in frexpl().
78688         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
78689         * doc/functions/frexpl.texi: Document the bug.
78690         Reported by Elias Pipping <pipping@gentoo.org>.
78692 2008-01-14  Eric Blake  <ebb9@byu.net>
78694         Touch up previous patch.
78695         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
78696         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
78698         Convert strcasestr module to use Two-Way algorithm.
78699         * modules/strcasestr-simple: New module, based on the old
78700         strcasestr, but with Two-Way rather than KMP.
78701         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
78702         * lib/string.in.h (rpl_strcasestr): Declare.
78703         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
78704         performance.
78705         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
78706         * modules/string (Makefile.am): Support strcasestr.
78707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
78708         * modules/strcasestr-tests (Depends-on): Check for alarm.
78709         * tests/test-strcasestr.c: Augment test.
78710         * lib/str-two-way.h: Clean up stray macro.
78711         * NEWS: Document new module.
78712         * MODULES.html.sh (string handling): Likewise.
78713         * doc/functions/strcasestr.texi: New file.
78714         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
78715         here, since it is not a POSIX function.
78717 2008-01-14  Colin Watson  <cjwatson@debian.org>
78718             Bruno Haible  <bruno@clisp.org>
78720         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
78721         works fine; if not, set REPLACE_STRSIGNAL.
78722         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
78723         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
78724         REPLACE_STRSIGNAL.
78725         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
78726         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
78727         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
78729 2008-01-14  Bruno Haible  <bruno@clisp.org>
78731         * modules/strsignal (Include): Change to <string.h>.
78733 2008-01-14  Colin Watson  <cjwatson@debian.org>
78735         * modules/argp (Notice): Add a notice recommending to change
78736         XGETTEXT_OPTIONS.
78737         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
78739 2008-01-13  Colin Watson  <cjwatson@debian.org>
78741         * modules/strsignal-tests: New file.
78742         * tests/test-strsignal.c: New file.
78744         * lib/strsignal.c: New file, from glibc with modifications.
78745         * lib/siglist.h: New file, from glibc with modifications.
78746         * lib/string.in.h (strsignal): New declaration.
78747         * m4/strsignal.m4: New file.
78748         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
78749         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
78750         * modules/strsignal: New file.
78751         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
78752         HAVE_DECL_STRSIGNAL.
78754 2008-01-13  Bruno Haible  <bruno@clisp.org>
78756         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
78757         locale encoding is not ASCII. Needed for OpenBSD 4.0.
78758         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
78759         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
78761 2008-01-13  Bruno Haible  <bruno@clisp.org>
78763         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
78764         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
78765         * lib/argp.h (__attribute__): Likewise.
78766         * lib/c-stack.c (__attribute__): Likewise.
78767         * lib/error.h (__attribute__): Likewise.
78768         * lib/fts.c (__attribute__): Likewise.
78769         * lib/openat.h (__attribute__): Likewise.
78770         * lib/stdio.in.h (__attribute__): Likewise.
78771         * lib/string.in.h (__attribute__): Likewise.
78772         * lib/utimens.c (__attribute__): Likewise.
78773         * lib/vasnprintf.h (__attribute__): Likewise.
78774         * lib/xalloc.h (__attribute__): Likewise.
78775         * lib/xprintf.h (__attribute__): Likewise.
78776         * lib/xstrtol.h (__attribute__): Likewise.
78777         * lib/xvasprintf.h (__attribute__): Likewise.
78779 2008-01-12  Bruno Haible  <bruno@clisp.org>
78781         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
78782         * doc/glibc-headers/a.out.texi: New file.
78783         * doc/glibc-headers/aliases.texi: New file.
78784         * doc/glibc-headers/alloca.texi: New file.
78785         * doc/glibc-headers/ar.texi: New file.
78786         * doc/glibc-headers/argp.texi: New file.
78787         * doc/glibc-headers/argz.texi: New file.
78788         * doc/glibc-headers/byteswap.texi: New file.
78789         * doc/glibc-headers/crypt.texi: New file.
78790         * doc/glibc-headers/endian.texi: New file.
78791         * doc/glibc-headers/envz.texi: New file.
78792         * doc/glibc-headers/err.texi: New file.
78793         * doc/glibc-headers/error.texi: New file.
78794         * doc/glibc-headers/execinfo.texi: New file.
78795         * doc/glibc-headers/fpu_control.texi: New file.
78796         * doc/glibc-headers/fstab.texi: New file.
78797         * doc/glibc-headers/fts.texi: New file.
78798         * doc/glibc-headers/getopt.texi: New file.
78799         * doc/glibc-headers/ieee754.texi: New file.
78800         * doc/glibc-headers/ifaddrs.texi: New file.
78801         * doc/glibc-headers/libintl.texi: New file.
78802         * doc/glibc-headers/mcheck.texi: New file.
78803         * doc/glibc-headers/mntent.texi: New file.
78804         * doc/glibc-headers/obstack.texi: New file.
78805         * doc/glibc-headers/paths.texi: New file.
78806         * doc/glibc-headers/printf.texi: New file.
78807         * doc/glibc-headers/pty.texi: New file.
78808         * doc/glibc-headers/resolv.texi: New file.
78809         * doc/glibc-headers/shadow.texi: New file.
78810         * doc/glibc-headers/sysexits.texi: New file.
78811         * doc/glibc-headers/ttyent.texi: New file.
78813 2008-01-12  Jim Meyering  <meyering@redhat.com>
78815         announce-gen: emit Gnulib's git-based version string.
78816         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
78817         New option --gnulib-version=V, where V is expected to be
78818         the output of running git describe in the gnulib directory.
78819         (get_tool_versions): Request feedback on xdelta.  I suspect it's
78820         not useful, and plan to stop publishing an xdelta file with each
78821         coreutils release.
78823         * build-aux/announce-gen: Also check for lzma-compressed files.
78825 2008-01-11  Bruno Haible  <bruno@clisp.org>
78827         * tests/test-memmem.c (main): Increase maximum allowed time.
78828         * tests/test-strstr.c (main): Likewise.
78830 2008-01-11  Bruno Haible  <bruno@clisp.org>
78832         * doc/functions/memmem.texi: Add more precisions about platforms.
78833         * doc/functions/strstr.texi: Likewise.
78835 2008-01-10  Eric Blake  <ebb9@byu.net>
78837         * m4/strstr.m4: Delete cruft from copy-n-paste.
78838         Reported by Bruno Haible.
78840 2008-01-10  Bruno Haible  <bruno@clisp.org>
78842         Make c-strstr rely on strstr.
78843         * lib/c-strstr.c: Don't include str-kmp.h.
78844         (c_strstr): Define in terms of strstr.
78845         * modules/c-strstr (Files): Remove lib/str-kmp.h.
78846         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
78848 2008-01-10  Bruno Haible  <bruno@clisp.org>
78850         * doc/gnulib.texi (String Functions in C Locale): New section.
78851         * doc/c-ctype.texi: New file.
78852         * doc/c-strcase.texi: New file.
78853         * doc/c-strcaseeq.texi: New file.
78854         * doc/c-strcasestr.texi: New file.
78855         * doc/c-strstr.texi: New file.
78856         * doc/c-strtod.texi: New file.
78857         * doc/c-strtold.texi: New file.
78859 2008-01-10  Eric Blake  <ebb9@byu.net>
78861         * lib/relocatable.h: Fix a comment.
78863 2008-01-10  Eric Blake  <ebb9@byu.net>
78865         Share two-way algorithm.
78866         * lib/str-two-way.h: New file, merged from...
78867         * lib/memmem.c: ...here...
78868         * lib/strstr.c: ...and here.
78869         * modules/memmem (Files): Use it.
78870         * modules/strstr (Files): Likewise.
78872         Avoid quadratic strstr implementations.
78873         * lib/strstr.c: New file.
78874         * m4/strstr.m4: Likewise.
78875         * modules/strstr: Likewise.
78876         * modules/strstr-tests: Likewise.
78877         * tests/test-strstr.c: Likewise.
78878         * lib/string.in.h (rpl_strstr): Declare.
78879         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
78880         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
78881         * modules/string (Makefile.am): Likewise.
78882         * MODULES.html.sh (string handling): Mention new module.
78883         * doc/functions/strstr.texi (strstr): Document the bug.
78885 2008-01-10  Bruno Haible  <bruno@clisp.org>
78887         * lib/relocatable.h (relocate): State whether result is freshly
78888         allocated or not.
78889         * lib/relocatable.c (relocate): Return a freshly allocated string
78890         instead of a pointer to a privately held string.
78891         Reported by Sylvain Beucler <beuc@gnu.org>.
78893 2008-01-10  Colin Watson  <cjwatson@debian.org>
78895         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
78896         s/S_ISNLK/S_ISLNK/.
78898 2008-01-09  Bruno Haible  <bruno@clisp.org>
78900         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
78901         and other files.
78902         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
78903         if it's only a guess.
78904         * modules/memmem: Simplify by depending on memmem-simple.
78906 2008-01-09  Bruno Haible  <bruno@clisp.org>
78908         Work around OpenBSD 4.0 tdelete() bug.
78909         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
78910         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
78911         macros and don't redefine the enum values.
78912         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
78913         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
78914         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
78916 2008-01-09  Bruno Haible  <bruno@clisp.org>
78918         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
78919         (main): Don't perform the tests if setlocale did not install a UTF-8
78920         locale. Needed on OpenBSD 4.0.
78921         * modules/wcwidth-tests (Depends-on): Add localcharset.
78923 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78925         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
78926         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
78927         * NEWS: announce this.
78928         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
78930 2008-01-09  Simon Josefsson  <simon@josefsson.org>
78931         and Eric Blake  <ebb9@byu.net>
78933         Add memmem-simple module.
78934         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
78935         (gl_FUNC_MEMMEM): Separate performance from presence checks.
78936         * modules/memmem-simple: New file.
78937         * modules/memmem (Description): Tweak.
78938         * MODULES.html.sh (string handling): Mention new module.
78939         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
78940         addressed by memmem-simple.
78941         * NEWS: Document the difference.
78943 2008-01-09  Eric Blake  <ebb9@byu.net>
78945         Give gcc some memmem optimization hints.
78946         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
78947         (strcasestr): Declare as pure.
78948         * modules/memmem (Maintainer): Claim my implementation.
78950 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78952         Support AIX 6.1 and higher.
78953         * build-aux/config.libpath: Likewise.
78954         * build-aux/config.rpath: Likewise.
78956 2008-01-08  Jim Meyering  <meyering@redhat.com>
78957             Bruno Haible  <bruno@clisp.org>
78959         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
78960         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
78961         Reported by Peter Fales in
78962         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
78964 2008-01-08  Bruno Haible  <bruno@clisp.org>
78966         * modules/unictype/category-of (Depends-on): Add
78967         unictype/category-none.
78968         * modules/unictype/category-and-tests (Depends-on): Add
78969         unictype/category-{L,N,Lu,Nd}.
78970         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
78971         * modules/unictype/category-or-tests (Depends-on): Add
78972         unictype/category-{L,N}.
78973         * modules/unictype/category-name-tests (Depends-on): Add
78974         unictype/category-{Z,Nl}.
78975         Reported by Simon Josefsson.
78977 2008-01-08  Bruno Haible  <bruno@clisp.org>
78979         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
78980         convention better.
78981         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
78982         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
78983         Reported by Peter Miller <millerp@canb.auug.org.au>.
78985 2008-01-08  Eric Blake  <ebb9@byu.net>
78987         Rewrite memmem to guarantee linear complexity without malloc.
78988         * lib/memmem.c (memmem): Use Two-Way rather than
78989         Knuth-Morris-Pratt, to allow O(1) space usage.
78990         (critical_factorization, two_way_short_needle)
78991         (two_way_long_needle): New functions.
78992         (knuth_morris_pratt): Delete.
78993         * modules/memmem (Depends-on): No longer need malloca or stdbool.
78994         Add stdint.
78995         * tests/test-memmem.c (main): Add tests for periodic needle and
78996         sublinear performance.
78997         * doc/functions/memmem.texi (memmem): Document other deficiencies
78998         in cygwin and older glibc.
79000 2008-01-08  Bruno Haible  <bruno@clisp.org>
79002         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
79003         augmentation.
79005 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
79007         Add a configure time option: --disable-acl.
79008         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
79009         AC_ARG_ENABLE(acl).
79011 2008-01-06  Simon Josefsson  <simon@josefsson.org>
79013         * tests/test-localename.c: Don't include obsolete "setenv.h".
79015         * modules/localename-tests (Depends-on): Need unsetenv.
79017 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79019         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
79021 2008-01-06  Colin Watson  <cjwatson@debian.org>
79023         * users.txt: Add man-db.
79025 2008-01-07  Bruno Haible  <bruno@clisp.org>
79027         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
79028         previous section name.
79030 2008-01-07  Bruno Haible  <bruno@clisp.org>
79032         * lib/progname.c (set_program_name): Don't strip off a leading
79033         "lt-" prefix outside a .libs directory.
79034         Suggested by Paul Eggert.
79036 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
79037             Bruno Haible  <bruno@clisp.org>
79039         Improve memory cleanup in 'relocatable' module.
79040         * lib/relocatable.h (compute_curr_prefix): Change return type to
79041         'char *'.
79042         * lib/relocatable.c (compute_curr_prefix): Change return type to
79043         'char *'. Free curr_installdir after use.
79044         (relocate): Free curr_prefix_better after use.
79045         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
79047 2008-01-01  Bruno Haible  <bruno@clisp.org>
79049         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
79050         failure on older glibc systems.
79051         Reported by Peter Fales <psfales@alcatel-lucent.com>.
79053 2008-01-05  Eric Blake  <ebb9@byu.net>
79055         Avoid quadratic system memmem.
79056         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
79057         Reported by Ralf Wildenhues.
79059         Fix memmem test for mingw.
79060         * modules/memmem-tests (configure.ac): Check for alarm.
79061         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
79062         it.
79063         * doc/functions/memmem.texi: New file.
79064         * doc/gnulib.texi (Function Substitutes): Add memmem.
79065         Reported by Bruno Haible.
79067 2008-01-04  Bruno Haible  <bruno@clisp.org>
79069         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
79070         Require gl_HEADER_STRINGS_H_DEFAULTS, not
79071         gl_HEADER_STRING_H_DEFAULTS.
79073 2008-01-04  Eric Blake  <ebb9@byu.net>
79075         Shorten duration of memmem test.
79076         * tests/test-memmem.c (main): Use alarm to declare failure if test
79077         is taking too long.
79078         Reported by Ralf Wildenhues.
79080 2007-12-21  Simon Josefsson  <simon@josefsson.org>
79082         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
79083         string, needed by strerror.
79085 2008-01-03  Colin Watson  <cjwatson@debian.org>
79086             Bruno Haible  <bruno@clisp.org>
79088         * doc/gnulib-tool.texi (Localization): New section.
79090 2008-01-02  Bruno Haible  <bruno@clisp.org>
79092         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
79093         variables to 'unsigned char *' type.
79094         Reported by Paul Eggert.
79096 2008-01-02  Jim Meyering  <jim@meyering.net>
79098         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
79100 2007-12-31  Jim Meyering  <jim@meyering.net>
79102         Avoid use of private FTS type name.
79103         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
79105 2007-12-30  Karl Berry  <karl@gnu.org>
79107         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
79108         work around defect in Texinfo and/or the standalone Info browser.
79110 2007-12-30  Bruno Haible  <bruno@clisp.org>
79112         Unify 5 copies of the KMP code.
79113         * lib/str-kmp.h: New file.
79114         * lib/c-strcasestr.c: Include str-kmp.h.
79115         (knuth_morris_pratt): Remove function.
79116         (c_strcasestr): Update.
79117         * lib/c-strstr.c: Include str-kmp.h.
79118         (knuth_morris_pratt): Remove function.
79119         (c_strcasestr): Update.
79120         * lib/mbscasestr.c: Include str-kmp.h.
79121         (knuth_morris_pratt_unibyte): Remove function.
79122         * lib/mbsstr.c: Include str-kmp.h.
79123         (knuth_morris_pratt_unibyte): Remove function.
79124         * lib/strcasestr.c: Include str-kmp.h.
79125         (knuth_morris_pratt): Remove function.
79126         (strcasestr): Update.
79127         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
79128         * modules/c-strstr (Files): Likewise.
79129         * modules/mbscasestr (Files): Likewise.
79130         * modules/mbsstr (Files): Likewise.
79131         * modules/strcasestr (Files): Likewise.
79132         Suggested by Paul Eggert.
79134 2007-12-30  Bruno Haible  <bruno@clisp.org>
79136         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
79137         defined.
79139 2007-12-30  Bruno Haible  <bruno@clisp.org>
79141         * lib/xmalloca.h: Include xalloc.h.
79142         (xnmalloca): New macro.
79144 2007-12-30  Bruno Haible  <bruno@clisp.org>
79146         * lib/malloca.h (nmalloca): New macro.
79147         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
79148         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
79149         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
79150         knuth_morris_pratt_multibyte): Likewise.
79151         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
79152         knuth_morris_pratt_multibyte): Likewise.
79153         * lib/memmem.c (knuth_morris_pratt): Likewise.
79154         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
79156 2007-12-25  Bruno Haible  <bruno@clisp.org>
79158         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
79159         * lib/glob.c: Don't include openat.h.
79160         (link_exists2_p): Add back the code that deals with the
79161         !GLOB_ALTDIRFUNC case.
79162         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
79163         let it do the filename concatenation.
79164         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
79165         * modules/glob (Depends-on): Remove openat.
79167 2007-12-31  Bruno Haible  <bruno@clisp.org>
79169         * modules/dirfd (License): Change to LGPLv2+.
79170         Approved by Jim Meyering.
79172 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
79174         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
79175         when multiplying M by sizeof (size_t).
79177 2007-12-10  Martin Lambers  <marlam@marlam.de>
79179         Override getpagesize on mingw.
79180         * lib/getpagesize.c: New file.
79181         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
79182         * modules/getpagesize (Files): Add lib/getpagesize.c.
79183         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
79184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79185         REPLACE_GETPAGESIZE.
79186         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
79188 2007-12-25  Bruno Haible  <bruno@clisp.org>
79190         * modules/localcharset (Notice): New field.
79191         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
79192         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
79194 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
79195             Bruno Haible  <bruno@clisp.org>
79197         Avoid using the syntax symbol() in formatted documentation.
79198         * MODULES.html.sh (func_module): When replacing symbol() with a
79199         hyperlink, remove the parentheses. Show an error if some remain.
79200         Recognize and render the '...' syntax.
79201         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
79202         Rework. Add paragraph about GCC's inlining.
79203         * doc/alloca.texi: Likewise.
79204         * doc/error.texi: Remove parentheses from symbol reference.
79205         * doc/gnulib-intro.texi: Likewise.
79206         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
79207         * modules/fnmatch (Description): Reword to say "the ... function".
79208         * modules/full-read (Description): Likewise.
79209         * modules/full-write (Description): Likewise.
79210         * modules/safe-read (Description): Likewise.
79211         * modules/safe-write (Description): Likewise.
79212         * modules/strchrnul (Description): Likewise.
79213         * modules/trim (Description): Likewise.
79214         * modules/error (Description): Remove parentheses from symbol
79215         references.
79216         * modules/verror (Description): Likewise.
79217         Reported by Karl Berry.
79219 2007-12-25  Bruno Haible  <bruno@clisp.org>
79221         Fixup after 2007-10-16 commit.
79222         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
79224 2007-12-24  Bruno Haible  <bruno@clisp.org>
79226         Make --enable-relocatable work with DESTDIR.
79227         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
79228         to compute installdir from destprog.
79229         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
79230         also set the RELOC_DESTDIR variable.
79231         Reported by Левашев Иван <octagram@bluebottle.com>.
79233 2007-12-24  Bruno Haible  <bruno@clisp.org>
79235         Fix link error due to xalloc_die().
79236         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
79237         of xreadlink.
79238         * lib/relocwrapper.c: Update comments.
79239         * build-aux/install-reloc: Remove xreadlink.c from file list.
79240         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
79241         xreadlink.c.
79242         Reported by Левашев Иван <octagram@bluebottle.com>.
79244 2007-12-24  Bruno Haible  <bruno@clisp.org>
79246         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
79247         * lib/setenv.h: Remove file.
79248         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
79249         lib/setenv.h.
79250         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
79251         (Depends-on): Add stdlib.
79252         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
79253         gl_FUNC_UNSETENV.
79254         (Include): Replace setenv.h with <stdlib.h>.
79255         * modules/unsetenv: New file.
79256         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
79257         * lib/unsetenv.c: Include <stdlib.h> first.
79258         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
79259         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
79260         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
79261         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
79262         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
79263         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
79264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
79265         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
79266         * doc/functions/unsetenv.texi: Update.
79267         * modules/xsetenv (Depends-on): Add unsetenv.
79268         * modules/getdate (Depends-on): Likewise.
79269         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
79270         * lib/xsetenv.c: Don't include setenv.h.
79271         * lib/getdate.y: Likewise.
79272         * lib/relocwrapper.c: Likewise.
79273         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
79274         (Depends-on): Add stdlib.
79275         * NEWS: Mention the changes.
79276         Reported by Левашев Иван <octagram@bluebottle.com>.
79278 2007-12-23  Bruno Haible  <bruno@clisp.org>
79280         * lib/memmem.c (memmem): Use lowercase variable names. Tab
79281         indentation.
79283 2007-12-23  Bruno Haible  <bruno@clisp.org>
79285         * lib/c-strcasestr.c: Add more comments.
79286         * lib/c-strstr.c: Likewise.
79287         * lib/mbscasestr.c: Likewise.
79288         * lib/mbsstr.c: Likewise.
79289         * lib/strcasestr.c: Likewise.
79290         * lib/memmem.c: Likewise.
79292 2007-12-23  Bruno Haible  <bruno@clisp.org>
79294         * tests/test-memmem.c: Include <string.h> first.
79296 2007-12-22  Bruno Haible  <bruno@clisp.org>
79298         * gnulib-tool (func_create_testdir): Change $auxdir while generating
79299         the contents of $testsbase.
79300         Reported by Ralf Wildenhues.
79302 2007-12-22  Bruno Haible  <bruno@clisp.org>
79304         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
79305         two variables local_ldadd_before, local_ldadd_last.
79307 2007-12-20  Eric Blake  <ebb9@byu.net>
79309         Work around circular library issue when cross-compiling.
79310         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
79311         that progname.o does not need to pull in rpl_memcmp.
79313 2007-12-19  Eric Blake  <ebb9@byu.net>
79315         Fix memmem to avoid O(n^2) worst-case complexity.
79316         * lib/memmem.c (knuth_morris_pratt): New function.
79317         (memmem): Use it if first few naive iterations fail.
79318         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
79319         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
79320         * modules/memchr (License): Likewise.
79321         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
79322         malloca.
79323         * tests/test-memmem.c: Rewrite, borrowing ideas from
79324         test-mbsstr1.c; the old version wouldn't even compile!
79325         * modules/memmem-tests: New file.
79326         * lib/string.in.h (rpl_memmem): Add declaration.
79327         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
79328         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
79329         REPLACE_MEMMEM.
79331 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
79333         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
79334         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
79335         before any system include files, and undef after them all.  This
79336         should fix a problem on VMS reported by John E. Malmberg in
79337         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
79339 2007-12-17  Eric Blake  <ebb9@byu.net>
79341         Revert addition of verify, for BSD/OS.
79342         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
79343         can't handle large files, for the sake of obsolete platforms.
79344         * modules/fseeko (Depends-on): Remove verify.
79345         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
79346         * doc/functions/ftello.texi (ftello): Likewise.
79347         * doc/functions/fgetpos.texi (fgetpos): Likewise.
79348         Reported by Larry Jones.
79350 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
79352         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
79353         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
79355 2007-12-17  Jim Meyering  <meyering@redhat.com>
79357         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
79358         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
79359         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
79360         * modules/getcwd (Depends-on): Add openat.
79361         Reported by Petr Salinger.
79363 2007-12-17  Bruno Haible  <bruno@clisp.org>
79365         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
79366         avoid a segmentation fault of the configure test on x86_64 systems.
79368 2007-12-15  Jim Meyering  <meyering@redhat.com>
79370         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
79372 2007-12-13  Eric Blake  <ebb9@byu.net>
79374         Another fseek test.
79375         * tests/test-fseek.c (main): Also test ungetc handling.
79376         * tests/test-fseeko.c (main): Likewise.
79377         * modules/fseeko (Depends-on): Add verify.
79378         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
79379         large.
79380         Reported by Larry Jones.
79382         Fix fseeko on mingw.
79383         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
79384         seek.
79386         Beef up fseek tests.
79387         * tests/test-fseek.c (main): Also test eof handling.
79388         * tests/test-fseeko.c (main): Likewise.
79389         Reported by Larry Jones.
79391 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
79393         Fix fseeko on BSD-based platforms.
79394         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
79395         successful seek.
79397 2007-12-12  Eric Blake  <ebb9@byu.net>
79399         Allow circular dependency of separate libtests.a
79400         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
79401         when use_libtests.
79403 2007-12-11  Eric Blake  <ebb9@byu.net>
79405         Fix bug with -0.0L in previous patch.
79406         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
79407         * tests/test-isnan.c (main): Also test on zeroes.
79408         * tests/test-isnanf.c (main): Likewise.
79409         * tests/test-isnanl.h (main): Likewise.
79411         Detect pseudo-denormals on x86 even when cross-compiling.
79412         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
79413         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
79414         invalid bit patterns that happen to satisfy ==.
79416         Avoid link failures with separate libtests.a.
79417         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
79418         last, to satisfy circular dependencies.
79420 2007-12-11  Eric Blake  <ebb9@byu.net>
79421         and Bruno Haible  <bruno@clisp.org>
79423         Fix OpenBSD 4.0 <float.h> handling of long double.
79424         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
79425         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
79426         * doc/headers/float.texi (float.h): Document OpenBSD bug.
79428 2007-12-11  Jim Meyering  <meyering@redhat.com>
79430         * users.txt: Add libvirt.
79432         Support versions of autoconf prior to 2.59c.
79433         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
79434         if it is not already defined.
79436 2007-12-09  Bruno Haible  <bruno@clisp.org>
79438         Let 'gnulib-tool --import' collect sources needed for the tests in
79439         tests/ rather than in lib/.
79440         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
79441         argument. If true, add rules to generate libtests.a, and put libtests.a
79442         into $(LDADD). Consider source files in subdirectories and set
79443         uses_subdirs.
79444         (func_emit_initmacro_start, func_emit_initmacro_end,
79445         func_emit_initmacro_done): Pass all arguments explicitly.
79446         (func_import): Determine two module lists main_modules,
79447         testsrelated_modules. Determine use_libtests. Determine two variables
79448         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
79449         instead of just sed_transform_lib_file. Determine two variables
79450         main_files and testsrelated_files. Compute 'files' as the union of
79451         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
79452         func_add_or_update. In the generated gnulib-comp.m4, collect the
79453         object files for tests/ in different variables than those for lib/.
79454         Substitute LIBTESTS_LIBDEPS.
79455         (func_create_testdir): Combine the uses_subdirs results from
79456         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
79458 2007-12-09  Bruno Haible  <bruno@clisp.org>
79460         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
79461         the build-aux directory.
79463 2007-12-09  Bruno Haible  <bruno@clisp.org>
79465         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
79466         introduced on 2006-09-09.
79468 2007-12-07  Jim Meyering  <meyering@redhat.com>
79470         Let these macros work also with autoconf-2.59.
79471         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
79472         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
79473         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
79475 2007-12-06  Jim Meyering  <meyering@redhat.com>
79477         Avoid a configure-time syntax error in gl_FUNC_ACL.
79478         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
79479         function in each branch, before testing the cache variable.
79481 2007-12-04  Eric Blake  <ebb9@byu.net>
79483         Make scripts executable.
79484         * build-aux/config.guess: Add execute permissions.
79485         * build-aux/config.sub: Likewise.
79486         * build-aux/gendocs.sh: Likewise.
79488         Fix frexp on mingw.
79489         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
79490         cross-compiling.
79491         * doc/functions/frexp.texi (frexp): Document the bug.
79493         Make cygwin fseeko check more reliable.
79494         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
79495         version numbers, rather than unrelated feature check.
79496         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
79497         * doc/functions/ftello.texi (ftello): Likewise.
79498         Reported by Bruno Haible.
79500         * m4/strerror.m4: Bump version number.
79502 2007-12-03  Bruno Haible  <bruno@clisp.org>
79504         * doc/functions/mprotect.texi: Mention the mingw problem.
79506 2007-12-03  Eric Blake  <ebb9@byu.net>
79508         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
79509         REPLACE_STRERROR is initialized before this macro.
79511 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
79513         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
79514         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
79515         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
79516         put -lsec in even for programs other than 'ls'.  This fixes a problem
79517         for gettext reported by Bruno Haible in
79518         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
79519         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
79520         Add support for Solaris 10.  This isn't efficient, but should get the
79521         job done for now.
79523 2007-12-03  James Youngman  <jay@gnu.org>
79525         * doc/regexprops-generic.texi: change "an close-group" to "a
79526         close-group" and "illegal" to "not allowed".
79528 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79530         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
79531         pr_byname.h. Needed for the rare case when the maintainer has done
79532         "make maintainer-clean" in the source directory and then attempts a
79533         build outside the source directory.
79534         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
79535         scripts_byname.h.
79537 2007-12-02  Martin Lambers  <marlam@marlam.de>
79538             Bruno Haible  <bruno@clisp.org>
79540         * lib/getpagesize.h: Remove file.
79541         * lib/unistd.in.h: Include declaration of getpagesize here.
79542         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
79543         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
79544         HAVE_SYS_PARAM_H.
79545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
79546         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
79547         * modules/getpagesize (Files): Remove lib/getpagesize.h.
79548         (Depends-on): Add unistd.
79549         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
79550         (Include): Use <unistd.h> instead of getpagesize.h.
79551         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
79552         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
79553         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
79554         gl_GETPAGESIZE invocation, already handled by module dependency.
79555         * lib/pagealign_alloc.c: Don't include getpagesize.h.
79557 2007-12-02  Bruno Haible  <bruno@clisp.org>
79559         * modules/strings-tests: New file.
79560         * tests/test-strings.c: New file.
79562         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
79563         * lib/strings.in.h: New file.
79564         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
79565         * m4/strings_h.m4: New file.
79566         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
79567         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
79568         * modules/strings: New file.
79569         * modules/string (Makefile.am): Update.
79570         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
79571         Reported by Karl Berry.
79573 2007-12-01  Eric Blake  <ebb9@byu.net>
79575         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
79576         accommodate fix in cygwin 1.5.25.
79578 2007-12-01  Jim Meyering  <meyering@redhat.com>
79580         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
79581         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
79582         that would inhibit utf8-optimization of a regexp containing line-
79583         or buffer-anchors, e.g., `^', `$'.
79585 2007-11-30  Bruno Haible  <bruno@clisp.org>
79587         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
79588         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
79589         glthread_recursive_lock_init.
79590         * lib/lock.c (glthread_recursive_lock_init)
79591         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
79592         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79594 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
79596         New function qset_acl, like set_acl but with syscall semantics.
79597         * lib/acl.h (qset_acl): New decl.
79598         * lib/acl.c (qset_acl): New function.
79599         (set_acl): Use new function.  Use more-consistent diagnostics.
79601 2007-11-28  Jim Meyering  <meyering@redhat.com>
79603         * modules/physmem (License): Change from GPL to LGPLv2+.
79605 2007-11-26  Bruno Haible  <bruno@clisp.org>
79607         * lib/vasnprintf.c (decode_long_double): Don't abort if the
79608         'long double' type has excess precision.
79609         Reported by Jim Meyering in
79610         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
79612 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79614         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
79615         Sync from <http://gnu.org/licenses>.
79616         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
79617         with license text from same location.
79618         * doc/maintain.texi, doc/standards.texi:  Sync from
79619         <http://savannah.gnu.org/projects/gnustandards>.
79621 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
79622         and Jim Meyering  <meyering@redhat.com>
79624         Adjust getdate' grammar to accept a slightly more regular language.
79625         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
79626         Before, the former was rejected.
79627         * lib/getdate.y (digits_to_date_time): New function, factored
79628         out of ...
79629         (number): ...here.  Just call digits_to_date_time.
79630         (hybrid): New non-terminal to handle an <unsigned number,
79631         signed relative offset> sequence consistently.
79633 2007-11-18  Jim Meyering  <meyering@redhat.com>
79635         Pull my changes from coreutils:
79636         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
79637         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
79638         use of $gnulib_tool_option_extras, so that it's separated from the
79639         preceding argument.
79641         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
79642         * build-aux/bootstrap (cp_mark_as_generated): Create any required
79643         parent destination directories before copying a file into place.
79645 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
79647         bootstrap: work also with 4-argument variant of AC_INIT
79648         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
79650 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79652         Port test-getaddrinfo to Solaris.
79653         Problem reported by Bruno Haible in
79654         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
79655         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
79656         explanation of setting 'hints'.
79657         Don't reject an implementation merely because it returns EAI_SERVICE.
79658         (EAI_SERVICE): Define to 0 if not defined.
79660 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79662         The license of gnu-make and posix-shell is now "GPLed build tool".
79663         * modules/gnu-make (License): Likewise.
79664         * modules/posix-shell (License): Likewise.
79666         New module posix-shell, for determining a POSIX shell
79667         or perhaps something that is close enough to a POSIX shell.
79668         * m4/posix-shell.m4: New file.
79669         * modules/posix-shell: New file.
79671         * MODULES.html.sh: Mention new module.
79673         New module gnu-make, for determining whether we're using GNU Make.
79674         * m4/gnu-make.m4: New file.
79675         * modules/gnu-make: New file.
79676         * MODULES.html.sh: Mention new module.
79678 2007-11-14  Jim Meyering  <meyering@redhat.com>
79680         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
79681         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
79682         use this macro to create a function _definition_.
79683         Remove useless "#undef ARGMATCH_DIE".
79685 2007-11-14  Bruno Haible  <bruno@clisp.org>
79687         * lib/config.charset: Update for OpenBSD 4.1.
79688         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
79690 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
79692         Document 64-bit #if problems in stdint.texi.
79693         * doc/headers/stdint.texi (stdint.h): Mention problems with
79694         64-bit-#if, and how to work around them.
79696         Don't insist on 'long long int' support in the preprocessor.  It
79697         breaks too many things.  For example, PRIdMAX still uses a 'long
79698         long int' format with the latest Sun compiler, even though
79699         HAVE_LONG_LONG_INT isn't defined due to that compiler's
79700         preprocessor problem.  This causes the latest coreutils to dump
79701         core on Solaris 10 sparc with the Sun C compiler.
79702         Instead, fix the 2007-10-16 problem in a different way, by evaluating
79703         the troublesome expressions at configure-time, not at #if-time.
79704         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
79705         preprocessor.
79706         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
79707         compile-time C checks, done at 'configure'-time.
79708         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
79709         * modules/inttypes (Makefile): Substitute the new symbols that
79710         gl_INTTYPES_H now generates.
79711         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
79713 2007-11-12  Bruno Haible  <bruno@clisp.org>
79715         Tests for Unicode character classification functions.
79717         * modules/unictype/bidicategory-byname-tests: New file.
79718         * modules/unictype/bidicategory-name-tests: New file.
79719         * modules/unictype/bidicategory-of-tests: New file.
79720         * modules/unictype/bidicategory-test-tests: New file.
79721         * modules/unictype/block-list-tests: New file.
79722         * modules/unictype/block-of-tests: New file.
79723         * modules/unictype/block-test-tests: New file.
79724         * modules/unictype/category-C-tests: New file.
79725         * modules/unictype/category-Cc-tests: New file.
79726         * modules/unictype/category-Cf-tests: New file.
79727         * modules/unictype/category-Cn-tests: New file.
79728         * modules/unictype/category-Co-tests: New file.
79729         * modules/unictype/category-Cs-tests: New file.
79730         * modules/unictype/category-L-tests: New file.
79731         * modules/unictype/category-Ll-tests: New file.
79732         * modules/unictype/category-Lm-tests: New file.
79733         * modules/unictype/category-Lo-tests: New file.
79734         * modules/unictype/category-Lt-tests: New file.
79735         * modules/unictype/category-Lu-tests: New file.
79736         * modules/unictype/category-M-tests: New file.
79737         * modules/unictype/category-Mc-tests: New file.
79738         * modules/unictype/category-Me-tests: New file.
79739         * modules/unictype/category-Mn-tests: New file.
79740         * modules/unictype/category-N-tests: New file.
79741         * modules/unictype/category-Nd-tests: New file.
79742         * modules/unictype/category-Nl-tests: New file.
79743         * modules/unictype/category-No-tests: New file.
79744         * modules/unictype/category-P-tests: New file.
79745         * modules/unictype/category-Pc-tests: New file.
79746         * modules/unictype/category-Pd-tests: New file.
79747         * modules/unictype/category-Pe-tests: New file.
79748         * modules/unictype/category-Pf-tests: New file.
79749         * modules/unictype/category-Pi-tests: New file.
79750         * modules/unictype/category-Po-tests: New file.
79751         * modules/unictype/category-Ps-tests: New file.
79752         * modules/unictype/category-S-tests: New file.
79753         * modules/unictype/category-Sc-tests: New file.
79754         * modules/unictype/category-Sk-tests: New file.
79755         * modules/unictype/category-Sm-tests: New file.
79756         * modules/unictype/category-So-tests: New file.
79757         * modules/unictype/category-Z-tests: New file.
79758         * modules/unictype/category-Zl-tests: New file.
79759         * modules/unictype/category-Zp-tests: New file.
79760         * modules/unictype/category-Zs-tests: New file.
79761         * modules/unictype/category-and-not-tests: New file.
79762         * modules/unictype/category-and-tests: New file.
79763         * modules/unictype/category-byname-tests: New file.
79764         * modules/unictype/category-name-tests: New file.
79765         * modules/unictype/category-none-tests: New file.
79766         * modules/unictype/category-of-tests: New file.
79767         * modules/unictype/category-or-tests: New file.
79768         * modules/unictype/category-test-withtable-tests: New file.
79769         * modules/unictype/combining-class-tests: New file.
79770         * modules/unictype/ctype-alnum-tests: New file.
79771         * modules/unictype/ctype-alpha-tests: New file.
79772         * modules/unictype/ctype-blank-tests: New file.
79773         * modules/unictype/ctype-cntrl-tests: New file.
79774         * modules/unictype/ctype-digit-tests: New file.
79775         * modules/unictype/ctype-graph-tests: New file.
79776         * modules/unictype/ctype-lower-tests: New file.
79777         * modules/unictype/ctype-print-tests: New file.
79778         * modules/unictype/ctype-punct-tests: New file.
79779         * modules/unictype/ctype-space-tests: New file.
79780         * modules/unictype/ctype-upper-tests: New file.
79781         * modules/unictype/ctype-xdigit-tests: New file.
79782         * modules/unictype/decimal-digit-tests: New file.
79783         * modules/unictype/digit-tests: New file.
79784         * modules/unictype/mirror-tests: New file.
79785         * modules/unictype/numeric-tests: New file.
79786         * modules/unictype/property-alphabetic-tests: New file.
79787         * modules/unictype/property-ascii-hex-digit-tests: New file.
79788         * modules/unictype/property-bidi-arabic-digit-tests: New file.
79789         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
79790         * modules/unictype/property-bidi-block-separator-tests: New file.
79791         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
79792         * modules/unictype/property-bidi-common-separator-tests: New file.
79793         * modules/unictype/property-bidi-control-tests: New file.
79794         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
79795         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
79796         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
79797         * modules/unictype/property-bidi-european-digit-tests: New file.
79798         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
79799         * modules/unictype/property-bidi-left-to-right-tests: New file.
79800         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
79801         * modules/unictype/property-bidi-other-neutral-tests: New file.
79802         * modules/unictype/property-bidi-pdf-tests: New file.
79803         * modules/unictype/property-bidi-segment-separator-tests: New file.
79804         * modules/unictype/property-bidi-whitespace-tests: New file.
79805         * modules/unictype/property-byname-tests: New file.
79806         * modules/unictype/property-combining-tests: New file.
79807         * modules/unictype/property-composite-tests: New file.
79808         * modules/unictype/property-currency-symbol-tests: New file.
79809         * modules/unictype/property-dash-tests: New file.
79810         * modules/unictype/property-decimal-digit-tests: New file.
79811         * modules/unictype/property-default-ignorable-code-point-tests: New file.
79812         * modules/unictype/property-deprecated-tests: New file.
79813         * modules/unictype/property-diacritic-tests: New file.
79814         * modules/unictype/property-extender-tests: New file.
79815         * modules/unictype/property-format-control-tests: New file.
79816         * modules/unictype/property-grapheme-base-tests: New file.
79817         * modules/unictype/property-grapheme-extend-tests: New file.
79818         * modules/unictype/property-grapheme-link-tests: New file.
79819         * modules/unictype/property-hex-digit-tests: New file.
79820         * modules/unictype/property-hyphen-tests: New file.
79821         * modules/unictype/property-id-continue-tests: New file.
79822         * modules/unictype/property-id-start-tests: New file.
79823         * modules/unictype/property-ideographic-tests: New file.
79824         * modules/unictype/property-ids-binary-operator-tests: New file.
79825         * modules/unictype/property-ids-trinary-operator-tests: New file.
79826         * modules/unictype/property-ignorable-control-tests: New file.
79827         * modules/unictype/property-iso-control-tests: New file.
79828         * modules/unictype/property-join-control-tests: New file.
79829         * modules/unictype/property-left-of-pair-tests: New file.
79830         * modules/unictype/property-line-separator-tests: New file.
79831         * modules/unictype/property-logical-order-exception-tests: New file.
79832         * modules/unictype/property-lowercase-tests: New file.
79833         * modules/unictype/property-math-tests: New file.
79834         * modules/unictype/property-non-break-tests: New file.
79835         * modules/unictype/property-not-a-character-tests: New file.
79836         * modules/unictype/property-numeric-tests: New file.
79837         * modules/unictype/property-other-alphabetic-tests: New file.
79838         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
79839         * modules/unictype/property-other-grapheme-extend-tests: New file.
79840         * modules/unictype/property-other-id-continue-tests: New file.
79841         * modules/unictype/property-other-id-start-tests: New file.
79842         * modules/unictype/property-other-lowercase-tests: New file.
79843         * modules/unictype/property-other-math-tests: New file.
79844         * modules/unictype/property-other-uppercase-tests: New file.
79845         * modules/unictype/property-paired-punctuation-tests: New file.
79846         * modules/unictype/property-paragraph-separator-tests: New file.
79847         * modules/unictype/property-pattern-syntax-tests: New file.
79848         * modules/unictype/property-pattern-white-space-tests: New file.
79849         * modules/unictype/property-private-use-tests: New file.
79850         * modules/unictype/property-punctuation-tests: New file.
79851         * modules/unictype/property-quotation-mark-tests: New file.
79852         * modules/unictype/property-radical-tests: New file.
79853         * modules/unictype/property-sentence-terminal-tests: New file.
79854         * modules/unictype/property-soft-dotted-tests: New file.
79855         * modules/unictype/property-space-tests: New file.
79856         * modules/unictype/property-terminal-punctuation-tests: New file.
79857         * modules/unictype/property-test-tests: New file.
79858         * modules/unictype/property-titlecase-tests: New file.
79859         * modules/unictype/property-unassigned-code-value-tests: New file.
79860         * modules/unictype/property-unified-ideograph-tests: New file.
79861         * modules/unictype/property-uppercase-tests: New file.
79862         * modules/unictype/property-variation-selector-tests: New file.
79863         * modules/unictype/property-white-space-tests: New file.
79864         * modules/unictype/property-xid-continue-tests: New file.
79865         * modules/unictype/property-xid-start-tests: New file.
79866         * modules/unictype/property-zero-width-tests: New file.
79867         * modules/unictype/scripts-tests: New file.
79868         * modules/unictype/syntax-c-ident-tests: New file.
79869         * modules/unictype/syntax-c-whitespace-tests: New file.
79870         * modules/unictype/syntax-java-ident-tests: New file.
79871         * modules/unictype/syntax-java-whitespace-tests: New file.
79872         * tests/unictype/test-bidi_byname.c: New file.
79873         * tests/unictype/test-bidi_name.c: New file.
79874         * tests/unictype/test-bidi_of.c: New file.
79875         * tests/unictype/test-bidi_test.c: New file.
79876         * tests/unictype/test-block_list.c: New file.
79877         * tests/unictype/test-block_of.c: New file.
79878         * tests/unictype/test-block_test.c: New file.
79879         * tests/unictype/test-categ_and.c: New file.
79880         * tests/unictype/test-categ_and_not.c: New file.
79881         * tests/unictype/test-categ_byname.c: New file.
79882         * tests/unictype/test-categ_name.c: New file.
79883         * tests/unictype/test-categ_none.c: New file.
79884         * tests/unictype/test-categ_of.c: New file.
79885         * tests/unictype/test-categ_or.c: New file.
79886         * tests/unictype/test-categ_test_withtable.c: New file.
79887         * tests/unictype/test-combining.c: New file.
79888         * tests/unictype/test-decdigit.c: New file.
79889         * tests/unictype/test-digit.c: New file.
79890         * tests/unictype/test-mirror.c: New file.
79891         * tests/unictype/test-numeric.c: New file.
79892         * tests/unictype/test-pr_byname.c: New file.
79893         * tests/unictype/test-pr_test.c: New file.
79894         * tests/unictype/test-predicate-part1.h: New file.
79895         * tests/unictype/test-predicate-part2.h: New file.
79896         * tests/unictype/test-scripts.c: New file.
79897         * tests/unictype/test-sy_c_ident.c: New file.
79898         * tests/unictype/test-sy_java_ident.c: New file.
79900         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
79901         for Unicode 5.0.0.
79902         * tests/unictype/test-categ_Cc.c: Likewise.
79903         * tests/unictype/test-categ_Cf.c: Likewise.
79904         * tests/unictype/test-categ_Cn.c: Likewise.
79905         * tests/unictype/test-categ_Co.c: Likewise.
79906         * tests/unictype/test-categ_Cs.c: Likewise.
79907         * tests/unictype/test-categ_L.c: Likewise.
79908         * tests/unictype/test-categ_Ll.c: Likewise.
79909         * tests/unictype/test-categ_Lm.c: Likewise.
79910         * tests/unictype/test-categ_Lo.c: Likewise.
79911         * tests/unictype/test-categ_Lt.c: Likewise.
79912         * tests/unictype/test-categ_Lu.c: Likewise.
79913         * tests/unictype/test-categ_M.c: Likewise.
79914         * tests/unictype/test-categ_Mc.c: Likewise.
79915         * tests/unictype/test-categ_Me.c: Likewise.
79916         * tests/unictype/test-categ_Mn.c: Likewise.
79917         * tests/unictype/test-categ_N.c: Likewise.
79918         * tests/unictype/test-categ_Nd.c: Likewise.
79919         * tests/unictype/test-categ_Nl.c: Likewise.
79920         * tests/unictype/test-categ_No.c: Likewise.
79921         * tests/unictype/test-categ_P.c: Likewise.
79922         * tests/unictype/test-categ_Pc.c: Likewise.
79923         * tests/unictype/test-categ_Pd.c: Likewise.
79924         * tests/unictype/test-categ_Pe.c: Likewise.
79925         * tests/unictype/test-categ_Pf.c: Likewise.
79926         * tests/unictype/test-categ_Pi.c: Likewise.
79927         * tests/unictype/test-categ_Po.c: Likewise.
79928         * tests/unictype/test-categ_Ps.c: Likewise.
79929         * tests/unictype/test-categ_S.c: Likewise.
79930         * tests/unictype/test-categ_Sc.c: Likewise.
79931         * tests/unictype/test-categ_Sk.c: Likewise.
79932         * tests/unictype/test-categ_Sm.c: Likewise.
79933         * tests/unictype/test-categ_So.c: Likewise.
79934         * tests/unictype/test-categ_Z.c: Likewise.
79935         * tests/unictype/test-categ_Zl.c: Likewise.
79936         * tests/unictype/test-categ_Zp.c: Likewise.
79937         * tests/unictype/test-categ_Zs.c: Likewise.
79938         * tests/unictype/test-ctype_alnum.c: Likewise.
79939         * tests/unictype/test-ctype_alpha.c: Likewise.
79940         * tests/unictype/test-ctype_blank.c: Likewise.
79941         * tests/unictype/test-ctype_cntrl.c: Likewise.
79942         * tests/unictype/test-ctype_digit.c: Likewise.
79943         * tests/unictype/test-ctype_graph.c: Likewise.
79944         * tests/unictype/test-ctype_lower.c: Likewise.
79945         * tests/unictype/test-ctype_print.c: Likewise.
79946         * tests/unictype/test-ctype_punct.c: Likewise.
79947         * tests/unictype/test-ctype_space.c: Likewise.
79948         * tests/unictype/test-ctype_upper.c: Likewise.
79949         * tests/unictype/test-ctype_xdigit.c: Likewise.
79950         * tests/unictype/test-decdigit.h: Likewise.
79951         * tests/unictype/test-digit.h: Likewise.
79952         * tests/unictype/test-numeric.h: Likewise.
79953         * tests/unictype/test-pr_alphabetic.c: Likewise.
79954         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
79955         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
79956         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
79957         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
79958         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
79959         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
79960         * tests/unictype/test-pr_bidi_control.c: Likewise.
79961         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
79962         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
79963         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
79964         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
79965         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
79966         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
79967         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
79968         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
79969         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
79970         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
79971         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
79972         * tests/unictype/test-pr_combining.c: Likewise.
79973         * tests/unictype/test-pr_composite.c: Likewise.
79974         * tests/unictype/test-pr_currency_symbol.c: Likewise.
79975         * tests/unictype/test-pr_dash.c: Likewise.
79976         * tests/unictype/test-pr_decimal_digit.c: Likewise.
79977         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
79978         * tests/unictype/test-pr_deprecated.c: Likewise.
79979         * tests/unictype/test-pr_diacritic.c: Likewise.
79980         * tests/unictype/test-pr_extender.c: Likewise.
79981         * tests/unictype/test-pr_format_control.c: Likewise.
79982         * tests/unictype/test-pr_grapheme_base.c: Likewise.
79983         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
79984         * tests/unictype/test-pr_grapheme_link.c: Likewise.
79985         * tests/unictype/test-pr_hex_digit.c: Likewise.
79986         * tests/unictype/test-pr_hyphen.c: Likewise.
79987         * tests/unictype/test-pr_id_continue.c: Likewise.
79988         * tests/unictype/test-pr_id_start.c: Likewise.
79989         * tests/unictype/test-pr_ideographic.c: Likewise.
79990         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
79991         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
79992         * tests/unictype/test-pr_ignorable_control.c: Likewise.
79993         * tests/unictype/test-pr_iso_control.c: Likewise.
79994         * tests/unictype/test-pr_join_control.c: Likewise.
79995         * tests/unictype/test-pr_left_of_pair.c: Likewise.
79996         * tests/unictype/test-pr_line_separator.c: Likewise.
79997         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
79998         * tests/unictype/test-pr_lowercase.c: Likewise.
79999         * tests/unictype/test-pr_math.c: Likewise.
80000         * tests/unictype/test-pr_non_break.c: Likewise.
80001         * tests/unictype/test-pr_not_a_character.c: Likewise.
80002         * tests/unictype/test-pr_numeric.c: Likewise.
80003         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
80004         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
80005         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
80006         * tests/unictype/test-pr_other_id_continue.c: Likewise.
80007         * tests/unictype/test-pr_other_id_start.c: Likewise.
80008         * tests/unictype/test-pr_other_lowercase.c: Likewise.
80009         * tests/unictype/test-pr_other_math.c: Likewise.
80010         * tests/unictype/test-pr_other_uppercase.c: Likewise.
80011         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
80012         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
80013         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
80014         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
80015         * tests/unictype/test-pr_private_use.c: Likewise.
80016         * tests/unictype/test-pr_punctuation.c: Likewise.
80017         * tests/unictype/test-pr_quotation_mark.c: Likewise.
80018         * tests/unictype/test-pr_radical.c: Likewise.
80019         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
80020         * tests/unictype/test-pr_soft_dotted.c: Likewise.
80021         * tests/unictype/test-pr_space.c: Likewise.
80022         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
80023         * tests/unictype/test-pr_titlecase.c: Likewise.
80024         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
80025         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
80026         * tests/unictype/test-pr_uppercase.c: Likewise.
80027         * tests/unictype/test-pr_variation_selector.c: Likewise.
80028         * tests/unictype/test-pr_white_space.c: Likewise.
80029         * tests/unictype/test-pr_xid_continue.c: Likewise.
80030         * tests/unictype/test-pr_xid_start.c: Likewise.
80031         * tests/unictype/test-pr_zero_width.c: Likewise.
80032         * tests/unictype/test-sy_c_whitespace.c: Likewise.
80033         * tests/unictype/test-sy_java_whitespace.c: Likewise.
80035 2007-11-12  Bruno Haible  <bruno@clisp.org>
80037         Unicode character classification functions.
80038         * lib/unictype.h: New file.
80039         * modules/unictype/base: New file.
80040         * modules/unictype/category-L: New file.
80041         * modules/unictype/category-Lu: New file.
80042         * modules/unictype/category-Ll: New file.
80043         * modules/unictype/category-Lt: New file.
80044         * modules/unictype/category-Lm: New file.
80045         * modules/unictype/category-Lo: New file.
80046         * modules/unictype/category-M: New file.
80047         * modules/unictype/category-Mn: New file.
80048         * modules/unictype/category-Mc: New file.
80049         * modules/unictype/category-Me: New file.
80050         * modules/unictype/category-N: New file.
80051         * modules/unictype/category-Nd: New file.
80052         * modules/unictype/category-Nl: New file.
80053         * modules/unictype/category-No: New file.
80054         * modules/unictype/category-P: New file.
80055         * modules/unictype/category-Pc: New file.
80056         * modules/unictype/category-Pd: New file.
80057         * modules/unictype/category-Ps: New file.
80058         * modules/unictype/category-Pe: New file.
80059         * modules/unictype/category-Pi: New file.
80060         * modules/unictype/category-Pf: New file.
80061         * modules/unictype/category-Po: New file.
80062         * modules/unictype/category-S: New file.
80063         * modules/unictype/category-Sm: New file.
80064         * modules/unictype/category-Sc: New file.
80065         * modules/unictype/category-Sk: New file.
80066         * modules/unictype/category-So: New file.
80067         * modules/unictype/category-Z: New file.
80068         * modules/unictype/category-Zs: New file.
80069         * modules/unictype/category-Zl: New file.
80070         * modules/unictype/category-Zp: New file.
80071         * modules/unictype/category-C: New file.
80072         * modules/unictype/category-Cc: New file.
80073         * modules/unictype/category-Cf: New file.
80074         * modules/unictype/category-Cs: New file.
80075         * modules/unictype/category-Co: New file.
80076         * modules/unictype/category-Cn: New file.
80077         * modules/unictype/category-or: New file.
80078         * modules/unictype/category-of: New file.
80079         * modules/unictype/category-test: New file.
80080         * modules/unictype/category-test-withtable: New file.
80081         * modules/unictype/category-byname: New file.
80082         * modules/unictype/category-none: New file.
80083         * modules/unictype/category-and: New file.
80084         * modules/unictype/category-and-not: New file.
80085         * modules/unictype/category-name: New file.
80086         * modules/unictype/combining-class: New file.
80087         * modules/unictype/category-all: New file.
80088         * modules/unictype/bidicategory-all: New file.
80089         * modules/unictype/bidicategory-byname: New file.
80090         * modules/unictype/bidicategory-name: New file.
80091         * modules/unictype/bidicategory-of: New file.
80092         * modules/unictype/bidicategory-test: New file.
80093         * modules/unictype/decimal-digit: New file.
80094         * modules/unictype/digit: New file.
80095         * modules/unictype/numeric: New file.
80096         * modules/unictype/mirror: New file.
80097         * modules/unictype/property-white-space: New file.
80098         * modules/unictype/property-alphabetic: New file.
80099         * modules/unictype/property-other-alphabetic: New file.
80100         * modules/unictype/property-not-a-character: New file.
80101         * modules/unictype/property-default-ignorable-code-point: New file.
80102         * modules/unictype/property-other-default-ignorable-code-point: New
80103         file.
80104         * modules/unictype/property-deprecated: New file.
80105         * modules/unictype/property-logical-order-exception: New file.
80106         * modules/unictype/property-variation-selector: New file.
80107         * modules/unictype/property-private-use: New file.
80108         * modules/unictype/property-unassigned-code-value: New file.
80109         * modules/unictype/property-uppercase: New file.
80110         * modules/unictype/property-other-uppercase: New file.
80111         * modules/unictype/property-lowercase: New file.
80112         * modules/unictype/property-other-lowercase: New file.
80113         * modules/unictype/property-titlecase: New file.
80114         * modules/unictype/property-soft-dotted: New file.
80115         * modules/unictype/property-id-start: New file.
80116         * modules/unictype/property-other-id-start: New file.
80117         * modules/unictype/property-id-continue: New file.
80118         * modules/unictype/property-other-id-continue: New file.
80119         * modules/unictype/property-xid-start: New file.
80120         * modules/unictype/property-xid-continue: New file.
80121         * modules/unictype/property-pattern-white-space: New file.
80122         * modules/unictype/property-pattern-syntax: New file.
80123         * modules/unictype/property-join-control: New file.
80124         * modules/unictype/property-grapheme-base: New file.
80125         * modules/unictype/property-grapheme-extend: New file.
80126         * modules/unictype/property-other-grapheme-extend: New file.
80127         * modules/unictype/property-grapheme-link: New file.
80128         * modules/unictype/property-bidi-control: New file.
80129         * modules/unictype/property-bidi-left-to-right: New file.
80130         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
80131         * modules/unictype/property-bidi-arabic-right-to-left: New file.
80132         * modules/unictype/property-bidi-european-digit: New file.
80133         * modules/unictype/property-bidi-eur-num-separator: New file.
80134         * modules/unictype/property-bidi-eur-num-terminator: New file.
80135         * modules/unictype/property-bidi-arabic-digit: New file.
80136         * modules/unictype/property-bidi-common-separator: New file.
80137         * modules/unictype/property-bidi-block-separator: New file.
80138         * modules/unictype/property-bidi-segment-separator: New file.
80139         * modules/unictype/property-bidi-whitespace: New file.
80140         * modules/unictype/property-bidi-non-spacing-mark: New file.
80141         * modules/unictype/property-bidi-boundary-neutral: New file.
80142         * modules/unictype/property-bidi-pdf: New file.
80143         * modules/unictype/property-bidi-embedding-or-override: New file.
80144         * modules/unictype/property-bidi-other-neutral: New file.
80145         * modules/unictype/property-hex-digit: New file.
80146         * modules/unictype/property-ascii-hex-digit: New file.
80147         * modules/unictype/property-ideographic: New file.
80148         * modules/unictype/property-unified-ideograph: New file.
80149         * modules/unictype/property-radical: New file.
80150         * modules/unictype/property-ids-binary-operator: New file.
80151         * modules/unictype/property-ids-trinary-operator: New file.
80152         * modules/unictype/property-zero-width: New file.
80153         * modules/unictype/property-space: New file.
80154         * modules/unictype/property-non-break: New file.
80155         * modules/unictype/property-iso-control: New file.
80156         * modules/unictype/property-format-control: New file.
80157         * modules/unictype/property-dash: New file.
80158         * modules/unictype/property-hyphen: New file.
80159         * modules/unictype/property-punctuation: New file.
80160         * modules/unictype/property-line-separator: New file.
80161         * modules/unictype/property-paragraph-separator: New file.
80162         * modules/unictype/property-quotation-mark: New file.
80163         * modules/unictype/property-sentence-terminal: New file.
80164         * modules/unictype/property-terminal-punctuation: New file.
80165         * modules/unictype/property-currency-symbol: New file.
80166         * modules/unictype/property-math: New file.
80167         * modules/unictype/property-other-math: New file.
80168         * modules/unictype/property-paired-punctuation: New file.
80169         * modules/unictype/property-left-of-pair: New file.
80170         * modules/unictype/property-combining: New file.
80171         * modules/unictype/property-composite: New file.
80172         * modules/unictype/property-decimal-digit: New file.
80173         * modules/unictype/property-numeric: New file.
80174         * modules/unictype/property-diacritic: New file.
80175         * modules/unictype/property-extender: New file.
80176         * modules/unictype/property-ignorable-control: New file.
80177         * modules/unictype/property-test: New file.
80178         * modules/unictype/property-byname: New file.
80179         * modules/unictype/property-all: New file.
80180         * modules/unictype/scripts: New file.
80181         * modules/unictype/scripts-all: New file.
80182         * modules/unictype/block-of: New file.
80183         * modules/unictype/block-test: New file.
80184         * modules/unictype/block-list: New file.
80185         * modules/unictype/block-all: New file.
80186         * modules/unictype/syntax-c-whitespace: New file.
80187         * modules/unictype/syntax-java-whitespace: New file.
80188         * modules/unictype/syntax-c-ident: New file.
80189         * modules/unictype/syntax-java-ident: New file.
80190         * modules/unictype/ctype-alnum: New file.
80191         * modules/unictype/ctype-alpha: New file.
80192         * modules/unictype/ctype-cntrl: New file.
80193         * modules/unictype/ctype-digit: New file.
80194         * modules/unictype/ctype-graph: New file.
80195         * modules/unictype/ctype-lower: New file.
80196         * modules/unictype/ctype-print: New file.
80197         * modules/unictype/ctype-punct: New file.
80198         * modules/unictype/ctype-space: New file.
80199         * modules/unictype/ctype-upper: New file.
80200         * modules/unictype/ctype-xdigit: New file.
80201         * modules/unictype/ctype-blank: New file.
80202         * lib/unictype/bidi_byname.c: New file.
80203         * lib/unictype/bidi_name.c: New file.
80204         * lib/unictype/bidi_of.c: New file.
80205         * lib/unictype/bidi_test.c: New file.
80206         * lib/unictype/bitmap.h: New file.
80207         * lib/unictype/block_test.c: New file.
80208         * lib/unictype/blocks.c: New file.
80209         * lib/unictype/categ_C.c: New file.
80210         * lib/unictype/categ_Cc.c: New file.
80211         * lib/unictype/categ_Cf.c: New file.
80212         * lib/unictype/categ_Cn.c: New file.
80213         * lib/unictype/categ_Co.c: New file.
80214         * lib/unictype/categ_Cs.c: New file.
80215         * lib/unictype/categ_L.c: New file.
80216         * lib/unictype/categ_Ll.c: New file.
80217         * lib/unictype/categ_Lm.c: New file.
80218         * lib/unictype/categ_Lo.c: New file.
80219         * lib/unictype/categ_Lt.c: New file.
80220         * lib/unictype/categ_Lu.c: New file.
80221         * lib/unictype/categ_M.c: New file.
80222         * lib/unictype/categ_Mc.c: New file.
80223         * lib/unictype/categ_Me.c: New file.
80224         * lib/unictype/categ_Mn.c: New file.
80225         * lib/unictype/categ_N.c: New file.
80226         * lib/unictype/categ_Nd.c: New file.
80227         * lib/unictype/categ_Nl.c: New file.
80228         * lib/unictype/categ_No.c: New file.
80229         * lib/unictype/categ_P.c: New file.
80230         * lib/unictype/categ_Pc.c: New file.
80231         * lib/unictype/categ_Pd.c: New file.
80232         * lib/unictype/categ_Pe.c: New file.
80233         * lib/unictype/categ_Pf.c: New file.
80234         * lib/unictype/categ_Pi.c: New file.
80235         * lib/unictype/categ_Po.c: New file.
80236         * lib/unictype/categ_Ps.c: New file.
80237         * lib/unictype/categ_S.c: New file.
80238         * lib/unictype/categ_Sc.c: New file.
80239         * lib/unictype/categ_Sk.c: New file.
80240         * lib/unictype/categ_Sm.c: New file.
80241         * lib/unictype/categ_So.c: New file.
80242         * lib/unictype/categ_Z.c: New file.
80243         * lib/unictype/categ_Zl.c: New file.
80244         * lib/unictype/categ_Zp.c: New file.
80245         * lib/unictype/categ_Zs.c: New file.
80246         * lib/unictype/categ_and.c: New file.
80247         * lib/unictype/categ_and_not.c: New file.
80248         * lib/unictype/categ_byname.c: New file.
80249         * lib/unictype/categ_name.c: New file.
80250         * lib/unictype/categ_none.c: New file.
80251         * lib/unictype/categ_of.c: New file.
80252         * lib/unictype/categ_or.c: New file.
80253         * lib/unictype/categ_test.c: New file.
80254         * lib/unictype/combining.c: New file.
80255         * lib/unictype/ctype_alnum.c: New file.
80256         * lib/unictype/ctype_alpha.c: New file.
80257         * lib/unictype/ctype_blank.c: New file.
80258         * lib/unictype/ctype_cntrl.c: New file.
80259         * lib/unictype/ctype_digit.c: New file.
80260         * lib/unictype/ctype_graph.c: New file.
80261         * lib/unictype/ctype_lower.c: New file.
80262         * lib/unictype/ctype_print.c: New file.
80263         * lib/unictype/ctype_punct.c: New file.
80264         * lib/unictype/ctype_space.c: New file.
80265         * lib/unictype/ctype_upper.c: New file.
80266         * lib/unictype/ctype_xdigit.c: New file.
80267         * lib/unictype/decdigit.c: New file.
80268         * lib/unictype/digit.c: New file.
80269         * lib/unictype/identsyntaxmap.h: New file.
80270         * lib/unictype/mirror.c: New file.
80271         * lib/unictype/numeric.c: New file.
80272         * lib/unictype/pr_alphabetic.c: New file.
80273         * lib/unictype/pr_ascii_hex_digit.c: New file.
80274         * lib/unictype/pr_bidi_arabic_digit.c: New file.
80275         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
80276         * lib/unictype/pr_bidi_block_separator.c: New file.
80277         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
80278         * lib/unictype/pr_bidi_common_separator.c: New file.
80279         * lib/unictype/pr_bidi_control.c: New file.
80280         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
80281         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
80282         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
80283         * lib/unictype/pr_bidi_european_digit.c: New file.
80284         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
80285         * lib/unictype/pr_bidi_left_to_right.c: New file.
80286         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
80287         * lib/unictype/pr_bidi_other_neutral.c: New file.
80288         * lib/unictype/pr_bidi_pdf.c: New file.
80289         * lib/unictype/pr_bidi_segment_separator.c: New file.
80290         * lib/unictype/pr_bidi_whitespace.c: New file.
80291         * lib/unictype/pr_byname.c: New file.
80292         * lib/unictype/pr_byname.gperf: New file.
80293         * lib/unictype/pr_combining.c: New file.
80294         * lib/unictype/pr_composite.c: New file.
80295         * lib/unictype/pr_currency_symbol.c: New file.
80296         * lib/unictype/pr_dash.c: New file.
80297         * lib/unictype/pr_decimal_digit.c: New file.
80298         * lib/unictype/pr_default_ignorable_code_point.c: New file.
80299         * lib/unictype/pr_deprecated.c: New file.
80300         * lib/unictype/pr_diacritic.c: New file.
80301         * lib/unictype/pr_extender.c: New file.
80302         * lib/unictype/pr_format_control.c: New file.
80303         * lib/unictype/pr_grapheme_base.c: New file.
80304         * lib/unictype/pr_grapheme_extend.c: New file.
80305         * lib/unictype/pr_grapheme_link.c: New file.
80306         * lib/unictype/pr_hex_digit.c: New file.
80307         * lib/unictype/pr_hyphen.c: New file.
80308         * lib/unictype/pr_id_continue.c: New file.
80309         * lib/unictype/pr_id_start.c: New file.
80310         * lib/unictype/pr_ideographic.c: New file.
80311         * lib/unictype/pr_ids_binary_operator.c: New file.
80312         * lib/unictype/pr_ids_trinary_operator.c: New file.
80313         * lib/unictype/pr_ignorable_control.c: New file.
80314         * lib/unictype/pr_iso_control.c: New file.
80315         * lib/unictype/pr_join_control.c: New file.
80316         * lib/unictype/pr_left_of_pair.c: New file.
80317         * lib/unictype/pr_line_separator.c: New file.
80318         * lib/unictype/pr_logical_order_exception.c: New file.
80319         * lib/unictype/pr_lowercase.c: New file.
80320         * lib/unictype/pr_math.c: New file.
80321         * lib/unictype/pr_non_break.c: New file.
80322         * lib/unictype/pr_not_a_character.c: New file.
80323         * lib/unictype/pr_numeric.c: New file.
80324         * lib/unictype/pr_other_alphabetic.c: New file.
80325         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
80326         * lib/unictype/pr_other_grapheme_extend.c: New file.
80327         * lib/unictype/pr_other_id_continue.c: New file.
80328         * lib/unictype/pr_other_id_start.c: New file.
80329         * lib/unictype/pr_other_lowercase.c: New file.
80330         * lib/unictype/pr_other_math.c: New file.
80331         * lib/unictype/pr_other_uppercase.c: New file.
80332         * lib/unictype/pr_paired_punctuation.c: New file.
80333         * lib/unictype/pr_paragraph_separator.c: New file.
80334         * lib/unictype/pr_pattern_syntax.c: New file.
80335         * lib/unictype/pr_pattern_white_space.c: New file.
80336         * lib/unictype/pr_private_use.c: New file.
80337         * lib/unictype/pr_punctuation.c: New file.
80338         * lib/unictype/pr_quotation_mark.c: New file.
80339         * lib/unictype/pr_radical.c: New file.
80340         * lib/unictype/pr_sentence_terminal.c: New file.
80341         * lib/unictype/pr_soft_dotted.c: New file.
80342         * lib/unictype/pr_space.c: New file.
80343         * lib/unictype/pr_terminal_punctuation.c: New file.
80344         * lib/unictype/pr_test.c: New file.
80345         * lib/unictype/pr_titlecase.c: New file.
80346         * lib/unictype/pr_unassigned_code_value.c: New file.
80347         * lib/unictype/pr_unified_ideograph.c: New file.
80348         * lib/unictype/pr_uppercase.c: New file.
80349         * lib/unictype/pr_variation_selector.c: New file.
80350         * lib/unictype/pr_white_space.c: New file.
80351         * lib/unictype/pr_xid_continue.c: New file.
80352         * lib/unictype/pr_xid_start.c: New file.
80353         * lib/unictype/pr_zero_width.c: New file.
80354         * lib/unictype/scripts.c: New file.
80355         * lib/unictype/sy_c_ident.c: New file.
80356         * lib/unictype/sy_c_whitespace.c: New file.
80357         * lib/unictype/sy_java_ident.c: New file.
80358         * lib/unictype/sy_java_whitespace.c: New file.
80360         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
80361         Unicode 5.0.0.
80362         * lib/unictype/blocks.h: Likewise.
80363         * lib/unictype/categ_C.h: Likewise.
80364         * lib/unictype/categ_Cc.h: Likewise.
80365         * lib/unictype/categ_Cf.h: Likewise.
80366         * lib/unictype/categ_Cn.h: Likewise.
80367         * lib/unictype/categ_Co.h: Likewise.
80368         * lib/unictype/categ_Cs.h: Likewise.
80369         * lib/unictype/categ_L.h: Likewise.
80370         * lib/unictype/categ_Ll.h: Likewise.
80371         * lib/unictype/categ_Lm.h: Likewise.
80372         * lib/unictype/categ_Lo.h: Likewise.
80373         * lib/unictype/categ_Lt.h: Likewise.
80374         * lib/unictype/categ_Lu.h: Likewise.
80375         * lib/unictype/categ_M.h: Likewise.
80376         * lib/unictype/categ_Mc.h: Likewise.
80377         * lib/unictype/categ_Me.h: Likewise.
80378         * lib/unictype/categ_Mn.h: Likewise.
80379         * lib/unictype/categ_N.h: Likewise.
80380         * lib/unictype/categ_Nd.h: Likewise.
80381         * lib/unictype/categ_Nl.h: Likewise.
80382         * lib/unictype/categ_No.h: Likewise.
80383         * lib/unictype/categ_P.h: Likewise.
80384         * lib/unictype/categ_Pc.h: Likewise.
80385         * lib/unictype/categ_Pd.h: Likewise.
80386         * lib/unictype/categ_Pe.h: Likewise.
80387         * lib/unictype/categ_Pf.h: Likewise.
80388         * lib/unictype/categ_Pi.h: Likewise.
80389         * lib/unictype/categ_Po.h: Likewise.
80390         * lib/unictype/categ_Ps.h: Likewise.
80391         * lib/unictype/categ_S.h: Likewise.
80392         * lib/unictype/categ_Sc.h: Likewise.
80393         * lib/unictype/categ_Sk.h: Likewise.
80394         * lib/unictype/categ_Sm.h: Likewise.
80395         * lib/unictype/categ_So.h: Likewise.
80396         * lib/unictype/categ_Z.h: Likewise.
80397         * lib/unictype/categ_Zl.h: Likewise.
80398         * lib/unictype/categ_Zp.h: Likewise.
80399         * lib/unictype/categ_Zs.h: Likewise.
80400         * lib/unictype/categ_of.h: Likewise.
80401         * lib/unictype/combining.h: Likewise.
80402         * lib/unictype/ctype_alnum.h: Likewise.
80403         * lib/unictype/ctype_alpha.h: Likewise.
80404         * lib/unictype/ctype_blank.h: Likewise.
80405         * lib/unictype/ctype_cntrl.h: Likewise.
80406         * lib/unictype/ctype_digit.h: Likewise.
80407         * lib/unictype/ctype_graph.h: Likewise.
80408         * lib/unictype/ctype_lower.h: Likewise.
80409         * lib/unictype/ctype_print.h: Likewise.
80410         * lib/unictype/ctype_punct.h: Likewise.
80411         * lib/unictype/ctype_space.h: Likewise.
80412         * lib/unictype/ctype_upper.h: Likewise.
80413         * lib/unictype/ctype_xdigit.h: Likewise.
80414         * lib/unictype/decdigit.h: Likewise.
80415         * lib/unictype/digit.h: Likewise.
80416         * lib/unictype/mirror.h: Likewise.
80417         * lib/unictype/numeric.h: Likewise.
80418         * lib/unictype/pr_alphabetic.h: Likewise.
80419         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
80420         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
80421         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
80422         * lib/unictype/pr_bidi_block_separator.h: Likewise.
80423         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
80424         * lib/unictype/pr_bidi_common_separator.h: Likewise.
80425         * lib/unictype/pr_bidi_control.h: Likewise.
80426         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
80427         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
80428         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
80429         * lib/unictype/pr_bidi_european_digit.h: Likewise.
80430         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
80431         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
80432         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
80433         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
80434         * lib/unictype/pr_bidi_pdf.h: Likewise.
80435         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
80436         * lib/unictype/pr_bidi_whitespace.h: Likewise.
80437         * lib/unictype/pr_combining.h: Likewise.
80438         * lib/unictype/pr_composite.h: Likewise.
80439         * lib/unictype/pr_currency_symbol.h: Likewise.
80440         * lib/unictype/pr_dash.h: Likewise.
80441         * lib/unictype/pr_decimal_digit.h: Likewise.
80442         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
80443         * lib/unictype/pr_deprecated.h: Likewise.
80444         * lib/unictype/pr_diacritic.h: Likewise.
80445         * lib/unictype/pr_extender.h: Likewise.
80446         * lib/unictype/pr_format_control.h: Likewise.
80447         * lib/unictype/pr_grapheme_base.h: Likewise.
80448         * lib/unictype/pr_grapheme_extend.h: Likewise.
80449         * lib/unictype/pr_grapheme_link.h: Likewise.
80450         * lib/unictype/pr_hex_digit.h: Likewise.
80451         * lib/unictype/pr_hyphen.h: Likewise.
80452         * lib/unictype/pr_id_continue.h: Likewise.
80453         * lib/unictype/pr_id_start.h: Likewise.
80454         * lib/unictype/pr_ideographic.h: Likewise.
80455         * lib/unictype/pr_ids_binary_operator.h: Likewise.
80456         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
80457         * lib/unictype/pr_ignorable_control.h: Likewise.
80458         * lib/unictype/pr_iso_control.h: Likewise.
80459         * lib/unictype/pr_join_control.h: Likewise.
80460         * lib/unictype/pr_left_of_pair.h: Likewise.
80461         * lib/unictype/pr_line_separator.h: Likewise.
80462         * lib/unictype/pr_logical_order_exception.h: Likewise.
80463         * lib/unictype/pr_lowercase.h: Likewise.
80464         * lib/unictype/pr_math.h: Likewise.
80465         * lib/unictype/pr_non_break.h: Likewise.
80466         * lib/unictype/pr_not_a_character.h: Likewise.
80467         * lib/unictype/pr_numeric.h: Likewise.
80468         * lib/unictype/pr_other_alphabetic.h: Likewise.
80469         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
80470         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
80471         * lib/unictype/pr_other_id_continue.h: Likewise.
80472         * lib/unictype/pr_other_id_start.h: Likewise.
80473         * lib/unictype/pr_other_lowercase.h: Likewise.
80474         * lib/unictype/pr_other_math.h: Likewise.
80475         * lib/unictype/pr_other_uppercase.h: Likewise.
80476         * lib/unictype/pr_paired_punctuation.h: Likewise.
80477         * lib/unictype/pr_paragraph_separator.h: Likewise.
80478         * lib/unictype/pr_pattern_syntax.h: Likewise.
80479         * lib/unictype/pr_pattern_white_space.h: Likewise.
80480         * lib/unictype/pr_private_use.h: Likewise.
80481         * lib/unictype/pr_punctuation.h: Likewise.
80482         * lib/unictype/pr_quotation_mark.h: Likewise.
80483         * lib/unictype/pr_radical.h: Likewise.
80484         * lib/unictype/pr_sentence_terminal.h: Likewise.
80485         * lib/unictype/pr_soft_dotted.h: Likewise.
80486         * lib/unictype/pr_space.h: Likewise.
80487         * lib/unictype/pr_terminal_punctuation.h: Likewise.
80488         * lib/unictype/pr_titlecase.h: Likewise.
80489         * lib/unictype/pr_unassigned_code_value.h: Likewise.
80490         * lib/unictype/pr_unified_ideograph.h: Likewise.
80491         * lib/unictype/pr_uppercase.h: Likewise.
80492         * lib/unictype/pr_variation_selector.h: Likewise.
80493         * lib/unictype/pr_white_space.h: Likewise.
80494         * lib/unictype/pr_xid_continue.h: Likewise.
80495         * lib/unictype/pr_xid_start.h: Likewise.
80496         * lib/unictype/pr_zero_width.h: Likewise.
80497         * lib/unictype/scripts.h: Likewise.
80498         * lib/unictype/scripts_byname.gperf: Likewise.
80499         * lib/unictype/sy_c_ident.h: Likewise.
80500         * lib/unictype/sy_c_whitespace.h: Likewise.
80501         * lib/unictype/sy_java_ident.h: Likewise.
80502         * lib/unictype/sy_java_whitespace.h: Likewise.
80504         * lib/unictype/Makefile: New file.
80505         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
80506         glibc.
80507         * lib/unictype/3level.h: New file, copied from glibc.
80508         * lib/unictype/3levelbit.h: New file.
80510 2007-11-11  Bruno Haible  <bruno@clisp.org>
80512         * modules/gperf: New file.
80513         * modules/iconv_open (Depends-on): Add it.
80514         (Makefile.am): Remove the GPERF definition.
80516 2007-11-11  Bruno Haible  <bruno@clisp.org>
80518         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
80519         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
80521 2007-11-11  Bruno Haible  <bruno@clisp.org>
80523         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
80524         (usage): Remove function.
80526 2007-11-11  Bruno Haible  <bruno@clisp.org>
80528         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
80529         gl_FUNC_CEILF_LIBS.
80530         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
80531         gl_FUNC_CEIL_LIBS.
80532         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
80533         gl_FUNC_CEILL_LIBS.
80534         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
80535         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
80536         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
80538 2007-11-11  Bruno Haible  <bruno@clisp.org>
80540         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
80541         roundf were declared but do not exist on functions.
80542         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
80543         roundl were declared but do not exist on functions.
80544         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
80545         HAVE_FLOORL_AND_CEILL, respectively.
80546         Needed for Sun C on Solaris 10.
80548 2007-11-11  Bruno Haible  <bruno@clisp.org>
80550         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
80551         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
80552         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
80553         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
80554         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
80555         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
80556         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
80557         HAVE_DECL_ROUNDF.
80558         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
80559         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
80560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
80561         of HAVE_DECL_ROUND*.
80562         * modules/math (Makefile.am): Update.
80564 2007-11-10  Bruno Haible  <bruno@clisp.org>
80566         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
80567         ptrdiff_t as m4/intl.m4.
80569 2007-11-10  Jim Meyering  <meyering@redhat.com>
80571         Avoid link failure for the argmatch test.
80572         * tests/test-argmatch.c (usage): Define function to avoid a link
80573         failure: argmatch_die requires a usage function.
80575 2007-11-09  Bruno Haible  <bruno@clisp.org>
80577         * doc/functions/snprintf.texi: Mention BeOS deficiency.
80578         * doc/functions/vsnprintf.texi: Likewise.
80579         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
80580         with a size argument < 2.
80582 2007-11-09  Bruno Haible  <bruno@clisp.org>
80584         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
80585         buffer. Fixes an inefficiency introduced on 2007-11-03.
80587 2007-11-09  Bruno Haible  <bruno@clisp.org>
80589         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
80590         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
80592 2007-11-08  Jim Meyering  <meyering@redhat.com>
80594         Change cache variable name prefix "jm_" to "gl_" everywhere.
80595         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
80596         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
80597         * m4/uptime.m4: s/gl_/jm_/
80599 2007-11-07  Bruno Haible  <bruno@clisp.org>
80601         Update to GNU gettext 0.17.
80602         * m4/intl.m4: Update to GNU gettext 0.17.
80603         * m4/po.m4: Likewise.
80604         * modules/gettext (Files): Remove m4/ulonglong.m4.
80605         (configure.ac): Require gettext infrastructure from version 0.17.
80607 2007-11-06  Bruno Haible  <bruno@clisp.org>
80609         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
80610         symbolic values are not defined in a public header.
80611         * lib/freadable.c (freadable) [QNX]: Likewise.
80612         * lib/freadahead.c (freadahead) [QNX]: Likewise.
80613         * lib/freading.c (freading) [QNX]: Likewise.
80614         * lib/fseterr.c (fseterr) [QNX]: Likewise.
80615         * lib/fwritable.c (fwritable) [QNX]: Likewise.
80616         * lib/fwriting.c (fwriting) [QNX]: Likewise.
80617         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
80618         Reported by Alain Magloire.
80620         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
80622 2007-11-05  Bruno Haible  <bruno@clisp.org>
80624         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
80625         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
80626         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
80627         Reported by Eric Blake.
80629 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80630             Bruno Haible  <bruno@clisp.org>
80632         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
80633         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
80634         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
80635         (malloc): Undefine also before including <stdlib.h>.
80636         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
80637         Needed on OSF/1 4.0.
80639 2007-11-05  Jim Meyering  <meyering@redhat.com>
80641         git-version-gen: sync from coreutils.
80642         * build-aux/git-version-gen: Add comments.
80643         Change the first '-' to '.' in the snapshot version string,
80644         e.g., 6.9-377-08144 -> 6.9.377-08144
80645         Remove first parameter.
80646         Don't declare a version "-dirty" merely because a time
80647         stamp has changed.
80649 2007-11-04  Bruno Haible  <bruno@clisp.org>
80651         * lib/lock.h: Protect all macro definitions containing an 'if'
80652         statement through a "do { ... } while (0)".
80653         * lib/tls.h: Likewise.
80655 2007-11-04  Bruno Haible  <bruno@clisp.org>
80657         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
80659 2007-11-04  Bruno Haible  <bruno@clisp.org>
80661         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
80662         * modules/fprintf-posix (Depends-on): Add nocrash.
80663         * modules/snprintf-posix (Depends-on): Likewise.
80664         * modules/sprintf-posix (Depends-on): Likewise.
80665         * modules/vasnprintf-posix (Depends-on): Likewise.
80666         * modules/vasprintf-posix (Depends-on): Likewise.
80667         * modules/vfprintf-posix (Depends-on): Likewise.
80668         * modules/vsnprintf-posix (Depends-on): Likewise.
80669         * modules/vsprintf-posix (Depends-on): Likewise.
80670         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
80671         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
80672         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
80673         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
80674         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
80675         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
80676         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
80678 2007-11-04  Bruno Haible  <bruno@clisp.org>
80680         * modules/nocrash: New file.
80681         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
80682         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
80684 2007-11-04  Bruno Haible  <bruno@clisp.org>
80686         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
80687         precision handling.
80688         * tests/test-vasprintf-posix.c (test_function): Likewise.
80689         * tests/test-snprintf-posix.h (test_function): Likewise.
80690         * tests/test-sprintf-posix.h (test_function): Likewise.
80692         Fix *printf behaviour for large precisions on mingw and BeOS.
80693         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
80694         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
80695         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
80696         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
80697         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80698         gl_PRINTF_PRECISION and test its result. Invoke
80699         gl_PREREQ_VASNPRINTF_PRECISION.
80700         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80701         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80702         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80703         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80704         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80705         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80706         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80707         * doc/functions/fprintf.texi: Update.
80708         * doc/functions/printf.texi: Update.
80709         * doc/functions/snprintf.texi: Update.
80710         * doc/functions/sprintf.texi: Update.
80711         * doc/functions/vfprintf.texi: Update.
80712         * doc/functions/vprintf.texi: Update.
80713         * doc/functions/vsnprintf.texi: Update.
80714         * doc/functions/vsprintf.texi: Update.
80716 2007-11-04  Bruno Haible  <bruno@clisp.org>
80718         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
80720 2007-11-04  Bruno Haible  <bruno@clisp.org>
80722         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
80723         Reported by Sylvain Beucler <beuc@gnu.org>.
80725 2007-11-03  Bruno Haible  <bruno@clisp.org>
80727         * tests/test-fprintf-posix2.sh: New file.
80728         * tests/test-fprintf-posix2.c: New file.
80729         * modules/fprintf-posix-tests (Files): Add them.
80730         (TESTS): Add test-fprintf-posix2.sh.
80731         (configure.ac): Check for getrlimit and setrlimit.
80732         (check_PROGRAMS): Add test-fprintf-posix2.
80734         * tests/test-printf-posix2.sh: New file.
80735         * tests/test-printf-posix2.c: New file.
80736         * modules/printf-posix-tests (Files): Add them.
80737         (TESTS): Add test-printf-posix2.sh.
80738         (configure.ac): Check for getrlimit and setrlimit.
80739         (check_PROGRAMS): Add test-printf-posix2.
80741         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
80742         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
80743         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
80744         (decode_double): New function, copied from decode_long_double.
80745         (scale10_round_decimal_decoded): New function, extracted from
80746         scale10_round_decimal_long_double.
80747         (scale10_round_decimal_long_double): Use it.
80748         (scale10_round_decimal_double): New function.
80749         (floorlog10): New function.
80750         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
80751         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
80752         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
80753         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80754         gl_PRINTF_ENOMEM and test its result. Invoke
80755         gl_PREREQ_VASNPRINTF_ENOMEM.
80756         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80757         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80758         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80759         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80760         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80761         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80762         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80763         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
80764         * modules/snprintf-posix (Depends-on): Likewise.
80765         * modules/sprintf-posix (Depends-on): Likewise.
80766         * modules/vasnprintf-posix (Depends-on): Likewise.
80767         * modules/vasprintf-posix (Depends-on): Likewise.
80768         * modules/vfprintf-posix (Depends-on): Likewise.
80769         * modules/vsnprintf-posix (Depends-on): Likewise.
80770         * modules/vsprintf-posix (Depends-on): Likewise.
80771         * doc/functions/fprintf.texi: Update.
80772         * doc/functions/printf.texi: Update.
80773         * doc/functions/snprintf.texi: Update.
80774         * doc/functions/sprintf.texi: Update.
80775         * doc/functions/vfprintf.texi: Update.
80776         * doc/functions/vprintf.texi: Update.
80777         * doc/functions/vsnprintf.texi: Update.
80778         * doc/functions/vsprintf.texi: Update.
80780 2007-11-03  Bruno Haible  <bruno@clisp.org>
80782         * modules/frexp-nolibm-tests: New file.
80784         * modules/frexp-nolibm: New file.
80785         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
80787 2007-11-03  Bruno Haible  <bruno@clisp.org>
80789         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
80790         value is C99 compliant.
80791         Needed for OSF/1 5.1.
80793 2007-11-03  Bruno Haible  <bruno@clisp.org>
80795         Fix out-of-memory handling of vasnprintf.
80796         * lib/printf-parse.c: Include <errno.h>.
80797         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
80798         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
80799         is already set.
80801 2007-11-02  Eric Blake  <ebb9@byu.net>
80803         Fix tests on cygwin.
80804         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
80806 2007-11-01  Bruno Haible  <bruno@clisp.org>
80808         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
80809         warning.
80810         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
80811         needed for POSIX compatibility.
80813 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80815         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
80816         for compatibility with GNU.
80818 2007-11-01  Bruno Haible  <bruno@clisp.org>
80820         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
80821         (putenv): Renamed from rpl_putenv. Change argument type from
80822         'const char *' to 'char *'.
80823         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
80824         of defining putenv in config.h, just set REPLACE_PUTENV.
80825         * modules/putenv (Depends-on): Add stdlib.
80826         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
80827         (Include): Use <stdlib.h>.
80828         * lib/stdlib.in.h (putenv): New declaration.
80829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
80830         REPLACE_PUTENV.
80831         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
80832         REPLACE_PUTENV.
80833         Needed for MacOS X 10.5.0.
80834         Reported by Peter O'Gorman <peter@pogma.com>.
80836 2007-11-01  Jim Meyering  <meyering@redhat.com>
80838         Treat an empty date string exactly like "0".
80839         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
80840         if the remaining date string (to be parsed) is empty, use "0".
80841         Reported by Mischa Molhoek and discussed in this thread:
80842         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
80844 2007-10-31  Bruno Haible  <bruno@clisp.org>
80846         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
80847         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
80848         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
80849         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
80850         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
80851         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
80853 2007-10-31  Bruno Haible  <bruno@clisp.org>
80855         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
80856         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
80857         (AC_TYPE_LONG_LONG_INT): Use it.
80858         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
80859         it as well.
80860         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
80861         to m4/longlong.m4.
80862         * modules/stdint (Files): Remove m4/ulonglong.m4.
80863         * modules/strtoull (Files): Use m4/longlong.m4 instead of
80864         m4/ulonglong.m4.
80865         * modules/strtoumax (Files): Likewise.
80867 2007-10-30  Bruno Haible  <bruno@clisp.org>
80869         * modules/xvasprintf-posix: New file.
80870         Suggested by Eric Blake.
80872 2007-10-30  Bruno Haible  <bruno@clisp.org>
80874         * modules/xprintf-posix-tests: New file.
80875         * tests/test-xprintf-posix.sh: New file.
80876         * tests/test-xprintf-posix.c: New file.
80877         * tests/test-xfprintf-posix.c: New file.
80879         * modules/xprintf-posix: New file.
80881 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80883         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
80884         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
80885         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
80887 2007-10-29  Bruno Haible  <bruno@clisp.org>
80889         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
80890         contain the special marker '_cv_'.
80891         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
80892         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
80893         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
80894         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
80895         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
80896         Reported by Ralf Wildenhues.
80898 2007-10-29  Bruno Haible  <bruno@clisp.org>
80900         * gnulib-tool (func_import): When --lgpl is not specified, set
80901         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
80902         GPLv3.
80903         Reported by Simon Josefsson.
80905 2007-10-28  Bruno Haible  <bruno@clisp.org>
80907         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
80908         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
80909         HAVE_DECL_ISFINITE.
80910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
80911         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
80912         HAVE_DECL_ISFINITE.
80914 2007-10-28  Bruno Haible  <bruno@clisp.org>
80916         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
80917         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
80919 2007-10-28  Bruno Haible  <bruno@clisp.org>
80921         Fix link errors with Sun C 5.0 on Solaris 10.
80922         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
80923         function is declared but not present in the compiler's libm.
80924         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
80925         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
80926         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
80927         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
80928         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
80929         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
80930         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
80931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
80932         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
80933         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
80934         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
80935         HAVE_DECL_FLOORL.
80937 2007-10-28  Bruno Haible  <bruno@clisp.org>
80939         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
80940         gl_FUNC_FLOORL. Cache the result.
80941         (gl_FUNC_FLOORL): Use it.
80942         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
80943         gl_FUNC_CEILL. Cache the result.
80944         (gl_FUNC_CEILL): Use it.
80946         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
80947         gl_FUNC_FLOOR. Cache the result.
80948         (gl_FUNC_FLOOR): Use it.
80949         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
80950         gl_FUNC_CEIL. Cache the result.
80951         (gl_FUNC_CEIL): Use it.
80953         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
80954         gl_FUNC_FLOORF. Cache the result.
80955         (gl_FUNC_FLOORF): Use it.
80956         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
80957         gl_FUNC_CEILF. Cache the result.
80958         (gl_FUNC_CEILF): Use it.
80960 2007-10-28  Bruno Haible  <bruno@clisp.org>
80962         * gnulib-tool: Allow specifying the LGPL version number through
80963         --lgpl=2 or --lgpl=3.
80964         (func_usage): Document --lgpl with argument.
80965         Handle --lgpl=... arguments.
80966         (func_import): Recognize also gl_LGPL calls with an argument. When
80967         --lgpl=2 is used and the module's license is just LGPL, report an
80968         error. Set sed_transform_lib_file according to the lgpl variable. In
80969         the generated files, use --lgpl or gl_LGPL invocations with argument,
80970         if necessary.
80971         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
80972         an LGPv2+ license.
80973         * doc/gnulib-tool.texi (Modified imports): Update explanation of
80974         gl_LGPL macro.
80976 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80977             Bruno Haible  <bruno@clisp.org>
80979         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
80980         (u16_uctomb_aux): Likewise.
80981         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
80982         !HAVE_INLINE.
80983         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
80985 2007-10-28  Bruno Haible  <bruno@clisp.org>
80987         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
80988         Invoke AM_GETTEXT_OPTION if it exists.
80989         * modules/vasprintf: Likewise.
80990         * modules/verror: Likewise.
80991         * modules/xprintf: Likewise.
80992         * modules/xvasprintf: Likewise.
80994 2007-10-27  Ben Pfaff  <blp@gnu.org>
80996         * lib/math.in.h: Define isfinite macro and prototypes for
80997         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
80998         implementations.
80999         * m4/math_h.m4: New substitutions for isfinite module.
81000         * lib/isfinite.c: New file.
81001         * m4/isfinite.m4: New file.
81002         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
81003         * modules/isfinite: New file.
81004         * modules/isfinite-tests: New file.
81005         * tests/tests-isfinite.c: New file.
81006         * doc/functions/isfinite.texi: Mention isfinite module.
81007         * MODULES.html.sh: Mention new module.
81009 2007-10-27  Ben Pfaff  <blp@gnu.org>
81011         Ralf Wildenhues reported that Tru64 4.0D declares the round
81012         functions but does not have definitions.
81013         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
81014         cannot be found in any library, set the output variable to
81015         "missing" instead of "".
81016         * m4/round.m4: Also use our substitute if we cannot find round in
81017         any library, even if it is declared.
81018         * m4/roundf.m4: Likewise for roundf.
81019         * m4/roundl.m4: Likewise for roundl.
81020         * lib/math.in.h: Undefine roundf, round, roundl before defining
81021         their replacements, to allow for hypothetical systems where these
81022         may be defined as macros but not available in libraries.
81024 2007-10-27  Bruno Haible  <bruno@clisp.org>
81026         * doc/gnulib.texi: Invoke @firstparagraphindent.
81027         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
81028         changes in gnulib.
81029         (Source changes): New section.
81031 2007-10-26  Bruno Haible  <bruno@clisp.org>
81033         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
81034         borrowed from autoconf.
81036 2007-10-26  Bruno Haible  <bruno@clisp.org>
81038         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
81039         strerror returned the empty string. Needed on HP-UX 11.00.
81041 2007-10-24  Micah Cowan  <micah@cowan.name>
81043         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
81044         * build-aux/bootstrap: Remove support for now-unnecessary option,
81045         --cvs-user, and envvars CVS_USER, CVS_RSH.
81047 2007-10-24  Jim Meyering  <meyering@redhat.com>
81049         Avoid diagnostics from sha1sum when there is no cached checksum.
81050         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
81051         if the po.s1 file hasn't been created yet.
81053         * build-aux/bootstrap: Sync from coreutils:
81054         2007-10-24  Jim Meyering  <meyering@redhat.com>
81055         Get gnulib from the git repository, not from an obsolete cvs one.
81056         * build-aux/bootstrap: Suggestion from Micah Cowan.
81057         2007-10-04  Jim Meyering  <jim@meyering.net>
81058         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
81059         (update_po_files): Work also when there are no .po files in po/.
81061 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81063         * README: Append ".git" to git and cg examples.
81064         Problem reported by Benoit Sigoure.
81066 2007-10-23  Micah Cowan  <micah@cowan.name>
81068         * users.txt: Add wget.
81070 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81072         Fix linking of some unistdio tests on FreeBSD.
81073         * modules/unistdio/u16-vsnprintf-tests
81074         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
81075         * modules/unistdio/u16-vsprintf-tests
81076         (test_u16_vsnprintf1_LDADD): Likewise.
81077         * modules/unistdio/u32-vsnprintf-tests
81078         (test_u32_vsnprintf1_LDADD): Likewise.
81079         * modules/unistdio/u32-vsprintf-tests
81080         (test_u32_vsprintf1_LDADD): Likewise.
81081         * modules/unistdio/u8-vsnprintf-tests
81082         (test_u8_vsnprintf1_LDADD): Likewise.
81083         * modules/unistdio/u8-vsprintf-tests
81084         (test_u8_vsprintf1_LDADD): Likewise.
81085         * modules/unistdio/ulc-vsnprintf-tests
81086         (test_ulc_vsnprintf1_LDADD): Likewise.
81087         * modules/unistdio/ulc-vsprintf-tests
81088         (test_ulc_vsprintf1_LDADD): Likewise.
81090         Fix linking of some uniconv tests on FreeBSD.
81091         * modules/uniconv/u16-conv-from-enc-tests
81092         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
81093         * modules/uniconv/u16-conv-to-enc-tests
81094         (test_u16_conv_to_enc_LDADD): Likewise.
81095         * modules/uniconv/u16-strconv-from-enc-tests
81096         (test_u16_strconv_from_enc_LDADD): Likewise.
81097         * modules/uniconv/u16-strconv-to-enc-tests
81098         (test_u16_strconv_to_enc_LDADD): Likewise.
81099         * modules/uniconv/u32-conv-from-enc-tests
81100         (test_u32_conv_from_enc_LDADD): Likewise.
81101         * modules/uniconv/u32-conv-to-enc-tests
81102         (test_u32_conv_to_enc_LDADD): Likewise.
81103         * modules/uniconv/u32-strconv-from-enc-tests
81104         (test_u32_strconv_from_enc_LDADD): Likewise.
81105         * modules/uniconv/u32-strconv-to-enc-tests
81106         (test_u32_strconv_to_enc_LDADD): Likewise.
81107         * modules/uniconv/u8-conv-from-enc-tests
81108         (test_u8_conv_from_enc_LDADD): Likewise.
81109         * modules/uniconv/u8-conv-to-enc-tests
81110         (test_u8_conv_to_enc_LDADD): Likewise.
81111         * modules/uniconv/u8-strconv-from-enc-tests
81112         (test_u8_strconv_from_enc_LDADD): Likewise.
81113         * modules/uniconv/u8-strconv-to-enc-tests
81114         (test_u8_strconv_to_enc_LDADD): Likewise.
81116 2007-10-22  Bruno Haible  <bruno@clisp.org>
81118         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
81119         size.
81121 2007-10-22  Eric Blake  <ebb9@byu.net>
81123         Tweak x*printf documentation.
81124         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
81125         variable name and comments.
81126         Suggested by Bruno Haible.
81128 2007-10-22  Bruno Haible  <bruno@clisp.org>
81130         * lib/acl.c (copy_acl): Fix file name in comment.
81132 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81134         Fix Tru64 problem with stdbool.h.
81135         * lib/stdbool.in.h (false, true):
81136         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
81137         Don't declare as an enum in this situation; it runs afoul of Tru64.
81138         Problem reported by Steven M. Schweda in
81139         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
81141 2007-10-22  Eric Blake  <ebb9@byu.net>
81143         Also wrap vf?printf.
81144         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
81145         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
81146         (xvprintf, xvfprintf): New functions.
81148 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81150         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
81151         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
81153         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
81154         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
81156 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81158         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
81159         by Bruno Haible.
81161 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81163         * lib/getloadavg.c
81164         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
81165         Undef `sys' after including sys/table.h, for Tru64 4.0D.
81167         * tests/test-i-ring.c: Work for C89.
81169 2007-10-22  Bruno Haible  <bruno@clisp.org>
81171         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
81172         -1u, in preprocessor expression, so that we don't test for the bug
81173         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
81174         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
81176 2007-10-22  Eric Blake  <ebb9@byu.net>
81178         * tests/test-yesno.sh: Silence stderr during test.
81180 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81182         * modules/crypto/gc-camellia: New file.
81184         * m4/gc-camellia.m4: New file.
81186         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
81188         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
81190 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81192         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
81193         --help to stdout.  Reported by sms@antinode.org (Steven
81194         M. Schweda).
81196 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81198         * users.txt: Fix link to libksba.
81200 2007-10-21  Ben Pfaff  <blp@gnu.org>
81202         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
81203         round.c roundf implementation that depends on floorf and ceilf to
81204         be tested unconditionally.
81206 2007-10-21  Ben Pfaff  <blp@gnu.org>
81208         * m4/check-libm-func.m4: Removed.
81209         * m4/check-math-lib.m4: New file.
81210         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
81211         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
81212         definition and lack of AC_LIBOBJ([roundf]).
81213         * m4/roundl.m4: Ditto, and similarly for roundl.
81214         * modules/round: Reference new m4 file.
81215         * modules/roundf: Ditto.
81216         * modules/roundl: Ditto.
81217         * tests/test-round2.c (main): Use ROUND instead of round.
81218         Bug report from Bruno Haible.
81220 2007-10-21  Bruno Haible  <bruno@clisp.org>
81222         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
81223         context.
81225 2007-10-21  Bruno Haible  <bruno@clisp.org>
81227         * tests/test-wcwidth.c (main): Allow negative result for some control
81228         characters.
81230         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
81231         Needed on OSF/1 5.1.
81233 2007-10-21  Bruno Haible  <bruno@clisp.org>
81235         * tests/test-floorf1.c: Include isnanf.h.
81236         (main): Use isnanf() instead of isnan().
81237         * tests/test-ceilf1.c: Include isnanf.h.
81238         (main): Use isnanf() instead of isnan().
81239         * tests/test-truncf1.c: Include isnanf.h.
81240         (main): Use isnanf() instead of isnan().
81241         * tests/test-roundf1.c: Include isnanf.h.
81242         (main): Use isnanf() instead of isnan().
81244 2007-10-21  Eric Blake  <ebb9@byu.net>
81246         * users.txt: Update URL for m4.
81248 2007-10-21  Bruno Haible  <bruno@clisp.org>
81250         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
81252 2007-10-21  Bruno Haible  <bruno@clisp.org>
81254         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
81255         Git's management files if the CVS files are not present.
81257 2007-10-20  Bruno Haible  <bruno@clisp.org>
81259         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
81260         gcc-3.4.x.
81262 2007-10-20  Ben Pfaff  <blp@gnu.org>
81264         * lib/math.in.h: Declare round, roundf, roundl if we are providing
81265         implementations.
81266         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
81267         * lib/round.c: New file.
81268         * lib/roundf.c: New file.
81269         * lib/roundl.c: New file.
81270         * m4/round.m4: New file.
81271         * m4/roundf.m4: New file.
81272         * m4/roundl.m4: New file.
81273         * m4/check-libm-func-m4: New file.
81274         * modules/math: Replace round, roundf, roundl related @VARS@ in
81275         math.in.h.
81276         * modules/round: New file.
81277         * modules/round-tests: New file.
81278         * modules/roundf: New file.
81279         * modules/roundf-tests: New file.
81280         * modules/roundl: New file.
81281         * modules/roundl-tests: New file.
81282         * tests/test-round1.c: New file.
81283         * tests/test-round2.c: New file.
81284         * tests/test-roundf1.c: New file.
81285         * tests/test-roundf2.c: New file.
81286         * tests/test-roundl.c: New file.
81287         * doc/functions/round.texi: Mention round module.
81288         * doc/functions/roundf.texi: Mention roundf module.
81289         * doc/functions/roundl.texi: Mention roundl module.
81290         * MODULES.html.sh: Mention new modules.
81291         Thanks to Bruno Haible for suggestions.
81293 2007-10-20  Jim Meyering  <meyering@redhat.com>
81295         * lib/xprintf.c: Include <config.h> unconditionally.
81297         Change xprintf's license to GPL.
81298         * modules/xprintf (License): s/LGPL/GPL/, since this module
81299         depends on modules (exit and exitfail) which are GPL.
81300         Suggestion from Bruno Haible.
81302         xprintf fixes.
81303         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
81304         Use a clearer diagnostic.
81305         Patch from Bruno Haible.
81307 2007-10-20  Bruno Haible  <bruno@clisp.org>
81309         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
81310         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
81311         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81313 2007-10-20  Bruno Haible  <bruno@clisp.org>
81315         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
81316         precision in the comparison result > x - 1 or similar.
81317         * tests/test-ceilf2.c (correct_result_p): Likewise.
81318         * tests/test-truncf2.c (correct_result_p): Likewise.
81319         * tests/test-trunc2.c (correct_result_p): Likewise.
81320         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81322 2007-10-20  Bruno Haible  <bruno@clisp.org>
81324         * modules/ceil: New file.
81325         * m4/ceil.m4: New file.
81326         * doc/functions/ceil.texi: Mention the 'ceil' module.
81328 2007-10-20  Bruno Haible  <bruno@clisp.org>
81330         * modules/floor: New file.
81331         * m4/floor.m4: New file.
81332         * doc/functions/floor.texi: Mention the 'floor' module.
81334 2007-10-20  Bruno Haible  <bruno@clisp.org>
81336         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
81337         of %a.
81338         * modules/floorf-tests (Depends-on): Likewise.
81339         * modules/truncf-tests (Depends-on): Likewise.
81340         * modules/trunc-tests (Depends-on): Likewise.
81341         Reported by Ben Pfaff.
81343 2007-10-19  Jim Meyering  <meyering@redhat.com>
81345         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
81346         Don't bother testing specific errno values.  Just test ferror.
81348         New module: xprintf
81349         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
81351 2007-10-19  Bruno Haible  <bruno@clisp.org>
81353         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
81354         syntax.
81355         * modules/javaexec (Makefile.am): Likewise.
81356         * modules/relocatable-prog (Makefile.am): Likewise.
81357         Suggested by Jim Meyering.
81359 2007-10-18  Bruno Haible  <bruno@clisp.org>
81361         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
81362         Reported by Jim Meyering.
81364 2007-10-18  Eric Blake  <ebb9@byu.net>
81366         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
81368 2007-10-18  Bruno Haible  <bruno@clisp.org>
81370         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
81371         the format string into writable memory. Needed in Fortify conditions.
81373 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
81374             Bruno Haible  <bruno@clisp.org>
81376         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
81377         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
81378         * modules/trim (Depends-on): Add mbchar.
81379         (configure.ac): Add gl_FUNC_MBRTOWC.
81380         (Makefile.am): Augment lib_SOURCES.
81382 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81384         Modify glob.c to use fstatat and dirfd, to simplify it.
81385         Suggested by Eric Blake.
81386         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
81387         Don't include <stdbool.h>; not used.
81388         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
81389         (link_exists_p): Simplify implementation, since we can now assume
81390         dirfd and fstatat.
81391         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
81393 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81395         * gnulib-tool (func_get_dependencies): Fix sed script to
81396         match only tests.
81398 2007-10-17  Bruno Haible  <bruno@clisp.org>
81400         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
81401         allow locale names without encoding suffix.
81402         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81403         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81405 2007-10-16  Bruno Haible  <bruno@clisp.org>
81407         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
81408         * lib/getgroups.c (getgroups): Likewise.
81409         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
81411 2007-10-16  Bruno Haible  <bruno@clisp.org>
81413         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
81414         * modules/malloc-posix (License): Likewise.
81415         * modules/realloc-posix (License): Likewise.
81416         * modules/calloc-posix (License): Likewise.
81417         * modules/intprops (License): Change from GPL to LGPL, with
81418         Paul Eggert's approval.
81420 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
81422         Merge glibc changes into lib/glob.c.
81424         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
81425         2007-10-15 04:59:03 UTC.  Here are the changes:
81427         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
81429         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
81431         * lib/glob.c: Add some branch prediction throughout.
81433         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
81435         [BZ #5103]
81436         * lib/glob.c (glob): Recognize patterns starting \/.
81438         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
81440         [BZ #3996]
81441         * lib/glob.c (attribute_hidden): Define if not defined.
81442         (glob): Unescape dirname, filename or username when needed and not
81443         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
81444         is NULL.  Handle unescaped [ in pattern without closing ].
81445         Don't pass GLOB_CHECK down to recursive glob for directories.
81446         (__glob_pattern_type): New function.
81447         (__glob_pattern_p): Implement using __glob_pattern_type.
81448         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
81449         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
81450         Remove unreachable code.
81452         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
81454         * lib/glob.c (glob_in_dir): Add some comments and asserts to
81455         explain why there are no leaks.
81457         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
81459         [BZ #3253]
81460         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
81461         time, rather allocate increasingly bigger arrays of pointers, if
81462         possible with alloca, if too large with malloc.
81464 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
81466         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
81467         Problem reported by H.Merijn Brand in
81468         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
81469         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
81470         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81472 2007-10-15  Bruno Haible  <bruno@clisp.org>
81474         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
81475         with explicit rpl_ prefix.
81476         * lib/fopen.c (fopen): Likewise.
81477         * lib/freopen.c (freopen): Likewise.
81478         * lib/iconv.c (iconv): Likewise.
81479         * lib/iconv_close.c (iconv_close): Likewise.
81481 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81483         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
81485 2007-10-15  Bruno Haible  <bruno@clisp.org>
81487         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
81488         <stddef.h> instead of <stdlib.h> since we only need NULL.
81489         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81491 2007-10-15  Bruno Haible  <bruno@clisp.org>
81493         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
81494         Replace paragraph talking about LIBOBJS.
81495         Reported by Colin Watson <cjwatson@debian.org>.
81497 2007-10-15  Bruno Haible  <bruno@clisp.org>
81499         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
81500         <stdlib.h> before using NULL.
81502 2007-10-15  Simon Josefsson  <simon@josefsson.org>
81504         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
81505         Reported by Albert Chin <china@thewrittenword.com>.
81507 2007-10-14  Bruno Haible  <bruno@clisp.org>
81509         * modules/iconv_open-utf-tests: New file.
81510         * tests/test-iconv-utf.c: New file.
81512         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
81513         * modules/iconv_open-utf: New file.
81514         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
81515         (iconv, iconv_close): New declarations.
81516         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
81517         be defined.
81518         (iconv_open): Add special handling of conversion between UTF-8 and
81519         UTF-{16,32}{BE,LE}.
81520         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
81521         * lib/iconv_close.c: New file.
81522         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
81523         gl_FUNC_ICONV_OPEN.
81524         (gl_FUNC_ICONV_OPEN): Use it.
81525         (gl_FUNC_ICONV_OPEN_UTF): New macro.
81526         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
81527         and REPLACE_ICONV_UTF.
81528         * modules/iconv_open (Depends-on): Add c-strcase.
81529         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
81530         ICONV_CONST.
81531         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
81533 2007-10-13  Albert Chin  <china@thewrittenword.com>
81534             Bruno Haible  <bruno@clisp.org>
81536         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
81537         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
81539 2007-10-13  Bruno Haible  <bruno@clisp.org>
81541         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
81542         defined, use the ISO C99 inline semantics.
81543         * lib/argp.h (ARGP_EI): Likewise.
81545 2007-10-13  Bruno Haible  <bruno@clisp.org>
81547         Handle 'inline' change in gcc 4.3.0.
81548         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
81549         argp_fmtstream_write, argp_fmtstream_set_lmargin,
81550         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
81551         argp_fmtstream_point): Disable 'extern' declaration if the function
81552         definition is going to be provided inline.
81553         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
81554         semantics, not the ISO C99 inline semantics.
81555         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
81556         'extern' declaration if the function definition is going to be provided
81557         inline.
81558         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
81559         the GNU C inline semantics, not the ISO C99 inline semantics. With
81560         GCC 4.2, avoid a warning.
81562 2007-10-13  Bruno Haible  <bruno@clisp.org>
81564         * lib/freading.h (freading): Enable the use of __freading for
81565         glibc >= 2.7.
81566         * lib/freading.c (freading): Likewise.
81568 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
81570         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
81571         "warning: C99 inline functions are not supported; using GNU89".
81573 2007-10-12  Bruno Haible  <bruno@clisp.org>
81575         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
81576         of 2.
81577         * tests/test-ceilf2.c: New file.
81578         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
81580         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
81581         * modules/ceilf-tests: Update.
81583 2007-10-12  Bruno Haible  <bruno@clisp.org>
81585         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
81586         of 2.
81587         * tests/test-floorf2.c: New file.
81588         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
81590         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
81591         * modules/floorf-tests: Update.
81593 2007-10-12  Bruno Haible  <bruno@clisp.org>
81595         * tests/test-trunc2.c: New file.
81596         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
81598         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
81599         * modules/trunc-tests: Update.
81601 2007-10-12  Bruno Haible  <bruno@clisp.org>
81603         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
81604         of 2.
81605         * tests/test-truncf2.c: New file.
81606         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
81608         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
81609         * modules/truncf-tests: Update.
81611 2007-10-11  Eric Blake  <ebb9@byu.net>
81613         Don't claim strerror is broken on Interix.
81614         * doc/functions/strerror.texi (strerror): Known broken systems are
81615         now Solaris 8, and not Interix.
81616         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
81617         Interix on cross-compile.
81618         Reported by Martin Koeppe in
81619         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
81621 2007-10-11  Bruno Haible  <bruno@clisp.org>
81623         * modules/i-ring-tests: New file.
81624         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
81625         instead of assert.
81627 2007-10-11  Bruno Haible  <bruno@clisp.org>
81629         * modules/filenamecat-tests: New file.
81630         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
81631         * lib/filenamecat.c: Remove test code.
81633 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
81635         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
81637         * lib/strerror.c: Include <string.h> always, to test interface,
81638         and to remove the need for the dummy.
81639         Include intprops.h to compute width instead of doing it ourselves
81640         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
81641         (strerror): Define it to return NULL if there's no system strerror.
81642         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
81643         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
81644         ancient pre-strerror Unix systems well any more.  Saying "unknown
81645         system error" is enough.
81646         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
81647         simpler strerror.c implementation.
81648         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
81649         Simplify the tests to reflect the simpler strerror implementation.
81650         * modules/strerror (Depends-on): Add intprops.
81652 2007-10-09  Eric Blake  <ebb9@byu.net>
81654         Silence test-fpending.
81655         * modules/fpending-tests (Files): Add wrapper script.
81656         * tests/test-fpending.sh: New file.
81658 2007-10-09  Bruno Haible  <bruno@clisp.org>
81660         * MODULES.html.sh (func_module): Don't create a hyperlink for
81661         function names like 'printf_frexp'.
81662         (Misc): Add crc, memxor.
81663         (Characteristics of floating types): New section.
81664         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
81665         isnanf-nolibm, signbit, trunc, truncf, truncl.
81666         (Enhancements for ISO C 99 functions): New subsection Input/output.
81667         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
81668         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
81669         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
81670         (Compatibility checks for POSIX:2001 functions): Add clock-time.
81671         (Enhancements for POSIX:2001 functions): Add chdir-long.
81672         (File system functions): Add areadlink, chdir-safer, read-file.
81673         Remove cycle-check.
81674         (File system as inode set): New section.
81675         (Date and time): Add gethrxtime.
81676         (Multithreading): Add openmp.
81677         (Internationalization functions): Add localename.
81678         (Unicode string functions): Add unistr/u*-mbsnlen.
81679         (Support for maintaining and releasing projects): Add git-version-gen.
81680         (Lone files): Remove directories.
81682 2007-10-08  Ben Pfaff  <blp@gnu.org>
81684         * lib/xmalloca.h: Fix typo in comment.
81686 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
81688         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
81689         when avoiding problems with integer overflow.  Use a portable test
81690         instead.
81692 2007-10-08  Simon Josefsson  <simon@josefsson.org>
81694         * modules/dummy (License): Change to LGPLv2+.
81695         * modules/float (License): Likewise
81696         * modules/realloc (License): Likewise
81697         * modules/stdlib (License): Likewise
81699 2007-10-07  Bruno Haible  <bruno@clisp.org>
81701         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
81702         * floor.c (TWO_MANT_DIG): Likewise.
81703         * ceil.c (TWO_MANT_DIG): Likewise.
81704         Reported by Ben Pfaff.
81706 2007-10-07  Bruno Haible  <bruno@clisp.org>
81708         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
81709         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
81710         * lib/frexp.c (FUNC): Likewise.
81711         * lib/printf-frexp.h (printf_frexp): Likewise.
81712         * lib/printf-frexpl.h (printf_frexpl): Likewise.
81713         * lib/printf-frexp.c (FUNC): Likewise.
81714         Suggested by Jim Meyering.
81716 2007-10-07  Jim Meyering  <meyering@redhat.com>
81718         Make xnanosleep's integer overflow test more robust.
81719         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
81720         so that gcc-4.3.0 doesn't optimize away this test for overflow.
81722 2007-10-07  Bruno Haible  <bruno@clisp.org>
81724         * NEWS: Mention the license change.
81726         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
81727         abbreviations in the modules files.
81729         Change copyright notice from GPLv2+ to GPLv3+.
81730         * README: Change copyright notice.
81731         * MODULES.html.sh: Likewise.
81732         * build-aux/bootstrap.conf: Likewise.
81733         * build-aux/config.libpath: Likewise.
81734         * build-aux/csharpcomp.sh.in: Likewise.
81735         * build-aux/csharpexec.sh.in: Likewise.
81736         * build-aux/install-reloc: Likewise.
81737         * build-aux/javacomp.sh.in: Likewise.
81738         * build-aux/javaexec.sh.in: Likewise.
81739         * build-aux/ldd.sh.in: Likewise.
81740         * build-aux/reloc-ldflags: Likewise.
81741         * build-aux/relocatable.sh.in: Likewise.
81742         * build-aux/x-to-1.in: Likewise.
81743         * check-module: Likewise.
81744         * config/srclistvars.sh: Likewise.
81745         * gnulib-tool: Likewise.
81746         * lib/acl-internal.h: Likewise.
81747         * lib/acl.c: Likewise.
81748         * lib/acl.h: Likewise.
81749         * lib/acl_entries.c: Likewise.
81750         * lib/areadlink-with-size.c: Likewise.
81751         * lib/areadlink.c: Likewise.
81752         * lib/areadlink.h: Likewise.
81753         * lib/argmatch.c: Likewise.
81754         * lib/argmatch.h: Likewise.
81755         * lib/argp-ba.c: Likewise.
81756         * lib/argp-eexst.c: Likewise.
81757         * lib/argp-fmtstream.c: Likewise.
81758         * lib/argp-fmtstream.h: Likewise.
81759         * lib/argp-fs-xinl.c: Likewise.
81760         * lib/argp-help.c: Likewise.
81761         * lib/argp-namefrob.h: Likewise.
81762         * lib/argp-parse.c: Likewise.
81763         * lib/argp-pin.c: Likewise.
81764         * lib/argp-pv.c: Likewise.
81765         * lib/argp-pvh.c: Likewise.
81766         * lib/argp-xinl.c: Likewise.
81767         * lib/argp.h: Likewise.
81768         * lib/at-func.c: Likewise.
81769         * lib/atanl.c: Likewise.
81770         * lib/backupfile.c: Likewise.
81771         * lib/backupfile.h: Likewise.
81772         * lib/basename.c: Likewise.
81773         * lib/binary-io.h: Likewise.
81774         * lib/byteswap.in.h: Likewise.
81775         * lib/c-stack.c: Likewise.
81776         * lib/c-stack.h: Likewise.
81777         * lib/c-strcasestr.c: Likewise.
81778         * lib/c-strcasestr.h: Likewise.
81779         * lib/c-strstr.c: Likewise.
81780         * lib/c-strstr.h: Likewise.
81781         * lib/c-strtod.c: Likewise.
81782         * lib/calloc.c: Likewise.
81783         * lib/canon-host.c: Likewise.
81784         * lib/canon-host.h: Likewise.
81785         * lib/canonicalize-lgpl.c: Likewise.
81786         * lib/canonicalize.c: Likewise.
81787         * lib/canonicalize.h: Likewise.
81788         * lib/ceil.c: Likewise.
81789         * lib/ceilf.c: Likewise.
81790         * lib/ceill.c: Likewise.
81791         * lib/chdir-long.c: Likewise.
81792         * lib/chdir-long.h: Likewise.
81793         * lib/chdir-safer.c: Likewise.
81794         * lib/chdir-safer.h: Likewise.
81795         * lib/chown.c: Likewise.
81796         * lib/classpath.c: Likewise.
81797         * lib/classpath.h: Likewise.
81798         * lib/clean-temp.c: Likewise.
81799         * lib/clean-temp.h: Likewise.
81800         * lib/cloexec.c: Likewise.
81801         * lib/close-stream.c: Likewise.
81802         * lib/closein.c: Likewise.
81803         * lib/closein.h: Likewise.
81804         * lib/closeout.c: Likewise.
81805         * lib/closeout.h: Likewise.
81806         * lib/concat-filename.c: Likewise.
81807         * lib/copy-file.c: Likewise.
81808         * lib/copy-file.h: Likewise.
81809         * lib/count-one-bits.h: Likewise.
81810         * lib/crc.c: Likewise.
81811         * lib/crc.h: Likewise.
81812         * lib/creat-safer.c: Likewise.
81813         * lib/csharpcomp.c: Likewise.
81814         * lib/csharpcomp.h: Likewise.
81815         * lib/csharpexec.c: Likewise.
81816         * lib/csharpexec.h: Likewise.
81817         * lib/cycle-check.c: Likewise.
81818         * lib/cycle-check.h: Likewise.
81819         * lib/diacrit.c: Likewise.
81820         * lib/diacrit.h: Likewise.
81821         * lib/diffseq.h: Likewise.
81822         * lib/dirchownmod.c: Likewise.
81823         * lib/dirent.in.h: Likewise.
81824         * lib/dirfd.c: Likewise.
81825         * lib/dirfd.h: Likewise.
81826         * lib/dirname.c: Likewise.
81827         * lib/dirname.h: Likewise.
81828         * lib/dummy.c: Likewise.
81829         * lib/dup-safer.c: Likewise.
81830         * lib/dup2.c: Likewise.
81831         * lib/eealloc.h: Likewise.
81832         * lib/error.c: Likewise.
81833         * lib/error.h: Likewise.
81834         * lib/euidaccess.c: Likewise.
81835         * lib/exclude.c: Likewise.
81836         * lib/exclude.h: Likewise.
81837         * lib/execute.c: Likewise.
81838         * lib/execute.h: Likewise.
81839         * lib/exitfail.c: Likewise.
81840         * lib/exitfail.h: Likewise.
81841         * lib/expl.c: Likewise.
81842         * lib/fatal-signal.c: Likewise.
81843         * lib/fatal-signal.h: Likewise.
81844         * lib/fbufmode.c: Likewise.
81845         * lib/fbufmode.h: Likewise.
81846         * lib/fchdir.c: Likewise.
81847         * lib/fchmodat.c: Likewise.
81848         * lib/fchownat.c: Likewise.
81849         * lib/fcntl--.h: Likewise.
81850         * lib/fcntl-safer.h: Likewise.
81851         * lib/fcntl.in.h: Likewise.
81852         * lib/fd-safer.c: Likewise.
81853         * lib/fflush.c: Likewise.
81854         * lib/file-has-acl.c: Likewise.
81855         * lib/file-set.c: Likewise.
81856         * lib/file-type.c: Likewise.
81857         * lib/file-type.h: Likewise.
81858         * lib/fileblocks.c: Likewise.
81859         * lib/filemode.c: Likewise.
81860         * lib/filemode.h: Likewise.
81861         * lib/filename.h: Likewise.
81862         * lib/filenamecat.c: Likewise.
81863         * lib/filenamecat.h: Likewise.
81864         * lib/findprog.c: Likewise.
81865         * lib/findprog.h: Likewise.
81866         * lib/float.in.h: Likewise.
81867         * lib/floor.c: Likewise.
81868         * lib/floorf.c: Likewise.
81869         * lib/floorl.c: Likewise.
81870         * lib/fopen-safer.c: Likewise.
81871         * lib/fopen.c: Likewise.
81872         * lib/fpending.c: Likewise.
81873         * lib/fpending.h: Likewise.
81874         * lib/fprintf.c: Likewise.
81875         * lib/fprintftime.h: Likewise.
81876         * lib/fpucw.h: Likewise.
81877         * lib/fpurge.c: Likewise.
81878         * lib/fpurge.h: Likewise.
81879         * lib/freadable.c: Likewise.
81880         * lib/freadable.h: Likewise.
81881         * lib/freadahead.c: Likewise.
81882         * lib/freadahead.h: Likewise.
81883         * lib/freading.c: Likewise.
81884         * lib/freading.h: Likewise.
81885         * lib/free.c: Likewise.
81886         * lib/freopen.c: Likewise.
81887         * lib/frexp.c: Likewise.
81888         * lib/frexpl.c: Likewise.
81889         * lib/fseek.c: Likewise.
81890         * lib/fseterr.c: Likewise.
81891         * lib/fseterr.h: Likewise.
81892         * lib/fstatat.c: Likewise.
81893         * lib/fstrcmp.c: Likewise.
81894         * lib/fstrcmp.h: Likewise.
81895         * lib/fsusage.c: Likewise.
81896         * lib/fsusage.h: Likewise.
81897         * lib/ftell.c: Likewise.
81898         * lib/ftello.c: Likewise.
81899         * lib/fts-cycle.c: Likewise.
81900         * lib/fts.c: Likewise.
81901         * lib/fts_.h: Likewise.
81902         * lib/full-read.c: Likewise.
81903         * lib/full-read.h: Likewise.
81904         * lib/full-write.c: Likewise.
81905         * lib/full-write.h: Likewise.
81906         * lib/fwritable.c: Likewise.
81907         * lib/fwritable.h: Likewise.
81908         * lib/fwriteerror.c: Likewise.
81909         * lib/fwriteerror.h: Likewise.
81910         * lib/fwriting.c: Likewise.
81911         * lib/fwriting.h: Likewise.
81912         * lib/gcd.c: Likewise.
81913         * lib/gcd.h: Likewise.
81914         * lib/getcwd.c: Likewise.
81915         * lib/getdate.h: Likewise.
81916         * lib/getdate.y: Likewise.
81917         * lib/getdomainname.c: Likewise.
81918         * lib/getdomainname.h: Likewise.
81919         * lib/getgroups.c: Likewise.
81920         * lib/gethostname.c: Likewise.
81921         * lib/gethrxtime.c: Likewise.
81922         * lib/gethrxtime.h: Likewise.
81923         * lib/getloadavg.c: Likewise.
81924         * lib/getndelim2.c: Likewise.
81925         * lib/getndelim2.h: Likewise.
81926         * lib/getnline.c: Likewise.
81927         * lib/getnline.h: Likewise.
81928         * lib/getopt.c: Likewise.
81929         * lib/getopt.in.h: Likewise.
81930         * lib/getopt1.c: Likewise.
81931         * lib/getopt_int.h: Likewise.
81932         * lib/getpagesize.h: Likewise.
81933         * lib/getsubopt.c: Likewise.
81934         * lib/gettime.c: Likewise.
81935         * lib/getugroups.c: Likewise.
81936         * lib/getugroups.h: Likewise.
81937         * lib/getusershell.c: Likewise.
81938         * lib/gl_anyavltree_list1.h: Likewise.
81939         * lib/gl_anyavltree_list2.h: Likewise.
81940         * lib/gl_anyhash_list1.h: Likewise.
81941         * lib/gl_anyhash_list2.h: Likewise.
81942         * lib/gl_anylinked_list1.h: Likewise.
81943         * lib/gl_anylinked_list2.h: Likewise.
81944         * lib/gl_anyrbtree_list1.h: Likewise.
81945         * lib/gl_anyrbtree_list2.h: Likewise.
81946         * lib/gl_anytree_list1.h: Likewise.
81947         * lib/gl_anytree_list2.h: Likewise.
81948         * lib/gl_anytree_oset.h: Likewise.
81949         * lib/gl_anytreehash_list1.h: Likewise.
81950         * lib/gl_anytreehash_list2.h: Likewise.
81951         * lib/gl_array_list.c: Likewise.
81952         * lib/gl_array_list.h: Likewise.
81953         * lib/gl_array_oset.c: Likewise.
81954         * lib/gl_array_oset.h: Likewise.
81955         * lib/gl_avltree_list.c: Likewise.
81956         * lib/gl_avltree_list.h: Likewise.
81957         * lib/gl_avltree_oset.c: Likewise.
81958         * lib/gl_avltree_oset.h: Likewise.
81959         * lib/gl_avltreehash_list.c: Likewise.
81960         * lib/gl_avltreehash_list.h: Likewise.
81961         * lib/gl_carray_list.c: Likewise.
81962         * lib/gl_carray_list.h: Likewise.
81963         * lib/gl_linked_list.c: Likewise.
81964         * lib/gl_linked_list.h: Likewise.
81965         * lib/gl_linkedhash_list.c: Likewise.
81966         * lib/gl_linkedhash_list.h: Likewise.
81967         * lib/gl_list.c: Likewise.
81968         * lib/gl_list.h: Likewise.
81969         * lib/gl_oset.c: Likewise.
81970         * lib/gl_oset.h: Likewise.
81971         * lib/gl_rbtree_list.c: Likewise.
81972         * lib/gl_rbtree_list.h: Likewise.
81973         * lib/gl_rbtree_oset.c: Likewise.
81974         * lib/gl_rbtree_oset.h: Likewise.
81975         * lib/gl_rbtreehash_list.c: Likewise.
81976         * lib/gl_rbtreehash_list.h: Likewise.
81977         * lib/gl_sublist.c: Likewise.
81978         * lib/gl_sublist.h: Likewise.
81979         * lib/group-member.c: Likewise.
81980         * lib/group-member.h: Likewise.
81981         * lib/hard-locale.c: Likewise.
81982         * lib/hard-locale.h: Likewise.
81983         * lib/hash-pjw.c: Likewise.
81984         * lib/hash-pjw.h: Likewise.
81985         * lib/hash-triple.c: Likewise.
81986         * lib/hash.c: Likewise.
81987         * lib/hash.h: Likewise.
81988         * lib/human.c: Likewise.
81989         * lib/human.h: Likewise.
81990         * lib/i-ring.c: Likewise.
81991         * lib/i-ring.h: Likewise.
81992         * lib/idcache.c: Likewise.
81993         * lib/imaxabs.c: Likewise.
81994         * lib/imaxdiv.c: Likewise.
81995         * lib/inet_pton.c: Likewise.
81996         * lib/inet_pton.h: Likewise.
81997         * lib/intprops.h: Likewise.
81998         * lib/inttostr.c: Likewise.
81999         * lib/inttostr.h: Likewise.
82000         * lib/inttypes.in.h: Likewise.
82001         * lib/isapipe.c: Likewise.
82002         * lib/isdir.c: Likewise.
82003         * lib/isnan.c: Likewise.
82004         * lib/isnan.h: Likewise.
82005         * lib/isnanf.c: Likewise.
82006         * lib/isnanf.h: Likewise.
82007         * lib/isnanl-nolibm.h: Likewise.
82008         * lib/isnanl.c: Likewise.
82009         * lib/isnanl.h: Likewise.
82010         * lib/javacomp.c: Likewise.
82011         * lib/javacomp.h: Likewise.
82012         * lib/javaexec.c: Likewise.
82013         * lib/javaexec.h: Likewise.
82014         * lib/javaversion.c: Likewise.
82015         * lib/javaversion.h: Likewise.
82016         * lib/javaversion.java: Likewise.
82017         * lib/lbrkprop.h: Likewise.
82018         * lib/lchmod.h: Likewise.
82019         * lib/lchown.c: Likewise.
82020         * lib/ldexpl.c: Likewise.
82021         * lib/linebreak.c: Likewise.
82022         * lib/linebreak.h: Likewise.
82023         * lib/linebuffer.c: Likewise.
82024         * lib/linebuffer.h: Likewise.
82025         * lib/locale.in.h: Likewise.
82026         * lib/logl.c: Likewise.
82027         * lib/long-options.c: Likewise.
82028         * lib/long-options.h: Likewise.
82029         * lib/lstat.c: Likewise.
82030         * lib/lstat.h: Likewise.
82031         * lib/math.in.h: Likewise.
82032         * lib/mbchar.c: Likewise.
82033         * lib/mbchar.h: Likewise.
82034         * lib/mbfile.h: Likewise.
82035         * lib/mbiter.h: Likewise.
82036         * lib/mbscasecmp.c: Likewise.
82037         * lib/mbscasestr.c: Likewise.
82038         * lib/mbschr.c: Likewise.
82039         * lib/mbscspn.c: Likewise.
82040         * lib/mbslen.c: Likewise.
82041         * lib/mbsncasecmp.c: Likewise.
82042         * lib/mbsnlen.c: Likewise.
82043         * lib/mbspbrk.c: Likewise.
82044         * lib/mbspcasecmp.c: Likewise.
82045         * lib/mbsrchr.c: Likewise.
82046         * lib/mbssep.c: Likewise.
82047         * lib/mbsspn.c: Likewise.
82048         * lib/mbsstr.c: Likewise.
82049         * lib/mbstok_r.c: Likewise.
82050         * lib/mbswidth.c: Likewise.
82051         * lib/mbswidth.h: Likewise.
82052         * lib/mbuiter.h: Likewise.
82053         * lib/memcasecmp.c: Likewise.
82054         * lib/memcasecmp.h: Likewise.
82055         * lib/memchr.c: Likewise.
82056         * lib/memcmp.c: Likewise.
82057         * lib/memcoll.c: Likewise.
82058         * lib/memcoll.h: Likewise.
82059         * lib/memcpy.c: Likewise.
82060         * lib/memrchr.c: Likewise.
82061         * lib/mkancesdirs.c: Likewise.
82062         * lib/mkdir-p.c: Likewise.
82063         * lib/mkdir-p.h: Likewise.
82064         * lib/mkdir.c: Likewise.
82065         * lib/mkdirat.c: Likewise.
82066         * lib/mkdtemp.c: Likewise.
82067         * lib/mkstemp-safer.c: Likewise.
82068         * lib/mkstemp.c: Likewise.
82069         * lib/modechange.c: Likewise.
82070         * lib/modechange.h: Likewise.
82071         * lib/mountlist.c: Likewise.
82072         * lib/mountlist.h: Likewise.
82073         * lib/mpsort.c: Likewise.
82074         * lib/nanosleep.c: Likewise.
82075         * lib/obstack.c: Likewise.
82076         * lib/obstack.h: Likewise.
82077         * lib/open-safer.c: Likewise.
82078         * lib/open.c: Likewise.
82079         * lib/openat-die.c: Likewise.
82080         * lib/openat-priv.h: Likewise.
82081         * lib/openat-proc.c: Likewise.
82082         * lib/openat.c: Likewise.
82083         * lib/openat.h: Likewise.
82084         * lib/pagealign_alloc.c: Likewise.
82085         * lib/pagealign_alloc.h: Likewise.
82086         * lib/physmem.c: Likewise.
82087         * lib/physmem.h: Likewise.
82088         * lib/pipe-safer.c: Likewise.
82089         * lib/pipe.c: Likewise.
82090         * lib/pipe.h: Likewise.
82091         * lib/posixtm.c: Likewise.
82092         * lib/posixtm.h: Likewise.
82093         * lib/posixver.c: Likewise.
82094         * lib/printf-frexp.c: Likewise.
82095         * lib/printf-frexp.h: Likewise.
82096         * lib/printf-frexpl.c: Likewise.
82097         * lib/printf-frexpl.h: Likewise.
82098         * lib/printf.c: Likewise.
82099         * lib/progname.c: Likewise.
82100         * lib/progname.h: Likewise.
82101         * lib/progreloc.c: Likewise.
82102         * lib/putenv.c: Likewise.
82103         * lib/quote.c: Likewise.
82104         * lib/quote.h: Likewise.
82105         * lib/quotearg.c: Likewise.
82106         * lib/quotearg.h: Likewise.
82107         * lib/raise.c: Likewise.
82108         * lib/readline.c: Likewise.
82109         * lib/readline.h: Likewise.
82110         * lib/readlink.c: Likewise.
82111         * lib/readtokens.c: Likewise.
82112         * lib/readtokens.h: Likewise.
82113         * lib/readtokens0.c: Likewise.
82114         * lib/readtokens0.h: Likewise.
82115         * lib/readutmp.c: Likewise.
82116         * lib/readutmp.h: Likewise.
82117         * lib/realloc.c: Likewise.
82118         * lib/relocwrapper.c: Likewise.
82119         * lib/rename-dest-slash.c: Likewise.
82120         * lib/rename.c: Likewise.
82121         * lib/rmdir.c: Likewise.
82122         * lib/rpmatch.c: Likewise.
82123         * lib/safe-read.c: Likewise.
82124         * lib/safe-read.h: Likewise.
82125         * lib/safe-write.c: Likewise.
82126         * lib/safe-write.h: Likewise.
82127         * lib/same-inode.h: Likewise.
82128         * lib/same.c: Likewise.
82129         * lib/same.h: Likewise.
82130         * lib/save-cwd.c: Likewise.
82131         * lib/save-cwd.h: Likewise.
82132         * lib/savedir.c: Likewise.
82133         * lib/savedir.h: Likewise.
82134         * lib/savewd.c: Likewise.
82135         * lib/savewd.h: Likewise.
82136         * lib/search.in.h: Likewise.
82137         * lib/setenv.c: Likewise.
82138         * lib/setenv.h: Likewise.
82139         * lib/settime.c: Likewise.
82140         * lib/sh-quote.c: Likewise.
82141         * lib/sh-quote.h: Likewise.
82142         * lib/sig2str.c: Likewise.
82143         * lib/sig2str.h: Likewise.
82144         * lib/signal.in.h: Likewise.
82145         * lib/signbitd.c: Likewise.
82146         * lib/signbitf.c: Likewise.
82147         * lib/signbitl.c: Likewise.
82148         * lib/sigprocmask.c: Likewise.
82149         * lib/sincosl.c: Likewise.
82150         * lib/sleep.c: Likewise.
82151         * lib/sprintf.c: Likewise.
82152         * lib/sqrtl.c: Likewise.
82153         * lib/stat-time.h: Likewise.
82154         * lib/stdio--.h: Likewise.
82155         * lib/stdio-safer.h: Likewise.
82156         * lib/stdlib--.h: Likewise.
82157         * lib/stdlib-safer.h: Likewise.
82158         * lib/stdlib.in.h: Likewise.
82159         * lib/stpcpy.c: Likewise.
82160         * lib/stpncpy.c: Likewise.
82161         * lib/strchrnul.c: Likewise.
82162         * lib/strcspn.c: Likewise.
82163         * lib/strerror.c: Likewise.
82164         * lib/strftime.c: Likewise.
82165         * lib/strftime.h: Likewise.
82166         * lib/striconveh.c: Likewise.
82167         * lib/striconveh.h: Likewise.
82168         * lib/striconveha.c: Likewise.
82169         * lib/striconveha.h: Likewise.
82170         * lib/stripslash.c: Likewise.
82171         * lib/strnlen1.c: Likewise.
82172         * lib/strnlen1.h: Likewise.
82173         * lib/strtod.c: Likewise.
82174         * lib/strtoimax.c: Likewise.
82175         * lib/strtok_r.c: Likewise.
82176         * lib/strtol.c: Likewise.
82177         * lib/strtoll.c: Likewise.
82178         * lib/strtoul.c: Likewise.
82179         * lib/strtoull.c: Likewise.
82180         * lib/sysexits.in.h: Likewise.
82181         * lib/tempname.c: Likewise.
82182         * lib/tempname.h: Likewise.
82183         * lib/timespec.h: Likewise.
82184         * lib/tls.c: Likewise.
82185         * lib/tls.h: Likewise.
82186         * lib/tmpdir.c: Likewise.
82187         * lib/tmpdir.h: Likewise.
82188         * lib/tmpfile-safer.c: Likewise.
82189         * lib/tmpfile.c: Likewise.
82190         * lib/trigl.c: Likewise.
82191         * lib/trigl.h: Likewise.
82192         * lib/trim.c: Likewise.
82193         * lib/trim.h: Likewise.
82194         * lib/trunc.c: Likewise.
82195         * lib/truncf.c: Likewise.
82196         * lib/truncl.c: Likewise.
82197         * lib/tsearch.c: Likewise.
82198         * lib/unicodeio.c: Likewise.
82199         * lib/unicodeio.h: Likewise.
82200         * lib/unistd--.h: Likewise.
82201         * lib/unistd-safer.h: Likewise.
82202         * lib/unistdio/ulc-fprintf.c: Likewise.
82203         * lib/unistdio/ulc-vfprintf.c: Likewise.
82204         * lib/unlinkdir.c: Likewise.
82205         * lib/unlinkdir.h: Likewise.
82206         * lib/unlocked-io.h: Likewise.
82207         * lib/unsetenv.c: Likewise.
82208         * lib/userspec.c: Likewise.
82209         * lib/utime.c: Likewise.
82210         * lib/utimecmp.c: Likewise.
82211         * lib/utimecmp.h: Likewise.
82212         * lib/utimens.c: Likewise.
82213         * lib/verify.h: Likewise.
82214         * lib/verror.c: Likewise.
82215         * lib/verror.h: Likewise.
82216         * lib/version-etc-fsf.c: Likewise.
82217         * lib/version-etc.c: Likewise.
82218         * lib/version-etc.h: Likewise.
82219         * lib/vfprintf.c: Likewise.
82220         * lib/vprintf.c: Likewise.
82221         * lib/vsprintf.c: Likewise.
82222         * lib/w32spawn.h: Likewise.
82223         * lib/wait-process.c: Likewise.
82224         * lib/wait-process.h: Likewise.
82225         * lib/wcwidth.c: Likewise.
82226         * lib/write-any-file.c: Likewise.
82227         * lib/xalloc-die.c: Likewise.
82228         * lib/xalloc.h: Likewise.
82229         * lib/xasprintf.c: Likewise.
82230         * lib/xgetcwd.c: Likewise.
82231         * lib/xgetcwd.h: Likewise.
82232         * lib/xgetdomainname.c: Likewise.
82233         * lib/xgetdomainname.h: Likewise.
82234         * lib/xgethostname.c: Likewise.
82235         * lib/xmalloc.c: Likewise.
82236         * lib/xmalloca.c: Likewise.
82237         * lib/xmalloca.h: Likewise.
82238         * lib/xmemcoll.c: Likewise.
82239         * lib/xnanosleep.c: Likewise.
82240         * lib/xreadlink.c: Likewise.
82241         * lib/xreadlink.h: Likewise.
82242         * lib/xsetenv.c: Likewise.
82243         * lib/xsetenv.h: Likewise.
82244         * lib/xstriconv.c: Likewise.
82245         * lib/xstriconv.h: Likewise.
82246         * lib/xstrndup.c: Likewise.
82247         * lib/xstrndup.h: Likewise.
82248         * lib/xstrtod.c: Likewise.
82249         * lib/xstrtod.h: Likewise.
82250         * lib/xstrtol-error.c: Likewise.
82251         * lib/xstrtol.c: Likewise.
82252         * lib/xstrtol.h: Likewise.
82253         * lib/xtime.h: Likewise.
82254         * lib/xvasprintf.c: Likewise.
82255         * lib/xvasprintf.h: Likewise.
82256         * lib/yesno.c: Likewise.
82257         * lib/yesno.h: Likewise.
82258         * posix-modules: Likewise.
82259         * tests/test-alloca-opt.c: Likewise.
82260         * tests/test-arcfour.c: Likewise.
82261         * tests/test-arctwo.c: Likewise.
82262         * tests/test-argmatch.c: Likewise.
82263         * tests/test-argp-2.sh: Likewise.
82264         * tests/test-argp.c: Likewise.
82265         * tests/test-arpa_inet.c: Likewise.
82266         * tests/test-array_list.c: Likewise.
82267         * tests/test-array_oset.c: Likewise.
82268         * tests/test-atexit.c: Likewise.
82269         * tests/test-avltree_list.c: Likewise.
82270         * tests/test-avltree_oset.c: Likewise.
82271         * tests/test-avltreehash_list.c: Likewise.
82272         * tests/test-base64.c: Likewise.
82273         * tests/test-binary-io.c: Likewise.
82274         * tests/test-byteswap.c: Likewise.
82275         * tests/test-c-ctype.c: Likewise.
82276         * tests/test-c-strcasecmp.c: Likewise.
82277         * tests/test-c-strcasestr.c: Likewise.
82278         * tests/test-c-strncasecmp.c: Likewise.
82279         * tests/test-c-strstr.c: Likewise.
82280         * tests/test-canonicalize-lgpl.c: Likewise.
82281         * tests/test-canonicalize.c: Likewise.
82282         * tests/test-carray_list.c: Likewise.
82283         * tests/test-ceilf.c: Likewise.
82284         * tests/test-ceill.c: Likewise.
82285         * tests/test-count-one-bits.c: Likewise.
82286         * tests/test-crc.c: Likewise.
82287         * tests/test-dirname.c: Likewise.
82288         * tests/test-fbufmode.c: Likewise.
82289         * tests/test-fcntl.c: Likewise.
82290         * tests/test-fflush.c: Likewise.
82291         * tests/test-floorf.c: Likewise.
82292         * tests/test-floorl.c: Likewise.
82293         * tests/test-fopen.c: Likewise.
82294         * tests/test-fprintf-posix.c: Likewise.
82295         * tests/test-fprintf-posix.h: Likewise.
82296         * tests/test-fpurge.c: Likewise.
82297         * tests/test-freadable.c: Likewise.
82298         * tests/test-freadahead.c: Likewise.
82299         * tests/test-freading.c: Likewise.
82300         * tests/test-freopen.c: Likewise.
82301         * tests/test-frexp.c: Likewise.
82302         * tests/test-frexpl.c: Likewise.
82303         * tests/test-fseek.c: Likewise.
82304         * tests/test-fseeko.c: Likewise.
82305         * tests/test-fseterr.c: Likewise.
82306         * tests/test-fstrcmp.c: Likewise.
82307         * tests/test-ftell.c: Likewise.
82308         * tests/test-ftello.c: Likewise.
82309         * tests/test-fwritable.c: Likewise.
82310         * tests/test-fwriting.c: Likewise.
82311         * tests/test-getaddrinfo.c: Likewise.
82312         * tests/test-getpass.c: Likewise.
82313         * tests/test-gettimeofday.c: Likewise.
82314         * tests/test-hmac-md5.c: Likewise.
82315         * tests/test-hmac-sha1.c: Likewise.
82316         * tests/test-iconv.c: Likewise.
82317         * tests/test-iconvme.c: Likewise.
82318         * tests/test-inttypes.c: Likewise.
82319         * tests/test-isnan.c: Likewise.
82320         * tests/test-isnanf.c: Likewise.
82321         * tests/test-isnanl-nolibm.c: Likewise.
82322         * tests/test-isnanl.c: Likewise.
82323         * tests/test-isnanl.h: Likewise.
82324         * tests/test-ldexpl.c: Likewise.
82325         * tests/test-linked_list.c: Likewise.
82326         * tests/test-linkedhash_list.c: Likewise.
82327         * tests/test-locale.c: Likewise.
82328         * tests/test-localename.c: Likewise.
82329         * tests/test-lock.c: Likewise.
82330         * tests/test-lseek.c: Likewise.
82331         * tests/test-malloca.c: Likewise.
82332         * tests/test-math.c: Likewise.
82333         * tests/test-mbscasecmp.c: Likewise.
82334         * tests/test-mbscasestr1.c: Likewise.
82335         * tests/test-mbscasestr2.c: Likewise.
82336         * tests/test-mbscasestr3.c: Likewise.
82337         * tests/test-mbscasestr4.c: Likewise.
82338         * tests/test-mbschr.c: Likewise.
82339         * tests/test-mbscspn.c: Likewise.
82340         * tests/test-mbsncasecmp.c: Likewise.
82341         * tests/test-mbspbrk.c: Likewise.
82342         * tests/test-mbspcasecmp.c: Likewise.
82343         * tests/test-mbsrchr.c: Likewise.
82344         * tests/test-mbsspn.c: Likewise.
82345         * tests/test-mbsstr1.c: Likewise.
82346         * tests/test-mbsstr2.c: Likewise.
82347         * tests/test-mbsstr3.c: Likewise.
82348         * tests/test-md5.c: Likewise.
82349         * tests/test-memmem.c: Likewise.
82350         * tests/test-netinet_in.c: Likewise.
82351         * tests/test-open.c: Likewise.
82352         * tests/test-printf-frexp.c: Likewise.
82353         * tests/test-printf-frexpl.c: Likewise.
82354         * tests/test-printf-posix.c: Likewise.
82355         * tests/test-printf-posix.h: Likewise.
82356         * tests/test-rbtree_list.c: Likewise.
82357         * tests/test-rbtree_oset.c: Likewise.
82358         * tests/test-rbtreehash_list.c: Likewise.
82359         * tests/test-read-file.c: Likewise.
82360         * tests/test-rijndael.c: Likewise.
82361         * tests/test-search.c: Likewise.
82362         * tests/test-signbit.c: Likewise.
82363         * tests/test-sleep.c: Likewise.
82364         * tests/test-snprintf-posix.c: Likewise.
82365         * tests/test-snprintf-posix.h: Likewise.
82366         * tests/test-snprintf.c: Likewise.
82367         * tests/test-sprintf-posix.c: Likewise.
82368         * tests/test-sprintf-posix.h: Likewise.
82369         * tests/test-stat-time.c: Likewise.
82370         * tests/test-stdbool.c: Likewise.
82371         * tests/test-stdint.c: Likewise.
82372         * tests/test-stdio.c: Likewise.
82373         * tests/test-stdlib.c: Likewise.
82374         * tests/test-stpncpy.c: Likewise.
82375         * tests/test-strcasestr.c: Likewise.
82376         * tests/test-striconv.c: Likewise.
82377         * tests/test-striconveh.c: Likewise.
82378         * tests/test-striconveha.c: Likewise.
82379         * tests/test-string.c: Likewise.
82380         * tests/test-sys_select.c: Likewise.
82381         * tests/test-sys_socket.c: Likewise.
82382         * tests/test-sys_stat.c: Likewise.
82383         * tests/test-sys_time.c: Likewise.
82384         * tests/test-sysexits.c: Likewise.
82385         * tests/test-time.c: Likewise.
82386         * tests/test-tls.c: Likewise.
82387         * tests/test-trunc.c: Likewise.
82388         * tests/test-truncf.c: Likewise.
82389         * tests/test-truncl.c: Likewise.
82390         * tests/test-unistd.c: Likewise.
82391         * tests/test-vasnprintf-posix.c: Likewise.
82392         * tests/test-vasnprintf-posix2.c: Likewise.
82393         * tests/test-vasnprintf.c: Likewise.
82394         * tests/test-vasprintf-posix.c: Likewise.
82395         * tests/test-vasprintf.c: Likewise.
82396         * tests/test-verify.c: Likewise.
82397         * tests/test-vfprintf-posix.c: Likewise.
82398         * tests/test-vprintf-posix.c: Likewise.
82399         * tests/test-vsnprintf-posix.c: Likewise.
82400         * tests/test-vsnprintf.c: Likewise.
82401         * tests/test-vsprintf-posix.c: Likewise.
82402         * tests/test-wchar.c: Likewise.
82403         * tests/test-wctype.c: Likewise.
82404         * tests/test-wcwidth.c: Likewise.
82405         * tests/test-xstrtol.c: Likewise.
82406         * tests/test-xvasprintf.c: Likewise.
82407         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
82408         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
82409         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
82410         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
82411         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
82412         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
82413         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
82414         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
82415         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
82416         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
82417         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
82418         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
82419         * tests/uniname/test-uninames.c: Likewise.
82420         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
82421         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
82422         * tests/unistdio/test-u16-printf1.h: Likewise.
82423         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
82424         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
82425         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
82426         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
82427         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
82428         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
82429         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
82430         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
82431         * tests/unistdio/test-u32-printf1.h: Likewise.
82432         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
82433         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
82434         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
82435         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
82436         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
82437         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
82438         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
82439         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
82440         * tests/unistdio/test-u8-printf1.h: Likewise.
82441         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
82442         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
82443         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
82444         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
82445         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
82446         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
82447         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
82448         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
82449         * tests/unistdio/test-ulc-printf1.h: Likewise.
82450         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
82451         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
82452         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
82453         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
82454         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
82455         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
82456         * tests/uniwidth/test-u16-strwidth.c: Likewise.
82457         * tests/uniwidth/test-u16-width.c: Likewise.
82458         * tests/uniwidth/test-u32-strwidth.c: Likewise.
82459         * tests/uniwidth/test-u32-width.c: Likewise.
82460         * tests/uniwidth/test-u8-strwidth.c: Likewise.
82461         * tests/uniwidth/test-u8-width.c: Likewise.
82462         * tests/uniwidth/test-uc_width.c: Likewise.
82463         * config/srclist-update: Likewise.
82464         (fixlicense): Update to GPLv3+.
82466         Change copyright notice from LGPLv2.1+ to LGPLv3+.
82467         * tests/test-tsearch.c: Change copyright notice.
82469         Change copyright notice from LGPLv2.0+ to LGPLv3+.
82470         * lib/c-strcaseeq.h: Change copyright notice.
82471         * lib/streq.h: Likewise.
82472         * lib/uniconv.h: Likewise.
82473         * lib/uniconv/u-conv-from-enc.h: Likewise.
82474         * lib/uniconv/u-conv-to-enc.h: Likewise.
82475         * lib/uniconv/u-strconv-from-enc.h: Likewise.
82476         * lib/uniconv/u-strconv-to-enc.h: Likewise.
82477         * lib/uniconv/u16-conv-from-enc.c: Likewise.
82478         * lib/uniconv/u16-conv-to-enc.c: Likewise.
82479         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
82480         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
82481         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
82482         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
82483         * lib/uniconv/u32-conv-from-enc.c: Likewise.
82484         * lib/uniconv/u32-conv-to-enc.c: Likewise.
82485         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
82486         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
82487         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
82488         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
82489         * lib/uniconv/u8-conv-from-enc.c: Likewise.
82490         * lib/uniconv/u8-conv-to-enc.c: Likewise.
82491         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
82492         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
82493         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
82494         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
82495         * lib/uniname.h: Likewise.
82496         * lib/uniname/uniname.c: Likewise.
82497         * lib/unistdio.h: Likewise.
82498         * lib/unistdio/u-asnprintf.h: Likewise.
82499         * lib/unistdio/u-asprintf.h: Likewise.
82500         * lib/unistdio/u-printf-args.c: Likewise.
82501         * lib/unistdio/u-printf-args.h: Likewise.
82502         * lib/unistdio/u-printf-parse.h: Likewise.
82503         * lib/unistdio/u-snprintf.h: Likewise.
82504         * lib/unistdio/u-sprintf.h: Likewise.
82505         * lib/unistdio/u-vasprintf.h: Likewise.
82506         * lib/unistdio/u-vsnprintf.h: Likewise.
82507         * lib/unistdio/u-vsprintf.h: Likewise.
82508         * lib/unistdio/u16-asnprintf.c: Likewise.
82509         * lib/unistdio/u16-asprintf.c: Likewise.
82510         * lib/unistdio/u16-printf-parse.c: Likewise.
82511         * lib/unistdio/u16-snprintf.c: Likewise.
82512         * lib/unistdio/u16-sprintf.c: Likewise.
82513         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
82514         * lib/unistdio/u16-u16-asprintf.c: Likewise.
82515         * lib/unistdio/u16-u16-snprintf.c: Likewise.
82516         * lib/unistdio/u16-u16-sprintf.c: Likewise.
82517         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
82518         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
82519         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
82520         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
82521         * lib/unistdio/u16-vasnprintf.c: Likewise.
82522         * lib/unistdio/u16-vasprintf.c: Likewise.
82523         * lib/unistdio/u16-vsnprintf.c: Likewise.
82524         * lib/unistdio/u16-vsprintf.c: Likewise.
82525         * lib/unistdio/u32-asnprintf.c: Likewise.
82526         * lib/unistdio/u32-asprintf.c: Likewise.
82527         * lib/unistdio/u32-printf-parse.c: Likewise.
82528         * lib/unistdio/u32-snprintf.c: Likewise.
82529         * lib/unistdio/u32-sprintf.c: Likewise.
82530         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
82531         * lib/unistdio/u32-u32-asprintf.c: Likewise.
82532         * lib/unistdio/u32-u32-snprintf.c: Likewise.
82533         * lib/unistdio/u32-u32-sprintf.c: Likewise.
82534         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
82535         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
82536         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
82537         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
82538         * lib/unistdio/u32-vasnprintf.c: Likewise.
82539         * lib/unistdio/u32-vasprintf.c: Likewise.
82540         * lib/unistdio/u32-vsnprintf.c: Likewise.
82541         * lib/unistdio/u32-vsprintf.c: Likewise.
82542         * lib/unistdio/u8-asnprintf.c: Likewise.
82543         * lib/unistdio/u8-asprintf.c: Likewise.
82544         * lib/unistdio/u8-printf-parse.c: Likewise.
82545         * lib/unistdio/u8-snprintf.c: Likewise.
82546         * lib/unistdio/u8-sprintf.c: Likewise.
82547         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
82548         * lib/unistdio/u8-u8-asprintf.c: Likewise.
82549         * lib/unistdio/u8-u8-snprintf.c: Likewise.
82550         * lib/unistdio/u8-u8-sprintf.c: Likewise.
82551         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
82552         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
82553         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
82554         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
82555         * lib/unistdio/u8-vasnprintf.c: Likewise.
82556         * lib/unistdio/u8-vasprintf.c: Likewise.
82557         * lib/unistdio/u8-vsnprintf.c: Likewise.
82558         * lib/unistdio/u8-vsprintf.c: Likewise.
82559         * lib/unistdio/ulc-asnprintf.c: Likewise.
82560         * lib/unistdio/ulc-asprintf.c: Likewise.
82561         * lib/unistdio/ulc-printf-parse.c: Likewise.
82562         * lib/unistdio/ulc-snprintf.c: Likewise.
82563         * lib/unistdio/ulc-sprintf.c: Likewise.
82564         * lib/unistdio/ulc-vasnprintf.c: Likewise.
82565         * lib/unistdio/ulc-vasprintf.c: Likewise.
82566         * lib/unistdio/ulc-vsnprintf.c: Likewise.
82567         * lib/unistdio/ulc-vsprintf.c: Likewise.
82568         * lib/unistr.h: Likewise.
82569         * lib/unistr/u-cpy-alloc.h: Likewise.
82570         * lib/unistr/u-cpy.h: Likewise.
82571         * lib/unistr/u-endswith.h: Likewise.
82572         * lib/unistr/u-move.h: Likewise.
82573         * lib/unistr/u-set.h: Likewise.
82574         * lib/unistr/u-startswith.h: Likewise.
82575         * lib/unistr/u-stpcpy.h: Likewise.
82576         * lib/unistr/u-stpncpy.h: Likewise.
82577         * lib/unistr/u-strcat.h: Likewise.
82578         * lib/unistr/u-strcpy.h: Likewise.
82579         * lib/unistr/u-strcspn.h: Likewise.
82580         * lib/unistr/u-strdup.h: Likewise.
82581         * lib/unistr/u-strlen.h: Likewise.
82582         * lib/unistr/u-strncat.h: Likewise.
82583         * lib/unistr/u-strncpy.h: Likewise.
82584         * lib/unistr/u-strnlen.h: Likewise.
82585         * lib/unistr/u-strpbrk.h: Likewise.
82586         * lib/unistr/u-strspn.h: Likewise.
82587         * lib/unistr/u-strstr.h: Likewise.
82588         * lib/unistr/u-strtok.h: Likewise.
82589         * lib/unistr/u16-check.c: Likewise.
82590         * lib/unistr/u16-chr.c: Likewise.
82591         * lib/unistr/u16-cmp.c: Likewise.
82592         * lib/unistr/u16-cpy-alloc.c: Likewise.
82593         * lib/unistr/u16-cpy.c: Likewise.
82594         * lib/unistr/u16-endswith.c: Likewise.
82595         * lib/unistr/u16-mblen.c: Likewise.
82596         * lib/unistr/u16-mbsnlen.c: Likewise.
82597         * lib/unistr/u16-mbtouc-aux.c: Likewise.
82598         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
82599         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
82600         * lib/unistr/u16-mbtouc.c: Likewise.
82601         * lib/unistr/u16-mbtoucr.c: Likewise.
82602         * lib/unistr/u16-move.c: Likewise.
82603         * lib/unistr/u16-next.c: Likewise.
82604         * lib/unistr/u16-prev.c: Likewise.
82605         * lib/unistr/u16-set.c: Likewise.
82606         * lib/unistr/u16-startswith.c: Likewise.
82607         * lib/unistr/u16-stpcpy.c: Likewise.
82608         * lib/unistr/u16-stpncpy.c: Likewise.
82609         * lib/unistr/u16-strcat.c: Likewise.
82610         * lib/unistr/u16-strchr.c: Likewise.
82611         * lib/unistr/u16-strcmp.c: Likewise.
82612         * lib/unistr/u16-strcpy.c: Likewise.
82613         * lib/unistr/u16-strcspn.c: Likewise.
82614         * lib/unistr/u16-strdup.c: Likewise.
82615         * lib/unistr/u16-strlen.c: Likewise.
82616         * lib/unistr/u16-strmblen.c: Likewise.
82617         * lib/unistr/u16-strmbtouc.c: Likewise.
82618         * lib/unistr/u16-strncat.c: Likewise.
82619         * lib/unistr/u16-strncmp.c: Likewise.
82620         * lib/unistr/u16-strncpy.c: Likewise.
82621         * lib/unistr/u16-strnlen.c: Likewise.
82622         * lib/unistr/u16-strpbrk.c: Likewise.
82623         * lib/unistr/u16-strrchr.c: Likewise.
82624         * lib/unistr/u16-strspn.c: Likewise.
82625         * lib/unistr/u16-strstr.c: Likewise.
82626         * lib/unistr/u16-strtok.c: Likewise.
82627         * lib/unistr/u16-to-u32.c: Likewise.
82628         * lib/unistr/u16-to-u8.c: Likewise.
82629         * lib/unistr/u16-uctomb-aux.c: Likewise.
82630         * lib/unistr/u16-uctomb.c: Likewise.
82631         * lib/unistr/u32-check.c: Likewise.
82632         * lib/unistr/u32-chr.c: Likewise.
82633         * lib/unistr/u32-cmp.c: Likewise.
82634         * lib/unistr/u32-cpy-alloc.c: Likewise.
82635         * lib/unistr/u32-cpy.c: Likewise.
82636         * lib/unistr/u32-endswith.c: Likewise.
82637         * lib/unistr/u32-mblen.c: Likewise.
82638         * lib/unistr/u32-mbsnlen.c: Likewise.
82639         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
82640         * lib/unistr/u32-mbtouc.c: Likewise.
82641         * lib/unistr/u32-mbtoucr.c: Likewise.
82642         * lib/unistr/u32-move.c: Likewise.
82643         * lib/unistr/u32-next.c: Likewise.
82644         * lib/unistr/u32-prev.c: Likewise.
82645         * lib/unistr/u32-set.c: Likewise.
82646         * lib/unistr/u32-startswith.c: Likewise.
82647         * lib/unistr/u32-stpcpy.c: Likewise.
82648         * lib/unistr/u32-stpncpy.c: Likewise.
82649         * lib/unistr/u32-strcat.c: Likewise.
82650         * lib/unistr/u32-strchr.c: Likewise.
82651         * lib/unistr/u32-strcmp.c: Likewise.
82652         * lib/unistr/u32-strcpy.c: Likewise.
82653         * lib/unistr/u32-strcspn.c: Likewise.
82654         * lib/unistr/u32-strdup.c: Likewise.
82655         * lib/unistr/u32-strlen.c: Likewise.
82656         * lib/unistr/u32-strmblen.c: Likewise.
82657         * lib/unistr/u32-strmbtouc.c: Likewise.
82658         * lib/unistr/u32-strncat.c: Likewise.
82659         * lib/unistr/u32-strncmp.c: Likewise.
82660         * lib/unistr/u32-strncpy.c: Likewise.
82661         * lib/unistr/u32-strnlen.c: Likewise.
82662         * lib/unistr/u32-strpbrk.c: Likewise.
82663         * lib/unistr/u32-strrchr.c: Likewise.
82664         * lib/unistr/u32-strspn.c: Likewise.
82665         * lib/unistr/u32-strstr.c: Likewise.
82666         * lib/unistr/u32-strtok.c: Likewise.
82667         * lib/unistr/u32-to-u16.c: Likewise.
82668         * lib/unistr/u32-to-u8.c: Likewise.
82669         * lib/unistr/u32-uctomb.c: Likewise.
82670         * lib/unistr/u8-check.c: Likewise.
82671         * lib/unistr/u8-chr.c: Likewise.
82672         * lib/unistr/u8-cmp.c: Likewise.
82673         * lib/unistr/u8-cpy-alloc.c: Likewise.
82674         * lib/unistr/u8-cpy.c: Likewise.
82675         * lib/unistr/u8-endswith.c: Likewise.
82676         * lib/unistr/u8-mblen.c: Likewise.
82677         * lib/unistr/u8-mbsnlen.c: Likewise.
82678         * lib/unistr/u8-mbtouc-aux.c: Likewise.
82679         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
82680         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
82681         * lib/unistr/u8-mbtouc.c: Likewise.
82682         * lib/unistr/u8-mbtoucr.c: Likewise.
82683         * lib/unistr/u8-move.c: Likewise.
82684         * lib/unistr/u8-next.c: Likewise.
82685         * lib/unistr/u8-prev.c: Likewise.
82686         * lib/unistr/u8-set.c: Likewise.
82687         * lib/unistr/u8-startswith.c: Likewise.
82688         * lib/unistr/u8-stpcpy.c: Likewise.
82689         * lib/unistr/u8-stpncpy.c: Likewise.
82690         * lib/unistr/u8-strcat.c: Likewise.
82691         * lib/unistr/u8-strchr.c: Likewise.
82692         * lib/unistr/u8-strcmp.c: Likewise.
82693         * lib/unistr/u8-strcpy.c: Likewise.
82694         * lib/unistr/u8-strcspn.c: Likewise.
82695         * lib/unistr/u8-strdup.c: Likewise.
82696         * lib/unistr/u8-strlen.c: Likewise.
82697         * lib/unistr/u8-strmblen.c: Likewise.
82698         * lib/unistr/u8-strmbtouc.c: Likewise.
82699         * lib/unistr/u8-strncat.c: Likewise.
82700         * lib/unistr/u8-strncmp.c: Likewise.
82701         * lib/unistr/u8-strncpy.c: Likewise.
82702         * lib/unistr/u8-strnlen.c: Likewise.
82703         * lib/unistr/u8-strpbrk.c: Likewise.
82704         * lib/unistr/u8-strrchr.c: Likewise.
82705         * lib/unistr/u8-strspn.c: Likewise.
82706         * lib/unistr/u8-strstr.c: Likewise.
82707         * lib/unistr/u8-strtok.c: Likewise.
82708         * lib/unistr/u8-to-u16.c: Likewise.
82709         * lib/unistr/u8-to-u32.c: Likewise.
82710         * lib/unistr/u8-uctomb-aux.c: Likewise.
82711         * lib/unistr/u8-uctomb.c: Likewise.
82712         * lib/unitypes.h: Likewise.
82713         * lib/uniwidth.h: Likewise.
82714         * lib/uniwidth/cjk.h: Likewise.
82715         * lib/uniwidth/u16-strwidth.c: Likewise.
82716         * lib/uniwidth/u16-width.c: Likewise.
82717         * lib/uniwidth/u32-strwidth.c: Likewise.
82718         * lib/uniwidth/u32-width.c: Likewise.
82719         * lib/uniwidth/u8-strwidth.c: Likewise.
82720         * lib/uniwidth/u8-width.c: Likewise.
82721         * lib/uniwidth/width.c: Likewise.
82723 2007-10-07  Bruno Haible  <bruno@clisp.org>
82725         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
82726         The file is still under LGPL (see modules/inttypes).
82728 2007-10-06  Bruno Haible  <bruno@clisp.org>
82730         * modules/trunc (Dependencies): Add 'extensions'.
82731         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
82732         Reported by Ben Pfaff <blp@gnu.org>.
82734 2007-10-06  Bruno Haible  <bruno@clisp.org>
82736         * modules/freopen-tests: New file.
82737         * tests/test-freopen.c: New file.
82739         * modules/fopen-tests: New file.
82740         * tests/test-fopen.c: New file.
82742         * modules/fopen: New file.
82743         * lib/fopen.c: New file.
82744         * m4/fopen.m4: New file.
82745         * modules/freopen: New file.
82746         * lib/freopen.c: New file.
82747         * m4/freopen.m4: New file.
82748         * lib/stdio.in.h (fopen, freopen): New declarations.
82749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
82750         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
82751         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
82752         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
82753         * doc/functions/fopen.texi: Mention the 'fopen' module.
82754         * doc/functions/freopen.texi: Mention the 'freopen' module.
82756 2007-10-06  Bruno Haible  <bruno@clisp.org>
82758         * modules/open-tests: New file.
82759         * tests/test-open.c: New file.
82761         * modules/open: New file.
82762         * lib/open.c: New file.
82763         * m4/open.m4: New file.
82764         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
82765         lib/open.c does.
82766         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
82767         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
82768         macros.
82769         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
82770         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
82771         REPLACE_OPEN.
82772         * doc/functions/open.texi: Mention the 'open' module.
82774 2007-10-04  Bruno Haible  <bruno@clisp.org>
82776         * modules/ceill-tests: New file.
82777         * tests/test-ceill.c: New file.
82779         * modules/ceill: New file.
82780         * lib/ceill.c: Replace entire file.
82781         * m4/ceill.m4: New file.
82782         * lib/math.in.h (ceill): Replace declaration.
82783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
82784         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
82785         * doc/functions/ceill.texi: Mention the 'ceill' module.
82786         * modules/mathl (Files): Remove lib/ceill.c.
82787         (Depends-on): Add ceill.
82789 2007-10-04  Bruno Haible  <bruno@clisp.org>
82791         * modules/ceilf-tests: New file.
82792         * tests/test-ceilf.c: New file.
82794         * modules/ceilf: New file.
82795         * lib/ceil.c: New file.
82796         * lib/ceilf.c: New file.
82797         * m4/ceilf.m4: New file.
82798         * lib/math.in.h (ceilf): New declaration.
82799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
82800         HAVE_DECL_CEILF.
82801         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
82802         HAVE_DECL_CEILF.
82803         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
82805 2007-10-04  Bruno Haible  <bruno@clisp.org>
82807         * modules/floorl-tests: New file.
82808         * tests/test-floorl.c: New file.
82810         * modules/floorl: New file.
82811         * lib/floorl.c: Replace entire file.
82812         * m4/floorl.m4: New file.
82813         * lib/math.in.h (floorl): Replace declaration.
82814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
82815         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
82816         * doc/functions/floorl.texi: Mention the 'floorl' module.
82817         * modules/mathl (Files): Remove lib/floorl.c.
82818         (Depends-on): Add floorl.
82820 2007-10-04  Bruno Haible  <bruno@clisp.org>
82822         * modules/floorf-tests: New file.
82823         * tests/test-floorf.c: New file.
82825         * modules/floorf: New file.
82826         * lib/floor.c: New file.
82827         * lib/floorf.c: New file.
82828         * m4/floorf.m4: New file.
82829         * lib/math.in.h (floorf): New declaration.
82830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
82831         HAVE_DECL_FLOORF.
82832         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
82833         HAVE_DECL_FLOORF.
82834         * doc/functions/floorf.texi: Mention the 'floorf' module.
82836 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
82837             Bruno Haible  <bruno@clisp.org>
82839         Advertise for the Git server instead of the CVS server.
82840         * doc/gnulib-intro.texi (Steady Development): Mention the Git
82841         repository instead of the CVS one.
82842         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
82843         about all VCS systems generically.
82844         * doc/gnulib.texi (Introduction): Capitalize `Git'.
82846 2007-10-04  Bruno Haible  <bruno@clisp.org>
82848         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
82849         means.
82850         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
82852 2007-10-04  Bruno Haible  <bruno@clisp.org>
82854         * modules/truncl-tests: New file.
82855         * tests/test-truncl.c: New file.
82857         * modules/truncl: New file.
82858         * lib/truncl.c: New file.
82859         * m4/truncl.m4: New file.
82860         * lib/math.in.h (truncl): New declaration.
82861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
82862         HAVE_DECL_TRUNCL.
82863         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
82864         HAVE_DECL_TRUNCL.
82865         * doc/functions/truncl.texi: Mention the 'truncl' module.
82867 2007-10-04  Bruno Haible  <bruno@clisp.org>
82869         * modules/truncf-tests: New file.
82870         * tests/test-truncf.c: New file.
82872         * modules/truncf: New file.
82873         * lib/trunc.c: Make paramerizable through USE_* macros.
82874         * lib/truncf.c: New file.
82875         * m4/truncf.m4: New file.
82876         * lib/math.in.h (truncf): New declaration.
82877         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
82878         HAVE_DECL_TRUNCF.
82879         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
82880         HAVE_DECL_TRUNCF.
82881         * doc/functions/truncf.texi: Mention the 'truncf' module.
82883 2007-10-03  Bruno Haible  <bruno@clisp.org>
82885         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
82886         augmentation also for tests modules.
82887         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
82888         * modules/atexit-tests (Makefile.am): Likewise.
82889         * modules/binary-io-tests (Makefile.am): Likewise.
82890         * modules/c-strcase-tests (Makefile.am): Likewise.
82891         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
82892         * modules/canonicalize-tests (Makefile.am): Likewise.
82893         * modules/closein-tests (Makefile.am): Likewise.
82894         * modules/fprintf-posix-tests (Makefile.am): Likewise.
82895         * modules/freadahead-tests (Makefile.am): Likewise.
82896         * modules/fseek-tests (Makefile.am): Likewise.
82897         * modules/fseeko-tests (Makefile.am): Likewise.
82898         * modules/ftell-tests (Makefile.am): Likewise.
82899         * modules/ftello-tests (Makefile.am): Likewise.
82900         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
82901         * modules/isnanl-tests (Makefile.am): Likewise.
82902         * modules/lseek-tests (Makefile.am): Likewise.
82903         * modules/mbscasecmp-tests (Makefile.am): Likewise.
82904         * modules/mbscasestr-tests (Makefile.am): Likewise.
82905         * modules/mbschr-tests (Makefile.am): Likewise.
82906         * modules/mbscspn-tests (Makefile.am): Likewise.
82907         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
82908         * modules/mbspbrk-tests (Makefile.am): Likewise.
82909         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
82910         * modules/mbsrchr-tests (Makefile.am): Likewise.
82911         * modules/mbsspn-tests (Makefile.am): Likewise.
82912         * modules/mbsstr-tests (Makefile.am): Likewise.
82913         * modules/printf-posix-tests (Makefile.am): Likewise.
82914         * modules/snprintf-posix-tests (Makefile.am): Likewise.
82915         * modules/sprintf-posix-tests (Makefile.am): Likewise.
82916         * modules/tsearch-tests (Makefile.am): Likewise.
82917         * modules/uniname/uniname-tests (Makefile.am): Likewise.
82918         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
82919         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
82920         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
82921         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
82922         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
82923         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
82924         * modules/vprintf-posix-tests (Makefile.am): Likewise.
82925         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
82926         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
82927         * modules/xstrtoimax-tests (Makefile.am): Likewise.
82928         * modules/xstrtol-tests (Makefile.am): Likewise.
82929         * modules/xstrtoumax-tests (Makefile.am): Likewise.
82930         * modules/yesno-tests (Makefile.am): Likewise.
82932 2007-10-03  Bruno Haible  <bruno@clisp.org>
82934         * modules/trunc-tests: New file.
82935         * tests/test-trunc.c: New file.
82937         * modules/trunc: New file.
82938         * lib/trunc.c: New file.
82939         * m4/trunc.m4: New file.
82940         * lib/math.in.h (trunc): New declaration.
82941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
82942         HAVE_DECL_TRUNC.
82943         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
82944         HAVE_DECL_TRUNC.
82945         * doc/functions/trunc.texi: Mention the 'trunc' module.
82947 2007-10-03  Bruno Haible  <bruno@clisp.org>
82949         * tests/test-fpending.c: New file, mostly copied
82950         from coreutils/lib/t-fpending.c.
82951         * modules/fpending-tests: New file.
82953 2007-10-03  Bruno Haible  <bruno@clisp.org>
82955         Port the stdio extensions to QNX (untested).
82956         * lib/fseterr.c (fseterr): Add support for QNX.
82957         * lib/fbufmode.c (fbufmode): Likewise.
82958         * lib/freadable.c (freadable): Likewise.
82959         * lib/fwritable.c (fwritable): Likewise.
82960         * lib/freading.c (freading): Likewise.
82961         * lib/fwriting.c (fwriting): Likewise.
82962         * lib/freadahead.c (freadahed): Likewise.
82963         * lib/fpurge.c (fpurge): Likewise.
82964         * lib/fseeko.c (rpl_fseeko): Likewise.
82966 2007-10-03  Bruno Haible  <bruno@clisp.org>
82967             Jim Meyering  <jim@meyering.net>
82968             Eric Blake  <ebb9@byu.net>
82970         * doc/relocatable.texi: Use @command instead of @program.
82972 2007-10-02  Jim Meyering  <jim@meyering.net>
82974         Perform one more "_.h" -> ".in.h" substitution.
82975         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
82976         instead of unistd_.h here, too.
82978 2007-10-01  Bruno Haible  <bruno@clisp.org>
82980         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
82981         Needed for the alloca-opt module.
82983 2007-09-30  Bruno Haible  <bruno@clisp.org>
82985         * lib/alloca.in.h: Renamed from lib/alloca_.h.
82986         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
82987         alloca_.h.
82988         * lib/argz.in.h: Renamed from lib/argz_.h.
82989         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
82990         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
82991         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
82992         byteswap_.h.
82993         * lib/dirent.in.h: Renamed from lib/dirent_.h.
82994         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
82995         dirent_.h.
82996         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
82997         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
82998         fcntl_.h.
82999         * lib/float.in.h: Renamed from lib/float_.h.
83000         * modules/float (Files, Makefile.am): Use float.in.h instead of
83001         float_.h.
83002         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
83003         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
83004         fnmatch_.h.
83005         * lib/getopt.in.h: Renamed from lib/getopt_.h.
83006         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
83007         getopt_.h.
83008         * lib/glob.in.h: Renamed from lib/glob_.h.
83009         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
83010         * lib/iconv.in.h: Renamed from lib/iconv_.h.
83011         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
83012         iconv_.h.
83013         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
83014         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
83015         inttypes_.h.
83016         * lib/locale.in.h: Renamed from lib/locale_.h.
83017         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
83018         locale_.h.
83019         * lib/math.in.h: Renamed from lib/math_.h.
83020         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
83021         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
83022         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
83023         of netinet_in_.h. Add dependency.
83024         * lib/poll.in.h: Renamed from lib/poll_.h.
83025         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
83026         * lib/search.in.h: Renamed from lib/search_.h.
83027         * modules/search (Files, Makefile.am): Use search.in.h instead of
83028         search_.h.
83029         * lib/signal.in.h: Renamed from lib/signal_.h.
83030         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
83031         _signal.h.
83032         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
83033         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
83034         stdbool_.h.
83035         * lib/stdint.in.h: Renamed from lib/stdint_.h.
83036         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
83037         stdint_.h.
83038         * lib/stdio.in.h: Renamed from lib/stdio_.h.
83039         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
83040         stdio_.h.
83041         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
83042         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
83043         stdlib_.h.
83044         * lib/string.in.h: Renamed from lib/string_.h.
83045         * modules/string (Files, Makefile.am): Use string.in.h instead of
83046         string_.h.
83047         * doc/gnulib-tool.texi (Initial import): Update.
83048         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
83049         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
83050         of sys_select_.h. Add dependency.
83051         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
83052         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
83053         of sys_socket_.h.
83054         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
83055         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
83056         sys_stat_.h.
83057         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
83058         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
83059         sys_time_.h.
83060         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
83061         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
83062         sysexits_.h.
83063         * lib/time.in.h: Renamed from lib/time_.h.
83064         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
83065         * lib/unistd.in.h: Renamed from lib/unistd_.h.
83066         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
83067         unistd_.h.
83068         * lib/wchar.in.h: Renamed from lib/wchar_.h.
83069         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
83070         wchar_.h.
83071         * lib/wctype.in.h: Renamed from lib/wctype_.h.
83072         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
83073         wctype_.h.
83074         * build-aux/bootstrap (slurp): Update.
83075         * lib/.cppi-disable: Update.
83077 2007-09-30  Bruno Haible  <bruno@clisp.org>
83079         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
83080         Needed on BeOS.
83082 2007-09-30  Bruno Haible  <bruno@clisp.org>
83084         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
83086 2007-09-29  Bruno Haible  <bruno@clisp.org>
83088         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
83090 2007-09-29  Bruno Haible  <bruno@clisp.org>
83092         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
83093         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
83094         * build-aux/install-reloc: Compile also areadlink.c.
83095         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
83097 2007-09-29  Bruno Haible  <bruno@clisp.org>
83099         * gnulib-tool (func_emit_initmacro_done): Indentation.
83101 2007-09-29  Bruno Haible  <bruno@clisp.org>
83103         * README: Add CVS checkout update instructions.
83104         Info from Bob Proulx <bob@proulx.com>.
83106 2007-09-28  Eric Blake  <ebb9@byu.net>
83108         Provide move-if-change.
83109         * build-aux/move-if-change: New file, based on best practice
83110         rather than any canonical upstream location.
83112 2007-09-28  Jim Meyering  <jim@meyering.net>
83114         Fix canonicalize loop-detection corner case.
83115         Do not attempt to stat the symlink values stored via seen_triple.
83116         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
83117         on linux-2.6.18, (but not 2.6.22).
83118         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
83119         triple_compare.  The former compares dev,ino,filename, while the latter
83120         would actually stat dirname(filename) when dev and ino were equal.
83121         * lib/hash-triple.c: Install <string.h>.
83122         (STREQ): Define.
83123         (triple_compare_ino_str): New function.
83124         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
83126 2007-09-28  Eric Blake  <ebb9@byu.net>
83128         Enforce that AC_REPLACE_FUNCS files exist.
83129         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
83130         override check for typos.
83132         Fix test-closein on Solaris 10.
83133         * tests/test-closein.c (main): Don't assume stdin can be inherited
83134         closed on all systems.
83135         * tests/test-closein.sh: Likewise.
83136         Reported by Piotr Tarnowski.
83138 2007-09-28  Jim Meyering  <jim@meyering.net>
83140         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
83142 2007-09-27  Jim Meyering  <jim@meyering.net>
83144         canonicalize: Avoid a false-positive cycle failure.
83145         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
83146         Sort.  Remove cycle-check.
83147         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
83148         not cycle-check.h.
83149         (seen_triple): New function.
83150         (canonicalize_filename_mode): Use it instead of cycle-check.
83151         * tests/test-canonicalize.c: Add a test for this bug.
83152         * tests/test-canonicalize.sh: Set up and run the test.
83154         New module, file-set, from coreutils.
83155         * modules/file-set: Define it.
83156         * lib/file-set.c, lib/file-set.h: Implement.
83158         New module, hash-triple, from coreutils.
83159         * modules/hash-triple: Define it.
83160         * lib/hash-triple.c, lib/hash-triple.h: Implement.
83162 2007-09-25  Eric Blake  <ebb9@byu.net>
83164         Fix strerror on Interix.
83165         * lib/string_.h (strerror): Declare replacement.
83166         * doc/functions/strerror.texi (strerror): Document the Interix
83167         shortcoming.
83168         * modules/string (Makefile.am): Support new hooks.
83169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
83170         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
83171         gl_FUNC_STRERROR_SEPARATE.
83172         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
83173         * lib/strerror.c (rpl_strerror): Provide replacement.
83174         * modules/strerror (Depends-on): Add string.
83175         (configure.ac): Detect use of module.
83176         * tests/test-strerror.c: New file.
83177         * modules/strerror-tests: New test module.
83178         * modules/argp (Depends-on): Add strerror.
83179         * modules/error (Depends-on): Likewise.
83180         Reported by Martin Koeppe.
83182 2007-09-24  Bruno Haible  <bruno@clisp.org>
83184         * README: Update git instructions.
83186 2007-09-24  Eric Blake  <ebb9@byu.net>
83188         Revert fpending breakage from 2007-09-08.
83189         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
83190         __fpending.c.
83192 2007-09-24  Jim Meyering  <jim@meyering.net>
83194         filenamecat.c: Add a test.
83195         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
83196         showing how the function works when DIR is the empty string.
83198 2007-09-21  Simon Josefsson  <simon@josefsson.org>
83200         * tests/test-canonicalize.sh: Turn on executable bit.
83202 2007-09-19  Eric Blake  <ebb9@byu.net>
83204         * README: Update CVS instructions.
83206 2007-09-18  Bruno Haible  <bruno@clisp.org>
83208         * modules/areadlink: New file.
83209         * lib/areadlink.h (areadlink): New declaration.
83210         * lib/areadlink.c: New file, based on lib/xreadlink.c.
83212 2007-09-17  Jim Meyering  <jim@meyering.net>
83214         * lib/savewd.c (ESTALE) [!defined]: Define.
83215         Reported to be required on Interix by Martin Koeppe.
83217 2007-09-17  Bruno Haible  <bruno@clisp.org>
83219         * gnulib-tool (func_version): Use $version.
83221 2007-09-16  Bruno Haible  <bruno@clisp.org>
83223         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
83224         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
83225         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
83226         Reported by Greg Schafer <gschafer@zip.com.au>.
83228 2007-09-15  Bruno Haible  <bruno@clisp.org>
83230         * gnulib-tool (sed): Try a little harder to make bash understand the
83231         alias.
83232         Reported by Bruce Korb <bruce.korb@gmail.com>.
83234 2007-09-13  Eric Blake  <ebb9@byu.net>
83236         * ChangeLog: Remove conflict markers.
83238 2007-09-13  Simon Josefsson  <simon@josefsson.org>
83240         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
83241         Reported by Bruno Haible <bruno@clisp.org>.
83243 2007-09-12  Bruno Haible  <bruno@clisp.org>
83245         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
83246         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
83247         is not defined.
83249 2007-09-12  Eric Blake  <ebb9@byu.net>
83251         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
83252         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
83253         Autoconf definition.
83254         * modules/euidaccess (Depends-on): Add extensions, for
83255         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
83256         * modules/fnmatch (Depends-on): Likewise.
83257         * modules/getaddrinfo (Depends-on): Likewise.
83258         * modules/getdelim (Depends-on): Likewise.
83259         * modules/getline (Depends-on): Likewise.
83260         * modules/getsubopt (Depends-on): Likewise.
83261         * modules/gettext (Depends-on): Likewise.
83262         * modules/group-member (Depends-on): Likewise.
83263         * modules/mbchar (Depends-on): Likewise.
83264         * modules/memmem (Depends-on): Likewise.
83265         * modules/mempcpy (Depends-on): Likewise.
83266         * modules/memrchr (Depends-on): Likewise.
83267         * modules/pagealign_alloc (Depends-on): Likewise.
83268         * modules/readutmp (Depends-on): Likewise.
83269         * modules/stpcpy (Depends-on): Likewise.
83270         * modules/stpncpy (Depends-on): Likewise.
83271         * modules/strchrnul (Depends-on): Likewise.
83272         * modules/strndup (Depends-on): Likewise.
83273         * modules/strsep (Depends-on): Likewise.
83274         * modules/strverscmp (Depends-on): Likewise.
83275         * modules/vasprintf (Depends-on): Likewise.
83276         * modules/wcwidth (Depends-on): Likewise.
83277         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
83278         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
83279         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
83280         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
83281         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
83282         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
83283         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
83284         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
83285         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
83286         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
83287         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
83288         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
83289         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
83290         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
83291         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
83292         * m4/readutmp.m4 (gl_READUTMP): Likewise.
83293         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
83294         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
83295         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
83296         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
83297         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
83298         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
83299         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
83300         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
83301         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
83302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
83303         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
83304         so that lock.m4 can be used in gettext without extensions module.
83306 2007-09-11  Bruno Haible  <bruno@clisp.org>
83308         * m4/isc-posix.m4: Remove file.
83309         Suggested by Eric Blake.
83311 2007-09-11  Eric Blake  <ebb9@byu.net>
83313         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
83315 2007-09-10  Bruno Haible  <bruno@clisp.org>
83317         * posix-modules: Fix typo in error message.
83318         Reported by Matt <mkraai@beckman.com>.
83320 2007-09-09  Bruno Haible  <bruno@clisp.org>
83322         * doc/functions/getdelim.texi: Update list of platforms lacking the
83323         function.
83324         * doc/functions/getline.texi: Likewise.
83326 2007-09-09  Jim Meyering  <jim@meyering.net>
83328         * lib/hash.c (hash_initialize): Detect calloc failure.
83329         Reported by Bruno Haible.
83331 2007-09-09  Bruno Haible  <bruno@clisp.org>
83333         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
83334         malloc or realloc fails.
83336 2007-09-09  Bruno Haible  <bruno@clisp.org>
83338         * modules/getcwd (Depends-on): Add malloc-posix.
83339         * modules/glob (Depends-on): Likewise.
83340         * modules/putenv (Depends-on): Likewise.
83341         * modules/strdup (Depends-on): Likewise.
83342         * modules/getdelim (Depends-on): Add realloc-posix.
83343         * modules/read-file (Depends-on): Likewise.
83345 2007-09-09  Bruno Haible  <bruno@clisp.org>
83347         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
83348         (gl_FUNC_MALLOC_POSIX): Require it.
83349         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
83350         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
83351         * modules/realloc (Files): Add m4/malloc.m4.
83352         * modules/calloc (Files): Likewise.
83354 2007-09-09  Bruno Haible  <bruno@clisp.org>
83356         * modules/malloc-posix: New file.
83357         * modules/malloc (Depends-on): Add malloc-posix.
83358         * lib/malloc.c: Include errno.h.
83359         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
83360         and a POSIX-compatible malloc into a single function. Set ENOMEM
83361         when returning NULL.
83362         * m4/malloc.m4: New file.
83363         * doc/functions/malloc.texi: Mention the malloc-posix module.
83364         * lib/stdlib_.h (malloc): New declaration.
83365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83366         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
83367         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
83368         and HAVE_MALLOC_POSIX.
83370 2007-09-09  Bruno Haible  <bruno@clisp.org>
83372         * modules/realloc-posix: New file.
83373         * modules/realloc (Depends-on): Add realloc-posix.
83374         * lib/realloc.c: Include errno.h.
83375         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
83376         and a POSIX-compatible realloc into a single function. Set ENOMEM
83377         when returning NULL.
83378         * m4/realloc.m4: New file.
83379         * doc/functions/realloc.texi: Mention the realloc-posix module.
83380         * lib/stdlib_.h (realloc): New declaration.
83381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83382         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
83383         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
83384         and HAVE_REALLOC_POSIX.
83386 2007-09-09  Bruno Haible  <bruno@clisp.org>
83388         * modules/calloc-posix: New file.
83389         * modules/calloc (Depends-on): Add calloc-posix.
83390         * lib/calloc.c: Include errno.h.
83391         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
83392         and a POSIX-compatible calloc into a single function. Set ENOMEM
83393         when returning NULL.
83394         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
83395         * doc/functions/calloc.texi: Mention the calloc-posix module.
83396         * lib/stdlib_.h (calloc): New declaration.
83397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83398         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
83399         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
83400         and HAVE_CALLOC_POSIX.
83402 2007-09-09  Bruno Haible  <bruno@clisp.org>
83404         Allow for modules to show an arbitrary notice.
83405         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
83406         * gnulib-tool: New option --extract-notice.
83407         (func_usage): Document it.
83408         (sed_extract_prog): Update.
83409         (func_get_notice): New function.
83410         (func_modules_notice): New function.
83411         (func_import, func_create_testdir): Invoke it.
83412         Suggested by Jim Meyering.
83414 2007-09-09  Bruno Haible  <bruno@clisp.org>
83416         * gnulib-tool: New options --verbose, --quiet.
83417         (func_usage): Document them.
83418         (verbose): New variable.
83419         (func_execute_command): New function.
83420         (func_import): Don't show the module list and the file list if
83421         $verbose < 0.
83422         (func_create_testdir): Likewise. Use func_execute_command.
83423         (func_create_megatestdir): Use func_execute_command.
83425 2007-09-08  Bruno Haible  <bruno@clisp.org>
83427         * gnulib-tool (func_import): Prefer rsync over wget when available,
83428         for fetching the PO files.
83430 2007-09-08  Bruno Haible  <bruno@clisp.org>
83432         * posix-modules: New file. Portions copied from gnulib-tool.
83433         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
83435 2007-09-08  Jim Meyering  <jim@meyering.net>
83437         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
83438         * lib/fpending.h: Rename from __fpending.h.
83439         * lib/fpending.c: Rename from __fpending.c.
83440         Include "fpending.h", not "__fpending.h".
83441         * lib/__fpending.h, lib/__fpending.c: Remove files.
83442         * modules/fpending (Files): Reflect new file names.
83443         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
83445 2007-09-08  Bruno Haible  <bruno@clisp.org>
83447         * m4/inttypes-h.m4: Remove stub file.
83449 2007-09-07  Simon Josefsson  <simon@josefsson.org>
83451         * doc/headers/stdint.texi: Discuss #include_next issue.
83453 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83455         * build-aux/bootstrap: Remove obsolete comment about wget --help.
83457 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83459         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
83460         in variable name.
83462 2007-09-03  Jim Meyering  <jim@meyering.net>
83464         New module: git-version-gen.
83465         * modules/git-version-gen: New file.
83467         Import changes from coreutils for bootstrap script.
83469         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
83471         bootstrap: uses rsync to download the .po files
83472         * build-aux/bootstrap (po_download_command_format): New global.
83473         (download_po_files): Use rsync.
83474         (update_po_files): Don't remove .po files after download,
83475         so future rsync runs can take advantage of the copies.
83477         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
83479         Solve the unnecessary-.po-file-regeneration problem once and for all.
83480         * build-aux/bootstrap (download_po_files): New function, renamed from
83481         get_translations.  Now, downloads, but doesn't update LINGUAS.
83482         (update_po_files): New function.
83484         bootstrap: Ignore more.
83485         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
83486         uniwidth to e.g., lib/.gitignore.
83487         (slurp): Handle the sys_stat_.h -> sys mapping, too.
83489         * build-aux/bootstrap: New setting: vc_ignore.
83490         (insert_sorted_if_absent): Create $file if absent.
83491         Adapt to new, possibly empty, list: $vc_ignore.
83493         bootstrap: generate more ignorable names
83494         * build-aux/bootstrap (slurp): When generating ignorable names,
83495         also map .sin to .sed, .gperf to .c, and .y to .c.
83497 2007-09-03  Jim Meyering  <jim@meyering.net>
83499         * build-aux/git-version-gen: New file, from coreutils.  For details, see
83500         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
83502 2007-09-02  Bruno Haible  <bruno@clisp.org>
83504         Fix mis-recognition of 'mcs' on QNX 6.
83505         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
83506         output contains the string "Mono".
83507         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
83508         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
83510 2007-09-01  Bruno Haible  <bruno@clisp.org>
83512         Fix collision between uniwidth/* and linebreak modules.
83513         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
83514         u32_width): Remove declarations.
83515         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
83516         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
83517         streq3, streq2, streq1, streq0): Remove functions.
83518         (STREQ): Remove macro.
83519         (is_cjk_encoding): Remove function.
83520         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
83521         (uc_width, u8_width, u16_width, u32_width): Remove functions.
83522         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
83523         * NEWS: Document the change.
83525 2007-09-01  Bruno Haible  <bruno@clisp.org>
83527         * lib/streq.h: Add double-inclusion guard.
83529 2007-09-01  Karl Berry  <karl@gnu.org>
83531         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
83533 2007-08-28  Jim Meyering  <jim@meyering.net>
83535         Rename mreadlink_with_size to areadlink_with_size.
83536         * NEWS: Document the change.
83537         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
83538         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
83539         * lib/mreadlink.h: Rename this to...
83540         * lib/areadlink.h: ...this.
83541         * modules/mreadlink-with-size: Rename this to...
83542         * modules/areadlink-with-size: ...this.
83543         * lib/canonicalize.c: Reflect the renaming.
83544         * modules/canonicalize: Likewise.
83546 2007-08-26  Bruno Haible  <bruno@clisp.org>
83548         * gnulib-tool (func_import): When deciding which files to remove,
83549         consider also dangling symbolic links.
83550         Reported by Eric Blake.
83552 2007-08-26  Bruno Haible  <bruno@clisp.org>
83554         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
83556 2007-08-23  Simon Josefsson  <simon@josefsson.org>
83558         * lib/readline.c: Don't include getline.h, the prototype is now
83559         found in stdio.h.
83561 2007-08-23  Jim Meyering  <jim@meyering.net>
83563         Getdelim touchup.
83564         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
83565         around the funlockfile call, since funlockfile never sets errno.
83566         Don't set errno upon failed realloc.
83568 2007-08-22  Eric Blake  <ebb9@byu.net>
83570         Getline touchups.
83571         * lib/getdelim.c (getdelim): Revert regression that required *n to
83572         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
83573         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
83574         getdelim, rather than whether implementation is missing.
83575         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
83576         * lib/stdio_.h (getline): Also declare if replacement is
83577         required.
83578         * doc/functions/getdelim.texi: New file.
83579         * doc/functions/getline.texi: Likewise.
83580         * doc/gnulib.texi (Function Substitutes): Add new files.
83581         Reported by Bruno Haible.
83583 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
83585         * users.txt: Add Guile.
83587 2007-08-22  Eric Blake  <ebb9@byu.net>
83589         * tests/test-getdelim.c (main): Use remove, not unlink.
83590         * tests/test-getline.c (main): Likewise.
83592         Move getline and getdelim into stdio.h, per POSIX 200x.
83593         * modules/getline (Files): Remove getline.h.
83594         (Depends-on): Add stdio.
83595         (configure.ac): Add module indicator.
83596         * modules/getdelim (Files): Remove getdelim.h.
83597         (Depends-on): Add stdio.
83598         (configure.ac): Add module indicator.
83599         * modules/stdio (Makefile.am): Work with new indicators.
83600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
83601         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
83602         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
83603         * lib/getdelim.h: Delete.
83604         * lib/getline.h: Delete.
83605         * lib/stdio_.h (getdelim, getline): Declare.
83606         * modules/getdelim-tests: New module.
83607         * modules/getline-tests: Likewise.
83608         * tests/test-getdelim.c: New file.
83609         * tests/test-getline.c: Likewise.
83610         * NEWS: Document the change.
83611         * lib/getline.c: Update choice of header.
83612         * lib/csharpcomp.c: Likewise.
83613         * lib/getpass.c: Likewise.
83614         * lib/javacomp.c: Likewise.
83615         * lib/javaversion.c: Likewise.
83616         * lib/yesno.c: Likewise.
83617         * lib/getdelim.c: Likewise.
83618         (getdelim): Set errno on failure, and avoid memory leak.
83620 2007-08-19  Bruno Haible  <bruno@clisp.org>
83622         * modules/closein (Depends-on): Add freadahead.
83623         * lib/closein.c: Include freadahead.h.
83624         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
83625         is zero.
83627 2007-08-19  Bruno Haible  <bruno@clisp.org>
83629         * modules/freadahead-tests: New file.
83630         * tests/test-freadahead.sh: New file.
83631         * tests/test-freadahead.c: New file.
83633         * modules/freadahead: New file.
83634         * lib/freadahead.h: New file.
83635         * lib/freadahead.c: New file.
83636         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
83637         fbufmode, fpurge, freadable, fwritable.
83639 2007-08-19  Eric Blake  <ebb9@byu.net>
83641         Test yesno in combination with closein.
83642         * lib/yesno.c (yesno): Document use of stdin.
83643         * modules/yesno-tests (Files): New module.
83644         * tests/test-yesno.c (main): New file.
83645         * tests/test-yesno.sh: Likewise.
83647 2007-08-19  Bruno Haible  <bruno@clisp.org>
83649         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
83650         * lib/fseeko.c (rpl_fseeko): Likewise.
83651         * lib/fseterr.c (fseterr): Likewise.
83653 2007-08-19  Bruno Haible  <bruno@clisp.org>
83655         * tests/test-lseek.c (main): Disable a test for BeOS.
83656         * doc/functions/lseek.texi: Document the BeOS bug.
83658 2007-08-19  Bruno Haible  <bruno@clisp.org>
83659             Eric Blake  <ebb9@byu.net>
83661         * lib/lseek.c: Include <sys/stat.h>.
83662         (rpl_lseek): Add workaround code also for Unix platforms.
83663         Needed for BeOS.
83664         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
83665         * doc/functions/lseek.texi: Document BeOS definiency.
83667 2007-08-18  Bruno Haible  <bruno@clisp.org>
83669         * modules/fstrcmp-tests: New file.
83670         * tests/test-fstrcmp.c: New file.
83672 2007-08-18  Bruno Haible  <bruno@clisp.org>
83674         * modules/fstrcmp: New file, from GNU gettext with modifications.
83675         * lib/fstrcmp.h: New file, from GNU gettext.
83676         * lib/fstrcmp.c: New file, from GNU gettext.
83677         * MODULES.html.sh (String handling): Add fstrcmp.
83679 2007-08-18  Bruno Haible  <bruno@clisp.org>
83681         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
83682         'bool'.
83683         (diag, compareseq): Remove const from the ctxt argument.
83684         (USE_HEURISTIC): Undefine at the end.
83686 2007-08-18  Jim Meyering  <jim@meyering.net>
83688         New file: lib/idcache.h
83689         * NEWS: Mention the addition.
83690         * modules/idcache (Files): Add lib/idcache.h
83691         * lib/idcache.c: Include "idcache.h".
83692         Don't include <sys/types.h>.
83693         Add a FIXME comment.
83694         Move file-scoped "static" declarations to the top.
83695         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
83697 2007-08-17  Bruno Haible  <bruno@clisp.org>
83698         and Paul Eggert  <eggert@cs.ucla.edu>
83700         * MODULES.html.sh: Add diffseq.
83701         * modules/diffseq: New file.
83702         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
83703         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
83705 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83707         Import changes from coreutils for bootstrap script.
83709         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
83711         * build-aux/bootstrap (slurp): Work even in environments where
83712         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
83713         current code does not slurp files whose names start with ".", and
83714         this looks like it might be a troublesome area.
83716         2007-07-11  Jim Meyering  <jim@meyering.net>
83718         If there's a GPL vN copyright comment, require that N == 3.
83720         2007-07-08  Jim Meyering  <jim@meyering.net>
83722         Run the coreutils-specific code only if tests/Makefile.am.in exists.
83723         * build-aux/bootstrap (mam_template): Move definition out of loop.
83725         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
83727         * build-aux/bootstrap (symlink_to_dir): Rename function from
83728         symlink_to_gnulib.  Add a directory parameter.  Update all
83729         callers.
83730         (cp_mark_as_generated): Also check for -- and link to -- files in
83731         gl/.
83733         2007-07-08  Jim Meyering  <jim@meyering.net>
83735         Adapt to deeper hierarchy in gnulib.
83736         * build-aux/bootstrap (symlink_to_dir): If the destination
83737         directory doesn't exist, create it. This is required at least for
83738         "lib/uniwidth/cjk.h".
83740         2007-05-15  Jim Meyering  <jim@meyering.net>
83742         * build-aux/bootstrap: Now that generated Makefile.am files
83743         are no longer under version control, they must be created at
83744         bootstrap time.
83746 2007-08-14  Ben Pfaff  <blp@gnu.org>
83748         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
83750 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
83752         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
83753         given the changes below.
83754         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
83755         even on hosts that have padding bits beyond the supported 64.
83757 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
83759         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
83760         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
83761         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
83762         depends on it.
83763         (xstrtol_error): Remove.
83764         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
83765         but with a different signature.
83766         (ATTRIBUTE_NORETURN, __attribute__): New macros.
83767         * lib/xstrtol-error.c: Include exitfail.h.
83768         (xstrtol_fatal): New function, with a different signature from the
83769         old xstrtol_error, so that the caller need not worry about passing
83770         in an exit status, or about storage management of the option argument.
83771         (xstrtol_error): Now a static function.  Redo signature to
83772         implement xstrtol_fatal.  Output the correct number of hyphens in
83773         front of the option so that the caller need not worry about
83774         storage management.
83775         (N_): New macro.
83776         (_): Remove; not used now.
83777         * modules/xstrtol: Depend on getopt.
83778         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
83779         of old STRTOL_FATAL_ERROR macro.
83780         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
83781         of test program.
83782         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
83783         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
83785 2007-08-08  Eric Blake  <ebb9@byu.net>
83787         * lib/xstrtol-error.c: Add missing include.
83789         Move xstrtol messages into gnulib domain, when --pobase is used.
83790         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
83791         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
83792         * modules/xstrtol (Files): Distribute new file.
83793         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
83794         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
83795         * tests/test-xstrtol.c: ...into new file.
83796         * tests/test-xstrtoul.c: Also test xstrtoul.
83797         * tests/test-xstrtoimax.c: Also test xstrtoimax.
83798         * tests/test-xstrtoumax.c: Also test xstrtoumax.
83799         * tests/test-xstrtol.sh: Drive the tests.
83800         * tests/test-xstrtoimax.sh: Likewise.
83801         * tests/test-xstrtoumax.sh: Likewise.
83802         * modules/xstrtol-tests: New module.
83803         * modules/xstrtoimax-tests: Likewise.
83804         * modules/xstrtoumax-tests: Likewise.
83806 2007-08-08  Jim Meyering  <jim@meyering.net>
83808         New function: mfile_name_concat.
83809         * lib/filenamecat.c (mfile_name_concat): New function, just like
83810         file_name_concat, but return NULL upon failure rather than exiting
83811         with a diagnostic.
83812         * lib/filenamecat.h: Declare it.
83814 2007-08-07  Bruno Haible  <bruno@clisp.org>
83816         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
83817         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
83818         warning from gcc.
83819         Reported by Eric Blake.
83821 2007-08-07  Simon Josefsson  <simon@josefsson.org>
83823         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
83824         * modules/crypto/arcfour (License): Likewise.
83825         * modules/crypto/des-tests (License): Likewise.
83826         * modules/crypto/gc-arctwo-tests (License): Likewise.
83827         * modules/crypto/gc-des-tests (License): Likewise.
83828         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
83829         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
83830         * modules/crypto/gc-md2-tests (License): Likewise.
83831         * modules/crypto/gc-md4-tests (License): Likewise.
83832         * modules/crypto/gc-md5-tests (License): Likewise.
83833         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
83834         * modules/crypto/gc-rijndael-tests (License): Likewise.
83835         * modules/crypto/gc-sha1-tests (License): Likewise.
83836         * modules/crypto/gc-tests (License): Likewise.
83837         * modules/crypto/hmac-md5 (License): Likewise.
83838         * modules/crypto/hmac-sha1 (License): Likewise.
83839         * modules/crypto/md2-tests (License): Likewise.
83840         * modules/crypto/md4-tests (License): Likewise.
83841         * modules/crypto/md5 (License): Likewise.
83842         * modules/crypto/rijndael (License): Likewise.
83843         * modules/crypto/sha1 (License): Likewise.
83844         * modules/memxor (License): Likewise.
83846 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83847         and Bruno Haible  <bruno@clisp.org>
83849         * NEWS: Describe interface changes to human, xstrtol.
83850         * lib/human.h: Include <xstrtol.h>.
83851         (human_options): Return enum strtol_error, not int.  Remove
83852         bool arg; take int * instead.
83853         * lib/human.c: Don't include "gettext.h".
83854         (_): Remove; no longer used.
83855         Don't include <xstrtol.h>, since human.h does it.
83856         (human_options): Adjust to abovementioned interface changes.
83857         Do not report error to stderr; that's now the caller's
83858         responsibility.
83859         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
83860         interface change.
83861         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
83862         Str, Argument_type_string.  All uses changed.  Put " argument"
83863         in diagnostics to make them clearer.  Change wording of suffix
83864         message for clarity.
83865         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
83866         Argument_type_string.
83867         (STRTOL_FATAL_WARN): Remove; no longer used.
83868         * modules/human (Depends-on): Remove gettext-h.
83870 2007-08-06  Simon Josefsson  <simon@josefsson.org>
83872         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
83874 2007-07-31  Bruno Haible  <bruno@clisp.org>
83876         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
83877         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
83878         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
83880 2007-07-31  Bruno Haible  <bruno@clisp.org>
83882         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
83883         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
83885 2007-07-30  Bruno Haible  <bruno@clisp.org>
83887         * modules/base64 (License): Use the synonymous term "LGPLv2+".
83888         * modules/c-ctype (License): Likewise.
83889         * modules/c-strcase (License): Likewise.
83890         * modules/check-version (License): Likewise.
83891         * modules/iconv (License): Likewise.
83892         * modules/iconv_open (License): Likewise.
83893         * modules/read-file (License): Likewise.
83894         * modules/striconv (License): Likewise.
83895         * modules/strverscmp (License): Likewise.
83896         * modules/vasprintf (License): Likewise.
83897         * modules/crypto/des (License): Likewise.
83898         * modules/crypto/gc (License): Likewise.
83899         * modules/crypto/gc-arcfour (License): Likewise.
83900         * modules/crypto/gc-arctwo (License): Likewise.
83901         * modules/crypto/gc-des (License): Likewise.
83902         * modules/crypto/gc-hmac-md5 (License): Likewise.
83903         * modules/crypto/gc-hmac-sha1 (License): Likewise.
83904         * modules/crypto/gc-md2 (License): Likewise.
83905         * modules/crypto/gc-md4 (License): Likewise.
83906         * modules/crypto/gc-md5 (License): Likewise.
83907         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
83908         * modules/crypto/gc-random (License): Likewise.
83909         * modules/crypto/gc-rijndael (License): Likewise.
83910         * modules/crypto/gc-sha1 (License): Likewise.
83911         * modules/crypto/md2 (License): Likewise.
83912         * modules/crypto/md4 (License): Likewise.
83914 2007-07-30  Jim Meyering  <jim@meyering.net>
83916         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
83917         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
83918         it has valid stat data.  This bug would cause du not to count the
83919         sizes of inaccessible directories.
83920         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
83921         in <http://bugzilla.redhat.com/250077>.
83923 2007-07-25  Peter O'Gorman  <peter@pogma.com>
83924             Bruno Haible  <bruno@clisp.org>
83926         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
83927         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
83928         #include_next, gives a diagnostic about it, but reports no error in
83929         the exit code.
83930         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
83932 2007-07-24  Ben Pfaff  <blp@gnu.org>
83934         Improve name: "count-one-bits" is better than "popcount".
83935         * MODULES.html.sh: Update name.
83936         * lib/popcount.h: Renamed lib/count-one-bits.h.
83937         (popcount): Renamed count_one_bits.
83938         (popcountl): Renamed count_one_bits_l.
83939         (popcountll): Renamed count_one_bits_ll.
83940         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
83941         * modules/popcount: Renamed module/count-one-bits.
83942         * modules/popcount-tests: Renamed module/count-one-bits-tests.
83943         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
83945 2007-07-23  Ben Pfaff  <blp@gnu.org>
83947         * lib/popcount.h (popcount32): Reduce size of constants, to allow
83948         better code generation, and add U to large constants to avoid
83949         warnings, in non-GCC case.
83950         Suggested by Bruno Haible.
83952 2007-07-23  Ben Pfaff  <blp@gnu.org>
83954         * lib/popcount.h: Use verify_true instead of if...abort.
83955         * modules/popcount: Depend on verify module.
83956         Suggested by Jim Meyering.
83958 2007-07-23  Bruno Haible  <bruno@clisp.org>
83960         * gnulib-tool (func_import): Create a .cvsignore file also when the
83961         directory is not yet in CVS but the toplevel directory is. When
83962         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
83963         Reported by Karl Berry.
83965 2007-07-22  Ben Pfaff  <blp@gnu.org>
83967         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
83968         case.
83969         Suggested by Eric Blake.
83971 2007-07-22  Ben Pfaff  <blp@gnu.org>
83973         New module: popcount.
83974         * MODULES.html.sh: Add popcount.
83975         * modules/popcount: New file.
83976         * modules/popcount-tests: New file.
83977         * tests/test-popcount.c: New file.
83978         * lib/popcount.h: New file.
83979         * m4/popcount.m4: New file.
83981 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
83983         * build-aux/announce-gen: Update to GPLv3.
83985         * build-aux/config.guess: Update from config.
83987 2007-07-21  Bruno Haible  <bruno@clisp.org>
83989         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
83990         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
83992 2007-07-20  Jim Meyering  <jim@meyering.net>
83994         * check-module: Diagnose a self-dependency.
83996 2007-07-19  Bruno Haible  <bruno@clisp.org>
83998         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
83999         empty.
84000         Reported by Eric Blake.
84002 2007-07-18  Bruno Haible  <bruno@clisp.org>
84004         * gnulib-tool: New options --po-base, --po-domain.
84005         (func_usage): Document them.
84006         (pobase, po_domain): New variables.
84007         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
84008         DEFAULT_TEXT_DOMAIN.
84009         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
84010         (func_import): Consider pobase and po_domain. Create a po/ directory.
84011         (func_create_testdir): Set pobase and po_domain to empty.
84012         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
84013         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
84015 2007-07-18  Bruno Haible  <bruno@clisp.org>
84017         * gnulib-tool (func_get_automake_snippet): Synthesize also an
84018         EXTRA_DIST augmentation for files in build-aux/.
84020 2007-07-16  Bruno Haible  <bruno@clisp.org>
84022         * modules/lseek (License): Use the synonymous term "LGPLv2+".
84023         * modules/getdelim (License): Likewise.
84025 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84027         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
84028         * modules/d-type (License): Likewise.
84029         * modules/extensions (License): Likewise.
84030         * modules/fnmatch (License): Likewise.
84031         * modules/fseeko (License): Likewise.
84032         * modules/getaddrinfo (License): Likewise.
84033         * modules/getline (License): Likewise.
84034         * modules/getlogin_r (License): Likewise.
84035         * modules/getpass (License): Likewise.
84036         * modules/gettimeofday (License): Likewise.
84037         * modules/glob (License): Likewise.
84038         * modules/inet_ntop (License): Likewise.
84039         * modules/malloc (License): Likewise.
84040         * modules/malloca (License): Likewise.
84041         * modules/memmem (License): Likewise.
84042         * modules/mempcpy (License): Likewise.
84043         * modules/memset (License): Likewise.
84044         * modules/minmax (License): Likewise.
84045         * modules/mktime (License): Likewise.
84046         * modules/netinet_in (License): Likewise.
84047         * modules/pathmax (License): Likewise.
84048         * modules/poll (License): Likewise.
84049         * modules/regex (License): Likewise.
84050         * modules/snprintf (License): Likewise.
84051         * modules/stdbool (License): Likewise.
84052         * modules/stdint (License): Likewise.
84053         * modules/stdio (License): Likewise.
84054         * modules/strcase (License): Likewise.
84055         * modules/strcasestr (License): Likewise.
84056         * modules/strdup (License): Likewise.
84057         * modules/string (License): Likewise.
84058         * modules/strndup (License): Likewise.
84059         * modules/strnlen (License): Likewise.
84060         * modules/strpbrk (License): Likewise.
84061         * modules/strptime (License): Likewise.
84062         * modules/strsep (License): Likewise.
84063         * modules/sys_select (License): Likewise.
84064         * modules/sys_socket (License): Likewise.
84065         * modules/sys_stat (License): Likewise.
84066         * modules/sys_time (License): Likewise.
84067         * modules/time (License): Likewise.
84068         * modules/time_r (License): Likewise.
84069         * modules/timegm (License): Likewise.
84070         * modules/unistd (License): Likewise.
84071         * modules/vsnprintf (License): Likewise.
84072         * modules/wctype (License): Likewise.
84074 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84076         * modules/argz (License): LGPLv2+.
84078 2007-07-15  Karl Berry  <karl@gnu.org>
84080         * doc/gnulib.texi: revise node structure per new fdl.texi.
84082 2007-07-14  Bruno Haible  <bruno@clisp.org>
84084         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
84085         the output file.
84086         * lib/uniname/uninames.h: Regenerated.
84088 2007-07-14  Karl Berry  <karl@gnu.org>
84090         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
84091         omitting sectioning and index commands.
84093 2007-07-13  Bruno Haible  <bruno@clisp.org>
84095         New gnulib-tool option --more-symlinks.
84096         * gnulib-tool (func_usage): Document --more-symlinks.
84097         (do_copyrights): New variable.
84098         Recognize option --more-symlinks.
84099         (func_import): Don't add a copyright notice transform to
84100         sed_transform_lib_file if do_copyrights is empty.
84102 2007-07-13  Bruno Haible  <bruno@clisp.org>
84104         * lib/vasnprintf.c (decimal_point_char): Define also if
84105         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
84106         && !NEED_PRINTF_DIRECTIVE_A.
84107         Reported by Clemens Koller <clemens.koller@anagramm.de> via
84108         Gary V. Vaughan <gary@gnu.org>.
84110 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
84112         * lib/inttypes_.h: Undo previous change, since it was fixed
84113         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
84115 2007-07-13  Bruno Haible  <bruno@clisp.org>
84117         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
84118         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
84120 2007-07-13  Jim Meyering  <jim@meyering.net>
84122         df: Don't fail for Tru64's "file-on-file mount".
84123         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
84124         so we fall through and use statfs instead.  Details here:
84125         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
84126         Reported by Albert Chin.
84128 2007-07-13  Bruno Haible  <bruno@clisp.org>
84130         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
84131         * modules/configmake (License): Likewise.
84132         * modules/gettext (License): Likewise.
84133         * modules/gettext-h (License): Likewise.
84134         * modules/include_next (License): Likewise.
84135         * modules/link-warning (License): Likewise.
84136         * modules/localcharset (License): Likewise.
84137         * modules/localename (License): Likewise.
84138         * modules/lock (License): Likewise.
84139         * modules/relocatable-lib-lgpl (License): Likewise.
84140         * modules/size_max (License): Likewise.
84141         * modules/vasnprintf (License): Likewise.
84142         * modules/wchar (License): Likewise.
84143         * modules/xsize (License): Likewise.
84145 2007-07-13  Bruno Haible  <bruno@clisp.org>
84147         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
84148         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
84150 2007-07-12  Bruno Haible  <bruno@clisp.org>
84152         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
84153         in the modules files.
84155 2007-07-11  Karl Berry  <karl@gnu.org>
84157         * MODULES.html.sh (func_module): use
84158          sed -e '\|^'"${includefile}"'$|d'
84159          instead of /.../d, to avoid errors on $includefile's containing /.
84161 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84163         * gnulib-tool (func_import): Avoid duplication of --avoid
84164         statements
84165         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
84166         names to `_' in variable names.
84168 2007-07-10  Eric Blake  <ebb9@byu.net>
84170         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
84171         * NEWS: Document this change.
84173 2007-07-08  Bruno Haible  <bruno@clisp.org>
84175         Update to Unicode 5.0.
84176         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
84177         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
84178         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
84179         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
84180         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
84181         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
84182         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
84183         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
84184         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
84185         U+10A3F, U+1D242..U+1D244.
84186         (nonspacing_table_ind): Update.
84187         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
84188         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
84190 2007-07-08  Bruno Haible  <bruno@clisp.org>
84192         Update to Unicode 5.0.
84193         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
84194         code transform. Extend the name index field of unicode_name_to_code and
84195         unicode_code_to_name from 16 to 24 bits.
84196         * lib/uniname/uniname.c (unicode_character_name,
84197         unicode_name_character): Add the range 0x12xxx to the code transform.
84198         * lib/uniname/uninames.h: Regenerated.
84199         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
84201 2007-07-07  Bruno Haible  <bruno@clisp.org>
84203         * modules/wcwidth-tests: New file.
84204         * tests/test-wcwidth.c: New file.
84206         Work around MacOS X wcwidth() bug.
84207         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
84208         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
84209         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
84210         original wcwidth in non-UTF-8 locales.
84211         * modules/wcwidth (Depends-on): Add localcharset, streq,
84212         uniwidth/width.
84213         * doc/functions/wcwidth.texi: Update.
84215 2007-07-07  Bruno Haible  <bruno@clisp.org>
84217         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
84218         (wcwidth): New declaration.
84219         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
84220         macros.
84221         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
84222         here. Prepare for creating <wchar.h> unconditionally.
84223         * modules/wchar (Depends-on): Add link-warning.
84224         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
84225         REPLACE_WCWIDTH, and GL_LINK_WARNING.
84226         * lib/wcwidth.h: Remove file.
84227         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
84228         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
84229         * modules/wcwidth (Files): Remove lib/wcwidth.h.
84230         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
84231         (Include): Replace wcwidth.h with <wchar.h>.
84232         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
84233         * lib/mbchar.h: Don't include wcwidth.h.
84234         * lib/mbswidth.c: Likewise.
84235         * NEWS: Mention the change.
84237 2007-07-07  Bruno Haible  <bruno@clisp.org>
84239         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
84240         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
84241         definition with an external declaration.
84242         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
84243         defined as a function. Remove AC_C_INLINE requirement.
84244         * modules/wcwidth (Files): Add lib/wcwidth.c.
84245         (Makefile.am): Remove redundant statement.
84247 2007-07-07  Bruno Haible  <bruno@clisp.org>
84249         * MODULES.html.sh (Unicode string functions): Add the new modules.
84251         * tests/uniwidth/test-u32-strwidth.c: New file.
84252         * modules/uniwidth/u32-strwidth-tests: New file.
84254         * lib/uniwidth/u32-strwidth.c: New file.
84255         * modules/uniwidth/u32-strwidth: New file.
84257         * tests/uniwidth/test-u16-strwidth.c: New file.
84258         * modules/uniwidth/u16-strwidth-tests: New file.
84260         * lib/uniwidth/u16-strwidth.c: New file.
84261         * modules/uniwidth/u16-strwidth: New file.
84263         * tests/uniwidth/test-u8-strwidth.c: New file.
84264         * modules/uniwidth/u8-strwidth-tests: New file.
84266         * lib/uniwidth/u8-strwidth.c: New file.
84267         * modules/uniwidth/u8-strwidth: New file.
84269         * tests/uniwidth/test-u32-width.c: New file.
84270         * modules/uniwidth/u32-width-tests: New file.
84272         * lib/uniwidth/u32-width.c: New file.
84273         * modules/uniwidth/u32-width: New file.
84275         * tests/uniwidth/test-u16-width.c: New file.
84276         * modules/uniwidth/u16-width-tests: New file.
84278         * lib/uniwidth/u16-width.c: New file.
84279         * modules/uniwidth/u16-width: New file.
84281         * tests/uniwidth/test-u8-width.c: New file.
84282         * modules/uniwidth/u8-width-tests: New file.
84284         * lib/uniwidth/u8-width.c: New file.
84285         * modules/uniwidth/u8-width: New file.
84287         * tests/uniwidth/test-uc_width.c: New file.
84288         * modules/uniwidth/width-tests: New file.
84290         * lib/uniwidth/width.c: New file, from GNU libiconv.
84291         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
84292         * modules/uniwidth/width: New file.
84294         * lib/uniwidth.h: New file, from GNU libiconv.
84295         * modules/uniwidth/base: New file.
84297 2007-07-07  Bruno Haible  <bruno@clisp.org>
84299         * lib/uniname.h: New file, from GNU gettext.
84300         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
84301         * lib/uniname/uninames.h: New file, from GNU gettext.
84302         * lib/uniname/uniname.c: New file, from GNU gettext.
84303         * tests/uniname/test-uninames.sh: New file.
84304         * tests/uniname/test-uninames.c: New file, from GNU gettext.
84305         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
84306         * modules/uniname/base: New file.
84307         * modules/uniname/uniname: New file.
84308         * modules/uniname/uniname-tests: New file.
84309         * MODULES.html.sh (Unicode string functions): Add the new modules.
84311 2007-07-06  Bruno Haible  <bruno@clisp.org>
84313         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
84315 2007-07-06  Bruno Haible  <bruno@clisp.org>
84317         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
84318         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
84319         includes <cygwin/sys_time.h> which includes <sys/select.h> which
84320         include <sys/time.h>.
84321         Reported by Eric Blake.
84323 2007-07-06  Eric Blake  <ebb9@byu.net>
84325         Fix testing canonicalize on cygwin.
84326         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
84327         Revert patch from 2007-06-19.
84328         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
84329         canonicalize module is also in use.
84330         * tests/test-canonicalize.c: New file.
84331         * tests/test-canonicalize.sh: Likewise.
84332         * modules/canonicalize-tests: Likewise.
84334 2007-07-06  Jim Meyering  <jim@meyering.net>
84336         * lib/getugroups.c (getugroups): Detect getgrent failure.
84337         Adjust comment to reflect reality: this function may return -1.
84339 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
84341         * build-aux/bootstrap (TP_URL,get_translations): Update to use
84342         the new TP address.
84343         (usage): Fix typo
84344         (gnulib_mk): New variable.
84346 2007-07-05  Jim Meyering  <jim@meyering.net>
84348         Don't let endgrent clobber errno, no matter how improbable.
84349         * lib/getugroups.c (getugroups): Save and restore errno around
84350         endgrent call.
84352         Close the group DB even when failing with 2^31 or more members.
84353         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
84355 2007-07-04  Jim Meyering  <jim@meyering.net>
84357         * lib/getugroups.h: New file.
84358         * lib/getugroups.c: Include "getugroups.h".
84359         Remove uses of "register" keyword.
84360         Move local variable, "cp", down into scope where used.
84361         Give "username" parameter the "const" attribute.
84362         * modules/getugroups (Files): Add lib/getugroups.h
84364 2007-07-04  Karl Berry  <karl@gnu.org>
84366         * MODULES.html.sh (func_all_modules): Complete rename of
84367         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
84369 2007-07-02  Bruno Haible  <bruno@clisp.org>
84371         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
84372         mode, when inttypes.h comes from gnulib.
84373         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
84375 2007-07-02  Simon Josefsson  <simon@josefsson.org>
84377         * NEWS: Mention lgpl module name change.
84379         * modules/lgpl-2.1: Renamed from lgpl.
84381         * NEWS: Mention gpl module name change.
84383         * modules/gpl-3.0: New file, based on gpl-2.0.
84385         * modules/gpl-2.0: Renamed from gpl.
84387         * modules/gpl: Fix filename, doc/gpl.texi is now found at
84388         doc/gpl-2.0.texi.
84390 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
84392         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
84393         #define __STDC_LIMIT_MACROS temporarily while including
84394         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
84395         Problem reported by Joel E. Denny in
84396         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
84398 2007-07-01  Bruno Haible  <bruno@clisp.org>
84400         * lib/unistdio.h: New file.
84401         * lib/unistdio/u-asnprintf.h: New file.
84402         * lib/unistdio/u-asprintf.h: New file.
84403         * lib/unistdio/u-printf-args.c: New file.
84404         * lib/unistdio/u-printf-args.h: New file.
84405         * lib/unistdio/u-printf-parse.h: New file.
84406         * lib/unistdio/u-snprintf.h: New file.
84407         * lib/unistdio/u-sprintf.h: New file.
84408         * lib/unistdio/u-vasprintf.h: New file.
84409         * lib/unistdio/u-vsnprintf.h: New file.
84410         * lib/unistdio/u-vsprintf.h: New file.
84411         * lib/unistdio/ulc-asnprintf.c: New file.
84412         * lib/unistdio/ulc-asprintf.c: New file.
84413         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
84414         * lib/unistdio/ulc-printf-parse.c: New file.
84415         * lib/unistdio/ulc-snprintf.c: New file.
84416         * lib/unistdio/ulc-sprintf.c: New file.
84417         * lib/unistdio/ulc-vasnprintf.c: New file.
84418         * lib/unistdio/ulc-vasprintf.c: New file.
84419         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
84420         * lib/unistdio/ulc-vsnprintf.c: New file.
84421         * lib/unistdio/ulc-vsprintf.c: New file.
84422         * lib/unistdio/u8-asnprintf.c: New file.
84423         * lib/unistdio/u8-asprintf.c: New file.
84424         * lib/unistdio/u8-printf-parse.c: New file.
84425         * lib/unistdio/u8-snprintf.c: New file.
84426         * lib/unistdio/u8-sprintf.c: New file.
84427         * lib/unistdio/u8-vasnprintf.c: New file.
84428         * lib/unistdio/u8-vasprintf.c: New file.
84429         * lib/unistdio/u8-vsnprintf.c: New file.
84430         * lib/unistdio/u8-vsprintf.c: New file.
84431         * lib/unistdio/u8-u8-asnprintf.c: New file.
84432         * lib/unistdio/u8-u8-asprintf.c: New file.
84433         * lib/unistdio/u8-u8-snprintf.c: New file.
84434         * lib/unistdio/u8-u8-sprintf.c: New file.
84435         * lib/unistdio/u8-u8-vasnprintf.c: New file.
84436         * lib/unistdio/u8-u8-vasprintf.c: New file.
84437         * lib/unistdio/u8-u8-vsnprintf.c: New file.
84438         * lib/unistdio/u8-u8-vsprintf.c: New file.
84439         * lib/unistdio/u16-asnprintf.c: New file.
84440         * lib/unistdio/u16-asprintf.c: New file.
84441         * lib/unistdio/u16-printf-parse.c: New file.
84442         * lib/unistdio/u16-snprintf.c: New file.
84443         * lib/unistdio/u16-sprintf.c: New file.
84444         * lib/unistdio/u16-vasnprintf.c: New file.
84445         * lib/unistdio/u16-vasprintf.c: New file.
84446         * lib/unistdio/u16-vsnprintf.c: New file.
84447         * lib/unistdio/u16-vsprintf.c: New file.
84448         * lib/unistdio/u16-u16-asnprintf.c: New file.
84449         * lib/unistdio/u16-u16-asprintf.c: New file.
84450         * lib/unistdio/u16-u16-snprintf.c: New file.
84451         * lib/unistdio/u16-u16-sprintf.c: New file.
84452         * lib/unistdio/u16-u16-vasnprintf.c: New file.
84453         * lib/unistdio/u16-u16-vasprintf.c: New file.
84454         * lib/unistdio/u16-u16-vsnprintf.c: New file.
84455         * lib/unistdio/u16-u16-vsprintf.c: New file.
84456         * lib/unistdio/u32-asnprintf.c: New file.
84457         * lib/unistdio/u32-asprintf.c: New file.
84458         * lib/unistdio/u32-printf-parse.c: New file.
84459         * lib/unistdio/u32-snprintf.c: New file.
84460         * lib/unistdio/u32-sprintf.c: New file.
84461         * lib/unistdio/u32-vasnprintf.c: New file.
84462         * lib/unistdio/u32-vasprintf.c: New file.
84463         * lib/unistdio/u32-vsnprintf.c: New file.
84464         * lib/unistdio/u32-vsprintf.c: New file.
84465         * lib/unistdio/u32-u32-asnprintf.c: New file.
84466         * lib/unistdio/u32-u32-asprintf.c: New file.
84467         * lib/unistdio/u32-u32-snprintf.c: New file.
84468         * lib/unistdio/u32-u32-sprintf.c: New file.
84469         * lib/unistdio/u32-u32-vasnprintf.c: New file.
84470         * lib/unistdio/u32-u32-vasprintf.c: New file.
84471         * lib/unistdio/u32-u32-vsnprintf.c: New file.
84472         * lib/unistdio/u32-u32-vsprintf.c: New file.
84473         * tests/unistdio/test-ulc-asnprintf1.c: New file.
84474         * tests/unistdio/test-ulc-asnprintf1.h: New file.
84475         * tests/unistdio/test-ulc-printf1.h: New file.
84476         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
84477         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
84478         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
84479         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
84480         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
84481         * tests/unistdio/test-ulc-vasprintf1.c: New file.
84482         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
84483         * tests/unistdio/test-ulc-vsprintf1.c: New file.
84484         * tests/unistdio/test-u8-asnprintf1.c: New file.
84485         * tests/unistdio/test-u8-asnprintf1.h: New file.
84486         * tests/unistdio/test-u8-printf1.h: New file.
84487         * tests/unistdio/test-u8-vasnprintf1.c: New file.
84488         * tests/unistdio/test-u8-vasnprintf2.c: New file.
84489         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
84490         * tests/unistdio/test-u8-vasnprintf3.c: New file.
84491         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
84492         * tests/unistdio/test-u8-vasprintf1.c: New file.
84493         * tests/unistdio/test-u8-vsnprintf1.c: New file.
84494         * tests/unistdio/test-u8-vsprintf1.c: New file.
84495         * tests/unistdio/test-u16-asnprintf1.c: New file.
84496         * tests/unistdio/test-u16-asnprintf1.h: New file.
84497         * tests/unistdio/test-u16-printf1.h: New file.
84498         * tests/unistdio/test-u16-vasnprintf1.c: New file.
84499         * tests/unistdio/test-u16-vasnprintf2.c: New file.
84500         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
84501         * tests/unistdio/test-u16-vasnprintf3.c: New file.
84502         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
84503         * tests/unistdio/test-u16-vasprintf1.c: New file.
84504         * tests/unistdio/test-u16-vsnprintf1.c: New file.
84505         * tests/unistdio/test-u16-vsprintf1.c: New file.
84506         * tests/unistdio/test-u32-asnprintf1.c: New file.
84507         * tests/unistdio/test-u32-asnprintf1.h: New file.
84508         * tests/unistdio/test-u32-printf1.h: New file.
84509         * tests/unistdio/test-u32-vasnprintf1.c: New file.
84510         * tests/unistdio/test-u32-vasnprintf2.c: New file.
84511         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
84512         * tests/unistdio/test-u32-vasnprintf3.c: New file.
84513         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
84514         * tests/unistdio/test-u32-vasprintf1.c: New file.
84515         * tests/unistdio/test-u32-vsnprintf1.c: New file.
84516         * tests/unistdio/test-u32-vsprintf1.c: New file.
84517         * modules/unistdio/base: New file.
84518         * modules/unistdio/u-printf-args: New file.
84519         * modules/unistdio/ulc-asnprintf: New file.
84520         * modules/unistdio/ulc-asprintf: New file.
84521         * modules/unistdio/ulc-fprintf: New file.
84522         * modules/unistdio/ulc-printf-parse: New file.
84523         * modules/unistdio/ulc-snprintf: New file.
84524         * modules/unistdio/ulc-sprintf: New file.
84525         * modules/unistdio/ulc-vasnprintf: New file.
84526         * modules/unistdio/ulc-vasprintf: New file.
84527         * modules/unistdio/ulc-vfprintf: New file.
84528         * modules/unistdio/ulc-vsnprintf: New file.
84529         * modules/unistdio/ulc-vsprintf: New file.
84530         * modules/unistdio/u8-asnprintf: New file.
84531         * modules/unistdio/u8-asprintf: New file.
84532         * modules/unistdio/u8-printf-parse: New file.
84533         * modules/unistdio/u8-snprintf: New file.
84534         * modules/unistdio/u8-sprintf: New file.
84535         * modules/unistdio/u8-vasnprintf: New file.
84536         * modules/unistdio/u8-vasprintf: New file.
84537         * modules/unistdio/u8-vsnprintf: New file.
84538         * modules/unistdio/u8-vsprintf: New file.
84539         * modules/unistdio/u8-u8-asnprintf: New file.
84540         * modules/unistdio/u8-u8-asprintf: New file.
84541         * modules/unistdio/u8-u8-snprintf: New file.
84542         * modules/unistdio/u8-u8-sprintf: New file.
84543         * modules/unistdio/u8-u8-vasnprintf: New file.
84544         * modules/unistdio/u8-u8-vasprintf: New file.
84545         * modules/unistdio/u8-u8-vsnprintf: New file.
84546         * modules/unistdio/u8-u8-vsprintf: New file.
84547         * modules/unistdio/u16-asnprintf: New file.
84548         * modules/unistdio/u16-asprintf: New file.
84549         * modules/unistdio/u16-printf-parse: New file.
84550         * modules/unistdio/u16-snprintf: New file.
84551         * modules/unistdio/u16-sprintf: New file.
84552         * modules/unistdio/u16-vasnprintf: New file.
84553         * modules/unistdio/u16-vasprintf: New file.
84554         * modules/unistdio/u16-vsnprintf: New file.
84555         * modules/unistdio/u16-vsprintf: New file.
84556         * modules/unistdio/u16-u16-asnprintf: New file.
84557         * modules/unistdio/u16-u16-asprintf: New file.
84558         * modules/unistdio/u16-u16-snprintf: New file.
84559         * modules/unistdio/u16-u16-sprintf: New file.
84560         * modules/unistdio/u16-u16-vasnprintf: New file.
84561         * modules/unistdio/u16-u16-vasprintf: New file.
84562         * modules/unistdio/u16-u16-vsnprintf: New file.
84563         * modules/unistdio/u16-u16-vsprintf: New file.
84564         * modules/unistdio/u32-asnprintf: New file.
84565         * modules/unistdio/u32-asprintf: New file.
84566         * modules/unistdio/u32-printf-parse: New file.
84567         * modules/unistdio/u32-snprintf: New file.
84568         * modules/unistdio/u32-sprintf: New file.
84569         * modules/unistdio/u32-vasnprintf: New file.
84570         * modules/unistdio/u32-vasprintf: New file.
84571         * modules/unistdio/u32-vsnprintf: New file.
84572         * modules/unistdio/u32-vsprintf: New file.
84573         * modules/unistdio/u32-u32-asnprintf: New file.
84574         * modules/unistdio/u32-u32-asprintf: New file.
84575         * modules/unistdio/u32-u32-snprintf: New file.
84576         * modules/unistdio/u32-u32-sprintf: New file.
84577         * modules/unistdio/u32-u32-vasnprintf: New file.
84578         * modules/unistdio/u32-u32-vasprintf: New file.
84579         * modules/unistdio/u32-u32-vsnprintf: New file.
84580         * modules/unistdio/u32-u32-vsprintf: New file.
84581         * modules/unistdio/ulc-asnprintf-tests: New file.
84582         * modules/unistdio/ulc-vasnprintf-tests: New file.
84583         * modules/unistdio/ulc-vasprintf-tests: New file.
84584         * modules/unistdio/ulc-vsnprintf-tests: New file.
84585         * modules/unistdio/ulc-vsprintf-tests: New file.
84586         * modules/unistdio/u8-asnprintf-tests: New file.
84587         * modules/unistdio/u8-vasnprintf-tests: New file.
84588         * modules/unistdio/u8-vasprintf-tests: New file.
84589         * modules/unistdio/u8-vsnprintf-tests: New file.
84590         * modules/unistdio/u8-vsprintf-tests: New file.
84591         * modules/unistdio/u16-asnprintf-tests: New file.
84592         * modules/unistdio/u16-vasnprintf-tests: New file.
84593         * modules/unistdio/u16-vasprintf-tests: New file.
84594         * modules/unistdio/u16-vsnprintf-tests: New file.
84595         * modules/unistdio/u16-vsprintf-tests: New file.
84596         * modules/unistdio/u32-asnprintf-tests: New file.
84597         * modules/unistdio/u32-vasnprintf-tests: New file.
84598         * modules/unistdio/u32-vasprintf-tests: New file.
84599         * modules/unistdio/u32-vsnprintf-tests: New file.
84600         * modules/unistdio/u32-vsprintf-tests: New file.
84601         * MODULES.html.sh (Unicode string functions): Add the new modules.
84603 2007-07-01  Bruno Haible  <bruno@clisp.org>
84605         * lib/sprintf.c (sprintf): Limit the available length estimation,
84606         to avoid address wraparound.
84607         * lib/vsprintf.c (vsprintf): Likewise.
84608         * modules/sprintf-posix (Dependencies): Add stdint.
84609         * modules/vsprintf-posix (Dependencies): Likewise.
84611 2007-07-01  Bruno Haible  <bruno@clisp.org>
84613         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
84614         Windows PATH as well. Conservative double-quoting. Comments.
84616 2007-07-01  Bruno Haible  <bruno@clisp.org>
84617             Eric Blake  <ebb9@byu.net>
84618             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84620         * gnulib-tool (self_abspathname): Fix algorithm to cope with
84621         empty components in $PATH, denoting '.'.
84623 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84625         * gnulib-tool: Fix indentation.
84626         (func_create_megatestdir): Likewise.
84627         Report by Bruno Haible.
84629 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84631         Sync from Automake.
84632         * build-aux/gnupload: Fix shell portability issues with for loops.
84633         Report by Karl Berry.
84635 2007-06-29  Simon Josefsson  <simon@josefsson.org>
84637         * build-aux/maint.mk (POURL): Use translationproject.org.
84639 2007-06-27  Simon Josefsson  <simon@josefsson.org>
84640             Bruno Haible  <bruno@clisp.org>
84642         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
84643         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
84644         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
84645         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
84646         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
84648 2007-06-27  Bruno Haible  <bruno@clisp.org>
84650         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
84651         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
84653 2007-06-26  Karl Berry  <karl@gnu.org>
84655         * MODULES.html.sh: remove xreadlink-with-size.
84657 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84659         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
84660         method that I hope also handles the double-include problem noted
84661         by Bruno Haible in
84662         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
84664 2007-06-23  Bruno Haible  <bruno@clisp.org>
84666         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
84667         Don't let the 'mostlyclean' target fail if the last subdirectory could
84668         not be removed.
84669         Reported by Karl Berry.
84671 2007-06-23  Bruno Haible  <bruno@clisp.org>
84673         * gnulib-tool (echo): Add a speedier workaround for ksh.
84674         * tests/test-echo.sh: Likewise.
84676 2007-06-23  Bruno Haible  <bruno@clisp.org>
84678         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
84679         * tests/test-echo.sh: Likewise.
84681 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84683         * gnulib-tool (IFS): Initialize early, so we don't set it to
84684         empty later.
84685         (self_abspathname): Rewrite algorithm to set it, reindent.
84686         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
84687         (func_create_megatestdir): Merge some sed scripts.
84689 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84691         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
84692         exposed by Sun Studio 11 cc on Solaris 8.
84694 2007-06-22  Bruno Haible  <bruno@clisp.org>
84696         * gnulib-tool (echo): Ensure the echo primitive does not interpret
84697         backslashes.
84698         * tests/test-echo.sh: New file.
84700 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84702         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
84703         simplify `sed_replace_build_aux' scripts, they are portable but
84704         echoing them with `echo' is not.
84705         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
84707 2007-06-21  Karl Berry  <karl@gnu.org>
84709         * config/srclist.txt: guess we can't handle the licenses via
84710         srclist at the moment.
84712 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
84714         * MODULES.html.sh: Add include_next.
84715         * modules/include_next: New file.
84717 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
84719         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
84720         INCLUDE_NEXT.
84721         (gl_CHECK_NEXT_HEADERS): New macro.
84722         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
84723         the obsolescent gl_ABSOLUTE_HEADER.
84724         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
84725         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
84726         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
84727         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
84728         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
84729         * m4/math_h.m4 (gl_MATH_H): Likewise.
84730         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
84731         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
84732         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
84733         * m4/stdint.m4 (gl_STDINT_H): Likewise.
84734         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
84735         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
84736         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
84737         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
84738         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
84739         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
84740         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
84741         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
84742         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
84743         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
84744         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
84745         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
84746         * m4/inttypes.m4 (gl_INTTYPES_H): Define
84747         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
84748         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
84749         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
84750         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
84751         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
84752         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
84753         * lib/float_.h: Likewise.
84754         * lib/inttypes_.h: Likewise.
84755         * lib/math_.h: Likewise.
84756         * lib/search_.h: Likewise.
84757         * lib/signal_.h: Likewise.
84758         * lib/stdint_.h: Likewise.
84759         * lib/stdio_.h: Likewise.
84760         * lib/stdlib_.h: Likewise.
84761         * lib/string_.h: Likewise.
84762         * lib/sys_stat_.h: Likewise.
84763         * lib/sys_time_.h: Likewise.
84764         * lib/time_.h: Likewise.
84765         * lib/unistd_.h: Likewise.
84766         * lib/wchar_.h: Likewise.
84767         * lib/wctype_.h: Likewise.
84768         * lib/dirent_.h: Likewise.
84769         * lib/iconv_.h: Likewise.
84770         * lib/locale_.h: Likewise.
84771         * lib/netinet_in_.h: Likewise.
84772         * lib/sys_select_.h: Likewise.
84773         * lib/sys_socket_.h: Likewise.
84774         * lib/sysexits_.h: Likewise.
84775         * modules/fcntl (Depends-on): Depend on include_next, not
84776         absolute_header.
84777         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
84778         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
84779         * modules/fchdir: Likewise.
84780         * modules/float: Likewise.
84781         * modules/iconv_open: Likewise.
84782         * modules/inttypes: Likewise.
84783         * modules/locale: Likewise.
84784         * modules/math: Likewise.
84785         * modules/netinet_in: Likewise.
84786         * modules/search: Likewise.
84787         * modules/signal: Likewise.
84788         * modules/stdint: Likewise.
84789         * modules/stdio: Likewise.
84790         * modules/stdlib: Likewise.
84791         * modules/string: Likewise.
84792         * modules/sys_select: Likewise.
84793         * modules/sys_socket: Likewise.
84794         * modules/sys_stat: Likewise.
84795         * modules/sys_time: Likewise.
84796         * modules/sysexits: Likewise.
84797         * modules/time: Likewise.
84798         * modules/unistd: Likewise.
84799         * modules/wchar: Likewise.
84800         * modules/wctype: Likewise.
84801         * modules/sys_stat: Change maintainer to "all".
84802         * modules/unistd: Likewise.
84804 2007-06-20  Karl Berry  <karl@gnu.org>
84806         * config/srclist.txt: track www changes in license files.
84808 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
84810         * build-aux/bootstrap: Remove stray dot.
84811         Make sure build_aux settings are honored when linking
84812         gnulib_extra_files.
84814 2007-06-19  Eric Blake  <ebb9@byu.net>
84816         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
84817         Allow compilation on cygwin.
84819 2007-06-19  Jim Meyering  <jim@meyering.net>
84821         xreadlink-with-size: Remove module.  No longer used.
84822         Ex-callers now use xreadlink or mreadlink-with-size.
84823         * modules/xreadlink-with-size: Remove module.
84824         * lib/xreadlink-with-size.c: Remove file.
84825         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
84826         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
84827         just before the function definition *is* accurate.
84829         Eliminate one way canonicalize_filename_mode could exit.
84830         * lib/canonicalize.c (canonicalize_filename_mode):
84831         Use mreadlink_with_size, not xreadlink_with_size.
84833 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
84835         Detect porting problems to FreeBSD/arm, which has time_t wider than
84836         long int.  Original problem reported for GNU diff by Xin Li in
84837         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
84838         * modules/getdate (Depends-on): Add intprops, verify.
84839         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
84840         is an integer type no wider than long int.
84842 2007-06-18  Jim Meyering  <jim@meyering.net>
84844         New module: mreadlink-with-size.
84845         * MODULES.html.sh: Add mreadlink-with-size.
84846         * modules/mreadlink-with-size: New module
84847         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
84848         not xreadlink-with-size.
84849         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
84851 2007-06-16  Bruno Haible  <bruno@clisp.org>
84853         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
84854         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
84855         Reported by Gary V. Vaughan <gary@gnu.org>.
84857 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
84859         Revamp lchown so that it lives in unistd.h where it belongs.
84860         * lib/lchown.h: Remove.
84861         * lib/dirchownmod.c: Don't include lib/lchown.h.
84862         * lib/fchownat.c: Likewise.
84863         * lib/openat.c: Likewise.
84864         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
84865         does not follow symlinks.
84866         (EOPNOTSUPP): Define if not defined.
84867         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
84868         is defined to 0.
84869         (lchown): New decl.
84870         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
84871         Do not check for lchown decl.
84872         Set REPLACE_LCHOWN.
84873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
84874         REPLACE_LCHOWN.
84875         * modules/chown: Make it clear it follows symlinks.
84876         * modules/lchown: Make it clear it doesn't follow symlinks.
84877         (Files): Remove lib/lchown.h
84878         (Depends-on): Add unistd.
84879         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
84880         (Include): Include <unistd.h>, not "lchown.h".
84881         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
84882         REPLACE_LCHOWN.
84884 2007-06-15  Jim Meyering  <jim@meyering.net>
84886         Change license (GPL to LGPL) of fsusage and dependents.
84887         * modules/fsusage (License): Change to LGPL.
84888         * modules/full-read (License): Likewise.
84889         * modules/full-write (License): Likewise.
84890         * modules/safe-read (License): Likewise.
84891         * modules/safe-write (License): Likewise.
84893 2007-06-14  Ben Pfaff  <blp@gnu.org>
84895         Missing part of allocsa -> malloca transition.
84896         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
84897         gl_MALLOCA.
84899 2007-06-12  Bruno Haible  <bruno@clisp.org>
84901         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
84902         to ia64, x86_64, i386.
84903         Reported by Eric Blake.
84905 2007-06-12  Bruno Haible  <bruno@clisp.org>
84907         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
84908         cross-compiling to x86_64.
84910 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
84912         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
84913         glitch reported by Ralf Wildenhues in
84914         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
84916         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
84917         Vin Shelton.
84919 2007-06-11  Bruno Haible  <bruno@clisp.org>
84921         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
84922         replacement string.
84923         Reported by Eric Blake.
84925 2007-06-10  Bruno Haible  <bruno@clisp.org>
84927         Prepare vasnprintf code for use with Unicode strings.
84928         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
84929         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
84930         TYPE_U32_STRING.
84931         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
84932         a_u32_string variants.
84933         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
84934         * lib/printf-args.c: Don't include config.h and the specification
84935         header if PRINTF_FETCHARGS is already defined.
84936         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
84937         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
84938         TYPE_U16_STRING, TYPE_U32_STRING.
84939         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
84940         u16_directive, u16_directives, u32_directive, u32_directives): New
84941         types.
84942         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
84943         New declarations.
84944         * lib/printf-parse.c: Don't include config.h and the specification
84945         header if PRINTF_PARSE is already defined. Eliminate the set of
84946         parameters for WIDE_CHAR_VERSION; the user of this file must provide
84947         them now. Include c-ctype.h.
84948         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
84949         directive and CHAR_T_ONLY_ASCII.
84950         * lib/vasnprintf.c: Don't include config.h and the specification header
84951         if VASNPRINTF is already defined.
84952         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
84953         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
84954         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
84955         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
84956         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
84957         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
84958         code accordingly.
84959         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
84960         pad_ourselves also in this case, with the 'c' and 's' directives, and
84961         with a different notion of "width".
84962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
84964 2007-06-10  Bruno Haible  <bruno@clisp.org>
84966         * modules/unistr/u32-mbsnlen: New file.
84967         * lib/unistr/u32-mbsnlen.c: New file.
84969         * modules/unistr/u16-mbsnlen: New file.
84970         * lib/unistr/u16-mbsnlen.c: New file.
84972         * modules/unistr/u8-mbsnlen: New file.
84973         * lib/unistr/u8-mbsnlen.c: New file.
84975         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
84976         declarations.
84978 2007-06-10  Bruno Haible  <bruno@clisp.org>
84980         * lib/string_.h (mbsnlen): New declaration.
84981         * lib/mbsnlen.c: New file.
84982         * m4/mbsnlen.m4: New file.
84983         * modules/mbsnlen: New file.
84984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
84985         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
84986         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
84988 2007-06-10  Bruno Haible  <bruno@clisp.org>
84990         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
84992 2007-06-10  Bruno Haible  <bruno@clisp.org>
84994         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
84995         * lib/mbuiter.h: Likewise.
84997 2007-06-10  Bruno Haible  <bruno@clisp.org>
84999         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
85000         declaration.
85002 2007-06-10  Karl Berry  <karl@gnu.org>
85004         * config/srclist.txt: remove gettext entries, Bruno prefers
85005         to update individually.
85007 2007-06-10  Bruno Haible  <bruno@clisp.org>
85009         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
85010         'maxlen'. Ensure only length + width bytes are allocated, not
85011         length + 1 + width.
85013 2007-06-09  Bruno Haible  <bruno@clisp.org>
85015         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
85016         (CHAR_T): Remove macro.
85017         (VASNPRINTF): Update.
85019 2007-06-09  Bruno Haible  <bruno@clisp.org>
85021         * MODULES.html.sh (Unicode string functions): Add the new modules.
85023         * modules/uniconv/u32-conv-to-enc: New file.
85024         * lib/uniconv/u32-conv-to-enc.c: New file.
85025         * modules/uniconv/u32-conv-to-enc-tests: New file.
85026         * tests/uniconv/test-u32-conv-to-enc.c: New file.
85028         * modules/uniconv/u16-conv-to-enc: New file.
85029         * lib/uniconv/u16-conv-to-enc.c: New file.
85030         * lib/uniconv/u-conv-to-enc.h: New file.
85031         * modules/uniconv/u16-conv-to-enc-tests: New file.
85032         * tests/uniconv/test-u16-conv-to-enc.c: New file.
85034         * modules/uniconv/u8-conv-to-enc: New file.
85035         * lib/uniconv/u8-conv-to-enc.c: New file.
85036         * modules/uniconv/u8-conv-to-enc-tests: New file.
85037         * tests/uniconv/test-u8-conv-to-enc.c: New file.
85039         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
85040         u32_conv_to_encoding): New declarations.
85042 2007-06-09  Bruno Haible  <bruno@clisp.org>
85044         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
85046 2007-06-09  Bruno Haible  <bruno@clisp.org>
85048         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
85049         * modules/malloca: Renamed from modules/allocsa, updated.
85050         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
85051         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
85052         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
85053         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
85054         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
85055         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
85056         * modules/xmalloca: Renamed from modules/xallocsa, updated.
85057         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
85058         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
85059         * modules/c-strcasestr (Depends-on): Update.
85060         * lib/c-strcasestr.c: Update.
85061         * modules/c-strstr (Depends-on): Update.
85062         * lib/c-strstr.c: Update.
85063         * modules/canonicalize-lgpl (Depends-on): Update.
85064         * lib/canonicalize-lgpl.c: Update.
85065         * modules/clean-temp (Depends-on): Update.
85066         * lib/clean-temp.c: Update.
85067         * modules/csharpcomp (Depends-on): Update.
85068         * lib/csharpcomp.c: Update.
85069         * modules/csharpexec (Depends-on): Update.
85070         * lib/csharpexec.c: Update.
85071         * modules/javacomp (Depends-on): Update.
85072         * lib/javacomp.c: Update.
85073         * modules/javaexec (Depends-on): Update.
85074         * lib/javaexec.c: Update.
85075         * modules/mbscasestr (Depends-on): Update.
85076         * lib/mbscasestr.c: Update.
85077         * modules/mbsstr (Depends-on): Update.
85078         * lib/mbsstr.c: Update.
85079         * modules/setenv (Depends-on): Update.
85080         * lib/setenv.c: Update.
85081         * modules/strcasestr (Depends-on): Update.
85082         * lib/strcasestr.c: Update.
85083         * modules/striconveha (Depends-on): Update.
85084         * lib/striconveha.c: Update.
85085         * modules/relocatable-prog-wrapper (Files): Update.
85086         * lib/relocwrapper.c: Update.
85087         * build-aux/install-reloc: Update.
85088         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
85090 2007-06-08  Bruno Haible  <bruno@clisp.org>
85092         Port to uClibc.
85093         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
85094         * lib/fpurge.c (fpurge): Likewise.
85095         * lib/freading.c (freading): Likewise.
85096         * lib/fseeko.c (rpl_fseeko): Likewise.
85097         * lib/fseterr.c (fseterr): Likewise.
85098         * lib/fwriting.c (fwriting): Likewise.
85099         * tests/test-fflush.c (main): Avoid a failure on uClibc.
85101 2007-06-08  Bruno Haible  <bruno@clisp.org>
85103         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
85104         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
85105         * modules/gettext (Files): Add m4/intlmacosx.m4.
85107 2007-06-07  Bruno Haible  <bruno@clisp.org>
85109         * modules/localename-tests: New file.
85110         * tests/test-localename.c: New file.
85112         New module 'localename'.
85113         * lib/localename.h: New file.
85114         * lib/localename.c: New file, from GNU gettext.
85115         * m4/localename.m4: New file.
85116         * modules/localename: New file.
85118 2007-06-07  Bruno Haible  <bruno@clisp.org>
85120         Work around the lack of <wchar.h> on some builds of uClibc.
85121         * doc/headers/wchar.texi: Update.
85122         * lib/wchar_.h: Include <wchar.h> only if it exists.
85123         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
85124         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
85125         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
85126         doesn't exist.
85127         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
85128         * modules/mbfile (Depends-on): Add wchar.
85129         * modules/mbiter (Depends-on): Likewise.
85130         * modules/mbuiter (Depends-on): Likewise.
85131         Reported by Simon Josefsson.
85133 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85135         Work around problem reported by Steven M. Schweda in
85136         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
85137         Tru64 5.1B with the Compaq compiler environment installed declares
85138         an 'isblank' function but does not define it in the C library.
85139         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
85140         * lib/regex_internal.h (isblank): Likewise.
85141         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
85142         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
85144 2007-06-05  Bruno Haible  <bruno@clisp.org>
85146         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
85147         ia64.
85148         * modules/printf-safe: New file.
85149         * modules/fprintf-posix (Depends-on): Add printf-safe.
85150         * modules/printf-posix (Depends-on): Likewise.
85151         * modules/snprintf-posix (Depends-on): Likewise.
85152         * modules/sprintf-posix (Depends-on): Likewise.
85153         * modules/vasnprintf-posix (Depends-on): Likewise.
85154         * modules/vasprintf-posix (Depends-on): Likewise.
85155         * modules/vfprintf-posix (Depends-on): Likewise.
85156         * modules/vprintf-posix (Depends-on): Likewise.
85157         * modules/vsnprintf-posix (Depends-on): Likewise.
85158         * modules/vsprintf-posix (Depends-on): Likewise.
85159         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
85160         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
85161         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
85162         "no" on i386, x86_64, ia64.
85163         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
85164         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85165         on i386, x86_64, ia64.
85166         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
85167         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85168         on i386, x86_64, ia64.
85169         * tests/test-vasnprintf-posix.c: Include float.h.
85170         (LDBL80_WORDS): New macro.
85171         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85172         on i386, x86_64, ia64.
85173         * tests/test-vasprintf-posix.c: Include float.h.
85174         (LDBL80_WORDS): New macro.
85175         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85176         on i386, x86_64, ia64.
85177         * tests/test-snprintf-posix.c: Include float.h.
85178         * tests/test-sprintf-posix.c: Likewise.
85179         * tests/test-vsnprintf-posix.c: Likewise.
85180         * tests/test-vsprintf-posix.c: Likewise.
85182 2007-06-05  Bruno Haible  <bruno@clisp.org>
85184         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
85185         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
85186         non-IEEE numbers on i386, x86_64, ia64.
85187         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
85188         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
85189         * tests/test-isnanl.h: Include float.h.
85190         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
85192 2007-06-05  Bruno Haible  <bruno@clisp.org>
85194         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
85195         also the %a / %A. Handle the %a / %A code before this extra handling.
85197 2007-06-05  Bruno Haible  <bruno@clisp.org>
85199         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
85200         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
85202 2007-06-05  Bruno Haible  <bruno@clisp.org>
85204         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
85205         typo in variable name.
85207 2007-06-05  Eric Blake  <ebb9@byu.net>
85209         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
85210         Reported by Simon Josefsson.
85212 2007-06-04  Bruno Haible  <bruno@clisp.org>
85214         Avoid test failures on some PowerPC platforms.
85215         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
85216         Define differently for PowerPC.
85217         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
85218         Reported by Gary V. Vaughan <gary@gnu.org>.
85220 2007-06-02  Bruno Haible  <bruno@clisp.org>
85222         Fix test-stdint failure on FreeBSD/ia64.
85223         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
85224         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
85225         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
85226         * doc/headers/stdint.texi: Update.
85228 2007-06-01  Bruno Haible  <bruno@clisp.org>
85230         * tests/test-binary-io.c (main): Pass a third argument to open().
85231         Reported by Gary V. Vaughan <gary@gnu.org>.
85233 2007-06-01  Bruno Haible  <bruno@clisp.org>
85235         * doc/functions/frexpl.texi: Update for mingw.
85237 2007-06-01  Bruno Haible  <bruno@clisp.org>
85239         * tests/test-lseek.c (main): Disable test of errno for invalid third
85240         argument.
85241         * doc/functions/lseek.texi: Update.
85242         Reported by Gary V. Vaughan <gary@gnu.org>.
85244 2007-05-28  Bruno Haible  <bruno@clisp.org>
85246         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
85248 2007-05-31  Eric Blake  <ebb9@byu.net>
85250         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
85251         cross compiling.
85253 2007-05-30  Eric Blake  <ebb9@byu.net>
85254         and Bruno Haible  <bruno@clisp.org>
85256         Work around mingw test failures exposed by m4-1.4.9b.
85257         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
85258         * tests/test-unistd.c: Disable uid_t and git_t tests for the
85259         moment.
85261 2007-05-30  Bruno Haible  <bruno@clisp.org>
85263         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
85264         assuming that they are closed. Needed on HP-UX 11.
85266 2007-05-29  Bruno Haible  <bruno@clisp.org>
85268         Fix a problem with #include_next.
85269         * lib/dirent_.h: Split the double-inclusion guard.
85270         * lib/fcntl_.h: Likewise.
85271         * lib/float_.h: Likewise.
85272         * lib/iconv_.h: Likewise.
85273         * lib/inttypes_.h: Likewise.
85274         * lib/locale_.h: Likewise.
85275         * lib/math_.h: Likewise.
85276         * lib/netinet_in_.h: Likewise.
85277         * lib/search_.h: Likewise.
85278         * lib/signal_.h: Likewise.
85279         * lib/stdint_.h: Likewise.
85280         * lib/stdio_.h: Likewise.
85281         * lib/stdlib_.h: Likewise.
85282         * lib/string_.h: Likewise.
85283         * lib/sys_select_.h: Likewise.
85284         * lib/sys_socket_.h: Likewise.
85285         * lib/sys_stat_.h: Likewise.
85286         * lib/sys_time_.h: Likewise.
85287         * lib/sysexits_.h: Likewise.
85288         * lib/time_.h: Likewise.
85289         * lib/unistd_.h: Likewise.
85290         * lib/wchar_.h: Likewise.
85291         * lib/wctype_.h: Likewise.
85293 2007-05-29  Bruno Haible  <bruno@clisp.org>
85295         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
85296         for the moment.
85298 2007-05-29  Bruno Haible  <bruno@clisp.org>
85300         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
85301         invocation.
85302         Reported by Eric Blake.
85304 2007-05-29  Bruno Haible  <bruno@clisp.org>
85306         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
85307         compiling case.
85309 2007-05-29  Eric Blake  <ebb9@byu.net>
85310             Bruno Haible  <bruno@clisp.org>
85312         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
85313         cross compiles.
85315 2007-05-28  Eric Blake  <ebb9@byu.net>
85317         * modules/closein-tests (test_closein_LDADD): Support test on
85318         cygwin with libtool.
85320 2007-05-28  Bruno Haible  <bruno@clisp.org>
85322         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
85323         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
85324         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
85325         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
85326         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
85327         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
85328         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
85329         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
85330         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
85332 2007-05-28  Eric Blake  <ebb9@byu.net>
85334         Unconditionally include <config.h> in unit tests.
85335         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
85336         * tests/test-allocsa.c, tests/test-arcfour.c,
85337         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
85338         tests/test-array_list.c, tests/test-array_oset.c,
85339         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
85340         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
85341         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
85342         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
85343         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
85344         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
85345         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
85346         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
85347         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
85348         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
85349         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
85350         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
85351         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
85352         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
85353         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
85354         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
85355         test-md5.c, test-memmem.c, test-printf-posix.c,
85356         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
85357         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
85358         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
85359         test-strcasestr.c, test-striconv.c, test-striconveh.c,
85360         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
85361         test-vasnprintf-posix2.c, test-vasnprintf.c,
85362         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
85363         test-vfprintf-posix.c, test-vprintf-posix.c,
85364         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
85365         test-xvasprintf.c: Likewise.
85367 2007-05-28  Bruno Haible  <bruno@clisp.org>
85369         * gnulib-tool (func_import): Remember the --with-tests command-line
85370         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
85371         Reported by Eric Blake.
85373 2007-05-28  Bruno Haible  <bruno@clisp.org>
85375         * modules/ftell-tests: New file.
85376         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
85377         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
85379         * lib/ftell.c: New file.
85380         * modules/ftell: New file.
85381         * m4/ftell.m4: New file.
85382         * doc/functions/ftell.texi: Update.
85383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
85384         REPLACE_FTELL.
85385         * lib/stdio_.h (rpl_ftell): New declaration.
85386         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
85387         REPLACE_FTELL.
85389 2007-05-28  Eric Blake  <ebb9@byu.net>
85391         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
85393 2007-05-28  Bruno Haible  <bruno@clisp.org>
85395         * modules/fseek-tests: New file.
85396         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
85397         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
85399         * lib/fseek.c: New file.
85400         * modules/fseek: New file.
85401         * m4/fseek.m4: New file.
85402         * doc/functions/fseek.texi: Update.
85403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
85404         REPLACE_FSEEK.
85405         * lib/stdio_.h (rpl_fseek): New declaration.
85406         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
85407         REPLACE_FSEEK.
85409 2007-05-28  Bruno Haible  <bruno@clisp.org>
85411         * lib/stdio_.h (fflush): More comments.
85413 2007-05-28  Bruno Haible  <bruno@clisp.org>
85415         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
85416         runtime test.
85418 2007-05-28  Eric Blake  <ebb9@byu.net>
85420         Improve lseek module.
85421         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
85422         * lib/unistd_.h (lseek): Scale back link warning message.
85423         * tests/test-lseek.c: Beef up test.
85424         * tests/test-lseek.sh: Exercise more facets of lseek.
85425         Reported by Bruno Haible.
85427 2007-05-28  Bruno Haible  <bruno@clisp.org>
85429         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
85430         to define.
85432 2007-05-27  Bruno Haible  <bruno@clisp.org>
85434         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
85436 2007-05-27  Bruno Haible  <bruno@clisp.org>
85438         * modules/openmp: New file.
85439         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
85440         Noah Misch.
85442 2007-05-26  Bruno Haible  <bruno@clisp.org>
85444         * modules/chdir-long (Depends-on): Add fchdir.
85445         * modules/chdir-safer (Depends-on): Likewise.
85446         * modules/fts (Depends-on): Likewise.
85447         * modules/fts-lgpl (Depends-on): Likewise.
85448         * modules/openat (Depends-on): Likewise.
85449         * modules/savewd (Depends-on): Likewise.
85451 2007-05-24  Eric Blake  <ebb9@byu.net>
85453         Fix lseek on mingw.
85454         * modules/lseek: New module.
85455         * m4/lseek.m4: New file.
85456         * lib/lseek.c: New file.
85457         * modules/lseek-tests: New file.
85458         * tests/test-lseek.c: New file.
85459         * tests/test-lseek.sh: New file.
85460         * MODULES.html.sh: Document lseek module.
85461         * modules/fflush (Depends-on): Add lseek, fseeko.
85462         * modules/fseeko (Depends-on): Likewise.
85463         * modules/ftello (Depends-on): Likewise.
85464         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
85465         broken.
85466         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
85467         broken.
85468         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
85469         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
85470         * lib/ftello.c (rpl_ftello): Likewise.
85471         * tests/test-fseeko.c (main): Test this.
85472         * tests/test-fseeko.sh: Likewise.
85473         * tests/test-ftello.c (main): Likewise.
85474         * tests/test-ftello.sh: Likewise.
85475         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
85476         implies replacing fseek.
85477         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
85478         HAVE_FTELLO.
85479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
85480         * modules/unistd (Makefile.am): Likewise.
85481         * lib/unistd_.h (lseek): Declare a replacement.
85482         * doc/functions/lseek.texi (lseek): Document this fix.
85483         * doc/functions/fseek.texi (fseek): Likewise.
85484         * doc/functions/ftell.texi (ftell): Likewise.
85486 2007-05-24  Bruno Haible  <bruno@clisp.org>
85488         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
85489         in the printed representation of a NaN.
85490         * tests/test-vasprintf-posix.c (test_function): Likewise.
85491         * tests/test-snprintf-posix.h (test_function): Likewise.
85492         * tests/test-sprintf-posix.h (test_function): Likewise.
85493         Reported by Eric Blake.
85495 2007-05-23  Eric Blake  <ebb9@byu.net>
85497         Fix fseeko/ftello on cygwin 1.5.24.
85498         * doc/functions/fseeko.texi (fseeko): Document the fix.
85499         * doc/functions/ftello.texi (ftello): Document the fix.
85500         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
85501         * doc/functions/stdout.text (stdout): New file.
85502         * doc/functions/stderr.text (stderr): New file.
85503         * doc/gnulib.texi (Function Substitutes): Use new files.
85504         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
85505         prior to 1.7.0.
85506         * tests/test-ftello.c (main): Likewise for ftello.
85507         * tests/test-fseeko.sh: New file.
85508         * tests/test-ftello.sh: New file.
85509         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
85510         with seekable stdin.
85511         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
85512         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
85513         (gl_REPLACE_FSEEKO): New macro.
85514         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
85515         * modules/fseeko (Files): Distribute fseeko.c.
85516         * modules/ftello (Files): Distribute ftello.c.
85517         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
85518         mode.
85519         * lib/ftello.c (rpl_ftello): New file.
85520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
85521         fseeko, ftello.
85522         (gl_STDIN_LARGE_OFFSET): New macro.
85523         * modules/stdio (Makefile.am): Perform the replacement.
85524         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
85526 2007-05-23  Bruno Haible  <bruno@clisp.org>
85528         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
85529         GNULIB_POSIXCHECK is defined.
85531 2007-05-21  Bruno Haible  <bruno@clisp.org>
85533         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
85534         Check also the output for NaN arguments. When cross-compiling, guess
85535         no on IRIX.
85536         * lib/vasnprintf.c: Update comments.
85537         * tests/test-vasnprintf-posix.c (strisnan): New function.
85538         (test_function): Use it.
85539         * tests/test-vasprintf-posix.c (strisnan): New function.
85540         (test_function): Use it.
85541         * tests/test-snprintf-posix.h (strisnan): New function.
85542         (test_function): Use it.
85543         * tests/test-sprintf-posix.h (strisnan): New function.
85544         (test_function): Use it.
85545         Reported by Eric Blake.
85547 2007-05-20  Bruno Haible  <bruno@clisp.org>
85549         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
85550         numbers that fails on BeOS.
85551         * doc/functions/frexpl.texi: Update.
85553 2007-05-20  Jim Meyering  <jim@meyering.net>
85555         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
85556         forced upon us by glibc-2.6.
85558 2007-05-20  Bruno Haible  <bruno@clisp.org>
85560         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
85561         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
85562         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
85563         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
85564         NEED_PRINTF_INFINITE.
85565         (is_infinitel): New function.
85566         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
85567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
85568         gl_PREREQ_VASNPRINTF_INFINITE.
85569         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
85570         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85571         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
85572         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
85573         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
85574         gl_PREREQ_VASNPRINTF_INFINITE.
85575         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85576         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85577         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85578         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85579         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85580         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85581         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85582         * doc/functions/fprintf.texi: Update.
85583         * doc/functions/printf.texi: Update.
85584         * doc/functions/snprintf.texi: Update.
85585         * doc/functions/sprintf.texi: Update.
85586         * doc/functions/vfprintf.texi: Update.
85587         * doc/functions/vprintf.texi: Update.
85588         * doc/functions/vsnprintf.texi: Update.
85589         * doc/functions/vsprintf.texi: Update.
85591 2007-05-20  Bruno Haible  <bruno@clisp.org>
85593         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
85594         was not found in libc.
85595         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
85597 2007-05-20  Bruno Haible  <bruno@clisp.org>
85599         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
85600         printed as "-nan" instead of "nan".
85601         * tests/test-vasprintf-posix.c (test_function): Likewise.
85602         * tests/test-snprintf-posix.h (test_function): Likewise.
85603         * tests/test-sprintf-posix.h (test_function): Likewise.
85604         Needed for HP-UX 11.
85606 2007-05-20  Jim Meyering  <jim@meyering.net>
85608         Fix buggy test for the fchownat-deref bug.
85609         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
85610         symlink required for the run-test.  Without it, this test would
85611         always declare that fchownat doesn't work, and client code would
85612         unnecessarily use the replacement function with fixed libc.
85613         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
85614         Reported by Greg Schafer.
85616 2007-05-19  Bruno Haible  <bruno@clisp.org>
85618         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
85619         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
85620         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
85621         Needed for IRIX 6.5 and Solaris 2.5.1.
85623 2007-05-19  Bruno Haible  <bruno@clisp.org>
85625         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
85626         (test_function): Skip tests involving -0.0 on platforms where
85627         -0.0 = 0.0.
85628         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
85629         (test_function): Skip tests involving -0.0 on platforms where
85630         -0.0 = 0.0.
85631         * tests/test-snprintf-posix.h (have_minus_zero): New function.
85632         (test_function): Skip tests involving -0.0 on platforms where
85633         -0.0 = 0.0.
85634         * tests/test-sprintf-posix.h (have_minus_zero): New function.
85635         (test_function): Skip tests involving -0.0 on platforms where
85636         -0.0 = 0.0.
85637         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
85638         tests.
85639         * tests/test-printf-posix.h (test_function): Likewise.
85640         * tests/test-printf-posix.output: Remove all -0.0 related results.
85641         Needed for IRIX 6.5.
85643 2007-05-19  Bruno Haible  <bruno@clisp.org>
85645         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
85646         printed as "nan0x7fffffff" instead of "nan".
85647         * tests/test-vasprintf-posix.c (test_function): Likewise.
85648         * tests/test-snprintf-posix.h (test_function): Likewise.
85649         * tests/test-sprintf-posix.h (test_function): Likewise.
85650         * tests/test-fprintf-posix.h (NaN): Remove macro.
85651         (test_function): Remove all NaN related tests.
85652         * tests/test-printf-posix.h (NaN): Remove macro.
85653         (test_function): Remove all NaN related tests.
85654         * tests/test-printf-posix.output: Remove all NaN related results.
85655         Needed for IRIX 6.5.
85657 2007-05-19  Bruno Haible  <bruno@clisp.org>
85659         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
85660         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
85662 2007-05-19  Bruno Haible  <bruno@clisp.org>
85664         * lib/float_.h: New file.
85665         * m4/float_h.m4: New file.
85666         * modules/float: New file.
85667         * modules/isnanl (Dependencies): Add float.
85668         * modules/isnanl-nolibm (Dependencies): Likewise.
85669         * modules/mathl (Dependencies): Likewise.
85670         * modules/printf-frexpl (Dependencies): Likewise.
85671         * modules/signbit (Dependencies): Likewise.
85672         * modules/vasnprintf (Dependencies): Likewise.
85673         * doc/headers/float.texi: Update.
85675 2007-05-19  Jim Meyering  <jim@meyering.net>
85677         * lib/utimens.c (gl_futimens): Rename from futimens,
85678         now that glibc-2.6 declares futimens.
85679         * lib/utimens.h: Likewise.
85681 2007-05-19  Bruno Haible  <bruno@clisp.org>
85683         Avoid test failures on mingw.
85684         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
85685         * tests/test-printf-posix.sh: Likewise.
85686         * tests/test-vfprintf-posix.sh: Likewise.
85687         * tests/test-vprintf-posix.sh: Likewise.
85689 2007-05-19  Bruno Haible  <bruno@clisp.org>
85691         Fix *printf result for NaN, Inf, -0.0 on mingw.
85692         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
85693         * lib/vasnprintf.c: Include math.h and isnan.h.
85694         (is_infinite_or_zero): New function.
85695         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
85696         values in the %f, %F, %e, %E, %g, %G directives.
85697         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
85698         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85699         gl_PRINTF_INFINITE and test its result. Invoke
85700         gl_PREREQ_VASNPRINTF_INFINITE.
85701         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85702         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85703         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85704         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85705         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85706         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85707         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85708         * doc/functions/fprintf.texi: Update.
85709         * doc/functions/printf.texi: Update.
85710         * doc/functions/snprintf.texi: Update.
85711         * doc/functions/sprintf.texi: Update.
85712         * doc/functions/vfprintf.texi: Update.
85713         * doc/functions/vprintf.texi: Update.
85714         * doc/functions/vsnprintf.texi: Update.
85715         * doc/functions/vsprintf.texi: Update.
85717 2007-05-19  Bruno Haible  <bruno@clisp.org>
85719         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
85720         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
85721         Instead of multiplying with 10^k, set extra_zeroes to k.
85722         (scale10_round_long_double): Remove function.
85724 2007-05-18  Bruno Haible  <bruno@clisp.org>
85726         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
85727         introduced on 2007-05-06.
85729 2007-05-18  Bruno Haible  <bruno@clisp.org>
85731         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
85732         %g directives.
85733         * tests/test-vasprintf-posix.c (test_function): Likewise.
85734         * tests/test-snprintf-posix.h (test_function): Likewise.
85735         * tests/test-sprintf-posix.h (test_function): Likewise.
85737 2007-05-18  Bruno Haible  <bruno@clisp.org>
85739         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
85740         (strmatch): New function.
85741         (test_function): Test the %f directive on numbers of various exponents.
85742         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
85743         (strmatch): New function.
85744         (test_function): Test the %f directive on numbers of various exponents.
85745         * tests/test-snprintf-posix.h (strmatch): New function.
85746         (test_function): Test the %f directive on numbers of various exponents.
85747         * tests/test-sprintf-posix.h (strmatch): New function.
85748         (test_function): Test the %f directive on numbers of various exponents.
85749         * tests/test-snprintf-posix.c (SIZEOF): New macro.
85750         * tests/test-sprintf-posix.c (SIZEOF): New macro.
85751         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
85752         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
85754 2007-05-18  Bruno Haible  <bruno@clisp.org>
85756         Add support for 'long double' number output.
85757         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
85758         * lib/vasnprintf.c: Include math.h and float+.h.
85759         (mp_limb_t): New type.
85760         (GMP_LIMB_BITS): New macro.
85761         (mp_twolimb_t): New type.
85762         (GMP_TWOLIMB_BITS): New macro.
85763         (mpn_t): New type.
85764         (multiply, divide, convert_to_decimal, decode_long_double,
85765         scale10_round_long_double, scale10_round_decimal_long_double,
85766         floorlog10l): New functions.
85767         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
85768         for the %f, %F, %e, %E, %g, %G directives.
85769         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
85770         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85771         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
85772         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
85773         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85774         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85775         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85776         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85777         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85778         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85779         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85780         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
85781         * modules/snprintf-posix (Depends-on): Likewise.
85782         * modules/sprintf-posix (Depends-on): Likewise.
85783         * modules/vasnprintf-posix (Depends-on): Likewise.
85784         * modules/vasprintf-posix (Depends-on): Likewise.
85785         * modules/vfprintf-posix (Depends-on): Likewise.
85786         * modules/vsnprintf-posix (Depends-on): Likewise.
85787         * modules/vsprintf-posix (Depends-on): Likewise.
85788         * modules/vasnprintf (Files): Add lib/float+.h.
85789         * doc/functions/fprintf.texi: Update.
85790         * doc/functions/printf.texi: Update.
85791         * doc/functions/snprintf.texi: Update.
85792         * doc/functions/sprintf.texi: Update.
85793         * doc/functions/vfprintf.texi: Update.
85794         * doc/functions/vprintf.texi: Update.
85795         * doc/functions/vsnprintf.texi: Update.
85796         * doc/functions/vsprintf.texi: Update.
85798 2007-05-18  Bruno Haible  <bruno@clisp.org>
85800         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
85802 2007-05-18  Bruno Haible  <bruno@clisp.org>
85804         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
85805         for printing 64-bit integers. Needed for mingw.
85807 2007-05-18  Bruno Haible  <bruno@clisp.org>
85809         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
85810         gl_FUNC_FREXPL_WORKS.
85811         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
85813 2007-05-18  Bruno Haible  <bruno@clisp.org>
85815         * modules/frexpl-nolibm-tests: New file.
85817         * modules/frexpl-nolibm: New file.
85818         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
85820 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85822         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
85823         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
85824         GCC 4.2, which otherwise issues a lot of warnings.
85825         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
85826         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
85827         Likewise.
85828         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
85829         * modules/iconv_open (iconv.h): Likewise.
85830         * modules/locale (locale.h): Likewise.
85831         * modules/netinet_in (netinet/in.h): Likewise.
85832         * modules/sys_select (sys_select.h): Likewise.
85833         * modules/sys_socket (sys/socket.h): Likewise.
85834         * modules/sys_stat (sys/stat.h): Likewise.
85835         * modules/sysexits (sysexits.h): Likewise.
85836         * modules/unistd (unistd.h): Likewise.
85838 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85840         * modules/closein-tests (Makefile.am): Distribute
85841         `test-closein.sh'.
85843 2007-05-17  Bruno Haible  <bruno@clisp.org>
85845         * tests/test-printf-posix.output: Renamed from
85846         tests/test-fprintf-posix.out.
85847         * modules/fprintf-posix-tests: Update.
85848         * modules/printf-posix-tests: Update.
85849         * modules/vfprintf-posix-tests: Update.
85850         * modules/vprintf-posix-tests: Update.
85851         * tests/test-fprintf-posix.sh: Update.
85852         * tests/test-printf-posix.sh: Update.
85853         * tests/test-vfprintf-posix.sh: Update.
85854         * tests/test-vprintf-posix.sh: Update.
85855         Reported by Ralf Wildenhues.
85857 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85859         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
85860         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
85861         GCC 4.2, which otherwise issues a lot of warnings.
85862         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
85863         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
85864         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
85865         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
85866         it should no longer be needed.
85867         * lib/string_.h: Likewise.
85868         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
85869         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
85870         * modules/inttypes (inttypes.h): Likewise.
85871         * modules/math (math.h): Likewise.
85872         * modules/search (search.h): Likewise.
85873         * modules/signal (signal.h): Likewise.
85874         * modules/stdint (stdint.h): Likewise.
85875         * modules/stdio (stdio.h): Likewise.
85876         * modules/stdlib (stdlib.h): Likewise.
85877         * modules/string (string.h): Likewise.
85878         * modules/sys_time (sys/time.h): Likewise.
85879         * modules/time (time.h): Likewise.
85880         * modules/wchar (wchar.h): Likewise.
85881         * modules/wctype (wtype.h): Likewise.
85883 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
85885         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
85887 2007-05-13  Bruno Haible  <bruno@clisp.org>
85889         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
85890         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
85891         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
85892         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
85893         (gl_PREREQ_STRTOK_R): Don't require it here.
85895 2007-05-13  Bruno Haible  <bruno@clisp.org>
85897         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
85898         when used in C++ mode.
85900 2007-05-12  Bruno Haible  <bruno@clisp.org>
85902         * lib/linebuffer.h: Tweak doc.
85903         * lib/linebuffer.c: Likewise.
85905 2007-05-12  James Youngman  <jay@gnu.org>
85907         * lib/linebuffer.c (readlinebuffer_delim): New function,
85908         like readlinebuffer, but use a caller-specified delimiter.
85909         (readlinebuffer): Just call readlinebuffer_delim with '\n'
85910         as the delimiter.
85911         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
85913 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
85915         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
85916         * modules/openat (Files): Remove openat-die.c.
85917         (Depends-on): Add openat-die.
85918         * modules/openat-die: New module.
85920 2007-05-06  Bruno Haible  <bruno@clisp.org>
85922         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
85923         Update with info about Cygwin.
85924         * doc/functions/fprintf.texi: Update.
85925         * doc/functions/printf.texi: Update.
85926         * doc/functions/snprintf.texi: Update.
85927         * doc/functions/sprintf.texi: Update.
85928         * doc/functions/vfprintf.texi: Update.
85929         * doc/functions/vprintf.texi: Update.
85930         * doc/functions/vsnprintf.texi: Update.
85931         * doc/functions/vsprintf.texi: Update.
85932         Reported by Eric Blake.
85934 2007-05-06  Bruno Haible  <bruno@clisp.org>
85936         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
85937         padding ourselves for the floating-point directives.
85938         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
85939         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
85940         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85941         gl_PRINTF_FLAG_ZERO and test its result. Invoke
85942         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
85943         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85944         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
85945         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85946         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85947         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85948         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85949         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85950         * tests/test-snprintf-posix.h (test_function): Also check the width
85951         and some flags in the %f directive.
85952         * tests/test-sprintf-posix.h (test_function): Likewise.
85953         * tests/test-vasnprintf-posix.c (test_function): Likewise.
85954         * tests/test-vasprintf-posix.c (test_function): Likewise.
85955         * doc/functions/fprintf.texi: Update.
85956         * doc/functions/printf.texi: Update.
85957         * doc/functions/snprintf.texi: Update.
85958         * doc/functions/sprintf.texi: Update.
85959         * doc/functions/vfprintf.texi: Update.
85960         * doc/functions/vprintf.texi: Update.
85961         * doc/functions/vsnprintf.texi: Update.
85962         * doc/functions/vsprintf.texi: Update.
85964 2007-05-06  Bruno Haible  <bruno@clisp.org>
85966         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
85967         pass the ' flag character to sprintf or snprintf.
85968         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
85969         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
85970         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85971         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
85972         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
85973         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85974         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
85975         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85976         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85977         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85978         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85979         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85980         * tests/test-snprintf-posix.h (test_function): Also check the grouping
85981         flag.
85982         * tests/test-sprintf-posix.h (test_function): Likewise.
85983         * tests/test-vasnprintf-posix.c (test_function): Likewise.
85984         * tests/test-vasprintf-posix.c (test_function): Likewise.
85985         * doc/functions/fprintf.texi: Update.
85986         * doc/functions/printf.texi: Update.
85987         * doc/functions/snprintf.texi: Update.
85988         * doc/functions/sprintf.texi: Update.
85989         * doc/functions/vfprintf.texi: Update.
85990         * doc/functions/vprintf.texi: Update.
85991         * doc/functions/vsnprintf.texi: Update.
85992         * doc/functions/vsprintf.texi: Update.
85994 2007-05-01  Bruno Haible  <bruno@clisp.org>
85996         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
85998 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
86000         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
86001         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
86003 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
86005         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
86006         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
86007         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
86009 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
86011         * lib/argp-help.c (struct hol_entry): New member `ord'.
86012         (HOL_ENTRY_PTRCMP): Use ord for comparison
86013         (hol_sort): Initialize ord.
86015 2007-05-01  Bruno Haible  <bruno@clisp.org>
86017         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
86018         Reported by Eric Blake.
86019         * doc/gnulib.texi (Function Substitutes): Update.
86021 2007-05-01  Bruno Haible  <bruno@clisp.org>
86023         * doc/functions.texi: Remove file, now redundant through
86024         doc/functions/*.texi.
86026 2007-05-01  Bruno Haible  <bruno@clisp.org>
86028         * modules/argp (Depends-on): Add sleep.
86030 2007-05-01  Bruno Haible  <bruno@clisp.org>
86032         * modules/sleep-tests: New file.
86033         * tests/test-sleep.c: New file.
86035         * modules/sleep: New file.
86036         * lib/sleep.c: New file.
86037         * m4/sleep.m4: New file.
86038         * lib/unistd_.h (sleep): New declaration.
86039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
86040         HAVE_SLEEP.
86041         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
86042         * doc/functions/sleep.texi: Document the sleep module.
86044 2007-05-01  Bruno Haible  <bruno@clisp.org>
86046         * lib/sigprocmask.h: Remove file.
86047         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
86048         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
86049         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
86050         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
86051         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
86052         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
86053         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
86054         HAVE_SIGSET_T as a shell variable.
86055         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
86056         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
86057         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
86058         (Depends-on): Add signal. Remove verify.
86059         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
86060         (Include): Mention <signal.h> instead of sigprocmask.h.
86061         * NEWS: Mention the change.
86062         * lib/fatal-signal.c: Don't include sigprocmask.h.
86064 2007-05-01  Bruno Haible  <bruno@clisp.org>
86066         * modules/signal: New file.
86067         * lib/signal_.h: New file.
86068         * m4/signal_h.m4: New file.
86070 2007-05-01  Bruno Haible  <bruno@clisp.org>
86072         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
86073         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
86074         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
86075         HAVE_WCTYPE_CTMP_BUG into wctype.h.
86077 2007-05-01  Bruno Haible  <bruno@clisp.org>
86079         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
86080         configure time.
86081         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
86082         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
86083         * modules/sys_stat (Makefile.am): Substitute their values into
86084         sys/stat.h.
86086 2007-05-01  Bruno Haible  <bruno@clisp.org>
86088         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
86089         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
86090         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
86092 2007-05-01  Bruno Haible  <bruno@clisp.org>
86094         * doc/header/assert.texi: Undo last change: don't mention the gnulib
86095         'assert' module here.
86097 2007-05-01  Bruno Haible  <bruno@clisp.org>
86099         * doc/functions/*.texi: New files.
86100         * doc/functions/google-ranking.txt: New file.
86101         * doc/gnulib.texi (Function Substitutes): New chapter.
86102         (ctime, inet_ntoa): Remove sections.
86103         * doc/ctime.texi: Remove file.
86104         * doc/inet_ntoa.texi: Remove file.
86105         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
86106         dependencies.
86107         (%.info): New rule, specifying a --reference-limit.
86109 2007-05-01  Bruno Haible  <bruno@clisp.org>
86111         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
86113 2007-05-01  Bruno Haible  <bruno@clisp.org>
86115         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
86116         the portability of 'mkdir' to mingw systems.
86118 2007-05-01  Bruno Haible  <bruno@clisp.org>
86120         * doc/headers/google-ranking.txt: New file.
86122 2007-04-30  Eric Blake  <ebb9@byu.net>
86124         Prefer fseeko to fseek.
86125         * modules/getpass (Depends-on): Add fseeko.
86126         * lib/getpass.c (getpass): Use fseeko, not fseek.
86128 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
86130         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
86131         assumes the sorting is stable, while most qsort implementations
86132         are not.  Use argument addresses to ensure they never compare as
86133         equal.
86135         * tests/test-argp-2.sh (usage-indent test): Fix output
86136         (func_compare): Restore diff options
86137         * tests/test-argp.c: Restore #include "progname.h"
86139 2007-04-29  Bruno Haible  <bruno@clisp.org>
86141         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
86142         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86143         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
86144         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86145         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
86146         (configure.ac): Define CHECK_SNPRINTF_POSIX.
86147         (TESTS, check_PROGRAMS): Add test-snprintf.
86148         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
86149         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
86150         (TESTS, check_PROGRAMS): Add test-vsnprintf.
86151         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
86152         assertions that fail on HP-UX, OSF/1, or IRIX.
86153         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
86155 2007-04-29  Bruno Haible  <bruno@clisp.org>
86157         * MODULES.html.sh (posix_functions): Remove 'contents'.
86159 2007-04-29  Karl Berry  <karl@gnu.org>
86161         * config/srclist.txt (gendocs_template_min): new entry.
86163 2007-04-29  Bruno Haible  <bruno@clisp.org>
86165         Work around fpurge bug on BSD systems.
86166         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
86167         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
86168         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
86169         fpurge to rpl_fpurge if the system already has this function.
86170         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
86171         the case where the system already has this function. Correct invariants
86172         on BSD systems.
86173         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
86174         BSD systems.
86176 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
86178         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
86179         proposed by Sven Verdoolaege.
86181         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
86182         options.
86183         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
86184         (usage and help tests): Update
86186 2007-04-29  Bruno Haible  <bruno@clisp.org>
86188         * tests/test-fflush.c (main): Use a file of size 17, not 10.
86189         Print more information in case of failure. Disable a test on BeOS.
86191 2007-04-29  Bruno Haible  <bruno@clisp.org>
86193         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
86194         This helps debugging on systems on which no gdb is available.
86196 2007-04-29  Bruno Haible  <bruno@clisp.org>
86198         * lib/freading.h: Improve comments.
86199         * lib/fwriting.h: Likewise.
86200         * tests/test-freading.c (main): Don't check freading immediately after
86201         repositioning. Needed for glibc.
86203 2007-04-29  Bruno Haible  <bruno@clisp.org>
86205         * lib/freading.c (freading): Trivial simplification.
86207 2007-04-28  Bruno Haible  <bruno@clisp.org>
86209         * tests/test-fwriting.c (main): Also test the interaction between
86210         fflush and fwriting.
86211         * modules/fwriting-tests (Depends-on): Add fflush.
86213         * tests/test-freading.c (main): Also test the interaction between
86214         fflush and freading.
86215         * modules/freading-tests (Depends-on): Add fflush.
86217 2007-04-28  Bruno Haible  <bruno@clisp.org>
86219         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
86220         fseeko and ftello.
86221         Suggested by Eric Blake.
86223 2007-04-28  Jim Meyering  <jim@meyering.net>
86225         Avoid false-negative in gl_STDINT_H's C99 conformance test.
86226         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
86227         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
86229 2007-04-27  Eric Blake  <ebb9@byu.net>
86231         * doc/headers/assert.texi (assert.h): Document assert module use.
86233 2007-04-27  Bruno Haible  <bruno@clisp.org>
86235         * doc/headers/*.texi: New files.
86236         * doc/gnulib.texi (Header File Substitutes): New chapter.
86237         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
86238         dependencies.
86239         (standards.info ,standards.html, standards.dvi): Update dependencies.
86240         (mostlyclean, clean): New targets.
86242 2007-04-27  Bruno Haible  <bruno@clisp.org>
86244         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
86245         * modules/sysexits (Files, Makefile.am): Update.
86247         * lib/sys_socket_.h: Renamed from lib/socket_.h.
86248         * modules/sys_socket (Files, Makefile.am): Update.
86250         * lib/sys_stat_.h: Renamed from lib/stat_.h.
86251         * modules/sys_stat (Files, Makefile.am): Update.
86253 2007-04-27  Eric Blake  <ebb9@byu.net>
86255         * lib/freading.h: Improve comments.
86256         * lib/fwriting.h: Likewise.
86257         * lib/fflush.c: Likewise.
86259         Fix closein for mingw.
86260         * modules/closein-tests: Add tests for closein.
86261         * tests/test-closein.c: New file.
86262         * tests/test-closein.sh: Likewise.
86263         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
86264         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
86266 2007-04-27  Bruno Haible  <bruno@clisp.org>
86268         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
86269         version is < 6.
86270         * lib/math_.h [__DECC]: Likewise.
86271         * lib/stdio_.h [__DECC]: Likewise.
86272         * lib/stdlib_.h [__DECC]: Likewise.
86273         * lib/string_.h [__DECC]: Likewise.
86274         * lib/time_.h [__DECC]: Likewise.
86275         * lib/wchar_.h [__DECC]: Likewise.
86276         * lib/wctype_.h [__DECC]: Likewise.
86278 2007-04-27  Bruno Haible  <bruno@clisp.org>
86280         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
86282 2007-04-27  Bruno Haible  <bruno@clisp.org>
86284         * lib/fflush.c: Add comments.
86285         * modules/fpurge-tests (Depends-on): Add fflush.
86286         * modules/freadable-tests (Depends-on): Likewise.
86287         * modules/fwritable-tests (Depends-on): Likewise.
86289 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
86291         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
86292         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
86293         Report by Bruno Haible <bruno@clisp.org>.
86295 2007-04-26  Eric Blake  <ebb9@byu.net>
86297         Fix fflush on mingw.
86298         * modules/fflush (Depends-on): Add freading.
86299         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
86300         but unread data.
86302 2007-04-26  Eric Blake  <ebb9@byu.net>
86303         and Bruno Haible  <bruno@clisp.org>
86305         Implement freading and fwriting.
86306         * lib/freading.c: New file.
86307         * lib/freading.h: Likewise.
86308         * m4/freading.m4: Likewise.
86309         * modules/freading: Likewise.
86310         * modules/freading-tests: Likewise.
86311         * tests/test-freading.c: Likewise.
86312         * lib/fwriting.c: New file.
86313         * lib/fwriting.h: Likewise.
86314         * m4/fwriting.m4: Likewise.
86315         * modules/fwriting: Likewise.
86316         * modules/fwriting-tests: Likewise.
86317         * tests/test-fwriting.c: Likewise.
86318         * MODULES.html.sh (File stream based Input/Output): Mention them.
86320 2007-04-26  Bruno Haible  <bruno@clisp.org>
86322         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
86323         'long' when we assume it.
86324         Suggested by Eric Blake.
86326 2007-04-26  Bruno Haible  <bruno@clisp.org>
86328         Ensure fseeko, ftello are declared on glibc systems.
86329         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
86330         * modules/fseeko (configure.ac-early): Likewise.
86331         * modules/ftello (configure.ac-early): Likewise.
86332         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
86333         AC_FUNC_FSEEKO for this.
86334         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
86335         (gl_CHECK_FSEEKO): Remove macro.
86337 2007-04-26  Bruno Haible  <bruno@clisp.org>
86339         * tests/test-fflush.c (main): Also check the ftell result after
86340         fflush and fseek/fseeko.
86341         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
86342         file descriptor position cache in the stream.
86343         * lib/fseeko.c (rpl_fseeko): Likewise.
86345 2007-04-26  Bruno Haible  <bruno@clisp.org>
86347         * modules/fflush-tests (Depends-on): Add fseeko.
86349 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
86350             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86352         * lib/argz_.h: ensure error_t definition is obtained in same
86353         mechanism system argz.h would have.
86354         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
86355         argz facilities are known bad.  Err on the side of caution if
86356         cross-compiling.
86358 2007-04-25  Eric Blake  <ebb9@byu.net>
86360         * lib/fpurge.c (includes): Use stdlib.h for free.
86361         * tests/test-fflush.c (main): Also test fflush-fseeko.
86363 2007-04-25  Bruno Haible  <bruno@clisp.org>
86365         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
86366         * lib/fseeko.c: New file.
86367         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
86368         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
86369         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
86370         gl_FUNC_FSEEKO.
86371         (gl_FUNC_FSEEKO): Invoke it.
86372         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
86373         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
86374         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
86376 2007-04-25  Bruno Haible  <bruno@clisp.org>
86378         * modules/fflush (Depends-on): Add ftello.
86380 2007-04-25  Bruno Haible  <bruno@clisp.org>
86382         * modules/ftello-tests: New file.
86383         * tests/test-ftello.c: New file.
86385         * modules/ftello: New file.
86386         * m4/ftello.m4: New file.
86387         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
86388         HAVE_FTELLO.
86389         * lib/stdio_.h (ftello): New declaration.
86390         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
86391         HAVE_FTELLO.
86393 2007-04-25  Bruno Haible  <bruno@clisp.org>
86395         * modules/fseeko-tests: New file.
86396         * tests/test-fseeko.c: New file.
86398         * modules/fseeko: New file.
86399         * m4/fseeko.m4: New file.
86400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
86401         HAVE_FSEEKO.
86402         * lib/stdio_.h (fseeko): New declaration.
86403         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
86404         HAVE_FSEEKO.
86406 2007-04-25  Bruno Haible  <bruno@clisp.org>
86408         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
86410 2007-04-25  Bruno Haible  <bruno@clisp.org>
86412         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
86413         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
86414         * tests/test-unistd.c: Likewise.
86415         * tests/test-fcntl.c: Likewise.
86417 2007-04-23  Eric Blake  <ebb9@byu.net>
86419         * lib/fflush.c: Fix missing include.
86420         Reported by Bruno Haible.
86422 2007-04-23  Bruno Haible  <bruno@clisp.org>
86424         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
86425         Reported by Eric Blake.
86427 2007-04-23  Bruno Haible  <bruno@clisp.org>
86429         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
86431 2007-04-23  Bruno Haible  <bruno@clisp.org>
86433         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
86435 2007-04-23  Bruno Haible  <bruno@clisp.org>
86437         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
86438         Needed on HP-UX 11.
86440 2007-04-16  Eric Blake  <ebb9@byu.net>
86442         Make fflush rely on fpurge.
86443         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
86444         open coding all variants.
86445         * modules/fflush (Depends-on): Add fpurge and unistd.
86446         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
86447         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
86449         Fix --with-tests compilation on cygwin.
86450         * modules/argmatch-tests (Makefile.am): List gnulib library first
86451         in LDADD.
86452         * modules/argp-tests (Makefile.am): Likewise.
86453         * modules/array-list-tests (Makefile.am): Likewise.
86454         * modules/array-oset-tests (Makefile.am): Likewise.
86455         * modules/avltree-list-tests (Makefile.am): Likewise.
86456         * modules/avltree-oset-tests (Makefile.am): Likewise.
86457         * modules/avltreehash-list-tests (Makefile.am): Likewise.
86458         * modules/carray-list-tests (Makefile.am): Likewise.
86459         * modules/dirname-tests (Makefile.am): Likewise.
86460         * modules/frexp-tests (Makefile.am): Likewise.
86461         * modules/isnanl-tests (Makefile.am): Likewise.
86462         * modules/linked-list-tests (Makefile.am): Likewise.
86463         * modules/linkedhash-list-tests (Makefile.am): Likewise.
86464         * modules/lock-tests (Makefile.am): Likewise.
86465         * modules/rbtree-list-tests (Makefile.am): Likewise.
86466         * modules/rbtree-oset-tests (Makefile.am): Likewise.
86467         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
86468         * modules/tls-tests (Makefile.am): Likewise.
86469         * modules/tsearch-tests (Makefile.am): Likewise.
86470         * modules/xvasprintf-tests (Makefile.am): Likewise.
86472         Fix fpurge for cygwin.
86473         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
86474         value.
86475         * modules/fpurge-tests (Depends-on): Clean up trash.
86477 2007-04-16  Simon Josefsson  <simon@josefsson.org>
86479         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
86481         * m4/autobuild.m4: Re-indent.
86483 2007-04-13  Bruno Haible  <bruno@clisp.org>
86485         * modules/fpurge-tests: New file.
86486         * tests/test-fpurge.c: New file.
86488         * modules/fpurge: New file.
86489         * lib/fpurge.h: New file.
86490         * lib/fpurge.c: New file.
86491         * m4/fpurge.m4: New file.
86493 2007-04-13  Bruno Haible  <bruno@clisp.org>
86495         * modules/fbufmode-tests: New file.
86496         * tests/test-fbufmode.c: New file.
86498         * modules/fbufmode: New file.
86499         * lib/fbufmode.h: New file.
86500         * lib/fbufmode.c: New file.
86501         * m4/fbufmode.m4: New file.
86503 2007-04-13  Bruno Haible  <bruno@clisp.org>
86505         * modules/fwritable-tests: New file.
86506         * tests/test-fwritable.c: New file.
86508         * modules/fwritable: New file.
86509         * lib/fwritable.h: New file.
86510         * lib/fwritable.c: New file.
86511         * m4/fwritable.m4: New file.
86513 2007-04-13  Bruno Haible  <bruno@clisp.org>
86515         * modules/freadable-tests: New file.
86516         * tests/test-freadable.c: New file.
86518         * modules/freadable: New file.
86519         * lib/freadable.h: New file.
86520         * lib/freadable.c: New file.
86521         * m4/freadable.m4: New file.
86523 2007-04-13  Bruno Haible  <bruno@clisp.org>
86525         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
86526         MOSTLYCLEANFILES.
86528 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86530         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
86531         gzip bootstrap.conf to avoid dragging in i18n machinery.
86532         (gnulib_tool_option): Use it.
86534 2007-04-13  Bruno Haible  <bruno@clisp.org>
86536         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
86537         %F directives.
86538         * tests/test-vasprintf-posix.c (test_function): Likewise.
86539         * tests/test-snprintf-posix.h (test_function): Likewise.
86540         * tests/test-sprintf-posix.h (test_function): Likewise.
86541         * tests/test-fprintf-posix.h (test_function): Likewise.
86542         * tests/test-printf-posix.h (test_function): Likewise.
86543         * tests/test-fprintf-posix.out: Likewise.
86545 2007-04-13  Bruno Haible  <bruno@clisp.org>
86547         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
86548         * modules/tls-tests (configure.ac): Likewise.
86549         Reported by Arto C. Nirkko <anirkko@insel.ch>.
86551 2007-04-13  Bruno Haible  <bruno@clisp.org>
86553         * lib/tls.c (glthread_tls_get): Fix return type.
86554         Patch by Arto C. Nirkko <anirkko@insel.ch>.
86556 2007-04-12  Eric Blake  <ebb9@byu.net>
86558         * modules/gettime (Depends-on): Remove gettime.
86559         Reported by Dmitry V. Levin.
86561 2007-04-12  Bruno Haible  <bruno@clisp.org>
86563         * modules/fflush (Include): Mention <stdio.h>.
86564         * modules/strtoimax (Include): Mention <inttypes.h>.
86565         * modules/strtoumax (Include): Likewise.
86567 2007-04-12  Eric Blake  <ebb9@byu.net>
86569         * .cvsignore: New file.
86570         * .gitignore: Likewise.
86572 2007-04-12  Bruno Haible  <bruno@clisp.org>
86574         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
86575         not before, since $(LDADD) often contains libgnu.a.
86576         * modules/striconv-tests (test_striconv_LDADD): Likewise.
86577         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
86578         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
86579         Needed on Cygwin.
86581 2007-04-12  Eric Blake  <ebb9@byu.net>
86583         Work around glibc's failure to flush stdin on fclose.
86584         * lib/closein.c (close_stdin): Flush stdin before closing.
86586         Work around glibc's failure to reset seekable stdin on exit.
86587         * modules/closein: New module.
86588         * lib/closein.c: New file.
86589         * lib/closein.h: Likewise.
86590         * m4/closein.m4: Likewise.
86591         * MODULES.html.sh (File stream based Input/Output): Document it.
86593 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86595         * gnulib-tool: Rename generated 'autobuild' script to
86596         'do-autobuild' in --create-megatestdir output.
86598         * doc/gnulib.texi (Build robot for gnulib): Fix.
86600 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86602         * modules/sysexits (Depends-on): Add absolute-header.
86604 2007-04-12  Eric Blake  <ebb9@byu.net>
86606         No need to preserve errno on success.
86607         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
86608         Reported by Bruno Haible.
86610 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86612         * MODULES.html.sh (Support for maintaining and releasing
86613         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
86615 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86617         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
86619 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86621         * modules/autobuild: New module.
86623         * m4/autobuild.m4: New file.
86625 2007-04-11  Bruno Haible  <bruno@clisp.org>
86627         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
86628         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
86629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
86630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
86631         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86632         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86633         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86634         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86635         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86636         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86637         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
86638         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86639         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86640         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
86641         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86642         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
86644         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86645         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86646         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
86647         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86648         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86649         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
86650         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86651         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86652         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
86653         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86654         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86655         Reported by Eric Blake.
86657 2007-04-11  Bruno Haible  <bruno@clisp.org>
86659         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
86661 2007-04-10  Bruno Haible  <bruno@clisp.org>
86663         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
86664         for NaN and Infinity. Needed on FreeBSD 6.1.
86665         * tests/test-vasnprintf-posix.c (test_function): Undo last change
86666         regarding results for "%010a" of Infinity and NaN.
86667         * tests/test-vasprintf-posix.c (test_function): Likewise.
86668         * tests/test-snprintf-posix.h (test_function): Likewise.
86669         * tests/test-sprintf-posix.h (test_function): Likewise.
86670         * tests/test-fprintf-posix.h (test_function): Likewise.
86671         * tests/test-printf-posix.h (test_function): Likewise.
86672         * tests/test-fprintf-posix.out: Likewise.
86674 2007-04-10  Bruno Haible  <bruno@clisp.org>
86676         * modules/locale-tests: New file.
86677         * tests/test-locale.c: New file.
86679         * modules/locale: New file.
86680         * lib/locale_.h: New file.
86681         * m4/locale_h.m4: New file.
86683 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
86684             Bruno Haible  <bruno@clisp.org>
86686         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
86687         be determined, test for availability of the copysignf, copysign,
86688         copysignl functions.
86689         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
86690         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
86691         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
86693 2007-04-09  Eric Blake  <ebb9@byu.net>
86695         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
86696         * modules/stdio (Makefile.am): Support fflush.
86697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
86698         * modules/fflush: New file.
86699         * lib/fflush.c: Likewise.
86700         * m4/fflush.m4: Likewise.
86701         * modules/fflush-tests: New test.
86702         * tests/test-fflush.c: Likewise.
86703         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
86705 2007-04-06  Bruno Haible  <bruno@clisp.org>
86707         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
86708         (VASNPRINTF): Use signbit for faster determination whether to print a
86709         minus sign.
86710         * modules/vasnprintf (Files): Remove lib/float+.h.
86711         * modules/fprintf-posix (Depends-on): Add signbit.
86712         * modules/snprintf-posix (Depends-on): Likewise.
86713         * modules/sprintf-posix (Depends-on): Likewise.
86714         * modules/vasnprintf-posix (Depends-on): Likewise.
86715         * modules/vasprintf-posix (Depends-on): Likewise.
86716         * modules/vfprintf-posix (Depends-on): Likewise.
86717         * modules/vsnprintf-posix (Depends-on): Likewise.
86718         * modules/vsprintf-posix (Depends-on): Likewise.
86720 2007-04-06  Bruno Haible  <bruno@clisp.org>
86722         * tests/test-frexp.c (main): Test also the sign bit of zero results.
86723         * tests/test-frexpl.c (main): Likewise.
86724         * tests/test-ldexpl.c (main): Likewise.
86725         * modules/frexp-tests (Depends-on): Add signbit.
86726         * modules/frexpl-tests (Depdends-on): Likewise.
86727         * modules/ldexpl-tests (Depdends-on): Likewise.
86729 2007-04-06  Bruno Haible  <bruno@clisp.org>
86731         * modules/signbit-tests: New file.
86732         * tests/test-signbit.c: New file.
86734         * modules/signbit: New file.
86735         * lib/signbitf.c: New file.
86736         * lib/signbitd.c: New file.
86737         * lib/signbitl.c: New file.
86738         * m4/signbit.m4: New file.
86739         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
86740         (signbit): New macro.
86741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
86742         REPLACE_SIGNBIT.
86743         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
86744         REPLACE_FREXPL into math.h.
86746 2007-04-06  Bruno Haible  <bruno@clisp.org>
86748         * modules/isnanf-nolibm-tests: New file.
86749         * tests/test-isnanf.c: New file.
86751         * modules/isnanf-nolibm: New file.
86752         * lib/isnanf.h: New file.
86753         * lib/isnanf.c: New file.
86754         * lib/isnan.c: Consider the USE_FLOAT macro.
86755         * m4/isnanf.m4: New file.
86757 2007-04-06  Bruno Haible  <bruno@clisp.org>
86759         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
86760         (Link): New section.
86762         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
86764 2007-04-06  Bruno Haible  <bruno@clisp.org>
86766         Assume the 'long double' type.
86767         * m4/longdouble.m4: Remove file.
86768         * config/srclist.txt: Don't mention longdouble.m4.
86769         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
86770         * lib/float+.h: Likewise.
86771         * lib/frexp.c: Likewise.
86772         * lib/printf-args.h: Likewise.
86773         * lib/printf-args.c: Likewise.
86774         * lib/printf-frexp.c: Likewise.
86775         * lib/printf-parse.c: Likewise.
86776         * lib/vasnprintf.c: Likewise.
86777         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
86778         * m4/intl.m4: Likewise.
86779         * m4/isnanl.m4: Likewise.
86780         * m4/printf.m4: Likewise.
86781         * m4/printf-frexpl.m4: Likewise.
86782         * m4/vasnprintf.m4: Likewise.
86783         * modules/allocsa (Files): Remove m4/longdouble.m4.
86784         * modules/gettext (Files): Likewise.
86785         * modules/relocatable-prog-wrapper (Files): Likewise.
86786         * modules/vasnprintf (Files): Likewise.
86787         * modules/isnanl (Files): Likewise.
86788         (Include): Simplify.
86789         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
86790         (Include): Simplify.
86791         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
86792         (Include): Simplify.
86793         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
86794         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86795         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
86796         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86797         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
86798         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86799         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
86800         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86801         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
86802         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86803         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
86804         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86805         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
86806         * tests/test-isnanl.c: Likewise.
86807         * tests/test-snprintf-posix.h: Likewise.
86808         * tests/test-sprintf-posix.h: Likewise.
86809         * tests/test-vasnprintf-posix.c: Likewise.
86810         * tests/test-vasnprintf-posix2.c: Likewise.
86811         * tests/test-vasprintf-posix.c: Likewise.
86813 2007-04-06  Bruno Haible  <bruno@clisp.org>
86815         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
86816         * lib/math_.h [__DECC]: Include the overridden include file through
86817         #include_next, outside the double-inclusion guard.
86818         * lib/stdio_.h [__DECC]: Likewise.
86819         * lib/stdlib_.h [__DECC]: Likewise.
86820         * lib/string_.h [__DECC]: Likewise.
86821         * lib/time_.h [__DECC]: Likewise.
86822         * lib/wchar_.h [__DECC]: Likewise.
86823         * lib/wctype_.h [__DECC]: Likewise.
86824         * lib/inttypes_.h [__DECC]: Likewise.
86825         Reported by Albert Chin <china@thewrittenword.com> in
86826         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
86828 2007-04-04  Eric Blake  <ebb9@byu.net>
86830         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
86831         1.5.x.
86833 2007-04-04  Bruno Haible  <bruno@clisp.org>
86835         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
86836         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
86838 2007-04-04  Bruno Haible  <bruno@clisp.org>
86840         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
86841         results for "%010a" of Infinity and NaN.
86842         * tests/test-vasprintf-posix.c (test_function): Likewise.
86843         * tests/test-snprintf-posix.h (test_function): Likewise.
86844         * tests/test-sprintf-posix.h (test_function): Likewise.
86845         * tests/test-fprintf-posix.h (test_function): Remove these tests.
86846         * tests/test-printf-posix.h (test_function): Likewise.
86847         * tests/test-fprintf-posix.out: Update.
86848         Needed for FreeBSD 6.1.
86850 2007-04-04  Bruno Haible  <bruno@clisp.org>
86852         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
86853         directly used by the gnulib modules nor by gnulib-tool.
86855 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86857         * DEPENDENCIES: Give overall description of version dependency
86858         desirability.  Use more-typical names for apps.
86859         Add shell, coreutils, diffutils, grep, tar, gzip.
86861 2007-04-04  Simon Josefsson  <simon@josefsson.org>
86863         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
86865 2007-04-04  Karl Berry  <karl@gnu.org>
86867         * MODULES.html.sh (func_module): missing '.
86869 2007-04-03  Bruno Haible  <bruno@clisp.org>
86871         * modules/argmatch-tests (Makefile.am): New variable
86872         test_argmatch_LDADD.
86873         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
86874         * modules/array-list-tests (Makefile.am): New variable
86875         test_array_list_LDADD.
86876         * modules/array-oset-tests (Makefile.am): New variable
86877         test_array_oset_LDADD.
86878         * modules/avltree-list-tests (Makefile.am): New variable
86879         test_avltree_list_LDADD.
86880         * modules/avltree-oset-tests (Makefile.am): New variable
86881         test_avltree_oset_LDADD.
86882         * modules/avltreehash-list-tests (Makefile.am): New variable
86883         test_avltreehash_list_LDADD.
86884         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
86885         test_canonicalize_lgpl_LDADD.
86886         * modules/carray-list-tests (Makefile.am): New variable
86887         test_carray_list_LDADD.
86888         * modules/dirname-tests (Makefile.am): New variable
86889         test_dirname_LDADD.
86890         * modules/linked-list-tests (Makefile.am): New variable
86891         test_linked_list_LDADD.
86892         * modules/linkedhash-list-tests (Makefile.am): New variable
86893         test_linkedhash_list_LDADD.
86894         * modules/rbtree-list-tests (Makefile.am): New variable
86895         test_rbtree_list_LDADD.
86896         * modules/rbtree-oset-tests (Makefile.am): New variable
86897         test_rbtree_oset_LDADD.
86898         * modules/rbtreehash-list-tests (Makefile.am): New variable
86899         test_rbtreehash_list_LDADD.
86900         * modules/xvasprintf-tests (Makefile.am): New variable
86901         test_xvasprintf_LDADD.
86902         Reported by Eric Blake.
86904 2007-04-03  Eric Blake  <ebb9@byu.net>
86906         * DEPENDENCIES: Weaken m4 requirements.
86908 2007-04-03  Bruno Haible  <bruno@clisp.org>
86910         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
86911         * modules/isnanl-tests (configure.ac): Likewise.
86913 2007-04-03  Ben Pfaff  <blp@gnu.org>
86915         * modules/iconv_open: Add $(srcdir)/ to source directory
86916         references in Makefile fragments that call gperf, to fix VPATH
86917         builds.
86919 2007-04-03  Bruno Haible  <bruno@clisp.org>
86921         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
86922         * lib/ldexpl.c: Undo last change.
86924 2007-04-03  Bruno Haible  <bruno@clisp.org>
86926         * modules/printf-frexpl (Depends-on): Undo last change.
86927         (Files): Add m4/ldexpl.m4.
86929 2007-04-03  Bruno Haible  <bruno@clisp.org>
86931         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
86932         * modules/isnanl (Link): New section.
86934         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
86935         * modules/frexp (Link): New section.
86937         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
86938         * modules/frexpl (Link): New section.
86940         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
86941         * modules/ldexpl (Link): New section.
86943 2007-04-03  Bruno Haible  <bruno@clisp.org>
86945         * modules/TEMPLATE-EXTENDED: New file.
86946         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
86948 2007-04-03  Bruno Haible  <bruno@clisp.org>
86950         * DEPENDENCIES: New file.
86951         Suggested by Simon Josefsson.
86953 2007-04-03  Bruno Haible  <bruno@clisp.org>
86955         * doc/gnulib.texi: Escape @.
86957 2007-04-03  James Youngman  <jay@gnu.org>
86958         and Paul Eggert  <eggert@cs.ucla.edu>
86960         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
86961         birthtime on all systems that have birthtime, not just those which
86962         use st_birthtimensec rather than st_birthtim.  Putting zero in
86963         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
86964         that the birth time is not available for files on an NFS mount.
86966 2007-04-03  Simon Josefsson  <simon@josefsson.org>
86968         * modules/memxor: Move back from crypto/, suggested by Bruno.
86969         * modules/crypto/hmac-sha1: Fix memxor dependency.
86971         * modules/crypto/gc: Moved from ../.
86973 2007-04-02  Eric Blake  <ebb9@byu.net>
86975         * lib/ldexpl.c (includes): Avoid libm.
86977         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
86979 2007-04-02  Bruno Haible  <bruno@clisp.org>
86981         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
86982         on IRIX.
86984 2007-04-02  Bruno Haible  <bruno@clisp.org>
86986         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
86987         x86 or x86_64 platforms running MacOS X.
86988         Reported by Ryan Schmidt <@ryandesign.com>.
86990 2007-04-02  Bruno Haible  <bruno@clisp.org>
86992         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
86993         i386.
86995 2007-04-01  Simon Josefsson  <simon@josefsson.org>
86997         * modules/crypto/arcfour: Moved from ../.
86998         * modules/crypto/arcfour-tests: Moved from ../.
86999         * modules/crypto/arctwo: Moved from ../.
87000         * modules/crypto/arctwo-tests: Moved from ../.
87001         * modules/crypto/des: Moved from ../.
87002         * modules/crypto/des-tests: Moved from ../.
87003         * modules/crypto/gc-arcfour: Moved from ../.
87004         * modules/crypto/gc-arcfour-tests: Moved from ../.
87005         * modules/crypto/gc-arctwo: Moved from ../.
87006         * modules/crypto/gc-arctwo-tests: Moved from ../.
87007         * modules/crypto/gc-des: Moved from ../.
87008         * modules/crypto/gc-des-tests: Moved from ../.
87009         * modules/crypto/gc-hmac-md5: Moved from ../.
87010         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
87011         * modules/crypto/gc-hmac-sha1: Moved from ../.
87012         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
87013         * modules/crypto/gc-md2: Moved from ../.
87014         * modules/crypto/gc-md2-tests: Moved from ../.
87015         * modules/crypto/gc-md4: Moved from ../.
87016         * modules/crypto/gc-md4-tests: Moved from ../.
87017         * modules/crypto/gc-md5: Moved from ../.
87018         * modules/crypto/gc-md5-tests: Moved from ../.
87019         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
87020         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
87021         * modules/crypto/gc-random: Moved from ../.
87022         * modules/crypto/gc-rijndael: Moved from ../.
87023         * modules/crypto/gc-rijndael-tests: Moved from ../.
87024         * modules/crypto/gc-sha1: Moved from ../.
87025         * modules/crypto/gc-sha1-tests: Moved from ../.
87026         * modules/crypto/gc-tests: Moved from ../.
87027         * modules/crypto/hmac-md5: Moved from ../.
87028         * modules/crypto/hmac-md5-tests: Moved from ../.
87029         * modules/crypto/hmac-sha1: Moved from ../.
87030         * modules/crypto/hmac-sha1-tests: Moved from ../.
87031         * modules/crypto/md2: Moved from ../.
87032         * modules/crypto/md2-tests: Moved from ../.
87033         * modules/crypto/md4: Moved from ../.
87034         * modules/crypto/md4-tests: Moved from ../.
87035         * modules/crypto/md5: Moved from ../.
87036         * modules/crypto/md5-tests: Moved from ../.
87037         * modules/crypto/memxor: Moved from ../.
87038         * modules/crypto/rijndael: Moved from ../.
87039         * modules/crypto/rijndael-tests: Moved from ../.
87040         * modules/crypto/sha1: Moved from ../.
87042 2007-03-30  James Youngman  <jay@gnu.org>
87044         * tests/test-stat-time.c (prepare_test): use chmod() rather than
87045         rename() to change the ctime of a file (because ctime is unaffected
87046         by rename on jfs2 on AIX 5.1).
87047         (main): Start by doing cleanup, in case a previous run failed leaving
87048         test files behind.
87050 2007-03-31  Bruno Haible  <bruno@clisp.org>
87052         Support old proprietary implementations of iconv.
87053         * modules/iconv_open: New file.
87054         * lib/iconv_.h: New file.
87055         * m4/iconv_h.m4: New file.
87056         * lib/iconv_open.c: New file.
87057         * lib/iconv_open-aix.gperf: New file.
87058         * lib/iconv_open-hpux.gperf: New file.
87059         * lib/iconv_open-irix.gperf: New file.
87060         * lib/iconv_open-osf.gperf: New file.
87061         * m4/iconv_open.m4: New file.
87062         * modules/linebreak (Depends-on): Add iconv_open.
87063         * modules/striconv (Depends-on): Likewise.
87064         * modules/striconveh (Depends-on): Likewise.
87065         * modules/unicodeio (Depends-on): Likewise.
87066         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
87067         (iconv_t)(-1).
87068         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
87069         conversion if cd is (iconv_t)(-1).
87070         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
87071         is not possible.
87073 2007-03-31  Bruno Haible  <bruno@clisp.org>
87075         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
87076         work on Solaris either. Protect also second use of "autodetect_jp".
87078 2007-03-31  Bruno Haible  <bruno@clisp.org>
87080         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
87081         the function is not present.
87083 2007-03-31  Bruno Haible  <bruno@clisp.org>
87085         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
87086         the function is not present.
87088 2007-03-31  Bruno Haible  <bruno@clisp.org>
87090         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
87091         a bug in HP-UX iconv_open().
87093 2007-03-31  Bruno Haible  <bruno@clisp.org>
87095         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
87096         (Mathematics <math.h>): New section, add fpieee.
87097         (Input/output <stdio.h>): Add fseterr.
87098         (Mathematics <math.h>): New section, add printf-frexp.
87099         (Container data structures): Add sublist.
87100         (Core language properties): Add fpucw, inline.
87101         (Functions for greatest-width integer types <inttypes.h>): Add
87102         imaxabs, imaxdiv, inttypes.
87103         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
87104         isnanl-nolibm, ldexp.
87105         (Mathematics <math.h>): New section, add printf-frexpl.
87106         (Support for systems lacking POSIX:2001): Add fprintf-posix,
87107         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
87108         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
87109         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
87110         (Unicode string functions): Add unistr/u*-mbtoucr.
87111         (Java): Add javacomp-script, javaexec-script.
87112         (C#): Add csharpcomp-script, csharpexec-script.
87113         (Support for building libraries and executables): Add havelib,
87114         relocatable-*.
87115         (Support for maintaining and releasing projects): Renamed from
87116         'Support for maintaining and release projects'. Add announce-gen.
87118 2007-03-31  Bruno Haible  <bruno@clisp.org>
87120         * README: Talk primarily about git.
87121         (git and CVS): Renamed from CVS.
87122         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
87123         gnulib is available through git.
87124         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
87126 2007-03-30  Bruno Haible  <bruno@clisp.org>
87128         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
87129         * lib/poll_.h: Likewise.
87130         * lib/stat_.h: Likewise.
87131         * lib/sys_time_.h: Likewise.
87132         * lib/sysexit_.h: Likewise.
87133         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
87134         * lib/stdbool_.h: Likewise.
87135         * lib/byteswap_.h: Add double-inclusion guard.
87137 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
87139         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
87141 2007-03-30  Karl Berry  <karl@gnu.org>
87143         * config/srclist-update: double space after USA in the license
87144         substitution, since that's how it's usually (?) written.
87146 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
87148         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
87149         reported by Bruno Haible.
87151 2007-03-29  Bruno Haible  <bruno@clisp.org>
87153         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
87154         a bug in AIX iconv().
87156 2007-03-29  Bruno Haible  <bruno@clisp.org>
87158         * modules/ldexpl-tests: New file.
87159         * tests/test-ldexpl.c: New file.
87161 2007-03-29  Bruno Haible  <bruno@clisp.org>
87163         * lib/ldexpl.c: Include fpucw.h.
87164         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
87165         multiplication.
87166         * modules/ldexpl (Depends-on): Add fpucw.
87168 2007-03-29  Bruno Haible  <bruno@clisp.org>
87170         * modules/ldexpl: New file.
87171         * m4/ldexpl.m4: New file.
87172         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
87173         set.
87174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
87175         REPLACE_LDEXPL.
87176         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
87177         REPLACE_LDEXPL.
87178         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
87179         gl_FUNC_LDEXPL_WORKS.
87180         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
87181         * modules/mathl (Files): Remove lib/ldexpl.c.
87182         (Depends-on): Add ldexpl.
87184 2007-03-29  Bruno Haible  <bruno@clisp.org>
87186         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
87188 2007-03-29  Bruno Haible  <bruno@clisp.org>
87190         * tests/test-striconveh.c (main): Don't assume that a direct conversion
87191         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
87192         and possibly also HP-UX.
87193         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
87194         work on AIX, IRIX, HP-UX, OSF/1.
87195         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
87196         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
87197         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
87198         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
87199         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
87200         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
87202 2007-03-29  Bruno Haible  <bruno@clisp.org>
87204         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
87206 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
87208         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
87209         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
87211 2007-03-29  Eric Blake  <ebb9@byu.net>
87213         * lib/acl-internal.h: Remove redundant include.
87214         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
87215         Cygwin when a file is locked.
87217 2007-03-29  Bruno Haible  <bruno@clisp.org>
87219         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
87220         file.
87221         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
87223 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
87225         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
87226         try to remove a parent directory if the child couldn't be removed
87227         (except for the first rmdir, which could fail because the child
87228         doesn't exist).  Problem reported by Jeff Blaine in
87229         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
87231 2007-03-28  Bruno Haible  <bruno@clisp.org>
87233         * lib/striconveh.c (utf8conv_carefully): New function.
87234         (mem_cd_iconveh_internal): Invoke it.
87236 2007-03-28  Bruno Haible  <bruno@clisp.org>
87238         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
87239         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
87240         input.
87241         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
87242         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
87243         unistr/u8-uctomb.
87245 2007-03-28  Bruno Haible  <bruno@clisp.org>
87247         * modules/unistr/u8-mbtoucr: New file.
87248         * lib/unistr/u8-mbtoucr.c: New file.
87249         * modules/unistr/u16-mbtoucr: New file.
87250         * lib/unistr/u16-mbtoucr.c: New file.
87251         * modules/unistr/u16-mbtoucr: New file.
87252         * lib/unistr/u16-mbtoucr.c: New file.
87253         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
87255 2007-03-27  Simon Josefsson  <simon@josefsson.org>
87256             Bruno Haible  <bruno@clisp.org>
87258         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
87259         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
87260         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
87262         * m4/stdio_h.m4: Add stubs for vasprintf too.
87264         * modules/stdio: Support vasprintf in sed command.
87266         * modules/vasprintf: Depend on stdio for prototypes.  Remove
87267         vasprintf.h.  Add stdio module indicator.
87269         * lib/stdio_.h: Declare asprintf and vasprintf, based on
87270         vasprintf.h.
87272         * lib/vasprintf.h: File removed.
87274         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
87275         * lib/vasprintf.c: Ditto.
87276         * lib/xvasprintf.c: Ditto.
87277         * tests/test-vasprintf-posix.c: Ditto.
87278         * tests/test-vasprintf.c: Ditto.
87280 2007-03-27  Bruno Haible  <bruno@clisp.org>
87282         Make vasnprintf multithread-safe.
87283         * lib/vasnprintf.c (decimal_point_char): New function.
87284         (VASNPRINTF): Use it.
87285         Suggested by Simon Josefsson.
87287 2007-03-27  Eric Blake  <ebb9@byu.net>
87289         Support sub-second birthtime on cygwin.
87290         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
87291         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
87292         (get_stat_birthtime): Also work with st_birthtim.
87294 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
87296         * lib/stat-time.h (USE_BIRTHTIME): Remove.
87297         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
87298         (get_stat_birthtime_ns): Do not try to use "spare" fields.
87299         (get_stat_birthtime_ns): Simplify compile-time tests.
87300         (get_stat_birthtime): Change the API to look like
87301         get_stat_mtime etc., except return a negative tv_nsec on error.
87302         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
87303         Don't check for "spare" fields.
87304         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
87305         or for struct stat.st_birthtime, as these tests aren't used.
87306         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
87308 2007-03-27  Bruno Haible  <bruno@clisp.org>
87310         * lib/stat-time.h: Include <sys/stat.h>.
87312 2007-03-27  James Youngman  <jay@gnu.org>
87314         * lib/stat-time.h (get_stat_birthtime): New function for
87315           retrieving st_birthtime as provided by UFS2 (hence *BSD).
87316         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
87317           and its variants.
87318         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
87319         * modules/stat-time-test: New file.
87320         * tests/test-stat-time.c: New test, devised by Bruno Haible.
87322 2007-03-26  Bruno Haible  <bruno@clisp.org>
87324         Better support of signalling NaNs.
87325         * lib/atanl.c: Include isnanl.h.
87326         (atanl): Perform test for NaN at the beginning of the function and
87327         through a call to isnanl.
87328         * lib/cosl.c: Include isnanl.h.
87329         (cosl): Perform test for NaN at the beginning of the function and
87330         through a call to isnanl.
87331         * lib/ldexpl.c: Include isnanl.h.
87332         (ldexpl): Perform test for NaN through a call to isnanl.
87333         * lib/logl.c: Include isnanl.h.
87334         (logl): Perform test for NaN at the beginning of the function and
87335         through a call to isnanl.
87336         * lib/sinl.c: Include isnanl.h.
87337         (sinl): Perform test for NaN at the beginning of the function and
87338         through a call to isnanl.
87339         * lib/sqrtl.c: Include isnanl.h.
87340         (sqrtl): Perform test for NaN at the beginning of the function and
87341         through a call to isnanl.
87342         * lib/tanl.c: Include isnanl.h.
87343         (tanl): Perform test for NaN at the beginning of the function and
87344         through a call to isnanl.
87345         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
87346         * modules/mathl (Depends-on): Add isnanl.
87348 2007-03-26  Eric Blake  <ebb9@byu.net>
87350         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
87351         regression in logic sense of previous patch.
87353 2007-03-26  Bruno Haible  <bruno@clisp.org>
87355         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
87356         unportable shell command "if ! ...".
87357         Reported by Ralf Wildenhues.
87359 2007-03-25  Bruno Haible  <bruno@clisp.org>
87361         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
87362         <sysexits.h> file, and only add EX_CONFIG.
87363         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
87364         absolute file name and whether it is sufficient. Substitute also
87365         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
87366         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
87367         ABSOLUTE_SYSEXITS_H into sysexits.h.
87369 2007-03-25  Bruno Haible  <bruno@clisp.org>
87371         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
87372         hints is NULL.
87374 2007-03-25  Bruno Haible  <bruno@clisp.org>
87376         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
87377         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
87379 2007-03-25  Bruno Haible  <bruno@clisp.org>
87381         * lib/vasnprintf.c: Include langinfo.h.
87382         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
87383         multithread-safe.
87384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
87385         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
87386         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
87387         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87388         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87389         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87390         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
87391         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
87392         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87393         Reported by Simon Josefsson.
87395 2007-03-25  Bruno Haible  <bruno@clisp.org>
87397         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
87398         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
87399         * modules/vasnprintf (Depends-on): Add stdint.
87401 2007-03-25  Bruno Haible  <bruno@clisp.org>
87403         * modules/fpieee: New file.
87404         * m4/fpieee.m4: New file.
87405         * modules/isnan-nolibm (Depends-on): Add fpieee.
87406         * modules/isnanl-nolibm (Depends-on): Add fpieee.
87407         * modules/isnanl (Depends-on): Add fpieee.
87409 2007-03-25  Bruno Haible  <bruno@clisp.org>
87411         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
87413 2007-03-25  Bruno Haible  <bruno@clisp.org>
87415         Avoid test failures on IRIX 6.5.
87416         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
87417         (main): Use it.
87418         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
87419         macros.
87420         (main): Use them.
87422 2007-03-25  Bruno Haible  <bruno@clisp.org>
87424         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
87425         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
87426         exists but doesn't work.
87427         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
87428         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
87429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
87430         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
87431         math.h.
87433 2007-03-25  Bruno Haible  <bruno@clisp.org>
87435         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
87436         returns inf. Needed on IRIX 6.5.
87438 2007-03-25  Bruno Haible  <bruno@clisp.org>
87440         * tests/test-frexpl.c: Include isnanl-nolibm.h.
87441         (main): Use isnanl instead of x != x idiom.
87442         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
87444         * tests/test-frexp.c: Include isnan.h.
87445         (main): Use isnan instead of x != x idiom.
87446         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
87448 2007-03-25  Bruno Haible  <bruno@clisp.org>
87450         * tests/test-frexp.c (NaN): New function/macro.
87451         (main): Use it instead of 0.0 / 0.0.
87452         * tests/test-isnan.c (NaN): New function/macro.
87453         (main): Use it instead of 0.0 / 0.0.
87454         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
87455         (test_function): Use it instead of 0.0 / 0.0.
87456         * tests/test-vasprintf-posix.c (NaN): New function/macro.
87457         (test_function): Use it instead of 0.0 / 0.0.
87458         * tests/test-snprintf-posix.h (NaN): New function/macro.
87459         (test_function): Use it instead of 0.0 / 0.0.
87460         * tests/test-sprintf-posix.h (NaN): New function/macro.
87461         (test_function): Use it instead of 0.0 / 0.0.
87462         * tests/test-fprintf-posix.h (NaN): New function/macro.
87463         (test_function): Use it instead of 0.0 / 0.0.
87464         * tests/test-printf-posix.h (NaN): New function/macro.
87465         (test_function): Use it instead of 0.0 / 0.0.
87467         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
87469 2007-03-25  Bruno Haible  <bruno@clisp.org>
87471         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
87473 2007-03-25  Bruno Haible  <bruno@clisp.org>
87475         * lib/regexec.c (merge_state_with_log): Make static.
87477 2007-03-25  Bruno Haible  <bruno@clisp.org>
87479         * lib/trigl.c (kernel_rem_pio2): Make static.
87481 2007-03-25  Bruno Haible  <bruno@clisp.org>
87483         * lib/sincosl.c (sincosl_table): Make static.
87485 2007-03-25  Bruno Haible  <bruno@clisp.org>
87487         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
87488         if the compiler does not support C99.
87490 2007-03-25  Bruno Haible  <bruno@clisp.org>
87492         * modules/time (Makefile.am): Ensure all rule action lines start with a
87493         tab.
87495 2007-03-24  Bruno Haible  <bruno@clisp.org>
87497         * modules/tsearch-tests: New file.
87498         * tests/test-tsearch.sh: New file.
87499         * tests/test-tsearch.c: New file, mostly copied from glibc.
87501         * modules/search-tests: New file.
87502         * tests/test-search.c: New file.
87504         * modules/search: New file.
87505         * lib/search_.h: New file, incorporating lib/tsearch.h.
87506         * m4/search_h.m4: New file.
87507         * lib/tsearch.h: Remove file.
87508         * lib/tsearch.c: Include search.h instead of tsearch.h.
87509         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
87510         HAVE_TSEARCH.
87511         * modules/tsearch (Files): Remove lib/tsearch.h.
87512         (Depends-on): Add search.
87513         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
87514         (Include): Change tsearch.h into search.h.
87516 2007-03-24  Bruno Haible  <bruno@clisp.org>
87518         * modules/fpucw: New file.
87519         * lib/fpucw.h: New file.
87520         * lib/frexp.c: Include fpucw.h.
87521         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
87522         (FUNC): Use them.
87523         * lib/printf-frexp.c: Include fpucw.h.
87524         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
87525         (FUNC): Use them.
87526         * lib/vasnprintf.c: Include fpucw.h.
87527         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
87528         'long double' calculations.
87529         * tests/test-frexpl.c: Include fpucw.h.
87530         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
87531         * tests/test-printf-frexpl.c: Include fpucw.h.
87532         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
87533         * modules/frexpl (Depends-on): Add fpucw.
87534         * modules/printf-frexpl (Depends-on): Likewise.
87535         * modules/fprintf-posix (Depends-on): Likewise.
87536         * modules/snprintf-posix (Depends-on): Likewise.
87537         * modules/sprintf-posix (Depends-on): Likewise.
87538         * modules/vasnprintf-posix (Depends-on): Likewise.
87539         * modules/vasprintf-posix (Depends-on): Likewise.
87540         * modules/vfprintf-posix (Depends-on): Likewise.
87541         * modules/vsnprintf-posix (Depends-on): Likewise.
87542         * modules/vsprintf-posix (Depends-on): Likewise.
87543         * modules/frexpl-tests (Depends-on): Likewise.
87544         * modules/printf-frexpl-tests (Depends-on): Likewise.
87546 2007-03-24  Bruno Haible  <bruno@clisp.org>
87548         * lib/float+.h: New file.
87549         * lib/isnan.c: Include float+.h.
87550         (SIZE): New macro.
87551         (FUNC): Compare only SIZE bytes of the value.
87552         * lib/vasnprintf.c: Include float+.h.
87553         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
87554         SIZEOF_LDBL or SIZEOF_DBL bytes.
87555         * modules/isnan-nolibm (Files): Add lib/float+.h.
87556         * modules/isnanl-nolibm (Files): Add lib/float+.h.
87557         * modules/isnanl (Files): Add lib/float+.h.
87558         * modules/vasnprintf (Files): Add lib/float+.h.
87560 2007-03-24  Bruno Haible  <bruno@clisp.org>
87562         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
87563         include isnanl-nolibm.h.
87565 2007-03-24  Bruno Haible  <bruno@clisp.org>
87567         * tests/test-read-file.c (main): Don't produce spurious output for
87568         expected situations. Make the test fail if it encountered unexpected
87569         results.
87571 2007-03-24  Bruno Haible  <bruno@clisp.org>
87573         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
87574         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
87576 2007-03-24  Bruno Haible  <bruno@clisp.org>
87578         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
87580 2007-03-24  Bruno Haible  <bruno@clisp.org>
87582         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
87583         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
87585         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
87586         * modules/utf8-ucs4: Turn into a symbolic link to module
87587         unistr/u8-mbtouc.
87589         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
87590         utf8-ucs4-unsafe.
87591         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
87592         unistr/u8-mbtouc-unsafe.
87594         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
87595         * modules/utf16-ucs4: Turn into a symbolic link to module
87596         unistr/u16-mbtouc.
87598         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
87599         utf16-ucs4-unsafe.
87600         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
87601         unistr/u16-mbtouc-unsafe.
87603         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
87604         * modules/ucs4-utf8: Turn into a symbolic link to module
87605         unistr/u8-ubtomb.
87607         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
87608         * modules/ucs4-utf16: Turn into a symbolic link to module
87609         unistr/u16-ubtomb.
87611 2007-03-24  Bruno Haible  <bruno@clisp.org>
87613         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
87614         Enable the function only if HAVE_INLINE.
87615         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
87616         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
87617         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
87618         Enable the function only if HAVE_INLINE.
87619         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
87620         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
87621         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
87622         Enable the function only if HAVE_INLINE.
87623         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
87624         Enable the function only if HAVE_INLINE.
87625         * modules/utf8-ucs4: Update.
87626         * modules/utf8-ucs4-unsafe: Update.
87627         * modules/utf16-ucs4: Update.
87628         * modules/utf16-ucs4-unsafe: Update.
87629         * modules/ucs4-utf8: Update.
87630         * modules/ucs4-utf16: Update.
87632 2007-03-24  Bruno Haible  <bruno@clisp.org>
87634         * lib/utf8-ucs4.h: Remove file.
87635         * lib/utf8-ucs4-unsafe.h: Remove file.
87636         * lib/utf16-ucs4.h: Remove file.
87637         * lib/utf16-ucs4-unsafe.h: Remove file.
87638         * lib/ucs4-utf8.h: Remove file.
87639         * lib/ucs4-utf16.h: Remove file.
87640         * lib/unistr.h: Include their previous contents.
87641         * m4/utf-ucs4.m4: Remove file.
87642         * m4/ucs4-utf.m4: Remove file.
87643         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
87644         (Depends-on): Add unistr/base.
87645         (configure.ac): Remove gl_UTF_UCS4.
87646         (Makefile.am): Update.
87647         (Include): Change to unistr.h.
87648         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
87649         (Depends-on): Add unistr/base.
87650         (configure.ac): Remove gl_UTF_UCS4.
87651         (Makefile.am): Update.
87652         (Include): Change to unistr.h.
87653         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
87654         (Depends-on): Add unistr/base.
87655         (configure.ac): Remove gl_UTF_UCS4.
87656         (Makefile.am): Update.
87657         (Include): Change to unistr.h.
87658         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
87659         (Depends-on): Add unistr/base.
87660         (configure.ac): Remove gl_UTF_UCS4.
87661         (Makefile.am): Update.
87662         (Include): Change to unistr.h.
87663         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
87664         (Depends-on): Add unistr/base.
87665         (configure.ac): Remove gl_UCS4_UTF.
87666         (Makefile.am): Update.
87667         (Include): Change to unistr.h.
87668         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
87669         (Depends-on): Add unistr/base.
87670         (configure.ac): Remove gl_UCS4_UTF.
87671         (Makefile.am): Update.
87672         (Include): Change to unistr.h.
87673         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
87674         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
87675         utf8-ucs4-unsafe.h.
87676         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
87677         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
87678         utf16-ucs4-unsafe.h.
87679         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
87680         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
87681         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
87682         * lib/unistr/u8-strchr.c: Likewise.
87683         * lib/unistr/u8-strrchr.c: Likewise.
87684         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
87685         * lib/unistr/u16-strchr.c: Likewise.
87686         * lib/unistr/u16-strrchr.c: Likewise.
87687         * lib/striconveh.c: Update.
87688         * lib/linebreak.c: Update.
87690 2007-03-24  Bruno Haible  <bruno@clisp.org>
87692         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
87693         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
87695 2007-03-22  Bruno Haible  <bruno@clisp.org>
87697         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
87699 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87701         * MODULES.html.sh (File system functions): New module write-any-file.
87702         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
87703         * m4/write-any-file.m4: New files.
87705 2007-03-23  Eric Blake  <ebb9@byu.net>
87707         * gnulib-tool: Rearrange space-tab sequences, since some editors
87708         like to eat them.
87710 2007-03-23  Eric Blake  <ebb9@byu.net>
87712         * lib/version-etc.c (version_etc_va): Update license wording to
87713         be more concise.  Recommended by Richard Stallman.
87715 2007-03-22  Bruno Haible  <bruno@clisp.org>
87717         * lib/poll.c (MSG_PEEK): New fallback definition.
87719 2007-03-22  Bruno Haible  <bruno@clisp.org>
87721         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
87722         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
87723         (main): Update.
87724         Fixes a compilation error on BeOS.
87726 2007-03-22  Bruno Haible  <bruno@clisp.org>
87728         * modules/frexpl-tests: New file.
87729         * tests/test-frexpl.c: New file.
87731         * modules/frexpl: New file.
87732         * m4/frexpl.m4: New file.
87733         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
87734         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
87735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
87736         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
87737         (Depends-on): Add frexpl. Remove isnanl-nolibm.
87738         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
87740 2007-03-22  Bruno Haible  <bruno@clisp.org>
87742         * lib/frexpl.c: Share code with lib/frexp.c.
87743         * modules/mathl (Files): Add lib/frexp.c.
87744         (Depends-on): Add isnanl-nolibm.
87746 2007-03-22  Bruno Haible  <bruno@clisp.org>
87748         * modules/printf-frexp (Files): Add m4/frexp.m4.
87749         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
87750         only if the found frexp function actually works.
87752 2007-03-22  Bruno Haible  <bruno@clisp.org>
87754         * lib/frexp.c: Remove older implementation that uses divisions.
87756 2007-03-21  Bruno Haible  <bruno@clisp.org>
87758         * modules/frexp-tests: New file.
87759         * tests/test-frexp.c: New file.
87761         * modules/frexp: New file.
87762         * lib/frexp.c: New file.
87763         * m4/frexp.m4: New file.
87764         * lib/math_.h (frexp): New declaration.
87765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
87766         REPLACE_FREXP.
87767         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
87769 2007-03-21  Bruno Haible  <bruno@clisp.org>
87771         * modules/isnanl-tests: New file.
87772         * tests/test-isnanl.c: New file.
87774         * modules/isnanl: New file.
87775         * lib/isnanl.h: New file.
87776         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
87777         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
87778         gl_FUNC_ISNANL_WORKS.
87779         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
87780         New macros.
87782 2007-03-21  Bruno Haible  <bruno@clisp.org>
87784         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
87785         lib/isnanl.h.
87786         (Include): Update.
87787         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
87788         * lib/vasnprintf.c: Update.
87789         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
87790         tests/test-isnanl.h, remove tests/test-isnanl.c.
87791         (Makefile.am): Update.
87792         * tests/test-isnanl-nolibm.c: New file.
87793         * tests/test-isnanl.h: New file.
87794         * tests/test-isnanl.c: Remove file.
87796 2007-03-21  Jim Meyering  <jim@meyering.net>
87798         When trying to open ".", treat ESTALE like EACCES.
87799         * lib/savewd.c (savewd_save): Resort to forking not just upon
87800         failure with EACCES, but also when errno is ESTALE.
87802 2007-03-20  Bruno Haible  <bruno@clisp.org>
87804         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
87805         Needed on AIX 5.1. Reported by Matthew Woehlke.
87807 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
87809         Suggestions by Bruno Haible:
87810         * lib/acl-internal.h: Include "gettext.h" rather than rolling
87811         our own.
87812         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
87813         * modules/acl (Depends-on): Add gettext.
87815 2007-03-19  Bruno Haible  <bruno@clisp.org>
87817         * modules/iconvme: Remove file.
87818         * lib/iconvme.h: Remove file.
87819         * lib/iconvme.c: Remove file.
87820         * m4/iconvme.m4: Remove file.
87822 2007-03-19  Bruno Haible  <bruno@clisp.org>
87824         * doc/relocatable-maint.texi: Break long shell script line.
87825         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
87827 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
87829         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
87830         handle file_has_acl.
87831         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
87832         * lib/acl.c: Move header inclusions and related macro defns into
87833         lib/acl-internal.h.
87834         (S_ISLNK): Remove defn, since that's now done for us.
87835         (file_has_acl): Move to lib/file-has-acl.c.
87836         Call acl_trivial if available.  This is the crucial part of the fix.
87837         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
87838         shared within the library.  Rewrite a bit, partly to make it compatible
87839         with the GNU coding style.
87840         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
87841         Remove unnecessary double-quotes.
87842         Don't test for acl_to_text; the build will catch that.
87843         Replace acl_entries if it doesn't exist and it is needed.
87844         Check for -lsec and acl_trivial (as used on Solaris 10).
87845         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
87846         lib/file-has-acl.c.
87847         (Depends-on): Add sys_stat, for S_ISLNK.
87849 2007-03-19  Ben Pfaff  <blp@gnu.org>
87851         * doc/gnulib.texi: Fix typos.
87852         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
87854 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
87856         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
87857         If size is zero here, buf must be zero.
87859 2007-03-19  Simon Josefsson  <simon@josefsson.org>
87861         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
87862         <bruno@clisp.org>.
87864 2007-03-18  Bruno Haible  <bruno@clisp.org>
87866         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
87867         Suggested by Eric Blake.
87869 2007-03-18  Ben Pfaff  <blp@gnu.org>
87871         * doc/relocatable.texi: Recommend using as prefix a directory
87872         that does not exist and will never be created.  Based on
87873         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
87874         and others.
87876 2007-03-17  Bruno Haible  <bruno@clisp.org>
87878         * lib/fchownat.c: Include lchown.h.
87880 2007-03-17  Bruno Haible  <bruno@clisp.org>
87882         Fix endless loop when the given allocated size was > INT_MAX.
87883         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
87884         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
87885         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
87886         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
87887         * lib/sprintf.c (sprintf): Likewise.
87889 2007-03-17  Bruno Haible  <bruno@clisp.org>
87891         * tests/test-argp-2.sh (func_compare): Output a context diff.
87893 2007-03-17  Bruno Haible  <bruno@clisp.org>
87895         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
87896         locale's decimal-point character.
87898 2007-03-17  Bruno Haible  <bruno@clisp.org>
87900         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
87901         before comparing it. Needed because on some platforms (e.g. x86) a
87902         'long double' occupies less bytes than sizeof (long double).
87904 2007-03-17  Bruno Haible  <bruno@clisp.org>
87906         * tests/test-crc.c (main): Make printf statements 64-bit clean.
87907         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
87908         * tests/test-getaddrinfo.c (simple): Likewise.
87909         * tests/test-read-file.c (main): Likewise.
87911 2007-03-17  Bruno Haible  <bruno@clisp.org>
87913         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
87915 2007-03-17  Bruno Haible  <bruno@clisp.org>
87917         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
87918         unused variable.
87920 2007-03-17  Bruno Haible  <bruno@clisp.org>
87922         * tests/test-c-strcasecmp.c: Include c-strcase.h.
87923         * tests/test-c-strncasecmp.c: Likewise.
87925 2007-03-17  Bruno Haible  <bruno@clisp.org>
87927         * modules/stdlib (Depends-on): Add unistd.
87928         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
87929         Needed for MacOS X 10.3.
87931 2007-03-17  Bruno Haible  <bruno@clisp.org>
87933         * lib/unistr/u-strdup.h: Include <stdlib.h>.
87935 2007-03-17  Bruno Haible  <bruno@clisp.org>
87937         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
87939 2007-03-17  Bruno Haible  <bruno@clisp.org>
87941         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
87942         to reflect files copied from gnulib (with or without modifications).
87943         Suggested by Jim Meyering.
87945 2007-03-17  Eric Blake  <ebb9@byu.net>
87947         * NEWS: Document stdlib change from 2007-02-18.
87949 2007-03-17  Jim Meyering  <jim@meyering.net>
87951         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
87952         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
87953         someone uses a name containing shell meta-characters.
87954         Reported by Alfred M. Szmidt.
87956         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
87958 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
87960         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
87961         and copy gettext configuration files only if configure.ac contains
87962         a use of AM_GNU_GETTEXT_VERSION.
87964 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
87966         * build-aux/bootstrap (gnulib_name): New variable.
87967         (gnulib_tool_options): Use it.
87969 2007-03-13  Simon Josefsson  <simon@josefsson.org>
87971         * tests/test-des.c: Use new namespace.
87973 2007-03-15  Bruno Haible  <bruno@clisp.org>
87975         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
87976         Reported by James Youngman <jay@gnu.org>.
87978 2007-03-15  Bruno Haible  <bruno@clisp.org>
87980         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
87981         declared prototype. Needed with cc on OSF/1 5.1.
87983 2007-03-15  Bruno Haible  <bruno@clisp.org>
87985         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
87986         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
87987         (struct gl_list_implementation): Add dispose_fn argument to the
87988         'create_empty', 'create' methods.
87989         (struct gl_list_impl_base): Add field 'dispose_fn'.
87990         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
87991         argument.
87992         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
87993         dispose_fn argument.
87994         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
87995         dispose_fn on the dropped values.
87996         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
87997         dispose_fn argument.
87998         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
87999         dropped values.
88000         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
88001         (gl_tree_remove_node): Call dispose_fn on the dropped value.
88002         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
88003         (gl_tree_remove_node): Call dispose_fn on the dropped value.
88004         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
88005         argument.
88006         (gl_tree_list_free): Call dispose_fn on the dropped values.
88007         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
88008         the dropped values.
88009         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
88010         Add dispose_fn argument.
88011         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
88012         Call dispose_fn on the dropped values.
88013         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
88014         Add dispose_fn argument.
88015         (gl_sublist_create): Initialize the 'dispose_fn' field.
88016         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
88017         * tests/test-array_list.c (main): Update.
88018         * tests/test-carray_list.c (main): Update.
88019         * tests/test-avltree_list.c (main): Update.
88020         * tests/test-rbtree_list.c (main): Update.
88021         * tests/test-avltreehash_list.c (main): Update.
88022         * tests/test-rbtreehash_list.c (main): Update.
88023         * tests/test-linked_list.c (main): Update.
88024         * tests/test-linkedhash_list.c (main): Update.
88025         * tests/test-array_oset.c (main): Update.
88027 2007-03-15  Bruno Haible  <bruno@clisp.org>
88029         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
88030         (gl_oset_create_empty): Add dispose_fn argument.
88031         (struct gl_oset_implementation): Add dispose_fn argument to
88032         'create_empty' method.
88033         (struct gl_oset_impl_base): Add dispose_fn field.
88034         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
88035         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
88036         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
88037         values.
88038         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
88039         (gl_tree_oset_free): Call dispose_fn on the dropped values.
88040         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
88041         dropped value.
88042         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
88043         dropped value.
88044         * tests/test-array_oset.c (main): Update.
88045         * tests/test-avltree_oset.c (main): Update.
88046         * tests/test-rbtree_oset.c (main): Update.
88047         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
88049 2007-03-13  Bruno Haible  <bruno@clisp.org>
88051         * tests/test-stdbool.c (i): Update after last patch.
88053 2007-03-12  Bruno Haible  <bruno@clisp.org>
88055         * lib/quotearg.c: Include <wctype.h> early, before the definition of
88056         the iswprint macro. Needed on Solaris 2.5.1.
88058 2007-03-12  Bruno Haible  <bruno@clisp.org>
88060         * tests/test-printf-frexp.c (main): Declare x as volatile.
88062 2007-03-12  Simon Josefsson  <simon@josefsson.org>
88064         * doc/gnulib.texi (Build robot for gnulib): New section.
88066 2007-03-12  Jim Meyering  <jim@meyering.net>
88068         * build-aux/bootstrap: New file.
88069         * build-aux/bootstrap.conf: New file, from coreutils.
88071 2007-03-11  Bruno Haible  <bruno@clisp.org>
88073         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
88075 2007-03-12  Simon Josefsson  <simon@josefsson.org>
88077         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
88078         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
88079         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
88081 2007-03-11  Bruno Haible  <bruno@clisp.org>
88083         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
88084         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
88086 2007-03-11  Bruno Haible  <bruno@clisp.org>
88088         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
88089         formula. Needed for SunPRO C 5.0.
88091 2007-03-11  Bruno Haible  <bruno@clisp.org>
88093         * modules/long-options (Depends-on): Add getopt.
88095 2007-03-11  Bruno Haible  <bruno@clisp.org>
88097         * modules/modechange (Depends-on): Add stdbool.
88099 2007-03-11  Bruno Haible  <bruno@clisp.org>
88101         * modules/i-ring (Depends-on): Add stdbool.
88103 2007-03-11  Bruno Haible  <bruno@clisp.org>
88105         * modules/gc-des (Depends-on): Add stdbool.
88107 2007-03-11  Bruno Haible  <bruno@clisp.org>
88109         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
88111 2007-03-11  Bruno Haible  <bruno@clisp.org>
88113         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
88115 2007-03-11  Bruno Haible  <bruno@clisp.org>
88117         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
88119 2007-03-11  Bruno Haible  <bruno@clisp.org>
88121         * lib/vasnprintf.c (sprintf): Undefine.
88123 2007-03-11  Bruno Haible  <bruno@clisp.org>
88125         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
88126         initializers in SunPRO C and Compaq C compilers.
88128 2007-03-11  Bruno Haible  <bruno@clisp.org>
88130         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
88131         decrementing code ANSI C compliant.
88133 2007-03-11  Bruno Haible  <bruno@clisp.org>
88135         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
88136         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
88138 2007-03-11  Bruno Haible  <bruno@clisp.org>
88140         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
88141         <stdbool.h> substitute doesn't pass.
88143 2007-03-11  Bruno Haible  <bruno@clisp.org>
88145         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
88147 2007-03-11  Bruno Haible  <bruno@clisp.org>
88149         * gnulib-tool (func_create_megatestdir): Create also an autobuild
88150         script, for submission to autobuild.josefsson.org.
88152 2007-03-10  Bruno Haible  <bruno@clisp.org>
88154         * modules/canonicalize-lgpl-tests: New file.
88155         * tests/test-canonicalize-lgpl.sh: New file.
88156         * tests/test-canonicalize-lgpl.c: New file.
88158         * modules/c-strcase-tests: New file.
88159         * tests/test-c-strcase.sh: New file.
88160         * tests/test-c-strcasecmp.c: New file.
88161         * tests/test-c-strncasecmp.c: New file.
88163         * modules/atexit-tests: New file.
88164         * tests/test-atexit.sh: New file.
88165         * tests/test-atexit.c: New file.
88167 2007-03-10  Bruno Haible  <bruno@clisp.org>
88169         * tests/test-binary-io.sh: Use temporary filenames that are not so
88170         likely to clash with those of other tests (in a parallel make).
88171         * tests/test-binary-io.c: Likewise.
88173 2007-03-10  Bruno Haible  <bruno@clisp.org>
88175         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
88176         fallback; use #error instead.
88177         Suggested by Simon Josefsson.
88179 2007-03-10  Bruno Haible  <bruno@clisp.org>
88181         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
88182         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
88183         first and the last.
88185 2007-03-10  Bruno Haible  <bruno@clisp.org>
88187         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
88189 2007-03-10  Bruno Haible  <bruno@clisp.org>
88191         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
88192         "make distcheck".
88193         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
88194         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
88195         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
88197 2007-03-10  Bruno Haible  <bruno@clisp.org>
88199         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
88200         variable.
88201         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
88202         variable.
88204 2007-03-09  Eric Blake  <ebb9@byu.net>
88205         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
88207         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
88208         types are not being provided by gnulib.
88209         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
88210         types are supported.
88212 2007-03-10  Bruno Haible  <bruno@clisp.org>
88214         * lib/stdio_.h (__attribute__): New macro.
88215         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
88216         vsprintf): Specify __attribute__ __format__ for GCC.
88217         Suggested by Eric Blake.
88219 2007-03-09  Bruno Haible  <bruno@clisp.org>
88221         * modules/printf-posix-tests: New file.
88222         * tests/test-printf-posix.sh: New file.
88223         * tests/test-printf-posix.c: New file.
88225         * modules/printf-posix: New file.
88226         * lib/printf.c: New file.
88227         * m4/printf-posix-rpl.m4: New file.
88228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
88229         REPLACE_PRINTF.
88230         * lib/stdio_.h (printf): New declaration.
88231         (format, __format__, ____printf____, ____scanf____, ____strftime____,
88232         ____strfmon____): New macros.
88233         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
88234         REPLACE_PRINTF.
88236 2007-03-09  Bruno Haible  <bruno@clisp.org>
88238         * tests/test-vasnprintf-posix2.sh: New file.
88239         * tests/test-vasnprintf-posix2.c: New file.
88240         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
88241         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
88242         (Makefile.am): Activate test-vasnprintf-posix2.sh.
88244         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
88245         a locale dependent decimal point, rather than always '.'.
88247 2007-03-09  Eric Blake  <ebb9@byu.net>
88249         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
88250         spite of platforms like Tandem/NSK that define it to -1.
88252 2007-03-08  Bruno Haible  <bruno@clisp.org>
88254         * modules/vprintf-posix-tests: New file.
88255         * tests/test-vprintf-posix.sh: New file.
88256         * tests/test-vprintf-posix.c: New file.
88257         * tests/test-printf-posix.h: New file.
88259         * modules/vprintf-posix: New file.
88260         * lib/vprintf.c: New file.
88261         * m4/vprintf-posix.m4: New file.
88262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
88263         REPLACE_VPRINTF.
88264         * lib/stdio_.h (vprintf): New declaration.
88265         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
88266         REPLACE_VPRINTF.
88268 2007-03-08  Bruno Haible  <bruno@clisp.org>
88270         * modules/fprintf-posix-tests: New file.
88271         * tests/test-fprintf-posix.sh: New file.
88272         * tests/test-fprintf-posix.c: New file.
88274         * modules/fprintf-posix: New file.
88275         * lib/fprintf.c: New file.
88276         * m4/fprintf-posix.m4: New file.
88277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
88278         REPLACE_FPRINTF.
88279         * lib/stdio_.h (fprintf): New declaration.
88280         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
88281         REPLACE_FPRINTF.
88283 2007-03-08  Bruno Haible  <bruno@clisp.org>
88285         * modules/vfprintf-posix-tests: New file.
88286         * tests/test-vfprintf-posix.sh: New file.
88287         * tests/test-vfprintf-posix.c: New file.
88288         * tests/test-fprintf-posix.h: New file.
88289         * tests/test-fprintf-posix.out: New file.
88291         * modules/vfprintf-posix: New file.
88292         * lib/vfprintf.c: New file.
88293         * m4/vfprintf-posix.m4: New file.
88294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
88295         REPLACE_VFPRINTF.
88296         * lib/stdio_.h (vfprintf): New declaration.
88297         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
88298         REPLACE_VFPRINTF.
88300 2007-03-08  Bruno Haible  <bruno@clisp.org>
88302         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
88304 2007-03-08  Bruno Haible  <bruno@clisp.org>
88306         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
88307         instead of 'expr' invocations.
88308         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88311         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88312         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88313         Suggested by Paul Eggert.
88315 2007-03-08  Bruno Haible  <bruno@clisp.org>
88317         * modules/fseterr-tests: New file.
88318         * tests/test-fseterr.c: New file.
88320         * modules/fseterr: New file.
88321         * lib/fseterr.h: New file.
88322         * lib/fseterr.c: New file.
88324 2007-03-08  Bruno Haible  <bruno@clisp.org>
88326         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
88327         * lib/getopt_.h: Likewise.
88328         * lib/mbswidth.h: Likewise.
88329         * lib/setenv.h: Likewise.
88330         * lib/vasnprintf.h: Likewise.
88331         * lib/vasprintf.h: Likewise.
88332         * lib/verror.h: Likewise.
88333         * lib/xsetenv.h: Likewise.
88334         * lib/xvasprintf.h: Likewise.
88336 2007-03-08  Jim Meyering  <jim@meyering.net>
88338         * users.txt: Add parted.
88340         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
88342 2007-03-07  Bruno Haible  <bruno@clisp.org>
88344         * m4/printf.m4: Make the shell script snippets copy&pastable.
88346 2007-03-02  Bruno Haible  <bruno@clisp.org>
88348         * lib/netinet_in_.h: New file.
88349         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
88350         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
88351         * modules/netinet_in (Files): Add lib/netinet_in_.h.
88352         (Depends-on): Add absolute-header.
88353         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
88354         into netinet/in.h.
88356 2007-03-03  Bruno Haible  <bruno@clisp.org>
88358         * lib/sys_select_.h: New file.
88359         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
88360         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
88361         * modules/sys_select (Files): Add lib/sys_select_.h.
88362         (Depends-on): Add absolute-header.
88363         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
88364         into sys/select.h.
88366 2007-03-02  Bruno Haible  <bruno@clisp.org>
88368         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
88369         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
88370         values.
88371         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
88372         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
88373         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
88374         * modules/sys_socket (Depends-on): Add absolute-header.
88375         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
88376         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
88377         (Include): Remove requirement of inclusion of <sys/types.h>.
88379 2007-03-02  Bruno Haible  <bruno@clisp.org>
88381         * lib/byteswap_.h (bswap_32): Fix formula.
88383 2007-03-06  Bruno Haible  <bruno@clisp.org>
88385         * modules/sprintf-posix-tests: New file.
88386         * tests/test-sprintf-posix.c: New file.
88388         * modules/sprintf-posix: New file.
88389         * lib/sprintf.c: New file.
88390         * m4/sprintf-posix.m4: New file.
88391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
88392         REPLACE_SPRINTF.
88393         * lib/stdio_.h (sprintf): New declaration.
88394         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
88395         REPLACE_SPRINTF.
88397 2007-03-06  Bruno Haible  <bruno@clisp.org>
88399         * modules/vsprintf-posix-tests: New file.
88400         * tests/test-vsprintf-posix.c: New file.
88401         * tests/test-sprintf-posix.h: New file.
88403         * modules/vsprintf-posix: New file.
88404         * lib/vsprintf.c: New file.
88405         * m4/vsprintf-posix.m4: New file.
88406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
88407         REPLACE_VSPRINTF.
88408         * lib/stdio_.h (vsprintf): New declaration.
88409         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
88410         REPLACE_VSPRINTF.
88412 2007-03-06  Bruno Haible  <bruno@clisp.org>
88414         * modules/vsnprintf (Depend-on): Remove minmax.
88416 2007-03-06  Bruno Haible  <bruno@clisp.org>
88418         * modules/snprintf-posix-tests: New file.
88419         * tests/test-snprintf-posix.c: New file.
88421         * modules/snprintf-posix: New file.
88422         * m4/snprintf-posix.m4: New file.
88423         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
88424         gl_FUNC_SNPRINTF.
88425         (gl_FUNC_SNPRINTF): Invoke it.
88426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
88427         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
88428         is set.
88429         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
88431 2007-03-06  Bruno Haible  <bruno@clisp.org>
88433         * modules/vsnprintf-posix-tests: New file.
88434         * tests/test-vsnprintf-posix.c: New file.
88435         * tests/test-snprintf-posix.h: New file.
88437         * modules/vsnprintf-posix: New file.
88438         * m4/vsnprintf-posix.m4: New file.
88439         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
88440         gl_FUNC_VSNPRINTF.
88441         (gl_FUNC_VSNPRINTF): Invoke it.
88442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
88443         * lib/stdio_.h (vsnprintf): Define as a replacement if
88444         REPLACE_VSNPRINTF is set.
88445         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
88447 2007-03-06  Bruno Haible  <bruno@clisp.org>
88449         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
88450         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
88452 2007-03-06  Bruno Haible  <bruno@clisp.org>
88454         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
88455         (asinl): Declare also if HAVE_DECL_ASINL is set.
88456         (atanl): Declare also if HAVE_DECL_ATANL is set.
88457         (ceill): Declare also if HAVE_DECL_CEILL is set.
88458         (cosl): Declare also if HAVE_DECL_COSL is set.
88459         (expl): Declare also if HAVE_DECL_EXPL is set.
88460         (floorl): Declare also if HAVE_DECL_FLOORL is set.
88461         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
88462         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
88463         (logl): Declare also if HAVE_DECL_LOGL is set.
88464         (sinl): Declare also if HAVE_DECL_SINL is set.
88465         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
88466         (tanl): Declare also if HAVE_DECL_TANL is set.
88467         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
88468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
88469         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
88470         declaration of frexpl, ldexpl.
88471         * modules/printf-frexpl (Depends-on): Add math.
88472         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
88474 2007-03-05  Bruno Haible  <bruno@clisp.org>
88476         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
88477         frexpl and ldexpl are declared.
88478         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
88480 2007-03-05  Bruno Haible  <bruno@clisp.org>
88482         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
88483         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
88485 2007-03-05  Bruno Haible  <bruno@clisp.org>
88487         * lib/stdio_.h: Include <stddef.h>.
88489 2007-03-05  Bruno Haible  <bruno@clisp.org>
88491         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
88493 2007-03-05  Bruno Haible  <bruno@clisp.org>
88495         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
88496         NetBSD 4, from Ralf Wildenhues.
88498 2007-03-04  Bruno Haible  <bruno@clisp.org>
88500         * lib/vasprintf.h: Update #if logic for the case when the functions
88501         exist but are overridden.
88503 2007-03-04  Bruno Haible  <bruno@clisp.org>
88505         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
88506         implementations: glibc-2.4 and MacOS X 10.3.
88507         * tests/test-vasnprintf-posix.c (test_function): Test also the case
88508         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
88509         * tests/test-vasprintf-posix.c (test_function): Likewise.
88511 2007-03-04  Bruno Haible  <bruno@clisp.org>
88513         * modules/vasprintf-posix-tests: New file.
88514         * tests/test-vasprintf-posix.c: New file.
88516         * modules/vasprintf-posix: New file.
88517         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
88518         defined.
88519         * m4/vasprintf-posix.m4: New file.
88520         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
88521         gl_FUNC_VASPRINTF.
88522         (gl_FUNC_VASPRINTF): Invoke it.
88523         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
88524         here.
88525         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
88527 2007-03-04  Bruno Haible  <bruno@clisp.org>
88529         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
88530         REPLACE_GETTIMEOFDAY.
88531         * modules/sys_time (Makefile.am): Likewise.
88532         * m4/sys_time_h.m4: Likewise.
88533         * m4/gettimeofday.m4: Likewise.
88535 2007-03-04  Bruno Haible  <bruno@clisp.org>
88537         * modules/vasnprintf-posix-tests: New file.
88538         * tests/test-vasnprintf-posix.c: New file.
88540         * modules/vasnprintf-posix: New file.
88541         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
88542         printf-frexpl.h.
88543         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
88544         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
88545         REPLACE_VASNPRINTF is defined.
88546         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
88547         gl_FUNC_VASNPRINTF.
88548         (gl_FUNC_VASNPRINTF): Invoke it.
88549         * m4/vasnprintf-posix.m4: New file.
88550         * m4/printf.m4: New file.
88552 2007-03-04  Bruno Haible  <bruno@clisp.org>
88554         Compile progreloc.c only if --enable-relocatable is specified.
88555         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
88556         if --enable-relocatable was specified.
88557         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
88558         lib_SOURCES.
88560 2007-03-04  Jim Meyering  <jim@meyering.net>
88562         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
88563         Use it consistently, rather than enumerating errno constants.
88565 2007-03-04  Bruno Haible  <bruno@clisp.org>
88567         * modules/xvasprintf-tests: New file.
88568         * tests/test-xvasprintf.c: New file.
88570         * modules/vasprintf-tests: New file.
88571         * tests/test-vasprintf.c: New file.
88573         * modules/vasnprintf-tests: New file.
88574         * tests/test-vasnprintf.c: New file.
88576         * modules/vsnprintf-tests: New file.
88577         * tests/test-vsnprintf.c: New file.
88579         * modules/snprintf-tests: New file.
88580         * tests/test-snprintf.c: New file.
88582 2007-03-04  Bruno Haible  <bruno@clisp.org>
88584         Compile relocatable.c only if --enable-relocatable is specified.
88585         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
88586         gl_RELOCATABLE_LIBRARY.
88587         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
88588         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
88589         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
88590         gl_RELOCATABLE_LIBRARY.
88591         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
88592         (Makefile.am): Remove lib_SOURCES.
88593         * modules/relocatable-lib-lgpl (configure.ac): Invoke
88594         gl_RELOCATABLE_LIBRARY.
88595         (Makefile.am): Remove lib_SOURCES.
88596         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
88597         always.
88598         * modules/relocatable-prog-wrapper (configure.ac): Invoke
88599         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
88601 2007-03-04  Bruno Haible  <bruno@clisp.org>
88603         * modules/argmatch-tests: New file.
88604         * tests/test-argmatch.c: New file.
88606         * tests/test-allocsa.c (main): Halve the number of loop runs.
88608         * modules/alloca-opt-tests: New file.
88609         * tests/test-alloca-opt.c: New file.
88611 2007-03-04  Jim Meyering  <jim@meyering.net>
88613         Work around difference between Linux ACLs and Solaris 10 ZFS.
88614         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
88615         for EINVAL.
88617 2007-03-03  Bruno Haible  <bruno@clisp.org>
88619         * modules/relocatable-prog (Depends-on): Add back progreloc's
88620         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
88622 2007-03-03  Bruno Haible  <bruno@clisp.org>
88624         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
88625         * modules/relocatable-lib: New file.
88627 2007-03-03  Bruno Haible  <bruno@clisp.org>
88629         * modules/relocatable-prog: Renamed from modules/relocatable.
88630         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
88632 2007-03-03  Bruno Haible  <bruno@clisp.org>
88634         * modules/relocatable-script (Files): Add doc/relocatable.texi,
88635         m4/relocatable-lib.m4.
88636         (Depends-on): Remove 'relocatable'.
88637         (configure.ac): Add gl_RELOCATABLE_NOP.
88639 2007-03-03  Bruno Haible  <bruno@clisp.org>
88641         * modules/relocatable-prog-wrapper: New file.
88642         * modules/relocatable (Depends-on): Add it. Remove all other
88643         dependencies except progname.
88644         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
88646         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
88647         (gl_FUNC_STRERROR): Nop.
88648         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
88650         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
88651         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
88653         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
88654         (gl_FUNC_READLINK): Update.
88656         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
88658 2007-03-03  Bruno Haible  <bruno@clisp.org>
88660         * lib/xreadlink.c: Include <unistd.h> unconditionally.
88661         * modules/xreadlink (Depends-on): Add unistd.
88662         * modules/xreadlink-with-size (Depends-on): Likewise.
88664 2007-03-03  Bruno Haible  <bruno@clisp.org>
88666         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
88667         extracted from gt_FUNC_SETENV.
88668         (gt_FUNC_SETENV): Remove macro.
88669         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
88670         remove gt_FUNC_SETENV.
88672 2007-03-03  Bruno Haible  <bruno@clisp.org>
88674         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
88675         ENABLE_RELOCATABLE here.
88676         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
88678 2007-03-03  Bruno Haible  <bruno@clisp.org>
88680         * modules/rbtreehash-list-tests (Depends-on): Add progname.
88681         * tests/test-rbtreehash_list.c: Include progname.h.
88682         (main): Call set_program_name.
88684         * modules/rbtree-oset-tests (Depends-on): Add progname.
88685         * tests/test-rbtree_oset.c: Include progname.h.
88686         (main): Call set_program_name.
88688         * modules/rbtree-list-tests (Depends-on): Add progname.
88689         * tests/test-rbtree_list.c: Include progname.h.
88690         (main): Call set_program_name.
88692         * modules/linked-list-tests (Depends-on): Add progname.
88693         * tests/test-linked_list.c: Include progname.h.
88694         (main): Call set_program_name.
88696 2007-03-03  Bruno Haible  <bruno@clisp.org>
88698         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
88699         All uses of __restrict changed to _Restrict_.
88700         * lib/glob_.h (__restrict): Remove macro.
88702 2007-03-02  Bruno Haible  <bruno@clisp.org>
88704         * modules/gettext (configure.ac): Require gettext infrastructure
88705         from version 0.16.1.
88707 2007-03-02  Bruno Haible  <bruno@clisp.org>
88709         * modules/linkedhash-list-tests (Depends-on): Add progname.
88710         * tests/test-linkedhash_list.c: Include progname.h.
88711         (main): Call set_program_name.
88713         * modules/carray-list-tests (Depends-on): Add progname.
88714         * tests/test-carray_list.c: Include progname.h.
88715         (main): Call set_program_name.
88717         * modules/avltreehash-list-tests (Depends-on): Add progname.
88718         * tests/test-avltreehash_list.c: Include progname.h.
88719         (main): Call set_program_name.
88721         * modules/avltree-oset-tests (Depends-on): Add progname.
88722         * tests/test-avltree_oset.c: Include progname.h.
88723         (main): Call set_program_name.
88725         * modules/avltree-list-tests (Depends-on): Add progname.
88726         * tests/test-avltree_list.c: Include progname.h.
88727         (main): Call set_program_name.
88729         * modules/array-oset-tests (Depends-on): Add progname.
88730         * tests/test-array_oset.c: Include progname.h.
88731         (main): Call set_program_name.
88733         * modules/array-list-tests (Depends-on): Add progname.
88734         * tests/test-array_list.c: Include progname.h.
88735         (main): Call set_program_name.
88737         * modules/argp-tests (Depends-on): Add progname.
88738         * tests/test-argp.c: Include argp.h first. Include progname.h.
88739         (main): Call set_program_name.
88741 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
88743         * doc/gnulib-tool.texi (Initial import): Reword description of
88744         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
88745         limited effect even if defined after the first system include.
88747 2007-03-01  Bruno Haible  <bruno@clisp.org>
88749         * build-aux/config.libpath: Update to libtool-1.5.22.
88750         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88752 2007-03-01  Bruno Haible  <bruno@clisp.org>
88754         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
88755         foo_CFLAGS.
88756         Reported by Ralf Wildenhues.
88758 2007-03-01  Bruno Haible  <bruno@clisp.org>
88760         * build-aux/install-reloc: Remove object files left over by some
88761         compilers.
88762         Reported by Ralf Wildenhues.
88764 2007-03-01  Bruno Haible  <bruno@clisp.org>
88766         * build-aux/install-reloc: Break long lines.
88768 2007-03-01  Bruno Haible  <bruno@clisp.org>
88770         * doc/relocatable.texi: Document that it may not work on OpenBSD.
88771         Reported by Ralf Wildenhues.
88773 2007-03-01  Bruno Haible  <bruno@clisp.org>
88775         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
88776         include ordering constraints.
88778 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88780         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
88781         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
88782         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
88783         as another example.
88784         * lib/time_.h: Fix misspelling.
88785         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
88786         Require gl_HEADER_TIME_H_DEFAULTS.
88787         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
88788         * m4/time_r.m4 (gl_TIME_R): Likewise.
88789         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
88791 2007-03-01  Bruno Haible  <bruno@clisp.org>
88793         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
88794         * m4/utimens.m4 (gl_UTIMENS): Likewise.
88796 2007-03-01  Jim Meyering  <jim@meyering.net>
88798         * modules/xreadlink (Maintainer): Add my name.
88799         * modules/xreadlink-with-size (Depends-on): Alphabetize.
88801 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
88802             Bruno Haible  <bruno@clisp.org>
88804         * build-aux/install-reloc: Compile also c-ctype.c.
88805         * build-aux/relocatable.sh.in: New file.
88806         * doc/relocatable.texi: New file.
88807         * doc/relocatable-maint.texi: New file.
88808         * doc/gnulib.texi: Include relocatable-maint.texi.
88809         * lib/progreloc.c: Include unistd.h unconditionally.
88810         * lib/relocwrapper.c: Include unistd.h unconditionally.
88811         Include c-ctype.h.
88812         (add_dotbin): Use c_tolower.
88813         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
88814         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
88815         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
88816         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
88817         to m4/relocatable-lib.m4.
88818         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
88819         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
88820         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
88821         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
88822         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
88823         * modules/relocatable: New file.
88824         * modules/relocatable-lib: New file.
88825         * modules/relocatable-script: New file.
88827 2007-02-28  Bruno Haible  <bruno@clisp.org>
88829         Import --enable-relocatable infrastructure.
88830         * build-aux/config.libpath: New file, from GNU gettext.
88831         * build-aux/install-reloc: New file, from GNU gettext.
88832         * build-aux/reloc-ldflags: New file, from GNU gettext.
88833         * lib/relocatable.h: New file, from GNU gettext.
88834         * lib/relocatable.c: New file, from GNU gettext.
88835         * lib/relocwrapper.c: New file, from GNU gettext.
88836         * m4/relocatable.m4: New file, from GNU gettext.
88838 2007-02-28  Bruno Haible  <bruno@clisp.org>
88840         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
88842         * modules/xreadlink: New file, from GNU gettext with modifications.
88843         * lib/xreadlink.c: New file, from GNU gettext.
88844         * lib/xreadlink.h: Add comments.
88845         (xreadlink): New declaration.
88847         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
88848         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
88849         lib/xreadlink-with-size.c.
88850         (configure.ac): Remove gl_XREADLINK invocation.
88851         (Makefile.am): Augment lib_SOURCES.
88852         * m4/xreadlink.m4: Remove file.
88853         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
88854         (xreadlink_with_size): Renamed from xreadink.
88855         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
88856         * modules/canonicalize (Depends-on): Replace xreadlink with
88857         xreadlink-with-size.
88858         * lib/canonicalize.c (canonicalize_filename_mode): Update.
88860 2007-02-25  Jim Meyering  <jim@meyering.net>
88862         * build-aux/announce-gen: When complaining about excess arguments,
88863         list them.
88865 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88867         * README: Document signed integer overflow situation more
88868         accurately.
88870 2007-02-25  Bruno Haible  <bruno@clisp.org>
88872         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
88873         'a' or 'A' conversion.
88875 2007-02-25  Bruno Haible  <bruno@clisp.org>
88877         * modules/filename: Renamed from modules/pathname.
88878         (Files): Replace lib/pathname.h with lib/filename.h. Replace
88879         lib/concatpath.c with lib/concat-filename.c.
88880         (Makefile.am): Update.
88881         (Include): Replace pathname.h with filename.h.
88882         * lib/filename.h: Renamed from lib/pathname.h.
88883         (concatenated_filename): Renamed from concatenated_pathname.
88884         * lib/concat-filename.c: Renamed from lib/concatpath.c.
88885         (concatenated_filename): Renamed from concatenated_pathname.
88886         * lib/findprog.c: Include filename.h instead of pathname.h.
88887         (find_in_path): Update.
88888         * lib/javacomp.c: Include filename.h instead of pathname.h.
88889         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
88890         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
88891         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
88892         is_oldgcj_14_13_usable, is_javac_usable): Update.
88893         * lib/javaexec.c: Include filename.h instead of pathname.h.
88894         (execute_java_class): Update.
88895         * modules/findprog: Update.
88896         * modules/javacomp: Update.
88897         * modules/javaexec: Update.
88898         * MODULES.html.sh (File system functions): Add 'filename', remove
88899         'pathname'.
88901 2007-02-25  Bruno Haible  <bruno@clisp.org>
88903         * modules/printf-frexpl-tests: New file.
88904         * tests/test-printf-frexpl.c: New file.
88906         * modules/printf-frexpl: New file.
88907         * lib/printf-frexpl.h: New file.
88908         * lib/printf-frexpl.c: New file.
88909         * m4/printf-frexpl.m4: New file.
88911 2007-02-25  Bruno Haible  <bruno@clisp.org>
88913         * modules/printf-frexp-tests: New file.
88914         * tests/test-printf-frexp.c: New file.
88916         * modules/printf-frexp: New file.
88917         * lib/printf-frexp.h: New file.
88918         * lib/printf-frexp.c: New file.
88919         * m4/printf-frexp.m4: New file.
88921 2007-02-25  Bruno Haible  <bruno@clisp.org>
88923         Assume automake >= 1.10 for the tests.
88924         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
88925         * modules/arctwo-tests: Likewise.
88926         * modules/argp-tests: Likewise.
88927         * modules/avltree-list-tests: Likewise.
88928         * modules/avltree-oset-tests: Likewise.
88929         * modules/avltreehash-list-tests: Likewise.
88930         * modules/carray-list-tests: Likewise.
88931         * modules/crc-tests: Likewise.
88932         * modules/des-tests: Likewise.
88933         * modules/gc-arcfour-tests: Likewise.
88934         * modules/gc-arctwo-tests: Likewise.
88935         * modules/gc-des-tests: Likewise.
88936         * modules/gc-hmac-md5-tests: Likewise.
88937         * modules/gc-hmac-sha1-tests: Likewise.
88938         * modules/gc-md2-tests: Likewise.
88939         * modules/gc-md4-tests: Likewise.
88940         * modules/gc-md5-tests: Likewise.
88941         * modules/gc-pbkdf2-sha1-tests: Likewise.
88942         * modules/gc-rijndael-tests: Likewise.
88943         * modules/gc-sha1-tests: Likewise.
88944         * modules/gc-tests: Likewise.
88945         * modules/getaddrinfo-tests: Likewise.
88946         * modules/hmac-md5-tests: Likewise.
88947         * modules/hmac-sha1-tests: Likewise.
88948         * modules/linked-list-tests: Likewise.
88949         * modules/linkedhash-list-tests: Likewise.
88950         * modules/lock-tests: Likewise.
88951         * modules/md2-tests: Likewise.
88952         * modules/md4-tests: Likewise.
88953         * modules/md5-tests: Likewise.
88954         * modules/rbtree-list-tests: Likewise.
88955         * modules/rbtree-oset-tests: Likewise.
88956         * modules/rbtreehash-list-tests: Likewise.
88957         * modules/read-file-tests: Likewise.
88958         * modules/rijndael-tests: Likewise.
88959         * modules/stdint-tests: Likewise.
88960         * modules/tls-tests: Likewise.
88962 2007-02-24  Bruno Haible  <bruno@clisp.org>
88964         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
88965         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
88966         function; instead check whether isnan with a double argument links.
88967         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
88968         function; instead check whether isnan with a 'long double' argument
88969         links.
88970         Reported by Eric Blake <ebb9@byu.net>.
88972 2007-02-24  Bruno Haible  <bruno@clisp.org>
88974         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
88975         defined.
88976         * lib/isnanl.c: Remove all code. Just include isnan.c.
88977         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
88979 2007-02-25  Jim Meyering  <jim@meyering.net>
88981         Avoid conflicting types for 'unsetenv' on FreeBSD.
88982         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
88983         conflicting with FreeBSD's (5.0 and 6.1) function declaration
88984         in stdlib.h.
88986 2007-02-24  Bruno Haible  <bruno@clisp.org>
88988         * modules/isnanl-nolibm-tests: New file.
88989         * tests/test-isnanl.c: New file.
88991         * modules/isnanl-nolibm: New file.
88992         * lib/isnanl.h: New file.
88993         * lib/isnanl.c: New file.
88994         * m4/isnanl.m4: New file.
88996 2007-02-24  Bruno Haible  <bruno@clisp.org>
88998         * modules/isnan-nolibm-tests: New file.
88999         * tests/test-isnan.c: New file.
89001         * modules/isnan-nolibm: New file.
89002         * lib/isnan.h: New file.
89003         * lib/isnan.c: New file.
89004         * m4/isnan.m4: New file.
89006 2007-02-24  Bruno Haible  <bruno@clisp.org>
89008         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
89009         assume that an exponent fits in 20 bits.
89011 2007-02-24  Jim Meyering  <jim@meyering.net>
89013         * m4/regex.m4: Update the description of the configure-time option,
89014         --without-included-regex, to state accurately what the defaults are,
89015         and perhaps to give people an idea why using this option is risky.
89017 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
89019         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
89020         loops on small arguments.  This attempts to avoid the problem
89021         Bruno Haible reported for AIX 4.3.2 in
89022         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
89024 2007-02-23  Bruno Haible  <bruno@clisp.org>
89026         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
89027         Needed for help2man.
89029 2007-02-23  Karl Berry  <karl@gnu.org>
89031         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
89032         exists, foo.h should be cvs-ignored, not committed.
89034 2007-02-23  Eric Blake  <ebb9@byu.net>
89036         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
89037         * lib/stat-time.h (includes): Likewise.
89038         * lib/utimecmp.c (includes): Likewise.
89039         * lib/utimens.h (includes): Likewise.
89040         * lib/getdate.y (includes): Also include "timespec.h" for use
89041         internal to the module.
89042         * modules/utimens (Depends-on): Revert yesterday's patch.
89043         * modules/nanosleep (Depends-on): Add missing dependency.
89045 2007-02-22  Bruno Haible  <bruno@clisp.org>
89047         * lib/glob.c: Don't include getlogin_r.h.
89049 2007-02-22  Jim Meyering  <jim@meyering.net>
89051         * modules/utimens (Depends-on): Add timespec, required for
89052         utimens.h's inclusion of timespec.h.
89054 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
89056         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
89057         long unreadable paths in GNU/Linux.  Problem reported by Andreas
89058         Schwab in
89059         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
89060         I'll try to think of a better way to fix the Solaris problem.
89062         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
89063         like glibc; on Solaris 10, it fails with errno == EINVAL.
89064         POSIX says the behavior is unspecified if the first argument is NULL,
89065         so play it safe and never pass NULL to the system getcwd.
89067 2007-02-21  Jim Meyering  <jim@meyering.net>
89069         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
89070         of gettimeofday.  It would conflict with the one now always
89071         provided via sys_time_.h.  Reported by Matthew Woehlke, as
89072         an IRIX 6.5 build failure.
89074 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
89076         Minor fixups to port to Solaris 10 with Sun C 5.8.
89077         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
89078         * modules/getcwd (Depends-on): Add dirfd.
89079         * lib/putenv.c (putenv): #undef it.
89080         (rpl_putenv): New decl.
89081         (malloc, free): Include <stdlib.h> rather than prototyping separately.
89083 2007-02-20  Bruno Haible  <bruno@clisp.org>
89085         * modules/stdio-tests: New file.
89086         * tests/test-stdio.c: New file.
89088         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
89089         (Depends-on): Add stdio.
89090         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
89091         (Include): Use <stdio.h> instead of vsnprintf.h.
89092         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
89093         HAVE_DECL_VSNPRINTF.
89094         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
89096         * modules/snprintf (Files): Remove lib/snprintf.h.
89097         (Depends-on): Add stdio.
89098         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
89099         (Include): Use <stdio.h> instead of snprintf.h.
89100         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
89101         HAVE_DECL_SNPRINTF.
89102         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
89103         * lib/getaddrinfo.c: Likewise.
89105         * modules/stdio: New file.
89106         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
89107         * lib/snprintf.h: Remove file.
89108         * lib/vsnprintf.h: Remove file.
89109         * lib/.cppi-disable: Remove snprintf.h.
89110         * m4/stdio_h.m4: New file.
89111         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
89113 2007-02-20  Jim Meyering  <jim@meyering.net>
89115         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
89116         used by e.g., mingw.  From Bruno Haible.
89118 2007-02-19  Bruno Haible  <bruno@clisp.org>
89120         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
89121         warnings.
89122         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89124 2007-02-19  Bruno Haible  <bruno@clisp.org>
89126         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
89127         from mingw users.
89129 2007-02-19  Bruno Haible  <bruno@clisp.org>
89131         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
89132         warnings.
89133         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
89135 2007-02-19  Jim Meyering  <jim@meyering.net>
89137         Don't use FD after a successful "fdopendir (fd)".
89138         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
89139         Reset it by calling dirfd on the just-obtained DIR*.
89141         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
89142         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
89144 2007-02-18  Bruno Haible  <bruno@clisp.org>
89146         * lib/readlink.c: Include <unistd.h>.
89147         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
89148         HAVE_READLINK.
89149         * modules/readlink (Depends-on): Add unistd.
89150         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89151         (Include): Add <unistd.h>.
89153         * lib/getlogin_r.h: Remove file.
89154         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
89155         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
89156         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
89157         HAVE_DECL_GETLOGIN_R.
89158         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
89159         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89160         (Include): Use <unistd.h> instead of getlogin_r.h.
89162         * lib/getcwd.h: Remove file.
89163         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
89164         * lib/xgetcwd.c: Likewise.
89165         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
89166         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
89167         * modules/getcwd (Files): Remove lib/getcwd.h.
89168         (Depends-on): Add unistd.
89169         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89170         (Include): Use <unistd.h> instad of getcwd.h.
89172         * lib/ftruncate.c: Include <unistd.h> first.
89173         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
89174         Set HAVE_FTRUNCATE.
89175         * modules/ftruncate (Depends-on): Add unistd.
89176         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89178         * lib/fchdir.c: Include <unistd.h> first.
89179         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
89180         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
89181         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
89182         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89183         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
89185         * lib/dup2.c: Include <unistd.h> first.
89186         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
89187         HAVE_DUP2.
89188         * modules/dup2 (Depends-on): Add unistd.
89189         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89191         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
89192         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
89193         REPLACE_CHOWN. Don't define chown as a macro here.
89194         * modules/chown (Depends-on): Add unistd.
89195         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89197         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
89198         Add definition for GL_LINK_WARNING.
89199         (chown, dup2): New declarations.
89200         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
89201         link warning.
89202         (ftruncate): New declaration.
89203         (getcwd): New declaration, taken from old getcwd.h.
89204         (getlogin_r): New declaration, taken from old getlogin_r.h.
89205         (readlink): New declaration.
89206         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
89207         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
89208         (gl_PREREQ_UNISTD): Remove macro.
89209         (gl_UNISTD_MODULE_INDICATOR): New macro.
89210         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
89211         many new variables. Don't set UNISTD_H.
89212         * modules/unistd (Description): Change.
89213         (Depends-on): Add link-warning.
89214         (configure.ac): Update.
89215         (Makefile.am): Create unistd.h always. Substitute many new variables
89216         into it.
89218 2007-02-18  Bruno Haible  <bruno@clisp.org>
89220         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
89221         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
89222         HAVE_GETSUBOPT.
89223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
89224         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
89225         * lib/getsubopt.h: Remove file.
89226         * modules/getsubopt (Files): Remove lib/getsubopt.h.
89227         (Depends-on): Add stdlib.
89228         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89229         (Includes): Use <stdlib.h> instead of getsubopt.h.
89230         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
89231         Set HAVE_GETSUBOPT.
89232         * lib/getsubopt.c: Don't include getsubopt.h.
89234 2007-02-18  Bruno Haible  <bruno@clisp.org>
89236         * modules/fchdir (Depends-on): Add dup2.
89238 2007-02-18  Bruno Haible  <bruno@clisp.org>
89240         * lib/stdlib_.h: Handle glibc's special invocation convention
89241         specially.
89243 2007-02-18  Bruno Haible  <bruno@clisp.org>
89245         * modules/stdlib-tests: New file.
89246         * tests/test-stdlib.c: New file.
89248         * modules/mkstemp (Files): Remove lib/mkstemp.h.
89249         (Depends-on): Add stdlib.
89250         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89251         (Includes): Use <stdlib.h> instead of mkstemp.h.
89252         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
89253         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
89254         * lib/mkstemp.c: Don't include mkstemp.h.
89255         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
89256         * lib/stdlib--.h: Don't include mkstemp.h.
89258         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
89259         (Depends-on): Add stdlib.
89260         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89261         (Includes): Use <stdlib.h> instead of mkdtemp.h.
89262         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
89263         HAVE_MKDTEMP.
89264         * lib/mkdtemp.c: Don't include mkdtemp.h.
89265         * lib/clean-temp.c: Don't include mkdtemp.h.
89267         * modules/exit (Files): Remove lib/exit.h.
89268         (Depends-on): Add stdlib.
89269         (Makefile.am): Remove lib_SOURCES.
89270         (Include): Use <stdlib.h> instead of exit.h.
89271         * lib/argmatch.c: Don't include exit.h.
89272         * lib/execute.c: Likewise.
89273         * lib/pagealign_alloc.c: Likewise.
89274         * lib/pipe.c: Likewise.
89275         * lib/wait-process.c: Likewise.
89276         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
89277         * lib/exitfail.c: Likewise.
89278         * lib/savewd.c: Likewise.
89279         * lib/xsetenv.c: Likewise.
89281         * modules/stdlib: New file.
89282         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
89283         and extra comments about mkstemp().
89284         * lib/exit.h: Remove file.
89285         * lib/mkdtemp.h: Remove file.
89286         * lib/mkstemp.h: Remove file.
89287         * m4/stdlib_h.m4: New file.
89288         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
89290 2007-02-18  Bruno Haible  <bruno@clisp.org>
89292         * modules/math-tests: New file.
89293         * tests/test-math.c: New file.
89295         * modules/math: New file.
89296         * modules/mathl (Files): Remove lib/mathl.h.
89297         (Depends-on): Add math.
89298         (Makefile.am): Don't mention mathl.h.
89299         (Include): Use <math.h> instead of mathl.h.
89300         * lib/math_.h: New file.
89301         * lib/mathl.h: Remove file.
89302         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
89303         mathl.h.
89304         * lib/asinl.c: Likewise.
89305         * lib/atanl.c: Likewise.
89306         * lib/ceill.c: Likewise.
89307         * lib/cosl.c: Likewise.
89308         * lib/expl.c: Likewise.
89309         * lib/floorl.c: Likewise.
89310         * lib/frexpl.c: Likewise.
89311         * lib/ldexpl.c: Likewise.
89312         * lib/logl.c: Likewise.
89313         * lib/sincosl.c: Likewise.
89314         * lib/sinl.c: Likewise.
89315         * lib/sqrtl.c: Likewise.
89316         * lib/tanl.c: Likewise.
89317         * lib/trigl.c: Likewise.
89318         * m4/math_h.m4: New file.
89319         * MODULES.html.sh (Mathematics): Add math.
89321 2007-02-17  Bruno Haible  <bruno@clisp.org>
89323         * modules/wctype-tests: New file.
89324         * tests/test-wctype.c: New file.
89326         * modules/wchar-tests: New file.
89327         * tests/test-wchar.c: New file.
89329         * modules/unistd-tests: New file.
89330         * tests/test-unistd.c: New file.
89332         * modules/time-tests: New file.
89333         * tests/test-time.c: New file.
89335         * modules/sysexits-tests: New file.
89336         * tests/test-sysexits.c: New file.
89338         * modules/sys_time-tests: New file.
89339         * tests/test-sys_time.c: New file.
89341         * modules/sys_stat-tests: New file.
89342         * tests/test-sys_stat.c: New file.
89344         * modules/sys_socket-tests: New file.
89345         * tests/test-sys_socket.c: New file.
89347         * modules/sys_select-tests: New file.
89348         * tests/test-sys_select.c: New file.
89350         * modules/string-tests: New file.
89351         * tests/test-string.c: New file.
89353         * modules/stdbool-tests: New file.
89354         * tests/test-stdbool.c: New file.
89356         * modules/netinet_in-tests: New file.
89357         * tests/test-netinet_in.c: New file.
89359         * modules/inttypes-tests: New file.
89360         * tests/test-inttypes.c: New file.
89362         * modules/fcntl-tests: New file.
89363         * tests/test-fcntl.c: New file.
89365         * modules/byteswap-tests: New file.
89366         * tests/test-byteswap.c: New file.
89368         * modules/arpa_inet-tests: New file.
89369         * tests/test-arpa_inet.c: New file.
89371 2007-02-17  Bruno Haible  <bruno@clisp.org>
89373         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
89374         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
89375         if the corresponding module is not enabled. Emit link warnings if
89376         the function is used nevertheless.
89377         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
89378         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
89379         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
89380         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
89381         * modules/inttypes (Depends-on): Add link-warning.
89382         (Makefile.am): Copy the contents of build-aux/link-warning.h into
89383         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
89384         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
89385         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
89386         * modules/imaxdiv (configure.ac): Likewise.
89387         * modules/strtoimax (configure.ac): Likewise.
89388         * modules/strtoumax (configure.ac): Likewise.
89390 2007-02-17  Bruno Haible  <bruno@clisp.org>
89392         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
89393         gl_STRING_MODULE_INDICATOR_DEFAULTS.
89394         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
89395         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
89397 2007-02-17  Bruno Haible  <bruno@clisp.org>
89399         * modules/link-warning: New file.
89400         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
89401         * lib/string_.h (GL_LINK_WARNING): Remove definition.
89402         * modules/string (Depends-on): Add link-warning.
89403         (Makefile.am): Copy the contents of build-aux/link-warning.h into
89404         string.h.
89405         * MODULES.html.sh (Support for building libraries and executables): Add
89406         link-warning.
89408 2007-02-17  Bruno Haible  <bruno@clisp.org>
89410         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
89411         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
89412         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
89413         long lines.
89415 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
89416             Bruno Haible  <bruno@clisp.org>
89418         * modules/tmpfile: New file.
89419         * lib/tmpfile.c: New file.
89420         * m4/tmpfile.m4: New file.
89421         * MODULES.html.sh (func_all_modules): New section "Input/output".
89423 2007-02-15  Bruno Haible  <bruno@clisp.org>
89425         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
89426         (supports_delete_on_close): New function.
89427         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
89429 2007-02-14  Bruno Haible  <bruno@clisp.org>
89431         * modules/mbspcasecmp-tests: New file.
89432         * tests/test-mbspcasecmp.sh: New file.
89433         * tests/test-mbspcasecmp.c: New file.
89435         New module mbspcasecmp.
89436         * modules/mbspcasecmp: New file.
89437         * lib/mbspcasecmp.c: New file.
89438         * lib/string_.h (strncasecmp): Change warning message.
89439         (mbspcasecmp): New declaration.
89440         * m4/mbspcasecmp.m4: New file.
89441         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89442         GNULIB_MBSPCASECMP.
89443         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
89444         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
89446 2007-02-14  Bruno Haible  <bruno@clisp.org>
89448         * modules/mbsncasecmp-tests: New file.
89449         * tests/test-mbsncasecmp.sh: New file.
89450         * tests/test-mbsncasecmp.c: New file.
89452         New module mbsncasecmp.
89453         * modules/mbsncasecmp: New file.
89454         * lib/mbsncasecmp.c: New file.
89455         * lib/string_.h (mbsncasecmp): New declaration.
89456         * m4/mbsncasecmp.m4: New file.
89457         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89458         GNULIB_MBSNCASECMP.
89459         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
89460         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
89462 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
89464         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
89465         Verify that it doesn't overlap with our flags.
89466         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
89467         do not have the desired effect in multibyte locales; instead, use
89468         mbscasecmp.
89469         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
89470         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
89471         we don't require GNU fnmatch ourselves (if our users require it, they
89472         should do so explicitly).
89474         Fix regex code so it doesn't rely on strcasecmp.
89475         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
89476         Otherwise, include gnulib's langinfo.h.
89477         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
89478         undesirable behavior in non-C locales.  Instead, rely on localecharset.
89479         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
89480         * modules/regex (FILES): Remove m4/codeset.m4.
89481         (Depends-on): Add localcharset.  Remove strcase.
89483 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89485         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
89486         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
89488 2007-02-13  Bruno Haible  <bruno@clisp.org>
89490         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
89491         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89493 2007-02-12  Bruno Haible  <bruno@clisp.org>
89495         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
89496         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
89497         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
89498         time warning rather than a link error.
89500 2007-02-12  Bruno Haible  <bruno@clisp.org>
89502         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
89503         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
89504         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89506 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
89508         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
89509         args, not 2.
89511 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
89513         New module 'time', so that apps can include <time.h> as per
89514         POSIX and GNU instead of separate include files like time_r.h
89515         and timegm.h.  This implementation tries out a simpler approach
89516         for replacing decls in standard include files (as compared to
89517         the string module), somewhat as an experiment.
89519         * config/srclist.txt: Comment out mktime.c for now.
89520         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
89521         since it doesn't apply any more.  Use generic wording instead.
89522         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
89523         'time'.
89524         * lib/time_.h, m4/time_h.m4, modules/time: New files.
89525         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
89526         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
89527         Don't include <sys/types.h>; no longer needed since we assume C89.
89528         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
89529         * lib/strftime.c: Likewise.
89530         * lib/time_r.c: Likewise.
89531         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
89532         * lib/nanosleep.c: Include <time.h> first, to check interface.
89533         * lib/strptime.c: Likewise.
89534         * lib/time_r.c: Likewise.
89535         * lib/timegm.c: Likewise.
89536         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
89537         needed.
89538         * lib/timegm.c: Don't include timegm.h; no longer needed.
89539         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
89540         time.h now handles any problems in that area.
89541         (struct timespec, nanosleep): Remove; time.h now arranges for these.
89542         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
89543         that time.h defines struct timespec.
89544         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
89545         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
89546         handles that.
89547         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
89548         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
89549         needed.  Set REPLACE_LOCALTIME.
89550         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
89551         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
89552         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
89553         nanosleep; time_h.m4 now does that.  Don't require
89554         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
89555         module handles this now.
89556         * modules/getdate (Depends-on): Remove timespec.  Add time.
89557         * modules/nanosleep (Depends-on): Likewise.
89558         * modules/stat-time (Depends-on): Likewise.
89559         * modules/nanosleep (Include): Include time.h, not timespec.h.
89560         * modules/strptime (Files): Remove lib/strptime.h.
89561         (Depends-on): Add extensions, time.
89562         (Include): Include time.h, not strptime.h.
89563         * modules/time_r (Files): Remove lib/time_r.h.
89564         (Depends-on): Add time.
89565         (Include): Include time.h, not time_r.h.
89566         * modules/timegm: Likewise.
89567         * modules/timespec (Description): Now does timespec-related decls
89568         of our own, instead of struct timespec itself.
89569         (Depends-on): Add time; remove extensions.
89570         (Maintainer): Add self.
89571         * modules/utimecmp (Depends-on): Add time; remove timespec.
89572         * modules/utimens (Depends-on): Likewise.
89573         * modules/xnanosleep (Depends-on): Likewise.
89575 2007-02-11  Bruno Haible  <bruno@clisp.org>
89577         * lib/c-strstr.c: Include allocsa.h.
89578         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
89579         * lib/c-strcasestr.c: Include allocsa.h.
89580         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
89581         * lib/strcasestr.c: Include allocsa.h.
89582         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
89583         * lib/mbsstr.c: Include allocsa.h.
89584         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
89585         allocsa/freesa instead of malloc/free.
89586         * lib/mbscasestr.c: Include allocsa.h.
89587         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
89588         allocsa/freesa instead of malloc/free.
89589         * modules/c-strstr (Depends-on): Add allocsa.
89590         * modules/c-strcasestr (Depends-on): Likewise.
89591         * modules/strcasestr (Depends-on): Likewise.
89592         * modules/mbsstr (Depends-on): Likewise.
89593         * modules/mbscasestr (Depends-on): Likewise.
89595 2007-02-11  Bruno Haible  <bruno@clisp.org>
89597         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
89599         * modules/mbsspn-tests: New file.
89600         * tests/test-mbsspn.sh: New file.
89601         * tests/test-mbsspn.c: New file.
89603 2007-02-11  Bruno Haible  <bruno@clisp.org>
89605         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
89607         * modules/mbspbrk-tests: New file.
89608         * tests/test-mbspbrk.sh: New file.
89609         * tests/test-mbspbrk.c: New file.
89611 2007-02-11  Bruno Haible  <bruno@clisp.org>
89613         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
89614         unneeded cast.
89616         * modules/mbscspn-tests: New file.
89617         * tests/test-mbscspn.sh: New file.
89618         * tests/test-mbscspn.c: New file.
89620 2007-02-11  Bruno Haible  <bruno@clisp.org>
89622         * modules/mbscasecmp-tests: New file.
89623         * tests/test-mbscasecmp.sh: New file.
89624         * tests/test-mbscasecmp.c: New file.
89626 2007-02-11  Bruno Haible  <bruno@clisp.org>
89628         Ensure O(n) worst-case complexity of mbscasestr.
89629         * lib/mbscasestr.c: Include stdbool.h.
89630         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
89631         functions.
89632         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
89633         the bookkeeping indicates that it's worth it.
89634         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
89636         * modules/mbscasestr-tests: New file.
89637         * tests/test-mbscasestr1.c: New file.
89638         * tests/test-mbscasestr2.sh: New file.
89639         * tests/test-mbscasestr2.c: New file.
89640         * tests/test-mbscasestr3.sh: New file.
89641         * tests/test-mbscasestr3.c: New file.
89642         * tests/test-mbscasestr4.sh: New file.
89643         * tests/test-mbscasestr4.c: New file.
89644         * m4/locale-tr.m4: New file.
89646 2007-02-11  Bruno Haible  <bruno@clisp.org>
89648         Ensure O(n) worst-case complexity of mbsstr.
89649         * lib/mbsstr.c: Include stdbool.h.
89650         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
89651         functions.
89652         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
89653         bookkeeping indicates that it's worth it.
89654         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
89656         * modules/mbsstr-tests: New file.
89657         * tests/test-mbsstr1.c: New file.
89658         * tests/test-mbsstr2.sh: New file.
89659         * tests/test-mbsstr2.c: New file.
89660         * tests/test-mbsstr3.sh: New file.
89661         * tests/test-mbsstr3.c: New file.
89662         * m4/locale-fr.m4: New file.
89664 2007-02-11  Bruno Haible  <bruno@clisp.org>
89666         * lib/mbsrchr.c (mbsrchr): Fix bug.
89668         * modules/mbsrchr-tests: New file.
89669         * tests/test-mbsrchr.sh: New file.
89670         * tests/test-mbsrchr.c: New file.
89672 2007-02-11  Bruno Haible  <bruno@clisp.org>
89674         * lib/mbschr.c (mbschr): Fix bug.
89676         * modules/mbschr-tests: New file.
89677         * tests/test-mbschr.sh: New file.
89678         * tests/test-mbschr.c: New file.
89679         * m4/locale-zh.m4: New file.
89681 2007-02-11  Bruno Haible  <bruno@clisp.org>
89683         Support for copying multibyte string iterators.
89684         * lib/mbiter.h: Include <string.h>.
89685         (mbiter_multi_copy): New function.
89686         (mbi_copy): New macro.
89687         * lib/mbuiter.h: Include <string.h>.
89688         (mbuiter_multi_copy): New function.
89689         (mbui_copy): New macro.
89691 2007-02-11  Bruno Haible  <bruno@clisp.org>
89693         New module mbslen.
89694         * modules/mbslen: New file.
89695         * lib/mbslen.c: New file.
89696         * lib/string_.h (mbslen): New declaration.
89697         * m4/mbslen.m4: New file.
89698         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89699         GNULIB_MBSLEN.
89700         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
89701         * MODULES.html.sh (Internationalization functions): Add mbslen.
89703 2007-02-11  Bruno Haible  <bruno@clisp.org>
89705         Ensure O(n) worst-case complexity of strcasestr substitute.
89706         * lib/strcasestr.c: Include stdbool.h.
89707         (knuth_morris_pratt): New function.
89708         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
89709         bookkeeping indicates that it's worth it.
89710         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
89712         * modules/strcasestr-tests: New file.
89713         * tests/test-strcasestr.c: New file.
89715 2007-02-11  Bruno Haible  <bruno@clisp.org>
89717         Ensure O(n) worst-case complexity of c_strcasestr.
89718         * lib/c-strcasestr.c: Include stdbool.h, string.h.
89719         (knuth_morris_pratt): New function.
89720         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
89721         the bookkeeping indicates that it's worth it.
89722         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
89724         * modules/c-strcasestr-tests: New file.
89725         * tests/test-c-strcasestr.c: New file.
89727 2007-02-11  Bruno Haible  <bruno@clisp.org>
89729         Ensure O(n) worst-case complexity of c_strstr.
89730         * lib/c-strstr.c: Include stdbool.h, string.h.
89731         (knuth_morris_pratt): New function.
89732         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
89733         bookkeeping indicates that it's worth it.
89734         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
89736         * lib/c-strstr.c: Complete rewrite for maintainability.
89738         * modules/c-strstr-tests: New file.
89739         * tests/test-c-strstr.c: New file.
89741 2007-02-11  Bruno Haible  <bruno@clisp.org>
89743         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
89744         5.2.1 and earlier, whereby \055 was treated just like the range
89745         delimiter '-'.
89746         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
89748 2007-02-08  Bruno Haible  <bruno@clisp.org>
89750         * modules/regex (Depends-on): Add stdbool.
89751         Reported by Dalibor Topic <robilad@kaffe.org>.
89753 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
89755         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
89756         Prefer returning from main to exiting from it.
89757         Remove unnecessary parens after sizeof.
89759 2007-02-05  Bruno Haible  <bruno@clisp.org>
89761         New module mbssep.
89762         * modules/mbssep: New file.
89763         * lib/mbssep.c: New file.
89764         * lib/string_.h (strsep): Add a conditional link warning.
89765         (mbssep): New declaration.
89766         * m4/mbssep.m4: New file.
89767         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89768         GNULIB_MBSSEP.
89769         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
89770         * MODULES.html.sh (Internationalization functions): Add mbssep.
89772 2007-02-05  Bruno Haible  <bruno@clisp.org>
89774         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
89775         Optimize search in case of 1 delimiter.
89777 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
89779         * lib/acl.h: Include sys/types.h before sys/acl.h.
89781 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
89783         Merge upstream fix for glibc bugzilla #3957:
89785         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
89787         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
89788         bit for RE_HAT_LISTS_NOT_NEWLINE.
89789         (build_charclass_op): Remove bogus comment.
89791 2007-02-05  Simon Josefsson  <simon@josefsson.org>
89793         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
89795 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
89797         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
89798         * lib/memmem.c [!defined _LIBC]: Include config.h.
89800 2007-02-04  Bruno Haible  <bruno@clisp.org>
89802         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
89803         warning message.
89805 2007-02-04  Bruno Haible  <bruno@clisp.org>
89807         New module mbstok_r.
89808         * modules/mbstok_r: New file.
89809         * lib/mbstok_r.c: New file.
89810         * lib/string_.h (strtok_r): Change argument names to match the
89811         comments. Add a conditional link warning.
89812         (mbstok_r): New declaration.
89813         * m4/mbstok_r.m4: New file.
89814         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89815         GNULIB_MBSTOK_R.
89816         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
89817         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
89819 2007-02-04  Bruno Haible  <bruno@clisp.org>
89821         New module mbsspn.
89822         * modules/mbsspn: New file.
89823         * lib/mbsspn.c: New file.
89824         * lib/string_.h (strspn): Add a conditional link warning.
89825         (mbsspn): New declaration.
89826         * m4/mbsspn.m4: New file.
89827         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89828         GNULIB_MBSSPN.
89829         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
89830         * MODULES.html.sh (Internationalization functions): Add mbsspn.
89832 2007-02-04  Bruno Haible  <bruno@clisp.org>
89834         New module mbspbrk.
89835         * modules/mbspbrk: New file.
89836         * lib/mbspbrk.c: New file.
89837         * lib/string_.h (strpbrk): Add a conditional link warning.
89838         (mbspbrk): New declaration.
89839         * m4/mbspbrk.m4: New file.
89840         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89841         GNULIB_MBSPBRK.
89842         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
89843         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
89845 2007-02-04  Bruno Haible  <bruno@clisp.org>
89847         New module mbscspn.
89848         * modules/mbscspn: New file.
89849         * lib/mbscspn.c: New file.
89850         * lib/string_.h (strcspn): Add a conditional link warning.
89851         (mbscspn): New declaration.
89852         * m4/mbscspn.m4: New file.
89853         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89854         GNULIB_MBSCSPN.
89855         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
89856         * MODULES.html.sh (Internationalization functions): Add mbscspn.
89858 2007-02-04  Bruno Haible  <bruno@clisp.org>
89860         New module mbscasestr, reduced goal of strcasestr.
89861         * modules/mbscasestr: New file.
89862         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
89863         (mbscasestr): Renamed from strcasestr.
89864         * lib/strcasestr.c: Don't include mbuiter.h.
89865         (strcasestr): Remove support for multibyte locales.
89866         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
89867         Change the conditional link warning.
89868         (mbscasestr): New declaration.
89869         * m4/mbscasestr.m4: New file.
89870         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
89871         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
89872         REPLACE_STRCASESTR.
89873         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
89874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89875         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
89876         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
89877         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
89878         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
89879         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
89880         (Depends-on): Remove mbuiter.
89881         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
89883 2007-02-04  Bruno Haible  <bruno@clisp.org>
89885         Simplify handling of strncasecmp.
89886         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
89887         the conditional link warning.
89888         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89889         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
89890         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
89891         * modules/strcase (configure.ac): Don't invoke
89892         gl_STRING_MODULE_INDICATOR.
89893         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
89895 2007-02-04  Bruno Haible  <bruno@clisp.org>
89897         New module mbscasecmp, reduced goal of strcasecmp.
89898         * modules/mbscasecmp: New file.
89899         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
89900         (mbscasecmp): Renamed from strcasecmp.
89901         * lib/strcasecmp.c: Don't include mbuiter.h.
89902         (strcasecmp): Remove support for multibyte locales.
89903         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
89904         Change the conditional link warning.
89905         (mbscasecmp): New declaration.
89906         * m4/mbscasecmp.m4: New file.
89907         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
89908         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
89909         REPLACE_STRCASECMP.
89910         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
89911         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89912         GNULIB_MBSCASECMP.
89913         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
89914         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
89915         * modules/strcase (Files): Remove m4/mbrtowc.m4.
89916         (Depends-on): Remove mbuiter.
89917         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
89919 2007-02-04  Bruno Haible  <bruno@clisp.org>
89921         New module mbsstr. Remove module strstr.
89922         * modules/mbsstr: New file.
89923         * modules/strstr: Remove file.
89924         * lib/mbsstr.c: Renamed from lib/strstr.c.
89925         (mbsstr): Renamed from strstr.
89926         * lib/string_.h (strstr): Remove declaration. Change the conditional
89927         link warning.
89928         (mbsstr): New declaration.
89929         * m4/mbsstr.m4: New file.
89930         * m4/strstr.m4: Remove file.
89931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
89932         REPLACE_STRSTR.
89933         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
89934         Don't initialize GNULIB_STRSTR.
89935         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
89936         substitute GNULIB_STRSTR and REPLACE_STRSTR.
89937         * MODULES.html.sh (Internationalization functions): Add mbsstr.
89938         (Support for systems lacking ANSI C 89): Remove strstr.
89940 2007-02-04  Bruno Haible  <bruno@clisp.org>
89942         New module mbsrchr.
89943         * modules/mbsrchr: New file.
89944         * lib/mbsrchr.c: New file.
89945         * lib/string_.h (strrchr): Add a conditional link warning.
89946         (mbsrchr): New declaration.
89947         * m4/mbsrchr.m4: New file.
89948         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89949         GNULIB_MBSRCHR.
89950         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
89951         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
89953 2007-02-04  Bruno Haible  <bruno@clisp.org>
89955         New module mbschr.
89956         * modules/mbschr: New file.
89957         * lib/mbschr.c: New file.
89958         * lib/string_.h (strchr): Add a conditional link warning.
89959         (mbschr): New declaration.
89960         * m4/mbschr.m4: New file.
89961         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89962         GNULIB_MBSCHR.
89963         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
89964         * MODULES.html.sh (Internationalization functions): Add mbschr.
89966 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
89968         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
89970         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
89972 2007-02-04  Bruno Haible  <bruno@clisp.org>
89974         New module description section 'configure.ac-early'.
89975         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
89976         (func_get_autoconf_early_snippet): New function.
89977         (func_import, func_create_testdir): Use it. Remove special cases for
89978         modules 'extensions' and 'lock'.
89979         * modules/extensions (configure.ac-early): Require
89980         gl_USE_SYSTEM_EXTENSIONS.
89981         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
89983 2007-02-04  Bruno Haible  <bruno@clisp.org>
89985         Make use of gcj-4.3's -fsource and -ftarget option.
89986         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
89987         and if so try the options -fsource and -ftarget.
89988         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
89989         source_version, ftarget_option, target_version arguments.
89990         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
89991         (is_envjavac_oldgcj_14_14_usable): Renamed from
89992         is_envjavac_gcj_14_14_usable.
89993         (is_envjavac_oldgcj_14_13_usable): Renamed from
89994         is_envjavac_gcj_14_13_usable.
89995         (is_gcj_present): Update.
89996         (is_gcj_43, is_gcj43_usable): New functions.
89997         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
89998         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
89999         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
90000         try the options -fsource and -ftarget.
90002 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
90004         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
90005         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
90006         larger value.
90008 2007-02-03  Jim Meyering  <jim@meyering.net>
90010         Give tools a better chance to allocate space for very large buffers.
90011         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
90013         Make pwd and readlink work also when run with an unreadable parent dir
90014         on systems with openat support.
90015         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
90016         provided getcwd function, even when we have openat support.
90017         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
90019 2007-02-02  Bruno Haible  <bruno@clisp.org>
90021         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
90022         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
90023         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
90024         portability problems if one of these functions is only used on specific
90025         platforms.
90026         Reported by Paul Eggert.
90028 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
90030         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
90031         is causing more trouble than it's curing.
90032         * lib/regex_internal.h (__mempcpy): Remove.
90033         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
90034         (and make the code a tad smaller to boot).
90035         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
90037 2007-02-02  Jim Meyering  <jim@meyering.net>
90039         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
90040         section, not in the Makefile.am: one.
90042 2007-02-02  Eric Blake  <ebb9@byu.net>
90044         * lib/strchrnul.c: Always include config.h first.
90046         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
90047         gnulib strstr is not necessary here.
90049 2007-02-02  Simon Josefsson  <simon@josefsson.org>
90051         * m4/socklen.m4: Fix typo.
90053 2007-02-02  Eric Blake  <ebb9@byu.net>
90055         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
90056         * modules/netinet_in (Makefile.am): Likewise.
90058 2007-02-01  Bruno Haible  <bruno@clisp.org>
90060         * lib/string_.h (GL_LINK_WARNING): New macro.
90061         (strcasecmp, strstr, strcasestr): If provided by the system,
90062         conditionally define as a macro that leads to a warning instead of to
90063         an error.
90064         (strncasecmp): Conditionally define as a macro that leads to a warning.
90066 2007-02-01  Karl Berry  <karl@gnu.org>
90068         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
90070 2007-02-01  Bruno Haible  <bruno@clisp.org>
90072         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
90073         renamings.
90075 2007-02-01  Eric Blake  <ebb9@byu.net>
90077         * modules/regex (Depends-on): Revert dependence on mempcpy.
90078         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
90079         module's definition of mempcpy.
90080         Reported by Paul Eggert.
90082 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
90084         * lib/string_.h: If the gnulib module XYZ is not present, undefine
90085         the symbol XYZ before redefining it.  This fixes a problem with
90086         programs that don't use XYZ, when compiled on systems that define
90087         XYZ to something else.
90089 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
90091         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
90092         occurs when "mkdir -m foo" creates a setgid directory that is (1)
90093         writeable to group or other and (2) is intended to have a special
90094         mode bit that is set or cleared.  In such a case, the directory
90095         should be neither group- nor other-writeable until the special
90096         mode bits are right.
90098 2007-01-31  Eric Blake  <ebb9@byu.net>
90100         * modules/mountlist (Depends-on): Add strstr.
90102         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
90103         bug.
90104         * modules/string (Makefile.am): Remove redundant replacement.
90105         * modules/regex (Depends-on): Add mempcpy.
90107 2007-01-31  Bruno Haible  <bruno@clisp.org>
90109         New module description field 'Link'.
90110         * gnulib-tool (func_usage): Document --extract-link-directive.
90111         (sed_extract_prog): Recognize 'Link' directive.
90112         (func_get_link_directive): New function.
90113         (func_import): Show summary of link directives.
90114         Handle --extract-link-directive option.
90115         * modules/acl (Link): New section.
90116         * modules/clock-time (Link): New section.
90117         * modules/euidaccess (Link): New section.
90118         * modules/gettext (Link): New section.
90119         * modules/iconv (Link): New section.
90120         * modules/lock (Link): New section.
90121         * modules/nanosleep (Link): New section.
90122         * modules/readline (Link): New section.
90124 2007-01-27  Bruno Haible  <bruno@clisp.org>
90126         Enforce the use of gnulib modules for unportable <string.h> functions.
90127         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
90128         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
90129         (gl_HEADER_STRING_H_BODY): Require it.
90130         * lib/string_.h: If the gnulib module XYZ is not present, redefine
90131         the symbol XYZ to one that gives a link error.
90132         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
90133         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
90134         * modules/mempcpy (configure.ac): Likewise.
90135         * modules/memrchr (configure.ac): Likewise.
90136         * modules/stpcpy (configure.ac): Likewise.
90137         * modules/stpncpy (configure.ac): Likewise.
90138         * modules/strcase (configure.ac): Likewise.
90139         * modules/strcasestr (configure.ac): Likewise.
90140         * modules/strchrnul (configure.ac): Likewise.
90141         * modules/strdup (configure.ac): Likewise.
90142         * modules/strndup (configure.ac): Likewise.
90143         * modules/strnlen (configure.ac): Likewise.
90144         * modules/strpbrk (configure.ac): Likewise.
90145         * modules/strsep (configure.ac): Likewise.
90146         * modules/strstr (configure.ac): Likewise.
90147         * modules/strtok_r (configure.ac): Likewise.
90149 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
90151         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
90153 2007-01-30  Jim Meyering  <jim@meyering.net>
90155         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
90157 2007-01-29  Bruno Haible  <bruno@clisp.org>
90159         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
90160         * lib/execute.c: Likewise.
90161         * lib/pipe.c: Likewise.
90162         * lib/printf-args.h: Likewise.
90163         * lib/printf-args.c: Likewise.
90164         * lib/printf-parse.c: Likewise.
90165         * lib/vasnprintf.c: Likewise.
90167 2007-01-29  Eric Blake  <ebb9@byu.net>
90169         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
90170         declaration.
90172 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
90174         * lib/strptime.h (strptime): Use 'restrict' for args where
90175         POSIX requires this.
90176         * lib/strptime.c (strptime): Likewise.
90177         Change license notice from LGPL to GPL, since gnulib-tool will
90178         change this as needed.
90179         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
90180         defined.
90181         Include "strptime.h" first, to check interface.
90182         Do not #undef _LIBC and _NL_CURRENT.
90183         Do not include <stdlib.h>; no longer needed.
90184         Include "time_r.h" and declare ptime_locale_status
90185         only if _LIBC is not defined.
90186         (__P): Remove unused macro.
90187         (match_string): Bring back glibc version, but use it only if _LIBC
90188         is defined.
90189         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
90190         Remove unnecessary assertion and abort() call.
90191         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
90192         * m4/strptime.m4: Fix serial number comment.
90193         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
90194         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
90195         (Depends-on): Add time_r.
90197 2007-01-29  Bruno Haible  <bruno@clisp.org>
90199         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90200         strptime.
90201         * modules/strptime (Depends-on): Add stdbool.
90202         * lib/strptime.h: Include <time.h> always. Add comments.
90204 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90206         * modules/strptime: New file.
90207         * lib/strptime.h: New file.
90208         * lib/strptime.c: New file.
90209         * m4/strptime.m4: New file.
90211 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
90213         * MODULES.html.sh: New module mpsort.
90214         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
90216         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
90217         a circularity problem with HP-UX ia64 reported by Bob Proulx in
90218         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
90219         All uses changed.
90220         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
90221         All uses changed.
90222         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
90223         to _Restrict_.
90224         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
90225         the parameter matches the prototype.
90227 2007-01-28  Jim Meyering  <jim@meyering.net>
90229         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
90230         sys/time.h here, reverting that part of the previous patch:
90231         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
90233 2007-01-28  Bruno Haible  <bruno@clisp.org>
90235         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
90236         value of $(SYS_TIME_H).
90237         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
90238         remove it conditionally, too. [added by Jim Meyering]
90239         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
90240         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
90241         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
90242         GETTIMEOFDAY_REPLACEMENT to 1.
90244 2007-01-28  Bruno Haible  <bruno@clisp.org>
90246         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
90247         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
90248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
90249         Set UNISTD_H instead of UNISTD_H2.
90250         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
90252 2007-01-28  Bruno Haible  <bruno@clisp.org>
90254         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
90255         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
90257 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90259         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
90260         (func_create_testdir): Ensure C locale for `grep' and `tr'
90261         character ranges.
90262         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
90263         ACLOCAL_AMFLAGS parsing state machine.
90265 2007-01-27  Bruno Haible  <bruno@clisp.org>
90267         * modules/unistr/base: Update.
90269 2007-01-27  Bruno Haible  <bruno@clisp.org>
90271         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
90272         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
90273         * modules/unistr/u32-mbtouc-unsafe: Renamed from
90274         modules/unistr/u32-mbtouc.
90275         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
90276         * lib/unistr.h: Update.
90277         * lib/linebreak.c: Update.
90278         * modules/unistr/u32-mbtouc: Renamed from
90279         modules/unistr/u32-mbtouc-safe.
90280         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
90281         * lib/unistr.h: Update.
90282         * lib/unistr/u32-to-u8.c: Update.
90283         * lib/unistr/u32-to-u16.c: Update.
90285 2007-01-27  Bruno Haible  <bruno@clisp.org>
90287         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
90288         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
90289         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
90290         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
90291         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
90292         * modules/unistr/u16-mbtouc-unsafe: Renamed from
90293         modules/unistr/u16-mbtouc.
90294         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
90295         * lib/unistr.h: Update.
90296         * lib/linebreak.c: Update.
90297         * modules/linebreak: Update.
90298         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
90299         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
90300         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
90301         * modules/unistr/u16-mbtouc: Renamed from
90302         modules/unistr/u16-mbtouc-safe.
90303         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
90304         * lib/unistr.h: Update.
90305         * lib/unistr/u16-to-u8.c: Update.
90306         * modules/unistr/u16-to-u8: Update.
90307         * lib/unistr/u16-to-u32.c: Update.
90308         * modules/unistr/u16-to-u32: Update.
90310 2007-01-27  Bruno Haible  <bruno@clisp.org>
90312         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
90313         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
90314         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
90315         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
90316         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
90317         * modules/unistr/u8-mbtouc-unsafe: Renamed from
90318         modules/unistr/u8-mbtouc.
90319         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
90320         * lib/unistr.h: Update.
90321         * lib/striconveh.c: Update.
90322         * modules/striconveh: Update.
90323         * lib/linebreak.c: Update.
90324         * modules/linebreak: Update.
90325         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
90326         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
90327         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
90328         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
90329         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
90330         * lib/unistr.h: Update.
90331         * lib/striconveh.c: Update.
90332         * modules/striconveh: Update.
90333         * lib/unistr/u8-to-u16.c: Update.
90334         * modules/unistr/u8-to-u16: Update.
90335         * lib/unistr/u8-to-u32.c: Update.
90336         * modules/unistr/u8-to-u32: Update.
90338 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90340         Sync from Libtool.
90341         * lib/argz.c: Do not include strings.h nor memory.h, include
90342         string.h unconditionally.  Patch by Simon Josefsson.
90344 2007-01-27  Bruno Haible  <bruno@clisp.org>
90346         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
90347         from gl_HEADER_STRING_H_BODY.
90348         (gl_HEADER_STRING_H_BODY): Require it.
90349         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
90350         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
90351         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
90352         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
90353         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
90354         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
90355         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90356         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
90357         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
90358         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
90359         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
90360         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
90361         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
90362         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90363         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
90365 2007-01-27  Bruno Haible  <bruno@clisp.org>
90367         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
90368         check_PROGRAMS into noinst_PROGRAMS.
90369         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
90370         check_PROGRAMS in this case.
90371         (func_import): Set for_test to false.
90372         (func_create_testdir): Set for_test to true.
90374 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90375             Bruno Haible  <bruno@clisp.org>
90377         * modules/strcasestr (Files): Remove lib/strcasestr.h.
90378         (Depends-on): Add string.
90379         (Includes): Use <string.h> instead of strcasestr.h.
90380         * modules/string (Makefile.am): Also substitute the value of
90381         REPLACE_STRCASESTR.
90382         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
90383         assume strcasestr is declared in <string.h> not <strings.h>. Also
90384         set REPLACE_STRCASESTR.
90385         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
90386         REPLACE_STRCASESTR.
90387         * lib/strcasestr.h: Remove file.
90388         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
90389         * lib/string_.h (strcasestr): New declaration.
90391 2007-01-27  Bruno Haible  <bruno@clisp.org>
90393         * lib/string_.h: Use 'extern'.
90395 2007-01-27  Jim Meyering  <jim@meyering.net>
90397         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
90398         of set-but-not-used local, "q".
90400         * lib/mempcpy.c: Include <config.h> before <string.h>.
90401         This fixes a compilation error on HP-UX, due to the system's
90402         "restrict"-using mempcpy prototype.
90404 2007-01-26  Bruno Haible  <bruno@clisp.org>
90406         Small optimization.
90407         * lib/javacomp.c: Include c-strstr.h.
90408          (is_envjavac_gcj): Use c_strstr instead of strstr.
90409         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
90411 2007-01-26  Bruno Haible  <bruno@clisp.org>
90413         * MODULES.html.sh (Unicode string functions): Add the new modules.
90415         * modules/uniconv/u32-strconv-to-locale: New file.
90416         * lib/uniconv/u32-strconv-to-locale.c: New file.
90418         * modules/uniconv/u16-strconv-to-locale: New file.
90419         * lib/uniconv/u16-strconv-to-locale.c: New file.
90421         * modules/uniconv/u8-strconv-to-locale: New file.
90422         * lib/uniconv/u8-strconv-to-locale.c: New file.
90424         * modules/uniconv/u32-strconv-from-locale: New file.
90425         * lib/uniconv/u32-strconv-from-locale.c: New file.
90427         * modules/uniconv/u16-strconv-from-locale: New file.
90428         * lib/uniconv/u16-strconv-from-locale.c: New file.
90430         * modules/uniconv/u8-strconv-from-locale: New file.
90431         * lib/uniconv/u8-strconv-from-locale.c: New file.
90433         * modules/uniconv/u32-strconv-to-enc: New file.
90434         * lib/uniconv/u32-strconv-to-enc.c: New file.
90435         * modules/uniconv/u32-strconv-to-enc-tests: New file.
90436         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
90438         * modules/uniconv/u16-strconv-to-enc: New file.
90439         * lib/uniconv/u16-strconv-to-enc.c: New file.
90440         * lib/uniconv/u-strconv-to-enc.h: New file.
90441         * modules/uniconv/u16-strconv-to-enc-tests: New file.
90442         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
90444         * modules/uniconv/u8-strconv-to-enc: New file.
90445         * lib/uniconv/u8-strconv-to-enc.c: New file.
90446         * modules/uniconv/u8-strconv-to-enc-tests: New file.
90447         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
90449         * modules/uniconv/u32-strconv-from-enc: New file.
90450         * lib/uniconv/u32-strconv-from-enc.c: New file.
90451         * modules/uniconv/u32-strconv-from-enc-tests: New file.
90452         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
90454         * modules/uniconv/u16-strconv-from-enc: New file.
90455         * lib/uniconv/u16-strconv-from-enc.c: New file.
90456         * modules/uniconv/u16-strconv-from-enc-tests: New file.
90457         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
90459         * modules/uniconv/u8-strconv-from-enc: New file.
90460         * lib/uniconv/u8-strconv-from-enc.c: New file.
90461         * lib/uniconv/u-strconv-from-enc.h: New file.
90462         * modules/uniconv/u8-strconv-from-enc-tests: New file.
90463         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
90465         * modules/uniconv/u32-conv-from-enc: New file.
90466         * lib/uniconv/u32-conv-from-enc.c: New file.
90467         * modules/uniconv/u32-conv-from-enc-tests: New file.
90468         * tests/uniconv/test-u32-conv-from-enc.c: New file.
90470         * modules/uniconv/u16-conv-from-enc: New file.
90471         * lib/uniconv/u16-conv-from-enc.c: New file.
90472         * lib/uniconv/u-conv-from-enc.h: New file.
90473         * modules/uniconv/u16-conv-from-enc-tests: New file.
90474         * tests/uniconv/test-u16-conv-from-enc.c: New file.
90476         * modules/uniconv/u8-conv-from-enc: New file.
90477         * lib/uniconv/u8-conv-from-enc.c: New file.
90478         * modules/uniconv/u8-conv-from-enc-tests: New file.
90479         * tests/uniconv/test-u8-conv-from-enc.c: New file.
90481         * modules/uniconv/base: New file.
90482         * lib/uniconv.h: New file.
90484 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
90486         * doc/gnulib-tool.texi (Initial import): Update to match current
90487         behavior with strdup module.
90488         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
90489         * lib/memmem.h: Remove; all uses removed.  This is now done
90490         by <string.h>.
90491         * lib/mempcpy.h: Likewise.
90492         * lib/memrchr.h: Likewise.
90493         * lib/stpcpy.h: Likewise.
90494         * lib/stpncpy.h: Likewise.
90495         * lib/strcase.h: Likewise.
90496         * lib/strchrnul.h: Likewise.
90497         * lib/strdup.h: Likewise.
90498         * lib/strndup.h: Likewise.
90499         * lib/strnlen.h: Likewise.
90500         * lib/strpbrk.h: Likewise.
90501         * lib/strsep.h: Likewise.
90502         * lib/strstr.h: Likewise.
90503         * lib/strtok_r.h: Likewise.
90504         * lib/string_.h: New file.
90505         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
90506         Rely on <string.h> instead.
90507         * lib/canon-host.c: Likewise.
90508         * lib/chdir-long.c: Likewise.
90509         * lib/concatpath.c: Likewise.
90510         * lib/exclude.c: Likewise.
90511         * lib/fchdir.c: Likewise.
90512         * lib/getaddrinfo.c: Likewise.
90513         * lib/getcwd.c: Likewise.
90514         * lib/getsubopt.c: Likewise.
90515         * lib/glob.c: Likewise.
90516         * lib/hard-locale.c: Likewise.
90517         * lib/iconvme.c: Likewise.
90518         * lib/javacomp.c: Likewise.
90519         * lib/mempcpy.c: Likewise.
90520         * lib/memrchr.c: Likewise.
90521         * lib/regex_internal.h: Likewise.
90522         * lib/stpncpy.c: Likewise.
90523         * lib/strcasecmp.c: Likewise.
90524         * lib/strchrnul.c: Likewise.
90525         * lib/strdup.c: Likewise.
90526         * lib/striconv.c: Likewise.
90527         * lib/striconveh.c: Likewise.
90528         * lib/striconveha.c: Likewise.
90529         * lib/strncasecmp.c: Likewise.
90530         * lib/strndup.c: Likewise.
90531         * lib/strnlen.c: Likewise.
90532         * lib/strsep.c: Likewise.
90533         * lib/strstr.c: Likewise.
90534         * lib/strtok_r.c: Likewise.
90535         * lib/userspec.c: Likewise.
90536         * lib/w32spawn.h: Likewise.
90537         * lib/xstrndup.c: Likewise.
90538         * lib/mountlist.c (strstr): Remove decl.
90539         * m4/string_h.m4: New file.
90540         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
90541         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
90542         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
90543         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
90544         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
90545         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
90546         Set REPLACE_STRCASECMP if necessary.
90547         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
90548         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
90549         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
90550         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
90551         HAVE_DECL_STRDUP if necessary.
90552         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
90553         since gl_FUNC_STRNDUP does that now.
90554         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
90555         Check for decl here...
90556         (gl_PREREQ_STRNLEN): ... not here.
90557         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
90558         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
90559         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
90560         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
90561         necessary.
90562         * modules/string: New file.
90563         * modules/memmem (Files): Remove special-purpose include file.
90564         (Depends-on): Add string.
90565         (Include): Include <string.h>, not the removed file.
90566         * modules/mempcpy: Likewise.
90567         * modules/memrchr: Likewise.
90568         * modules/stpcpy: Likewise.
90569         * modules/stpncpy: Likewise.
90570         * modules/strcase: Likewise.
90571         * modules/strchrnul: Likewise.
90572         * modules/strdup: Likewise.
90573         * modules/strndup: Likewise.
90574         * modules/strnlen: Likewise.
90575         * modules/strpbrk: Likewise.
90576         * modules/strsep: Likewise.
90577         * modules/strstr: Likewise.
90578         * modules/strtok_r: Likewise.
90579         * tests/test-dirname.c: Don't include "strdup.h", since
90580         <string.h> now suffices.
90581         * tests/test-memmem.c: Don't include "memmem.h", since
90582         <string.h> now suffices.
90584 2007-01-25  Bruno Haible  <bruno@clisp.org>
90586         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
90587         *resultp is 0.
90589         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
90590         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
90591         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
90592         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
90594         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
90595         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
90596         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
90597         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
90598         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
90599         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
90601 2007-01-24  Bruno Haible  <bruno@clisp.org>
90603         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
90604         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
90605         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
90606         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
90607         gl_FUNC_FTS_CORE.
90608         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
90609         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
90610         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90611         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
90612         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
90613         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
90614         gl_FUNC_FCHOWNAT.
90615         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
90616         gl_FUNC_STRFTIME.
90617         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
90618         Reported by Ralf Wildenhues.
90620 2007-01-24  Bruno Haible  <bruno@clisp.org>
90622         Drop AC_REQUIRE calls that are redundant with the module dependencies.
90623         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
90624         gl_GETADDRINFO.
90625         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
90626         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
90627         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
90629 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
90631         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
90632         Don't use 'exit'; just return from 'main'.
90633         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
90635         * lib/fnmatch_.h: Readjust white space and comments to match
90636         glibc, to avoid spurious diffs.
90638 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
90640         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
90641         2004-12-01 change by Jakub Jelinek, since this code won't compile
90642         if !LIBC.  Problem reported by Bob Proulx.
90644 2007-01-23  Bruno Haible  <bruno@clisp.org>
90646         * lib/striconveh.c: Include c-strcaseeq.h.
90647         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
90648         * modules/striconveh (Depends-on): Add c-strcaseeq.
90650 2007-01-23  Bruno Haible  <bruno@clisp.org>
90652         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
90654         * modules/c-strcaseeq: New file.
90655         * lib/c-strcaseeq.h: New file.
90657         * modules/streq: New file.
90658         * lib/streq.h: New file.
90660 2007-01-23  Bruno Haible  <bruno@clisp.org>
90662         * modules/striconveha-tests: New file.
90663         * tests/test-striconveha.c: New file.
90665         * lib/striconveha.h: Include <stdbool.h>.
90666         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
90667         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
90668         (mem_iconveha_notranslit): Renamed from mem_iconveha.
90669         (mem_iconveha): New function.
90670         (str_iconveha_notranslit): Renamed from str_iconveha.
90671         (str_iconveha): New function.
90672         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
90673         c-strcase.
90675 2007-01-23  Bruno Haible  <bruno@clisp.org>
90677         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
90678         encodings without forgiving before trying any encoding with handler.
90679         (str_iconveha): Try all encodings without forgiving before trying any
90680         encoding with handler.
90682 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
90684         Import the following changes from libc.
90686         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
90688         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
90690         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
90692         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
90693         normal_bracket label.
90695         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
90697         [BZ #361]
90698         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
90699         to normal_bracket after fetching the next character.
90701 2007-01-22  Bruno Haible  <bruno@clisp.org>
90703         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
90704         argument.
90705         * lib/striconveh.c (iconv_carefully_1): New function.
90706         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
90707         argument.
90708         (str_cd_iconveh): Update.
90709         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
90710         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
90711         * tests/test-striconveh.c (MAGIC): New macro.
90712         (new_offsets): New function.
90713         (main): Test call with and without offsets.
90715 2007-01-22  Bruno Haible  <bruno@clisp.org>
90717         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
90718         * modules/sys_select (Makefile.am): Likewise.
90719         * modules/sys_socket (Makefile.am): Likewise.
90720         * modules/sys_time (Makefile.am): Likewise.
90722 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
90724         * modules/gettimeofday (License): Change from GPL to LGPL, since
90725         gettimeofday is a library function.
90727 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90729         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
90731 2007-01-21  Bruno Haible  <bruno@clisp.org>
90733         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
90735 2007-01-21  Bruno Haible  <bruno@clisp.org>
90737         * modules/striconveha: New file.
90738         * lib/striconveha.h: New file.
90739         * lib/striconveha.c: New file.
90740         * MODULES.html.sh (Internationalization functions): Add striconveha.
90741         * lib/striconv.c (str_iconv): Optimize the case of an empty input
90742         string.
90743         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
90745 2007-01-21  Bruno Haible  <bruno@clisp.org>
90747         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
90748         * lib/striconveh.c (str_iconveh): Likewise.
90750 2007-01-21  Bruno Haible  <bruno@clisp.org>
90752         * lib/striconveh.h (mem_iconveh): New declaration.
90753         * lib/striconveh.c (mem_iconveh): New function.
90754         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
90756 2007-01-21  Bruno Haible  <bruno@clisp.org>
90758         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
90760         * lib/striconveh.h (mem_cd_iconveh): Change specification.
90761         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
90762         original result buffer.
90763         (str_cd_iconveh): Update.
90764         * tests/test-striconveh.c (main): Update.
90766         * lib/striconv.h (mem_cd_iconv): Change specification.
90767         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
90768         result buffer.
90769         (str_cd_iconv): Update.
90770         * tests/test-striconv.c (main): Update.
90772 2007-01-21  Bruno Haible  <bruno@clisp.org>
90774         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
90776 2007-01-20  Jim Meyering  <jim@meyering.net>
90778         * lib/userspec.c (parse_with_separator): If a user or group string
90779         starts with "+", skip the corresponding name-to-ID look-up, since
90780         such a look-up must fail: user and group names may not include "+".
90782 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
90784         * lib/poll.c: Include sys/time.h and time.h unconditionally,
90785         since we now assume the sys_time module.
90786         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
90787         check for sys/time.h; no longer needed.
90788         * modules/poll (Depends-on): Depend on sys_time.
90790 2007-01-18  Bruno Haible  <bruno@clisp.org>
90792         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
90793         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
90795         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
90796         gettimeofday.
90798         * tests/test-gettimeofday.c: Include <time.h>.
90799         (dummy): Remove variable.
90801         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
90802         gl_HEADER_SYS_TIME_H.
90803         (gl_HEADER_SYS_TIME_H): New macro.
90805         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
90806         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90807         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
90808         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
90809         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90810         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
90811         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
90812         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90813         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
90814         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
90815         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90817         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
90818         last change; it caused a compilation error when cross-compiling to
90819         Cygwin.
90821 2007-01-18  Jim Meyering  <jim@meyering.net>
90823         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
90824         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
90825         than the race-prone "test -d sys || mkdir sys".
90826         (configure.ac): Use AC_PROG_MKDIR_P.
90827         * modules/sys_select: Likewise.
90828         * modules/sys_socket: Likewise.
90829         * modules/sys_time: Likewise.
90831 2007-01-18  Eric Blake  <ebb9@byu.net>
90833         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
90834         replace gettimeofday.
90835         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
90836         name, to avoid infinite recursion.
90838 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
90840         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
90841         module sys_time.
90842         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
90843         assume timespec.h defines struct timeval.
90844         * lib/settime.c: Likewise.
90845         * lib/utimens.c: Likewise.
90846         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
90847         since we now assume the gettimeofday module.
90848         * lib/tempname.c (__gen_tempname): Likewise.
90849         * lib/gettimeofday.h: Remove.
90850         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
90851         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
90852         Include <time.h>, for 'time()'.
90853         (localtime_buffer_addr): Also use this workaround if
90854         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
90855         to simplify the uses.  All uses changed.
90856         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
90857         that #undef is inside {}, and 'const' follows type name consistently.
90858         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
90859         (gettimeofday): Do not use the maximum possible value for
90860         tv->tv_usec, since that might break usages other than ls.c.
90861         Instead, we'll leave ls.c alone.  This undoes today's patch
90862         by Bruno.  Add a compile-time warning for 1s-clock resolution;
90863         we've never observed the problem but might as well keep the
90864         canary.
90865         * lib/nanosleep.c: Include timespec.h first, for interface check.
90866         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
90867         now assume the sys_time module.
90868         * lib/tempname.c: Likewise.
90869         * lib/timespec.h: Likewise.
90870         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
90871         needed.
90872         * lib/strftime.c: Likewise.
90873         * lib/timespec.h: Likewise.
90874         * lib/posixtm.c: Include posixtm.h first, for interface check.
90875         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
90876         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
90877         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
90878         * lib/sys_time_.h: New file.
90879         * lib/timespec.h (struct timespec): Use long int, not long.
90880         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
90881         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
90882         Remove obsolescent call to AC_HEADER_TIME.
90883         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
90884         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
90885         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
90886         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
90887         Likewise.
90888         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
90889         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
90890         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
90891         into the sys_time module.  Check for gettimeofday just once.
90892         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
90893         for gettimeofday signature to just check the signature.  Merely
90894         compile it, since linking doesn't test signature.  Improve test for
90895         whether gettimeofday.o is actually needed.
90896         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
90897         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
90898         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
90899         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90900         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
90901         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
90902         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
90903         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
90904         than worrying about sys/time.h.
90905         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
90906         Don't bother worrying about TIME_WITH_SYS_TIME.
90907         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
90908         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
90909         * m4/sys_time_h.m4: New file.
90910         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
90911         Don't include sys/time.h.  Return from main rather than exiting.
90912         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
90913         all uses changed.
90914         * modules/gethrxtime (Depends-on): Add sys_time.
90915         * modules/gettime (Depends-on): Likewise.
90916         * modules/gettimeofday (Depends-on): Likewise.
90917         * modules/nanosleep (Depends-on): Likewise.
90918         * modules/settime (Depends-on): Likewise.
90919         * modules/tempname (Depends-on): Likewise.
90920         * modules/utimens (Depends-on): Likewise.
90921         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
90922         (Include): Change back to <sys/time.h>.
90923         (Maintainer): Add self.
90924         * modules/sys_time: New file.
90925         * modules/tempname (Depends-on): Add gettimeofday.
90926         * tests/test-gettimeofday.c: Include <sys/time.h>
90927         rather than gettimeofday.h.
90929 2007-01-17  Bruno Haible  <bruno@clisp.org>
90931         * gnulib-tool (func_get_license): Revert last patch. Instead, let
90932         the license default to GPL.
90933         (func_create_testdir): Don't complain if a module is LGPL and its
90934         tests module depends on GPLed modules.
90936 2007-01-17  Bruno Haible  <bruno@clisp.org>
90938         * lib/gettimeofday.c (gettimeofday): Add code for the case
90939         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
90940         maximum possible value for tv->tv_usec, rather than the minimum one.
90942 2005-10-08  Martin Lambers  <marlam@marlam.de>
90943 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
90944 2007-01-16  Bruno Haible  <bruno@clisp.org>
90946         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
90947         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
90948         gl_FUNC_GETTIMEOFDAY.
90949         (Include): Add gettimeofday.h.
90950         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
90951         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
90952         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
90953         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
90954         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
90955         * lib/gettimeofday.h: New file.
90956         * lib/gettimeofday.c: Include <sys/timeb.h>.
90957         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
90958         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90959         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
90960         fall back on time().
90962         * tests/test-gettimeofday.c: New file.
90963         * modules/gettimeofday-tests: New file.
90965 2007-01-16  Eric Blake  <ebb9@byu.net>
90967         * modules/fnmatch (Depends-on): Depend on wchar.
90968         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
90969         * m4/fnmatch.m4: Likewise.
90970         * modules/mbchar (Makefile.am): Assume <wchar.h>.
90971         * m4/mbchar.m4: Likewise.
90972         * modules/mbswidth (Depends-on): Depend on wchar.
90973         * lib/mbswidth.c: Assume <wchar.h>.
90974         * m4/mbswidth.m4: Likewise.
90975         * modules/quotearg (Depends-on): Depend on wchar.
90976         * lib/quotearg.c: Assume <wchar.h>.
90977         * m4/quotearg.m4: Likewise.
90978         * modules/regex (Depends-on): Depend on wchar.
90979         * lib/regex_internal.h: Assume <wchar.h>.
90980         * m4/regex.m4: Likewise.
90981         * modules/stdint (Depends-on): Depend on wchar.
90982         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
90983         * m4/stdint.m4: Likewise.
90984         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
90985         * modules/strftime (Depends-on): Depend on wchar.
90986         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
90987         * modules/strtol (Depends-on): Depend on wchar.
90988         * lib/strtol.c: Assume <wchar.h>.
90989         * modules/wcwidth (Depends-on): Depend on wchar.
90990         * lib/wcwidth.h: Assume <wchar.h>.
90991         * m4/wcwidth.m4: Likewise.
90993 2007-01-16  Bruno Haible  <bruno@clisp.org>
90995         * modules/csharpexec-script: New, created from...
90996         * modules/csharpexec: ... this.
90998 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
91000         * modules/javaexec-script: New, created from...
91001         * modules/javaexec: ... this.
91003 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91005         * modules/poll (Dependencies): Add sys_select.
91007 2007-01-15  Jim Meyering  <jim@meyering.net>
91009         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
91010         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
91011         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
91012         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
91014 2007-01-15  Bruno Haible  <bruno@clisp.org>
91016         * modules/striconveh: New file.
91017         * lib/striconveh.h: New file.
91018         * lib/striconveh.c: New file.
91019         * MODULES.html.sh (Internationalization functions): Add striconveh.
91021         * modules/striconveh-tests: New file.
91022         * tests/test-striconveh.c: New file.
91024 2007-01-15  Bruno Haible  <bruno@clisp.org>
91026         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
91027         not from GNU libiconv or GNU libc.
91029 2007-01-15  Bruno Haible  <bruno@clisp.org>
91031         * doc/gnulib-intro.texi (Copyright): Explain the different license
91032         terms for module descriptions, autoconf macros, tests, documentation.
91034 2007-01-14  Bruno Haible  <bruno@clisp.org>
91036         * modules/striconv-tests: New file.
91037         * tests/test-striconv.c: New file.
91039 2007-01-14  Bruno Haible  <bruno@clisp.org>
91041         * modules/iconv-tests: New file.
91042         * tests/test-iconv.c: New file.
91044 2007-01-14  Bruno Haible  <bruno@clisp.org>
91046         * gnulib-tool (func_get_license): For test modules, use the license of
91047         the main module.
91049 2007-01-14  Bruno Haible  <bruno@clisp.org>
91051         * modules/iconv (Include): Clarify that <iconv.h> can only be included
91052         if iconv is found to exist.
91054 2007-01-14  Bruno Haible  <bruno@clisp.org>
91056         * modules/c-ctype-tests: New file.
91057         * tests/test-c-ctype.c: New file.
91059 2007-01-14  Bruno Haible  <bruno@clisp.org>
91061         * modules/binary-io-tests: New file.
91062         * tests/test-binary-io.sh: New file.
91063         * tests/test-binary-io.c: New file.
91065 2007-01-14  Bruno Haible  <bruno@clisp.org>
91067         * modules/array-oset-tests: New file.
91068         * tests/test-array_oset.c: New file.
91070 2007-01-14  Bruno Haible  <bruno@clisp.org>
91072         * modules/array-list-tests: New file.
91073         * tests/test-array_list.c: New file.
91075 2007-01-14  Bruno Haible  <bruno@clisp.org>
91077         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
91078         and make.
91079         Reported by Simon Josefsson in
91080         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
91082 2007-01-14  Bruno Haible  <bruno@clisp.org>
91084         * modules/allocsa-tests: New file.
91085         * tests/test-allocsa.c: New file.
91087 2007-01-14  Bruno Haible  <bruno@clisp.org>
91089         * modules/fchdir (Depends-on): Add absolute-header.
91090         * modules/unistd (Depends-on): Likewise.
91092 2006-12-30  Bruno Haible  <bruno@clisp.org>
91094         * modules/fchdir: New file.
91095         * modules/unistd (Files): Add lib/unistd_.h.
91096         (Makefile.am): Generate unistd.h from unistd_.h.
91097         * lib/fchdir.c: New file.
91098         * lib/dirent_.h: New file.
91099         * lib/unistd_.h: New file.
91100         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
91101         * m4/fchdir.m4: New file.
91102         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
91103         (gl_HEADER_UNISTD): Invoke it.
91104         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
91105         function.
91106         * lib/backupfile.c (opendir, closedir): Undefine.
91107         * lib/chown.c (open, close): Undefine.
91108         * lib/clean-temp.c (open, close): Undefine.
91109         * lib/copy-file.c (open, close): Undefine.
91110         * lib/execute.c (open, close): Undefine.
91111         * lib/fsusage.c (open, close): Undefine.
91112         * lib/gc-gnulib.c (open, close): Undefine.
91113         * lib/getcwd.c (opendir, closedir): Undefine.
91114         * lib/glob.c (opendir, closedir): Undefine.
91115         * lib/javacomp.c (open, close): Undefine.
91116         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
91117         * lib/openat-proc.c (open, close): Undefine.
91118         * lib/pagealign_alloc.c (open, close): Undefine.
91119         * lib/pipe.c (open, close): Undefine.
91120         * lib/progreloc.c (open, close): Undefine.
91121         * lib/savedir.c (opendir, closedir): Undefine.
91122         * lib/utime.c (open, close): Undefine.
91123         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
91125 2007-01-10  Bruno Haible  <bruno@clisp.org>
91127         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
91129 2007-01-12  Eric Blake  <ebb9@byu.net>
91131         Provide a robust <wchar.h>.  Further simplifications are now
91132         possible in other modules, but not included here.
91133         * modules/wchar: New module.
91134         * m4/wchar.m4: New file.
91135         * lib/wchar_.h: Likewise.
91136         * modules/mbchar (Depends-on): Depend on wchar, as the first use
91137         of the new module.
91138         * MODULES.html.sh (Extended multibyte and wide character utilities):
91139         New section.
91141 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
91143         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
91144         to a reasonable default for memory allocation.
91145         (xreadlink): Don't allocate a huge buffer, to work around a buggy
91146         file system that reports garbage st_size values for symlinks.
91147         Problem reported by Liyang Hu.
91149 2007-01-11  Simon Josefsson  <simon@josefsson.org>
91151         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
91152         Emacs .#* auto-save files).
91154 2007-01-11  Bruno Haible  <bruno@clisp.org>
91156         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
91157         directory.
91159 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
91161         Use @...@ consistently in lib/wctype_.h.
91162         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
91163         on it being set to 1 or 0.
91164         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
91165         go back to AC_SUBSTing it.
91166         * modules/wctype (Makefile.am): Undo previous change.
91168 2007-01-10  Eric Blake  <ebb9@byu.net>
91170         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
91171         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
91172         * modules/wctype (Makefile.am): Likewise.
91173         Reported by Chris McGuire.
91175 2007-01-10  Jim Meyering  <jim@meyering.net>
91177         fts.c: a small readability/maintainability improvement
91178         * lib/fts.c (fts_read): Make this code slightly more readable and
91179         maintainable by hoisting the "sp->fts_cur = p" assignments to
91180         immediately follow the statements that set P.  Derived from
91181         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
91183 2007-01-10  Eric Blake  <ebb9@byu.net>
91185         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
91186         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
91187         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
91188         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
91189         Reported by Chris McGuire.
91191 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91193         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
91194         in sed script.
91196 2007-01-09  Bruno Haible  <bruno@clisp.org>
91198         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
91199         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
91200         variables.
91201         (func_module): Use them.
91203 2007-01-09  Bruno Haible  <bruno@clisp.org>
91205         * modules/unistr/base: New file.
91206         * lib/unistr.h: New file.
91208         * modules/unistr/u8-to-u16: New file.
91209         * lib/unistr/u8-to-u16.c: New file.
91211         * modules/unistr/u8-to-u32: New file.
91212         * lib/unistr/u8-to-u32.c: New file.
91214         * modules/unistr/u16-to-u8: New file.
91215         * lib/unistr/u16-to-u8.c: New file.
91217         * modules/unistr/u16-to-u32: New file.
91218         * lib/unistr/u16-to-u32.c: New file.
91220         * modules/unistr/u32-to-u8: New file.
91221         * lib/unistr/u32-to-u8.c: New file.
91223         * modules/unistr/u32-to-u16: New file.
91224         * lib/unistr/u32-to-u16.c: New file.
91226         * modules/unistr/u8-check: New file.
91227         * modules/unistr/u16-check: New file.
91228         * modules/unistr/u32-check: New file.
91229         * lib/unistr/u8-check.c: New file.
91230         * lib/unistr/u16-check.c: New file.
91231         * lib/unistr/u32-check.c: New file.
91233         * modules/unistr/u8-chr: New file.
91234         * modules/unistr/u16-chr: New file.
91235         * modules/unistr/u32-chr: New file.
91236         * lib/unistr/u8-chr.c: New file.
91237         * lib/unistr/u16-chr.c: New file.
91238         * lib/unistr/u32-chr.c: New file.
91240         * modules/unistr/u8-cmp: New file.
91241         * modules/unistr/u16-cmp: New file.
91242         * modules/unistr/u32-cmp: New file.
91243         * lib/unistr/u8-cmp.c: New file.
91244         * lib/unistr/u16-cmp.c: New file.
91245         * lib/unistr/u32-cmp.c: New file.
91247         * modules/unistr/u8-cpy: New file.
91248         * modules/unistr/u16-cpy: New file.
91249         * modules/unistr/u32-cpy: New file.
91250         * lib/unistr/u8-cpy.c: New file.
91251         * lib/unistr/u16-cpy.c: New file.
91252         * lib/unistr/u32-cpy.c: New file.
91253         * lib/unistr/u-cpy.h: New file.
91255         * modules/unistr/u8-cpy-alloc: New file.
91256         * modules/unistr/u16-cpy-alloc: New file.
91257         * modules/unistr/u32-cpy-alloc: New file.
91258         * lib/unistr/u8-cpy-alloc.c: New file.
91259         * lib/unistr/u16-cpy-alloc.c: New file.
91260         * lib/unistr/u32-cpy-alloc.c: New file.
91261         * lib/unistr/u-cpy-alloc.h: New file.
91263         * modules/unistr/u8-endswith: New file.
91264         * modules/unistr/u16-endswith: New file.
91265         * modules/unistr/u32-endswith: New file.
91266         * lib/unistr/u8-endswith.c: New file.
91267         * lib/unistr/u16-endswith.c: New file.
91268         * lib/unistr/u32-endswith.c: New file.
91269         * lib/unistr/u-endswith.h: New file.
91271         * modules/unistr/u8-mblen: New file.
91272         * modules/unistr/u16-mblen: New file.
91273         * modules/unistr/u32-mblen: New file.
91274         * lib/unistr/u8-mblen.c: New file.
91275         * lib/unistr/u16-mblen.c: New file.
91276         * lib/unistr/u32-mblen.c: New file.
91278         * modules/unistr/u8-mbtouc: New file.
91279         * modules/unistr/u16-mbtouc: New file.
91280         * modules/unistr/u32-mbtouc: New file.
91281         * lib/unistr/u8-mbtouc.c: New file.
91282         * lib/unistr/u16-mbtouc.c: New file.
91283         * lib/unistr/u32-mbtouc.c: New file.
91285         * modules/unistr/u8-mbtouc-safe: New file.
91286         * modules/unistr/u16-mbtouc-safe: New file.
91287         * modules/unistr/u32-mbtouc-safe: New file.
91288         * lib/unistr/u8-mbtouc-safe.c: New file.
91289         * lib/unistr/u16-mbtouc-safe.c: New file.
91290         * lib/unistr/u32-mbtouc-safe.c: New file.
91292         * modules/unistr/u8-move: New file.
91293         * modules/unistr/u16-move: New file.
91294         * modules/unistr/u32-move: New file.
91295         * lib/unistr/u8-move.c: New file.
91296         * lib/unistr/u16-move.c: New file.
91297         * lib/unistr/u32-move.c: New file.
91298         * lib/unistr/u-move.h: New file.
91300         * modules/unistr/u8-next: New file.
91301         * modules/unistr/u16-next: New file.
91302         * modules/unistr/u32-next: New file.
91303         * lib/unistr/u8-next.c: New file.
91304         * lib/unistr/u16-next.c: New file.
91305         * lib/unistr/u32-next.c: New file.
91307         * modules/unistr/u8-prev: New file.
91308         * modules/unistr/u16-prev: New file.
91309         * modules/unistr/u32-prev: New file.
91310         * lib/unistr/u8-prev.c: New file.
91311         * lib/unistr/u16-prev.c: New file.
91312         * lib/unistr/u32-prev.c: New file.
91314         * modules/unistr/u8-set: New file.
91315         * modules/unistr/u16-set: New file.
91316         * modules/unistr/u32-set: New file.
91317         * lib/unistr/u8-set.c: New file.
91318         * lib/unistr/u16-set.c: New file.
91319         * lib/unistr/u32-set.c: New file.
91320         * lib/unistr/u-set.h: New file.
91322         * modules/unistr/u8-startswith: New file.
91323         * modules/unistr/u16-startswith: New file.
91324         * modules/unistr/u32-startswith: New file.
91325         * lib/unistr/u8-startswith.c: New file.
91326         * lib/unistr/u16-startswith.c: New file.
91327         * lib/unistr/u32-startswith.c: New file.
91328         * lib/unistr/u-startswith.h: New file.
91330         * modules/unistr/u8-stpcpy: New file.
91331         * modules/unistr/u16-stpcpy: New file.
91332         * modules/unistr/u32-stpcpy: New file.
91333         * lib/unistr/u8-stpcpy.c: New file.
91334         * lib/unistr/u16-stpcpy.c: New file.
91335         * lib/unistr/u32-stpcpy.c: New file.
91336         * lib/unistr/u-stpcpy.h: New file.
91338         * modules/unistr/u8-stpncpy: New file.
91339         * modules/unistr/u16-stpncpy: New file.
91340         * modules/unistr/u32-stpncpy: New file.
91341         * lib/unistr/u8-stpncpy.c: New file.
91342         * lib/unistr/u16-stpncpy.c: New file.
91343         * lib/unistr/u32-stpncpy.c: New file.
91344         * lib/unistr/u-stpncpy.h: New file.
91346         * modules/unistr/u8-strcat: New file.
91347         * modules/unistr/u16-strcat: New file.
91348         * modules/unistr/u32-strcat: New file.
91349         * lib/unistr/u8-strcat.c: New file.
91350         * lib/unistr/u16-strcat.c: New file.
91351         * lib/unistr/u32-strcat.c: New file.
91352         * lib/unistr/u-strcat.h: New file.
91354         * modules/unistr/u8-strchr: New file.
91355         * modules/unistr/u16-strchr: New file.
91356         * modules/unistr/u32-strchr: New file.
91357         * lib/unistr/u8-strchr.c: New file.
91358         * lib/unistr/u16-strchr.c: New file.
91359         * lib/unistr/u32-strchr.c: New file.
91361         * modules/unistr/u8-strcmp: New file.
91362         * modules/unistr/u16-strcmp: New file.
91363         * modules/unistr/u32-strcmp: New file.
91364         * lib/unistr/u8-strcmp.c: New file.
91365         * lib/unistr/u16-strcmp.c: New file.
91366         * lib/unistr/u32-strcmp.c: New file.
91368         * modules/unistr/u8-strcpy: New file.
91369         * modules/unistr/u16-strcpy: New file.
91370         * modules/unistr/u32-strcpy: New file.
91371         * lib/unistr/u8-strcpy.c: New file.
91372         * lib/unistr/u16-strcpy.c: New file.
91373         * lib/unistr/u32-strcpy.c: New file.
91374         * lib/unistr/u-strcpy.h: New file.
91376         * modules/unistr/u8-strcspn: New file.
91377         * modules/unistr/u16-strcspn: New file.
91378         * modules/unistr/u32-strcspn: New file.
91379         * lib/unistr/u8-strcspn.c: New file.
91380         * lib/unistr/u16-strcspn.c: New file.
91381         * lib/unistr/u32-strcspn.c: New file.
91382         * lib/unistr/u-strcspn.h: New file.
91384         * modules/unistr/u8-strdup: New file.
91385         * modules/unistr/u16-strdup: New file.
91386         * modules/unistr/u32-strdup: New file.
91387         * lib/unistr/u8-strdup.c: New file.
91388         * lib/unistr/u16-strdup.c: New file.
91389         * lib/unistr/u32-strdup.c: New file.
91390         * lib/unistr/u-strdup.h: New file.
91392         * modules/unistr/u8-strlen: New file.
91393         * modules/unistr/u16-strlen: New file.
91394         * modules/unistr/u32-strlen: New file.
91395         * lib/unistr/u8-strlen.c: New file.
91396         * lib/unistr/u16-strlen.c: New file.
91397         * lib/unistr/u32-strlen.c: New file.
91398         * lib/unistr/u-strlen.h: New file.
91400         * modules/unistr/u8-strmblen: New file.
91401         * modules/unistr/u16-strmblen: New file.
91402         * modules/unistr/u32-strmblen: New file.
91403         * lib/unistr/u8-strmblen.c: New file.
91404         * lib/unistr/u16-strmblen.c: New file.
91405         * lib/unistr/u32-strmblen.c: New file.
91407         * modules/unistr/u8-strmbtouc: New file.
91408         * modules/unistr/u16-strmbtouc: New file.
91409         * modules/unistr/u32-strmbtouc: New file.
91410         * lib/unistr/u8-strmbtouc.c: New file.
91411         * lib/unistr/u16-strmbtouc.c: New file.
91412         * lib/unistr/u32-strmbtouc.c: New file.
91414         * modules/unistr/u8-strncat: New file.
91415         * modules/unistr/u16-strncat: New file.
91416         * modules/unistr/u32-strncat: New file.
91417         * lib/unistr/u8-strncat.c: New file.
91418         * lib/unistr/u16-strncat.c: New file.
91419         * lib/unistr/u32-strncat.c: New file.
91420         * lib/unistr/u-strncat.h: New file.
91422         * modules/unistr/u8-strncmp: New file.
91423         * modules/unistr/u16-strncmp: New file.
91424         * modules/unistr/u32-strncmp: New file.
91425         * lib/unistr/u8-strncmp.c: New file.
91426         * lib/unistr/u16-strncmp.c: New file.
91427         * lib/unistr/u32-strncmp.c: New file.
91429         * modules/unistr/u8-strncpy: New file.
91430         * modules/unistr/u16-strncpy: New file.
91431         * modules/unistr/u32-strncpy: New file.
91432         * lib/unistr/u8-strncpy.c: New file.
91433         * lib/unistr/u16-strncpy.c: New file.
91434         * lib/unistr/u32-strncpy.c: New file.
91435         * lib/unistr/u-strncpy.h: New file.
91437         * modules/unistr/u8-strnlen: New file.
91438         * modules/unistr/u16-strnlen: New file.
91439         * modules/unistr/u32-strnlen: New file.
91440         * lib/unistr/u8-strnlen.c: New file.
91441         * lib/unistr/u16-strnlen.c: New file.
91442         * lib/unistr/u32-strnlen.c: New file.
91443         * lib/unistr/u-strnlen.h: New file.
91445         * modules/unistr/u8-strpbrk: New file.
91446         * modules/unistr/u16-strpbrk: New file.
91447         * modules/unistr/u32-strpbrk: New file.
91448         * lib/unistr/u8-strpbrk.c: New file.
91449         * lib/unistr/u16-strpbrk.c: New file.
91450         * lib/unistr/u32-strpbrk.c: New file.
91451         * lib/unistr/u-strpbrk.h: New file.
91453         * modules/unistr/u8-strrchr: New file.
91454         * modules/unistr/u16-strrchr: New file.
91455         * modules/unistr/u32-strrchr: New file.
91456         * lib/unistr/u8-strrchr.c: New file.
91457         * lib/unistr/u16-strrchr.c: New file.
91458         * lib/unistr/u32-strrchr.c: New file.
91460         * modules/unistr/u8-strspn: New file.
91461         * modules/unistr/u16-strspn: New file.
91462         * modules/unistr/u32-strspn: New file.
91463         * lib/unistr/u8-strspn.c: New file.
91464         * lib/unistr/u16-strspn.c: New file.
91465         * lib/unistr/u32-strspn.c: New file.
91466         * lib/unistr/u-strspn.h: New file.
91468         * modules/unistr/u8-strstr: New file.
91469         * modules/unistr/u16-strstr: New file.
91470         * modules/unistr/u32-strstr: New file.
91471         * lib/unistr/u8-strstr.c: New file.
91472         * lib/unistr/u16-strstr.c: New file.
91473         * lib/unistr/u32-strstr.c: New file.
91474         * lib/unistr/u-strstr.h: New file.
91476         * modules/unistr/u8-strtok: New file.
91477         * modules/unistr/u16-strtok: New file.
91478         * modules/unistr/u32-strtok: New file.
91479         * lib/unistr/u8-strtok.c: New file.
91480         * lib/unistr/u16-strtok.c: New file.
91481         * lib/unistr/u32-strtok.c: New file.
91482         * lib/unistr/u-strtok.h: New file.
91484         * modules/unistr/u8-uctomb: New file.
91485         * modules/unistr/u16-uctomb: New file.
91486         * modules/unistr/u32-uctomb: New file.
91487         * lib/unistr/u8-uctomb.c: New file.
91488         * lib/unistr/u16-uctomb.c: New file.
91489         * lib/unistr/u32-uctomb.c: New file.
91491         * MODULES.html.sh (Unicode string functions): Add the new modules.
91493 2007-01-08  Bruno Haible  <bruno@clisp.org>
91495         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
91496         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
91497         subdirectories.
91499 2007-01-08  Karl Berry  <karl@gnu.org>
91501         * doc/error.texi: mention that main() fns must set program_name
91502         when progname is used.
91504 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
91506         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
91507         WCTYPE_H is empty, for the benefit of builds from non-distclean
91508         directories.  Problem reported by Eric Blake in
91509         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
91511 2007-01-08  Bruno Haible  <bruno@clisp.org>
91513         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
91514         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
91515         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
91516         PROVIDE_CANONICALIZE_FILENAME_MODE.
91517         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
91519 2007-01-08  Bruno Haible  <bruno@clisp.org>
91521         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
91522         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
91523         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
91524         * lib/fts.c: Likewise.
91525         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
91527 2006-12-25  Bruno Haible  <bruno@clisp.org>
91529         * modules/utf8-ucs4-safe: New file.
91530         * lib/utf8-ucs4-safe.h: New file.
91531         * lib/unistr/utf8-ucs4-safe.c: New file.
91533         * modules/utf16-ucs4-safe: New file.
91534         * lib/utf16-ucs4-safe.h: New file.
91535         * lib/unistr/utf16-ucs4-safe.c: New file.
91537         * MODULES.html.sh (Unicode string functions): Add the new modules.
91539 2007-01-08  Bruno Haible  <bruno@clisp.org>
91541         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
91542         (Depends-on): Add unitypes.
91543         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
91544         (u8_mbtouc_aux): Move out to separate file.
91545         (u8_mbtouc): Use ucs4_t, uint8_t types.
91546         * lib/unistr/utf8-ucs4.c: New file.
91548         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
91549         (Depends-on): Add unitypes.
91550         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
91551         (u16_mbtouc_aux): Move out to separate file.
91552         (u16_mbtouc): Use ucs4_t, uint16_t types.
91553         * lib/unistr/utf16-ucs4.c: New file.
91555         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
91556         (Depends-on): Add unitypes.
91557         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
91558         (u8_uctomb_aux): Move out to separate file.
91559         (u8_uctomb): Use ucs4_t, uint8_t types.
91560         * lib/unistr/ucs4-utf8.c: New file.
91562         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
91563         (Depends-on): Add unitypes.
91564         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
91565         (u16_uctomb_aux): Move out to separate file.
91566         (u16_uctomb): Use ucs4_t, uint16_t types.
91567         * lib/unistr/ucs4-utf16.c: New file.
91569 2006-12-25  Bruno Haible  <bruno@clisp.org>
91571         * modules/unitypes: New file.
91572         * lib/unitypes.h: New file.
91573         * MODULES.html.sh (func_all_modules): New section "Unicode string
91574         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
91575         this section. Add unitypes.
91577 2007-01-08  Bruno Haible  <bruno@clisp.org>
91579         Avoid variable names that conflict with those from libtool.
91580         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
91581         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
91582         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
91583         library_names_spec to acl_library_names_spec, hardcode_* to
91584         acl_hardcode_*.
91585         Reported by Ralf Wildenhues.
91587 2007-01-08  Bruno Haible  <bruno@clisp.org>
91589         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
91590         definition.
91591         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
91592         definition.
91593         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
91594         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
91595         definition.
91596         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
91597         definition.
91598         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
91599         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
91600         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
91601         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
91602         definition.
91603         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
91604         definition.
91605         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
91606         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
91607         GC_USE_<algorithm>.
91608         * lib/gc-libgcrypt.c: Likewise.
91609         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
91610         * modules/gc-arctwo (configure.ac): Likewise.
91611         * modules/gc-des (configure.ac): Likewise.
91612         * modules/gc-hmac-md5 (configure.ac): Likewise.
91613         * modules/gc-hmac-sha1 (configure.ac): Likewise.
91614         * modules/gc-md2 (configure.ac): Likewise.
91615         * modules/gc-md4 (configure.ac): Likewise.
91616         * modules/gc-md5 (configure.ac): Likewise.
91617         * modules/gc-random (configure.ac): Likewise.
91618         * modules/gc-rijndael (configure.ac): Likewise.
91619         * modules/gc-sha1 (configure.ac): Likewise.
91621 2007-01-08  Bruno Haible  <bruno@clisp.org>
91623         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
91624         macro definition.
91625         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
91626         definition.
91627         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
91628         definition.
91629         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
91630         * modules/fcntl-safer (configure.ac): Likewise.
91631         * modules/fopen-safer (configure.ac): Likewise.
91632         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
91633         GNULIB_FWRITEERROR macro definition.
91635 2007-01-08  Bruno Haible  <bruno@clisp.org>
91637         * m4/gnulib-common.m4: New file.
91638         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
91639         (func_get_filelist): Add m4/gnulib-common.m4.
91641 2007-01-08  Bruno Haible  <bruno@clisp.org>
91643         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
91644         command.
91646 2007-01-08  Jim Meyering  <jim@meyering.net>
91648         Use a more robust test for a "can't happen" condition.
91649         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
91650         narrowed the st_size value.  Presuming the "can't happen" condition
91651         is true, that narrowing could conceivably convert an invalid st_size
91652         value into a valid one.  Instead, use a change based on Matthew
91653         Woehlke's original patch.
91655         Slight readability improvement: use an assert-like macro
91656         in place of literal "abort ()" uses.
91657         * lib/fts.c (fts_assert): Define.
91658         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
91659         Use this macro instead of a bare 'abort'.
91661 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
91663         Don't worry about using IRIX 5.3's wctype.h broken definitions;
91664         simply work around them.
91665         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
91666         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
91667         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
91668         declaring.
91669         Don't bother to define as macros, since the standard doesn't require it.
91670         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
91671         longer worry about IRIX 5.3.
91672         (HAVE_WCTYPE_CTMP_BUG): Remove.
91674 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
91676         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
91677         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
91678         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
91679         Problems reported by Georg Schwarz for IRIX 5.3.
91681         * gnulib-tool (autoconf_minversion): Take the maximum version number
91682         found, not the minimum.  Problem reported by James Youngman.
91684 2007-01-03  Karl Berry  <karl@gnu.org>
91686         * doc/error.texi: new file, explaining interaction with progname.
91687         * doc/gnulib.texi: include it.  Update copyright.
91689 2007-01-03  Simon Josefsson  <simon@josefsson.org>
91691         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
91692         AC_CANONICAL_HOST, to improve autobuild outputs.
91694 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
91695             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
91697         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
91698         sockets, server sockets, and other file descriptors.  Count errors
91699         to compute the return value.  Reorder the code a bit to be easier
91700         to follow.  Don't set event bits that were not requested (except
91701         POLLERR and POLLHUP).
91703 2007-01-01  Bruno Haible  <bruno@clisp.org>
91705         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
91707 2007-01-03  Jim Meyering  <jim@meyering.net>
91709         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
91711 2007-01-02  Bruno Haible  <bruno@clisp.org>
91713         * modules/settime (Include): Require timespec.h.
91714         * modules/nanosleep (Include): Likewise.
91716 2007-01-01  Bruno Haible  <bruno@clisp.org>
91718         * gnulib-tool (func_emit_copyright_notice): Bump year.
91719         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
91721 2007-01-01  Bruno Haible  <bruno@clisp.org>
91723         Improve support for OpenBSD.
91724         * build-aux/config.rpath (libname_spec): Export.
91725         (library_names_spec): New variable. Export.
91726         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
91727         library_names_spec from the config.rpath output. Locate shared library
91728         through the name pattern in library_names_spec.
91730 2007-01-01  Eric Blake  <ebb9@byu.net>
91732         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
91734 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
91736         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
91737         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
91738         assume the C locale, and avoid an "eval" that could cause trouble.
91739         Problem with SORT reported by Bob Proulx.
91741         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
91742         Define.  Trivial patch from Henning Nielsen Lund, originally
91743         sent to bug-grep@gnu.org today.
91745 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
91747         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
91748         struct stat.  Problem reported by Henning Nielsen Lund.
91749         * lib/acl.c: Include acl.h first, to check interface.  Don't
91750         bother to include sys/types.h and sys/stat.h again.
91752 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
91754         Import the following change from libc; problem reported by
91755         Sven Verdoolaege.
91757         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
91759         [BZ #1373]
91760         * lib/argp.h: Remove __NTH for __argp_usage inline function.
91762 2006-12-28  Jim Meyering  <jim@meyering.net>
91764         * build-aux/announce-gen: Do not assume that the package
91765         builds any of tar.gz, tar.bz2, and .xdelta files.
91766         Suggestion from Simon Josefsson.
91768 2006-12-28  Simon Josefsson  <simon@josefsson.org>
91770         * modules/announce-gen: New file.
91772 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
91774         * lib/mbchar.h: Just include <wctype.h>; the wctype module
91775         handles its gotchas now.
91776         * lib/mbswidth.c: Likewise.
91777         * lib/wcwidth.h: Likewise.
91778         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
91779         and iswcntrl; the wctype module does this stuff now.
91780         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
91781         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
91782         * modules/mbchar (Depends-on): Add wctype.
91783         * modules/mbswidth (Depends-on): Likewise.
91784         * modules/wcwidth (Depends-on): Likewise.
91786 2006-12-27  Eric Blake  <ebb9@byu.net>
91788         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
91789         module uses more than what <wctype.h> is required to provide.
91791 2006-12-26  Eric Blake  <ebb9@byu.net>
91793         * gnulib-tool (sed_extract_prog): Avoid space-tab.
91795 2006-12-26  Eric Blake  <ebb9@byu.net>
91797         * modules/absolute-header: New module.
91798         * modules/fcntl (Depends-on): Depend on it.
91799         * modules/inttypes (Depends-on): Likewise.
91800         * modules/stdint (Depends-on): Likewise.
91801         * modules/sys_stat (Depends-on): Likewise.
91802         * modules/wctype (Depends-on): Likewise.
91803         * MODULES.html.sh (Support for building libraries and
91804         executables): Document it.
91806 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
91808         * gnulib-tool (SED): Remove, undoing previous change.
91809         The problem was that it broke coreutils on Solaris, because
91810         "sed --posix" leaked into a makefile.
91811         (sed): New alias, if 'alias' and GNU sed.
91813 2006-12-24  Jim Meyering  <jim@meyering.net>
91815         Work around an fchownat bug in glibc-2.4:
91816         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
91817         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
91818         in spite of the -P option.
91819         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
91820         New macros.
91821         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
91822         * modules/openat (Files): Add lib/fchownat.c.
91823         * lib/openat.c (fchownat): Don't define here.  Move to...
91824         * lib/fchownat.c: ...this new file.
91826 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
91828         Fix bug reported by Bruno Haible in
91829         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
91830         where quotearg.c didn't compile on Mac OS X 10.2 because it
91831         lacks <wchar.h> and wint_t.
91832         * lib/wctype_.h (__wctype_wint_t): New type.
91833         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
91834         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
91835         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
91836         Arg is now of type __wctype_wint_t, not wint_t.
91837         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
91838         substitute HAVE_WINT_T.
91839         * modules/wctype (Files): Add m4/wint_t.m4.
91840         (wctype.h): Substitute HAVE_WINT_T.
91842 2006-12-23  Bruno Haible  <bruno@clisp.org>
91844         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
91846 2006-12-23  Bruno Haible  <bruno@clisp.org>
91848         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
91849         S_ISLNK.
91850         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
91851         mingw.
91853 2006-12-22  Bruno Haible  <bruno@clisp.org>
91855         * lib/copy-file.c: Include acl.h.
91856         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
91857         Close the file descriptors only after being done with copy_acl.
91858         * modules/copy-file (Depends-on): Add acl.
91860 2006-12-22  Bruno Haible  <bruno@clisp.org>
91862         * gnulib-tool (SED): New variable.
91863         Use $SED instead of sed everywhere.
91865 2006-12-22  Bruno Haible  <bruno@clisp.org>
91867         * modules/no-c++: New file.
91868         * m4/no-c++.m4: New file.
91869         * MODULES.html.sh (Support for building libraries and executables):
91870         Add no-c++.
91872 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
91874         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
91875         Include <limits.h>, and use its INT_MAX to rewrite the
91876         j loop so that it does not overflow 'int'.  Problem reported by
91877         Ralf Wildenhues in
91878         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
91879         Play it safe by shifting left by 1 rather than multiplying by 2,
91880         as GCC is less likely to optimize this away when the value
91881         is signed (when it assumes overflow leads to undefined behavior).
91882         Also, don't assume time_t uses two's complement.
91884 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
91886         * MODULES.html.sh: New module wctype.
91887         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
91888         * lib/fnmatch.c: Don't bother to include <wchar.h> before
91889         <wctype.h>, since the new wctype module should fix this.
91890         * lib/quotearg.c: Include <wctype.h> unconditionally, since
91891         the wctype module should arrange for it.
91892         * lib/regex_internal.h: Likewise.
91893         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
91894         since the wctype module should handle this now.
91895         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
91896         * modules/fnmatch (Depends-on): Add wctype.
91897         * modules/quotearg (Depends-on): Likewise.
91898         * modules/regex (Depends-on): Likewise.
91900 2006-12-19  Bruno Haible  <bruno@clisp.org>
91902         * lib/strdup.h [C++]: Wrap definitions in extern "C".
91903         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
91905 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91907         * modules/savewd (Depends-on): Fix dependency on fcntl.
91909 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
91911         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
91912         conforms to C99, rather than relying on the user's environment
91913         setting of STDINT_H.
91915 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
91916         and Eric Blake  <ebb9@byu.net>
91918         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
91919         This is more consistent with the other defines here.
91920         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
91921         Port to z/OS.  Problem reported by Paul Gilmartin.
91922         Change local vars to use gl_ prefix rather than ac_.
91923         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
91924         with other defines.
91925         * modules/double-slash-root: New module.
91926         * modules/dirname (Files): Remove m4/double-slash-root.m4.
91927         (Depends-on): Add double-slash-root.
91928         * MODULES.html.sh (File system functions): Mention new module.
91930 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
91932         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
91933         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
91934         This is for the benefit of gzip, which doesn't do i18n.
91936 2006-12-12  Jim Meyering  <jim@meyering.net>
91938         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
91939         Reported by Andreas Schwab <schwab@suse.de>.
91941 2006-12-12  Bruno Haible  <bruno@clisp.org>
91943         Merge these changes.
91944         2006-09-05  Bruno Haible  <bruno@clisp.org>
91945         * lib/iconvme.c (iconv_string): No need to save and restore errno when
91946         iconv_alloc succeeded.
91947         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
91948         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
91949         test for " && dest " at the end - dest is always != NULL there. Call
91950         iconv with 4xNULL arguments initially, to reset the state. Call iconv
91951         with 2xNULL arguments, also to flush the state storage. Handle the
91952         IRIX iconv behaviour. Realloc the final result, to throw away unused
91953         memory.
91955 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
91957         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
91958         and fchmodat unconditionally, since glibc 2.4 has them.
91959         Problem reported by Arkadiusz Miskiewicz.
91961 2006-12-10  Bruno Haible  <bruno@clisp.org>
91963         * gnulib-tool (func_import): Show the include files only for those
91964         modules that are copied and specified.
91965         Reported by Karl Berry.
91967 2006-12-08  Jim Meyering  <jim@meyering.net>
91969         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
91970         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
91972         * build-aux/announce-gen: Add two new options, both optional:
91973         --bootstrap-tools=TOOL_LIST
91974               a comma-separated list of tools, e.g.,
91975               autoconf,automake,bison,gnulib
91976         --gnulib-snapshot-date=DATE
91977               if gnulib is in the bootstrap tool list,
91978               then report this as the snapshot date.
91979               If not specified, use the current date/time.
91980               If you specify a date here, be sure it's UTC.
91982 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91984         * tests/test-argp-2.sh: Fix test to match actual output.
91985         (func_compare): Fix sed script to be portable.
91987 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
91989         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
91990         workaround for this case.  It is not autoconfigured now; offhand
91991         it's hard to see how to autoconfigure it.
91993 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
91995         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
91996         a directory that is about to be chowned.  Such a directory's
91997         initial file permissions should permit the owner only and this
91998         should not be changed until after the chown, since the group and
91999         other bits would be incorrect if they granted permission before
92000         the chown.
92002         Fix porting problem for iswctype reported by Georg Schwarz in:
92003         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
92004         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
92005         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
92006         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
92007         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
92009 2006-12-03  Jim Meyering  <jim@meyering.net>
92011         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
92012         p->fts_statp may not yet be defined.
92013         (fts_read): Instead, set it in the caller, once p->fts_statp is
92014         sure to be defined, and corresponds to a top-level directory.
92015         This bug made du -x fail.  Here's the coreutils test case:
92016         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
92017         Reported by Mike Frysinger.
92019 2006-12-01  Jim Meyering  <jim@meyering.net>
92021         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
92022         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
92023         Reported by Simon Josefsson.
92025 2006-11-30  Jim Meyering  <jim@meyering.net>
92027         * m4/warning.m4: Use the all-permissive copyright notice
92028         recommended by RMS (rather than LGPL).
92029         * m4/vararrays.m4: Likewise.
92030         * m4/flexmember.m4: Likewise.
92032 2006-11-29  Bruno Haible  <bruno@clisp.org>
92034         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
92035         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
92036         using +=.
92037         Reported by Simon Josefsson <simon@josefsson.org>.
92039 2006-11-28  James Youngman  <jay@gnu.org>
92041         * README: Advise users that they might find the bug-gnulib@gnu.org
92042         and autotools-announce@gnu.org mailing lists useful.
92044 2006-11-28  Bruno Haible  <bruno@clisp.org>
92046         * m4/ptrdiff_max.m4: Remove file.
92048 2006-11-21  Bruno Haible  <bruno@clisp.org>
92050         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
92051         _AC_COMPUTE_INT.
92052         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92053         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
92054         _AC_COMPUTE_INT.
92055         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92056         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
92057         _AC_COMPUTE_INT.
92058         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92060 2006-11-28  Jim Meyering  <jim@meyering.net>
92062         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
92063         warning from "gcc -Wshadow" about shadowing the builtin.
92065 2006-11-27  Bruno Haible  <bruno@clisp.org>
92067         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
92068         _AC_COMPUTE_INT.
92069         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92071 2006-11-27  Bruno Haible  <bruno@clisp.org>
92072             Paul Eggert  <eggert@cs.ucla.edu>
92074         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
92076 2006-11-26  Bruno Haible  <bruno@clisp.org>
92078         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
92079         noinst_LTLIBRARIES.
92081 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
92082             Bruno Haible  <bruno@clisp.org>
92084         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
92085         if compiling with "gcc -ansi".
92087 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
92089         Fix some incompatibilities with gcc -ansi -pedantic.
92090         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
92091         if compiling pedantically with GCC, unless it's C99 or later.
92092         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
92093         it mishandles gcc -ansi -pedantic as well.
92094         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
92095         if gcc -pedantic.
92096         * lib/regexec.c (check_node_accept_bytes): Don't use auto
92097         initializers for struct if -pedantic, unless it's C99 or later.
92099 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
92101         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
92102         Don't close an fd more than once. Identical atimes indicate
92103         success, not failure.
92105 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
92107         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
92109 2006-11-23  Jim Meyering  <jim@meyering.net>
92111         * build-aux/announce-gen: New file.  From coreutils.
92113 2006-11-22  Jim Meyering  <jim@meyering.net>
92115         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
92116         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
92117         (fts_read): Use a temporary to narrow the overused st_size member
92118         before using it in a switch statement.  Reported by Matthew Woehlke.
92120         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
92121         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
92123 2006-11-20  Bruno Haible  <bruno@clisp.org>
92125         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
92126         changequote instead of pairs of brackets.
92127         Reported by Andreas Schwab <schwab@suse.de>.
92129 2006-11-21  Jim Meyering  <jim@meyering.net>
92131         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
92132         so as to remain compatible with older compilers.
92133         Patch from Michael Deutschmann.
92135 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
92137         * MODULES.html.sh (File system functions): Add openat.
92139         * lib/openat.h (rpl_fstatat): New macro, if
92140         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
92141         (fstatat): Define to rpl_fstatat under the same conditions,
92142         unless COMPILING_FSTATAT.
92143         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
92144         seems to have the bug.
92145         * lib/fstatat.c: New file.
92146         * modules/openat (Files): Add it.
92148 2006-11-20  Bruno Haible  <bruno@clisp.org>
92150         * Makefile: New file.
92152 2006-11-20  Jim Meyering  <jim@meyering.net>
92154         The beginnings of syntax-related checks for gnulib.
92155         * lib/Makefile: New file.
92156         * lib/t-idcache: New script.  Ensure that the two halves of
92157         idcache.c stay in sync.
92159         * lib/idcache.c: Adjust comments in user- and group- portions to
92160         be more accurate, and to be consistent with one another.
92162 2006-11-20  Jim Meyering  <jim@meyering.net>
92164         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
92165         continue using the flexible array member (thus, this module performs
92166         half as many malloc calls), with the addition that...
92167         (getgroup, getuser): Consistently record a non-match via an empty
92168         "name" string, and map an empty string match to a NULL return value.
92169         * modules/idcache (Depends-on): Re-add flexmember.
92171         * lib/idcache.c (getuser): Remove all uses of the register keyword.
92172         (getuidbyname, getgroup, getgidbyname): Likewise.
92174         Use cleaner syntax: NULL rather than 0.
92175         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
92177 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
92179         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
92180         It mishandled the case where the group was missing.
92181         Problem reported by Greg Schafer.
92182         * modules/idcache: Likewise.
92184 2006-11-18  Jim Meyering  <jim@meyering.net>
92186         * check-module (%exempt_header): Add exception for some
92187         conditionally-included headers.
92189         * modules/i-ring (Depends-on): Add verify.
92190         (License): Change to LGPL.
92192 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
92194         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
92195         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
92196         and inttostr.h.  Use snprintf rather than uinttostr, so that
92197         LGPLed code doesn't depend on GPLed.
92199 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
92201         * modules/inline (License): Change from GPL to LGPL.
92203 2006-11-17  Jim Meyering  <jim@meyering.net>
92205         * modules/d-type (License): Switch to LGPL.
92207 2006-11-15  Bruno Haible  <bruno@clisp.org>
92209         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
92211 2006-11-15  Eric Blake  <ebb9@byu.net>
92213         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
92214         the module dependency.
92216 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92217             Bruno Haible  <bruno@clisp.org>
92219         * gnulib-tool (func_create_testdir): Add license consistency check.
92221 2006-11-15  Eric Blake  <ebb9@byu.net>
92223         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
92224         random "(cached)" in configure output.
92226 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92228         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
92229         test for conforming inttypes.h is both announced and cached.
92231         * MODULES.html.sh (seen_modules, seen_files): New variables.
92232         (func_module): Rewrite to use a few less gnulib-tool and sed
92233         invocations.  Avoid a couple of quadratic algorithms for ...
92234         (missed_modules, missed_files): ... these, with ...
92235         (func_append, func_tmpdir): ... these new functions, from
92236         gnulib-tool.  Analogously, install traps for cleanup.
92238         * tests/test-gc.c (main): Remove unused variables.
92239         * tests/test-read-file.c: Include stdlib.h, for 'free'.
92241 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
92243         * modules/inttostr (License): Change to LGPL.
92245 2006-11-14  Eric Blake  <ebb9@byu.net>
92247         * modules/tempname (License): Change to LGPL.
92249 2006-11-14  Eric Blake  <ebb9@byu.net>
92251         * doc/functions.texi (Function Portability): *printf functions on
92252         Cygwin now understand all POSIX size specifiers.
92254 2006-11-14  Bruno Haible  <bruno@clisp.org>
92256         * modules/c-ctype (License): Change to LGPL.
92258 2006-11-12  Bruno Haible  <bruno@clisp.org>
92260         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
92261         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
92262         for GNOME libraries, for which the include files are installed in
92263         subdirectories of $prefix/include.
92265 2006-11-12  Bruno Haible  <bruno@clisp.org>
92267         * m4/lib-link.m4: Require at least autoconf-2.54.
92268         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
92269         name to underscores for the --with option.
92271 2006-11-13  Bruno Haible  <bruno@clisp.org>
92273         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
92274         the tests directory.
92275         Reported by Ralf Wildenhues.
92277 2006-11-13  Bruno Haible  <bruno@clisp.org>
92279         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
92280         (func_emit_initmacro_end): Undo the override here.
92281         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
92282         Works around the famous automake error in coreutils.
92284 2006-11-13  Eric Blake  <ebb9@byu.net>
92286         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
92287         element, not its node.
92289 2006-11-12  Bruno Haible  <bruno@clisp.org>
92291         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
92292         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
92294 2006-11-12  Bruno Haible  <bruno@clisp.org>
92296         * gnulib-tool: New option --local-symlink.
92297         (func_usage): Document it.
92298         (lsymbolic): New variable.
92299         (func_import, func_create_testdir): If --symlink was not specified,
92300         test whether --local-symlink was specified and the file comes from
92301         the local_gnulib_dir.
92303 2006-11-12  Bruno Haible  <bruno@clisp.org>
92305         * gnulib-tool (func_ln): New function.
92306         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
92308 2006-11-12  Bruno Haible  <bruno@clisp.org>
92310         Finish support for source files in subdirectories.
92311         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
92312         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
92313         AUTOMAKE_OPTIONS.
92314         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
92316 2006-11-12  Bruno Haible  <bruno@clisp.org>
92318         * gnulib-tool (func_get_automake_snippet): Synthesize also an
92319         EXTRA_lib_SOURCES augmentation.
92320         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
92322 2006-11-12  Jim Meyering  <jim@meyering.net>
92324         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
92325         file descriptors.  This also averts a failure on systems with
92326         native openat support when a traversed directory lacks "x" access.
92327         * lib/fts_.h: Include "i-ring.h"
92328         (struct FTS) [fts_fd_ring]: New member.
92329         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
92330         (FCHDIR): Add parentheses.
92331         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
92332         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
92333         When descending, rather than simply closing the previous
92334         fts_cwd_fd value, push that file descriptor onto the ring.
92335         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
92336         (fts_open): Initialize the new fd_ring member.
92337         (fts_close): Clear the ring.
92338         (fts_safe_changedir): When possible, use our new fd_ring to skip
92339         the diropen and fstat and dev/ino comparison that would normally
92340         accompany a virtual `chdir ("..")'.
92342         * modules/fts (Depends-on): Add i-ring.
92343         * modules/i-ring: New module.
92344         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
92345         * m4/i-ring.m4: New file.
92347 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92349         * gnulib-tool (func_create_testdir): Fix replacement of
92350         `build-aux' in configure.ac.  Run autotools in gltests
92351         subdirectory.
92352         (func_create_testdir, func_create_megatestdir, test): There is
92353         no need for '--force' in most autotool invocations in a new
92354         tree.  Actually fail the whole test if any of the tools, or the
92355         configure or make stages fail.
92357         Sync from Automake.
92358         * build-aux/gnupload: Revert last change.  Add pointer to upload
92359         instructions of the GNU Maintenance Instructions.
92360         Suggestion by Karl Berry.
92362 2006-11-10  Jim Meyering  <jim@meyering.net>
92364         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
92366 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
92368         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
92369         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
92370         (bind_textdomain_codeset) [! ENABLE_NLS]:
92371         Evaluate all the arguments.  That way, callers get compatible behavior
92372         if the arguments have side effects.  Also, it avoids some GCC
92373         diagnostics in some cases; Joel E. Denny reported problems when Bison
92374         was configured with --enable-gcc-warnigs.
92376 2006-11-10  Jim Meyering  <jim@meyering.net>
92378         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
92379         relevant options in CFLAGS (like -O, -fno-inline) are taken into
92380         account.
92382 2006-11-10  Jim Meyering  <jim@meyering.net>
92384         * modules/inline: New file/module.
92385         * modules/xalloc (Files): Remove m4/inline.m4.
92386         (Depends-on): Add inline, instead.
92387         * modules/oset: Likewise.
92388         * modules/list: Likewise.
92390 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
92392         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
92393         Problem reported by Matthew Woehlke.
92395 2006-11-09  Bruno Haible  <bruno@clisp.org>
92397         * lib/tempname.c (gen_tempname): Remove variant that invokes
92398         __gen_tempname.
92399         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
92400         __gen_tempname.
92402 2006-11-08  Bruno Haible  <bruno@clisp.org>
92404         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
92405         to 'yes' instead of 'cross-compiling'.
92407 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
92409         * lib/quotearg.h (quotearg_free): New decl.
92410         * lib/quotearg.c (quotearg_free): New function.
92411         (slot0, nslots, slotvec0, slotvec):
92412         Now file-scope so that quotearg_free can get at them.
92414 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92416         Sync from Automake.
92417         * build-aux/gnupload: Add missing 'gnu' to example URL.
92418         Report by Karl Berry.
92420 2006-11-08  Bruno Haible  <bruno@clisp.org>
92422         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
92423         Suggested by Paul Eggert.
92425 2006-11-08  Jim Meyering  <jim@meyering.net>
92427         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
92428         It's already included if !_LIBC.
92429         (fts_safe_changedir): Add a comment.
92431 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
92433         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
92434         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
92435         Matthew Woehlke.
92437         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
92438         definitions up, to avoid colliding with change below.
92439         (static_inline) [HAVE_INLINE]: New macro.
92440         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
92441         Provide extern decls when !HAVE_INLINE.  Do not define unless
92442         static_inline is defined, either by us or by xmalloc.c.  Use
92443         static_inline rather than static inline.
92444         (XCALLOC): Optimize sizeof(T) = 1 case.
92445         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
92447 2006-11-07  Bruno Haible  <bruno@clisp.org>
92449         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
92450         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
92451         AC_C_INLINE.
92452         * modules/xalloc (Files): Add m4/inline.m4.
92454 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92456         * README: Fix typo.
92457         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
92458         (Miscellanous Notes): ...from this.
92460 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
92462         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
92463         Mention that offsetof should be used instead of sizeof.
92464         From Bruno Haible.
92466 2006-11-07  Bruno Haible  <bruno@clisp.org>
92468         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
92470 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
92472         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
92473         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
92474         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
92475         (gl_tree_add_before, gl_tree_add_after):
92476         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
92477         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
92478         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
92479         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
92480         (gl_linked_add_after, gl_linked_add_at): Likewise.
92481         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
92482         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
92483         (gl_tree_add_before, gl_tree_add_after): Likewise.
92484         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
92485         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
92486         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
92488 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92490         * lib/gl_oset.h: Use C comment style, not C++ comment style.
92492 2006-11-06  Bruno Haible  <bruno@clisp.org>
92494         * m4/inline.m4: New file.
92495         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
92496         * modules/list (Files): Add m4/inline.m4.
92497         * modules/oset (Files): Likewise.
92499 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
92501         * lib/idcache.c: Include <stddef.h>, for offsetof.
92502         (struct userid.name): Change from char * to a flexible array member.
92503         All uses changed.
92504         * modules/idcache (Depends-on): Add flexmember.
92506         * MODULES.html.sh (Core language properties): New module flexmember.
92507         * modules/flexmember, m4/flexmember.m4: New files.
92509         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
92510         inline functions that are identical with the old xnmalloc_inline,
92511         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
92512         that we can avoid some unnecessary integer multiplications and
92513         divisions in the common case where the element size is known at
92514         compile time.
92515         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
92516         needed.
92517         (xnboundedmalloc): Remove.
92518         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
92519         arguments, for consistency with rest of this header.
92520         (xcharalloc): Rewrite using XNMALLOC.
92521         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
92522         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
92523         versions have been moved to lib/xalloc.h and renamed to be the
92524         non-*_inline versions.
92525         (xmalloc, xrealloc): Implement without reference to the xnmalloc
92526         and xnrealloc functions, since those functions are now inline and
92527         now call us.
92528         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
92529         renaming described above.
92530         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
92531         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
92532         captures the dependency in AC_C_INLINE.
92534         New module canonicalize-lgpl, proposed by Charles Wilson in
92535         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
92536         with a few small changes afterwards.
92537         * MODULES.html.sh (File system functions): New module
92538         canonicalize-lgpl.
92539         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
92540         and canonicalize_file_name.
92541         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
92542         * modules/canonicalize-lgpl: New files.
92544 2006-11-05  Bruno Haible  <bruno@clisp.org>
92546         * gnulib-tool (func_import, func_create_testdir): Create directories
92547         also for files in subdirectories of lib/.
92549 2006-11-05  Bruno Haible  <bruno@clisp.org>
92551         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
92552         ANSI C compliant.
92554 2006-11-03  Bruno Haible  <bruno@clisp.org>
92556         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
92557         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
92558         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
92559         (xnboundedmalloc): New inline function.
92560         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
92561         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
92562         xmalloc.
92563         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
92564         xmalloc.
92565         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
92566         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
92567         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
92568         xmalloc.
92569         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
92570         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
92571         xmalloc.
92572         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
92573         gl_tree_add_after): Use XMALLOC instead of xmalloc.
92574         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
92575         xmalloc.
92576         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
92577         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
92578         gl_tree_add_after): Use XMALLOC instead of xmalloc.
92579         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
92580         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
92581         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
92582         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
92584 2006-11-03  Bruno Haible  <bruno@clisp.org>
92586         * lib/c-ctype.h [C++]: Define functions without name mangling.
92587         * lib/fwriteerror.h [C++]: Likewise.
92588         * lib/gcd.h [C++]: Likewise.
92589         * lib/linebreak.h [C++]: Likewise.
92591 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
92593         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
92594         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
92595         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
92596         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
92597         Check for functions and headers just once.
92598         Check for declaration of canonicalize_file_name.
92599         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
92601 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
92603         * gnulib-tool (func_import): Fix typo in actioncmd.
92605 2006-11-02  Bruno Haible  <bruno@clisp.org>
92607         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
92608         newline sequence in the Makefile.am snippet as a space, like "make"
92609         does.
92610         Reported by Roger Persson <perrog@gmail.com>.
92612 2006-11-01  Bruno Haible  <bruno@clisp.org>
92614         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
92615         already declared in <string.h>.
92616         * lib/strcase.h (strncasecmp): Don't declare it if yes.
92618 2006-11-01  Bruno Haible  <bruno@clisp.org>
92620         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
92621         * lib/strcase.h: Include <string.h>.
92622         (strcasecmp): Define to rpl_strcasecmp here.
92624 2006-11-01  Bruno Haible  <bruno@clisp.org>
92626         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
92628 2006-11-01  Eric Blake  <ebb9@byu.net>
92630         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
92632         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
92634 2006-10-29  Bruno Haible  <bruno@clisp.org>
92636         Make it compile in C++ mode.
92637         * lib/full-write.c (full_rw): Add a cast.
92639 2006-11-01  Bruno Haible  <bruno@clisp.org>
92641         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
92642         be POSIX compliant.
92643         Reported by Roger Persson <perrog@gmail.com>.
92645 2006-11-01  Eric Blake  <ebb9@byu.net>
92647         * lib/getopt_.h: Fix comments.
92649 2006-10-31  Eric Blake  <ebb9@byu.net>
92651         * modules/tmpdir (Depends-on): Add sys_stat.
92652         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
92653         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
92654         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
92655         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
92656         tempname.
92658 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
92660         Avoid some C++ diagnostics reported by Bruno Haible.
92661         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
92662         xmalloc.
92663         (quotearg_alloc): Use xcharalloc rather than xmalloc.
92664         (struct slotvec): Move to top level.
92665         (quotearg_n_options): Rewrite to avoid xmalloc.
92666         * lib/xalloc.h (xcharalloc): New function.
92667         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
92668         [defined __cplusplus]: Add function template that provides result
92669         type propagation.  This part of the change is from Bruno Haible.
92671 2006-10-29  Bruno Haible  <bruno@clisp.org>
92673         Make it compile in C++ mode.
92674         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
92675         * lib/strnlen1.c (strnlen1): Cast memchr result.
92676         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
92677         * lib/clean-temp.c (string_equals, string_hash): Add casts.
92678         (create_temp_dir): Rename local variable 'template'.
92679         (compile_csharp_using_sscli): Add cast.
92680         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
92681         * lib/findprog.c (find_in_path): Likewise.
92682         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
92683         * lib/wait-process.c (register_slave_subprocess): Likewise.
92685 2006-10-22  Bruno Haible  <bruno@clisp.org>
92687         * modules/tsearch: New file.
92688         * lib/tsearch.h: New file.
92689         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
92690         * m4/tsearch.m4: New file.
92691         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
92693 2006-10-29  Eric Blake  <ebb9@byu.net>
92695         * lib/arcfour.c: Assume config.h.
92696         * lib/arctwo.c: Likewise.
92697         * lib/base64.c: Likewise.
92698         * lib/check-version.c: Likewise.
92699         * lib/crc.c: Likewise.
92700         * lib/des.c: Likewise.
92701         * lib/gc-gnulib.c: Likewise.
92702         * lib/gc-libgcrypt.c: Likewise.
92703         * lib/gc-pbkdf2-sha1.c: Likewise.
92704         * lib/getaddrinfo.c: Likewise.
92705         * lib/getdelim.c: Likewise.
92706         * lib/getline.c: Likewise.
92707         * lib/hmac-md5.c: Likewise.
92708         * lib/hmac-sha1.c: Likewise.
92709         * lib/iconvme.c: Likewise.
92710         * lib/md2.c: Likewise.
92711         * lib/md4.c: Likewise.
92712         * lib/memxor.c: Likewise.
92713         * lib/read-file.c: Likewise.
92714         * lib/readline.c: Likewise.
92715         * lib/rijndael-alg-fst.c: Likewise.
92716         * lib/rijndael-api-fst.c: Likewise.
92717         * lib/xgetdomainname.c: Likewise.
92719 2006-10-28  Eric Blake  <ebb9@byu.net>
92721         * lib/xstrndup.c: Assume config.h.
92723 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
92725         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
92726         stat-macros.h is now for our own macros, whereas stat_h is for
92727         macros in the <sys/stat.h> name space.
92728         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
92729         (STAT_MACROS_H): Remove.
92730         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
92731         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
92732         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
92733         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
92734         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
92735         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
92736         Move these macros to ...
92737         * lib/stat_.h: here.  Don't include stat-macros.h.
92738         * lib/canonicalize.c: Don't include stat-macros.h.
92739         * lib/chown.c: Likewise.
92740         * lib/euidaccess.c: Likewise.
92741         * lib/file-type.c: Likewise.
92742         * lib/filemode.c: Likewise.
92743         * lib/glob.c: Likewise.
92744         * lib/isapipe.c: Likewise.
92745         * lib/lchown.c: Likewise.
92746         * lib/lstat.c: Likewise.
92747         * lib/mkdir-p.c: Likewise.
92748         * lib/rmdir.c: Likewise.
92749         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
92750         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
92751         unless mkdir isn't declared, to speed up 'configure'.
92752         Always create sys/stat.h, since it's unlikely any real sys/stat.h
92753         would define all the S_* symbols.
92754         * modules/canonicalize (Depends-on):
92755         Depend on sys_stat, not stat-macros.
92756         * modules/chown: Likewise.
92757         * modules/euidaccess: Likewise.
92758         * modules/filemode: Likewise.
92759         * modules/file-type: Likewise.
92760         * modules/glob: Likewise.
92761         * modules/isapipe: Likewise.
92762         * modules/lchown: Likewise.
92763         * modules/lstat: Likewise.
92764         * modules/mkancesdirs: Likewise.
92765         * modules/rmdir: Likewise.
92766         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
92767         * modules/modechange: Likewise.
92768         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
92769         (configure.ac): Remove gl_STAT_MACROS.
92770         * modules/sys_stat (Depends-on): Remove stat-macros.
92772 2006-10-27  Bruno Haible  <bruno@clisp.org>
92774         * m4/signed.m4: Remove file.
92775         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
92776         invocation.
92777         * modules/vasnprintf (Files): Remove m4/signed.m4.
92779 2006-10-27  Bruno Haible  <bruno@clisp.org>
92781         Update to GNU gettext 0.16.
92782         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
92783         m4/inttypes-h.m4, m4/signed.m4.
92784         * m4/gettext.m4: Update to GNU gettext 0.16.
92785         * m4/intl.m4: New file, from GNU gettext.
92786         * m4/intldir.m4: New file, from GNU gettext.
92787         * config/srclist.txt: Update
92789 2006-10-27  Eric Blake  <ebb9@byu.net>
92791         * MODULES.html.sh: Document tempname.
92792         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
92793         dependencies.
92794         (Files): Move lib/tempname.c...
92795         * modules/tempname: ...to this new module.
92796         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
92797         (gl_PREREQ_TEMPNAME): Move...
92798         * m4/tempname.m4: ...to this new file.
92799         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
92800         * modules/sys_stat (Depends-on): Add stat-macros.
92801         * lib/stat_.h (includes): Pick up stat macros.
92802         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
92803         if stat macros are broken.
92804         * lib/tempname.c (includes): No need to include "stat-macros.h".
92805         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
92806         (direxists, __path_search) [!_LIBC]: Don't compile these in
92807         gnulib; the tmpdir module covers that.
92808         * lib/tempname.h: New file.
92810 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
92812         * COPYING: Explain how gnulib-tool converts licence headers.
92813         Almost all wording by Eric Blake.
92815 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
92817         * lib/mbchar.h (is_basic_table): Make read-only.
92818         * lib/mbchar.c (is_basic_table): Likewise.
92819         Reported by John Darrington.
92821 2006-10-25  Bruno Haible  <bruno@clisp.org>
92823         * lib/progname.h (set_program_name): Undefine before defining.
92825 2006-10-25  Bruno Haible  <bruno@clisp.org>
92827         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
92828         false for non-gcc C++ compilers.
92829         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
92831 2006-10-24  Bruno Haible  <bruno@clisp.org>
92833         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
92834         iconv implementations like Irix iconv.
92836 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
92838         * modules/vararrays: New file.
92839         * m4/vararrays.m4: New file, taken from diffutils.
92840         * MODULES.html.sh: New module vararrays.
92842 2006-10-24  Karl Berry  <karl@gnu.org>
92844         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
92845         Don't call GNU Unix.
92847 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92849         * users.txt: Add Libtool.
92851         Sync from Libtool:
92853         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
92855         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
92856         to gnulib's policy of including config.h unconditionally.
92858 2006-10-24  Bruno Haible  <bruno@clisp.org>
92860         * modules/wcwidth (Files): Add m4/wint_t.m4.
92861         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
92862         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
92864 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
92866         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
92867         to pacify GCC with some -W flags enabled.  Problem reported by
92868         Bruno Haible.
92870 2006-10-24  Jim Meyering  <jim@meyering.net>
92872         * MODULES.html.sh: Remove uinttostr.  It's not a module.
92873         Reported by Karl Berry.
92875 2006-10-23  Bruno Haible  <bruno@clisp.org>
92877         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
92879 2006-10-24  Bruno Haible  <bruno@clisp.org>
92881         * lib/gl_list.h: Use C comment style, not C++ comment style.
92883 2006-10-23  Eric Blake  <ebb9@byu.net>
92885         * lib/getaddrinfo.c (includes): Add missing include.
92887 2006-10-23  Bruno Haible  <bruno@clisp.org>
92888             Paul Eggert  <eggert@cs.ucla.edu>
92890         Ability to rename obstack_free.
92891         * lib/obstack.h (__obstack_free): New macro. Declare instead of
92892         obstack_free.
92893         (obstack_free): Invoke the __obstack_free macro.
92894         * lib/obstack.c (obstack_free): Use __obstack_free macro.
92896 2006-10-23  Bruno Haible  <bruno@clisp.org>
92897             Paul Eggert  <eggert@cs.ucla.edu>
92899         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
92900         __argc, __argv from the declaration. (They are defined as macros on
92901         mingw.)
92903 2006-10-22  Bruno Haible  <bruno@clisp.org>
92905         * doc/gnulib-intro.texi: New file.
92906         * doc/gnulib.texi: Include it.
92908 2006-10-21  Bruno Haible  <bruno@clisp.org>
92910         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
92911         "Introduction", "Miscellanous Notes", "Particular Modules".
92913 2006-10-21  Bruno Haible  <bruno@clisp.org>
92915         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92916         Change mostlyclean-local rule to avoid sh syntax error from bash
92917         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
92919 2006-10-23  Jim Meyering  <jim@meyering.net>
92921         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
92922         in place of snprintf.
92924         * modules/inttostr (Files): Add lib/uinttostr.c.
92925         * lib/uinttostr.c (inttostr): New file/function.
92926         * lib/inttostr.h (uinttostr): Declare.
92927         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
92928         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
92929         Add uinttostr.
92930         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
92932 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
92934         * lib/canonicalize.c (ELOOP): Define if not already defined.
92935         Problem reported by Bruno Haible in
92936         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
92938 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
92940         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
92941         Problem reported by Perry Smith and Ville Laurikari.
92943         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
92944         uses.
92946 2006-10-19  Bruno Haible  <bruno@clisp.org>
92948         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
92949         for mingw.
92951 2006-10-19  Bruno Haible  <bruno@clisp.org>
92953         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
92954         Needed for mingw.
92956 2006-10-19  Bruno Haible  <bruno@clisp.org>
92958         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
92960 2006-10-19  Bruno Haible  <bruno@clisp.org>
92962         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
92963         it.
92965 2006-10-19  Bruno Haible  <bruno@clisp.org>
92967         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
92968         invocation.
92970 2006-10-19  Bruno Haible  <bruno@clisp.org>
92972         * gnulib-tool (func_create_testdir): Don't include ftruncate and
92973         mountlist by default.
92975 2006-10-16  Bruno Haible  <bruno@clisp.org>
92977         * lib/c-strstr.c: Include c-strstr.h.
92979 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
92981         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
92982         in a slash.
92984 2006-10-18  Bruno Haible  <bruno@clisp.org>
92986         * lib/lock.h [C++]: Wrap definitions in extern "C".
92988 2006-10-18  Bruno Haible  <bruno@clisp.org>
92990         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
92991         gl_LIBOBJS list.
92993 2006-10-18  Bruno Haible  <bruno@clisp.org>
92995         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
92997 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
92999         * lib/xstrtol.h: Include gettext.h.
93000         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
93001         Problem reported by Eric Blake.
93002         * modules/xstrtol (Depends-on): Add gettext-h.
93004 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
93006         * lib/strftime.c (advance): New macro.
93007         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
93008         incomplete type, so you can't add 0 to it.  Problem and patch
93009         reported by Eelco Dolstra for dietlibc.
93011 2006-10-18  Jim Meyering  <jim@meyering.net>
93013         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
93014         type for a local, and rename it: s/up/user_proc/.
93016 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
93018         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
93019         READ_UTMP_USER_PROCESS.
93020         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
93022 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
93024         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
93025         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
93027 2006-10-17  Eric Blake  <ebb9@byu.net>
93029         * lib/sigprocmask.c (sigprocmask): Fix typo.
93031         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
93033         * modules/clean-temp (Makefile.am): Don't add to make output...
93034         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
93035         config.h.
93037 2006-10-17  Bruno Haible  <bruno@clisp.org>
93039         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
93040         differently if DEFAULT_TEXT_DOMAIN is set.
93042 2006-10-16  Bruno Haible  <bruno@clisp.org>
93044         * lib/clean-temp.c: Include fwriteerror.h.
93046 2006-10-16  Bruno Haible  <bruno@clisp.org>
93048         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
93050 2006-10-16  Bruno Haible  <bruno@clisp.org>
93052         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
93053         * lib/sigprocmask.h: Include <sys/types.h>.
93054         (sigset_t): Use the system's definition if present.
93056 2006-10-17  Eric Blake  <ebb9@byu.net>
93058         * lib/xvasprintf.c (includes): Assume config.h.
93059         * lib/xasprintf.c (includes): Likewise.
93061 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
93063         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
93064         at least as wide as intmax_t.
93066 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
93068         (Imported from Automake.)
93069         * build-aux/gnupload: Update to version 1.1 of directive file.
93071 2006-10-16  Eric Blake  <ebb9@byu.net>
93073         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
93074         match Automake 1.10a.
93076 2006-10-14  Bruno Haible  <bruno@clisp.org>
93078         * modules/sigprocmask: New file.
93079         * lib/sigprocmask.h: New file.
93080         * lib/sigprocmask.c: New file.
93081         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
93082         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
93083         request sigprocmask.o.
93084         (gl_PREREQ_SIGPROCMASK): New macro.
93085         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
93086         (Depends-on): Add sigprocmask.
93087         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
93088         gt_SIGNALBLOCKING. Test for 'raise' only once.
93089         * lib/fatal-signal.c: Include sigprocmask.h.
93090         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
93091         unblock_fatal_signals): Define always.
93092         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93093         sigprocmask.
93095 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
93097         Sync from Automake.
93098         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
93099         which incorrectly sets the mode of an existing destination
93100         directory.  In some cases the unpatched install-sh could do the
93101         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
93102         system.  We hope this is rare in practice, but it's clearly worth
93103         fixing.  Problem reported by Alex Unleashed in
93104         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
93105         Also, don't bother to check for -m bugs unless we're using -m;
93106         suggested by Stepan Kasal.
93108 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93110         Sync from Automake.
93111         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
93112         `-c' flag, so they appear at the same position as in %FASTDEP%
93113         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
93114         which ignores unknown options only after the first non-option.
93115         Bug report against M4 by Nelson H. F. Beebe.
93117 2006-10-13  Jim Meyering  <jim@meyering.net>
93119         Fix a bug in yesterday's change.
93120         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
93121         p->fts_statp->st_dev would be used uninitialized.
93122         Ensures that we always call fts_stat on the very first entry.
93123         Miklos Szeredi reported that find -xdev stopped working.
93125 2006-10-12  Bruno Haible  <bruno@clisp.org>
93127         * gnulib-tool (func_get_automake_snippet): Append an automatically
93128         computed EXTRA_DIST augmentation.
93129         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
93130         * modules/alloca-opt (Makefile.am): Likewise.
93131         * modules/allocsa (Makefile.am): Likewise.
93132         * modules/arcfour (Makefile.am): Likewise.
93133         * modules/arctwo (Makefile.am): Likewise.
93134         * modules/argmatch (Makefile.am): Likewise.
93135         * modules/argz (Makefile.am): Likewise.
93136         * modules/atexit (Makefile.am): Likewise.
93137         * modules/backupfile (Makefile.am): Likewise.
93138         * modules/byteswap (Makefile.am): Likewise.
93139         * modules/c-strtod (Makefile.am): Likewise.
93140         * modules/c-strtold (Makefile.am): Likewise.
93141         * modules/calloc (Makefile.am): Likewise.
93142         * modules/canon-host (Makefile.am): Likewise.
93143         * modules/canonicalize (Makefile.am): Likewise.
93144         * modules/chdir-long (Makefile.am): Likewise.
93145         * modules/chdir-safer (Makefile.am): Likewise.
93146         * modules/check-version (Makefile.am): Likewise.
93147         * modules/chown (Makefile.am): Likewise.
93148         * modules/cloexec (Makefile.am): Likewise.
93149         * modules/close-stream (Makefile.am): Likewise.
93150         * modules/closeout (Makefile.am): Likewise.
93151         * modules/crc (Makefile.am): Likewise.
93152         * modules/csharpexec (Makefile.am): Likewise.
93153         * modules/cycle-check (Makefile.am): Likewise.
93154         * modules/des (Makefile.am): Likewise.
93155         * modules/dev-ino (Makefile.am): Likewise.
93156         * modules/dirfd (Makefile.am): Likewise.
93157         * modules/dirname (Makefile.am): Likewise.
93158         * modules/dup2 (Makefile.am): Likewise.
93159         * modules/eealloc (Makefile.am): Likewise.
93160         * modules/error (Makefile.am): Likewise.
93161         * modules/euidaccess (Makefile.am): Likewise.
93162         * modules/exclude (Makefile.am): Likewise.
93163         * modules/exitfail (Makefile.am): Likewise.
93164         * modules/fcntl-safer (Makefile.am): Likewise.
93165         * modules/fcntl (Makefile.am): Likewise.
93166         * modules/file-type (Makefile.am): Likewise.
93167         * modules/fileblocks (Makefile.am): Likewise.
93168         * modules/filemode (Makefile.am): Likewise.
93169         * modules/filenamecat (Makefile.am): Likewise.
93170         * modules/fnmatch (Makefile.am): Likewise.
93171         * modules/fopen-safer (Makefile.am): Likewise.
93172         * modules/fpending (Makefile.am): Likewise.
93173         * modules/fprintftime (Makefile.am): Likewise.
93174         * modules/free (Makefile.am): Likewise.
93175         * modules/fsusage (Makefile.am): Likewise.
93176         * modules/ftruncate (Makefile.am): Likewise.
93177         * modules/fts (Makefile.am): Likewise.
93178         * modules/gc-arcfour (Makefile.am): Likewise.
93179         * modules/gc-des (Makefile.am): Likewise.
93180         * modules/gc-hmac-md5 (Makefile.am): Likewise.
93181         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
93182         * modules/gc-md4 (Makefile.am): Likewise.
93183         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
93184         * modules/gc-sha1 (Makefile.am): Likewise.
93185         * modules/gc (Makefile.am): Likewise.
93186         * modules/getaddrinfo (Makefile.am): Likewise.
93187         * modules/getcwd (Makefile.am): Likewise.
93188         * modules/getdelim (Makefile.am): Likewise.
93189         * modules/getdomainname (Makefile.am): Likewise.
93190         * modules/getgroups (Makefile.am): Likewise.
93191         * modules/gethostname (Makefile.am): Likewise.
93192         * modules/gethrxtime (Makefile.am): Likewise.
93193         * modules/getline (Makefile.am): Likewise.
93194         * modules/getloadavg (Makefile.am): Likewise.
93195         * modules/getlogin_r (Makefile.am): Likewise.
93196         * modules/getndelim2 (Makefile.am): Likewise.
93197         * modules/getopt (Makefile.am): Likewise.
93198         * modules/getpagesize (Makefile.am): Likewise.
93199         * modules/getpass-gnu (Makefile.am): Likewise.
93200         * modules/getpass (Makefile.am): Likewise.
93201         * modules/getsubopt (Makefile.am): Likewise.
93202         * modules/gettime (Makefile.am): Likewise.
93203         * modules/gettimeofday (Makefile.am): Likewise.
93204         * modules/getugroups (Makefile.am): Likewise.
93205         * modules/getusershell (Makefile.am): Likewise.
93206         * modules/glob (Makefile.am): Likewise.
93207         * modules/group-member (Makefile.am): Likewise.
93208         * modules/hard-locale (Makefile.am): Likewise.
93209         * modules/hash (Makefile.am): Likewise.
93210         * modules/hmac-md5 (Makefile.am): Likewise.
93211         * modules/hmac-sha1 (Makefile.am): Likewise.
93212         * modules/human (Makefile.am): Likewise.
93213         * modules/idcache (Makefile.am): Likewise.
93214         * modules/imaxabs (Makefile.am): Likewise.
93215         * modules/imaxdiv (Makefile.am): Likewise.
93216         * modules/inet_ntop (Makefile.am): Likewise.
93217         * modules/inet_pton (Makefile.am): Likewise.
93218         * modules/intprops (Makefile.am): Likewise.
93219         * modules/inttostr (Makefile.am): Likewise.
93220         * modules/inttypes (Makefile.am): Likewise.
93221         * modules/isapipe (Makefile.am): Likewise.
93222         * modules/javaversion (Makefile.am): Likewise.
93223         * modules/lchmod (Makefile.am): Likewise.
93224         * modules/lchown (Makefile.am): Likewise.
93225         * modules/localcharset (Makefile.am): Likewise.
93226         * modules/long-options (Makefile.am): Likewise.
93227         * modules/lstat (Makefile.am): Likewise.
93228         * modules/malloc (Makefile.am): Likewise.
93229         * modules/mathl (Makefile.am): Likewise.
93230         * modules/mbchar (Makefile.am): Likewise.
93231         * modules/md2 (Makefile.am): Likewise.
93232         * modules/md4 (Makefile.am): Likewise.
93233         * modules/md5 (Makefile.am): Likewise.
93234         * modules/memcasecmp (Makefile.am): Likewise.
93235         * modules/memchr (Makefile.am): Likewise.
93236         * modules/memcmp (Makefile.am): Likewise.
93237         * modules/memcoll (Makefile.am): Likewise.
93238         * modules/memcpy (Makefile.am): Likewise.
93239         * modules/memmem (Makefile.am): Likewise.
93240         * modules/memmove (Makefile.am): Likewise.
93241         * modules/mempcpy (Makefile.am): Likewise.
93242         * modules/memrchr (Makefile.am): Likewise.
93243         * modules/memset (Makefile.am): Likewise.
93244         * modules/memxor (Makefile.am): Likewise.
93245         * modules/mkancesdirs (Makefile.am): Likewise.
93246         * modules/mkdir-p (Makefile.am): Likewise.
93247         * modules/mkdir (Makefile.am): Likewise.
93248         * modules/mkdtemp (Makefile.am): Likewise.
93249         * modules/mkstemp (Makefile.am): Likewise.
93250         * modules/mktime (Makefile.am): Likewise.
93251         * modules/modechange (Makefile.am): Likewise.
93252         * modules/mountlist (Makefile.am): Likewise.
93253         * modules/nanosleep (Makefile.am): Likewise.
93254         * modules/obstack (Makefile.am): Likewise.
93255         * modules/openat (Makefile.am): Likewise.
93256         * modules/pagealign_alloc (Makefile.am): Likewise.
93257         * modules/pathmax (Makefile.am): Likewise.
93258         * modules/physmem (Makefile.am): Likewise.
93259         * modules/poll (Makefile.am): Likewise.
93260         * modules/posixtm (Makefile.am): Likewise.
93261         * modules/posixver (Makefile.am): Likewise.
93262         * modules/putenv (Makefile.am): Likewise.
93263         * modules/quote (Makefile.am): Likewise.
93264         * modules/quotearg (Makefile.am): Likewise.
93265         * modules/raise (Makefile.am): Likewise.
93266         * modules/read-file (Makefile.am): Likewise.
93267         * modules/readline (Makefile.am): Likewise.
93268         * modules/readlink (Makefile.am): Likewise.
93269         * modules/readtokens (Makefile.am): Likewise.
93270         * modules/readutmp (Makefile.am): Likewise.
93271         * modules/realloc (Makefile.am): Likewise.
93272         * modules/regex (Makefile.am): Likewise.
93273         * modules/rename-dest-slash (Makefile.am): Likewise.
93274         * modules/rename (Makefile.am): Likewise.
93275         * modules/rijndael (Makefile.am): Likewise.
93276         * modules/rmdir (Makefile.am): Likewise.
93277         * modules/rpmatch (Makefile.am): Likewise.
93278         * modules/safe-read (Makefile.am): Likewise.
93279         * modules/safe-write (Makefile.am): Likewise.
93280         * modules/same-inode (Makefile.am): Likewise.
93281         * modules/same (Makefile.am): Likewise.
93282         * modules/save-cwd (Makefile.am): Likewise.
93283         * modules/savedir (Makefile.am): Likewise.
93284         * modules/setenv (Makefile.am): Likewise.
93285         * modules/settime (Makefile.am): Likewise.
93286         * modules/sha1 (Makefile.am): Likewise.
93287         * modules/sig2str (Makefile.am): Likewise.
93288         * modules/snprintf (Makefile.am): Likewise.
93289         * modules/stat-macros (Makefile.am): Likewise.
93290         * modules/stat-time (Makefile.am): Likewise.
93291         * modules/stdbool (Makefile.am): Likewise.
93292         * modules/stdint (Makefile.am): Likewise.
93293         * modules/stdlib-safer (Makefile.am): Likewise.
93294         * modules/stpcpy (Makefile.am): Likewise.
93295         * modules/stpncpy (Makefile.am): Likewise.
93296         * modules/strcase (Makefile.am): Likewise.
93297         * modules/strcasestr (Makefile.am): Likewise.
93298         * modules/strchrnul (Makefile.am): Likewise.
93299         * modules/strcspn (Makefile.am): Likewise.
93300         * modules/strdup (Makefile.am): Likewise.
93301         * modules/strerror (Makefile.am): Likewise.
93302         * modules/strftime (Makefile.am): Likewise.
93303         * modules/strndup (Makefile.am): Likewise.
93304         * modules/strnlen (Makefile.am): Likewise.
93305         * modules/strpbrk (Makefile.am): Likewise.
93306         * modules/strsep (Makefile.am): Likewise.
93307         * modules/strstr (Makefile.am): Likewise.
93308         * modules/strtod (Makefile.am): Likewise.
93309         * modules/strtoimax (Makefile.am): Likewise.
93310         * modules/strtok_r (Makefile.am): Likewise.
93311         * modules/strtol (Makefile.am): Likewise.
93312         * modules/strtoll (Makefile.am): Likewise.
93313         * modules/strtoul (Makefile.am): Likewise.
93314         * modules/strtoull (Makefile.am): Likewise.
93315         * modules/strtoumax (Makefile.am): Likewise.
93316         * modules/strverscmp (Makefile.am): Likewise.
93317         * modules/sys_socket (Makefile.am): Likewise.
93318         * modules/sys_stat (Makefile.am): Likewise.
93319         * modules/sysexits (Makefile.am): Likewise.
93320         * modules/time_r (Makefile.am): Likewise.
93321         * modules/timegm (Makefile.am): Likewise.
93322         * modules/timespec (Makefile.am): Likewise.
93323         * modules/tmpfile-safer (Makefile.am): Likewise.
93324         * modules/trim (Makefile.am): Likewise.
93325         * modules/unistd-safer (Makefile.am): Likewise.
93326         * modules/unlinkdir (Makefile.am): Likewise.
93327         * modules/unlocked-io (Makefile.am): Likewise.
93328         * modules/userspec (Makefile.am): Likewise.
93329         * modules/utime (Makefile.am): Likewise.
93330         * modules/utimecmp (Makefile.am): Likewise.
93331         * modules/utimens (Makefile.am): Likewise.
93332         * modules/vasnprintf (Makefile.am): Likewise.
93333         * modules/vasprintf (Makefile.am): Likewise.
93334         * modules/vsnprintf (Makefile.am): Likewise.
93335         * modules/xalloc (Makefile.am): Likewise.
93336         * modules/xgetcwd (Makefile.am): Likewise.
93337         * modules/xnanosleep (Makefile.am): Likewise.
93338         * modules/xreadlink (Makefile.am): Likewise.
93339         * modules/xstrtod (Makefile.am): Likewise.
93340         * modules/xstrtol (Makefile.am): Likewise.
93341         * modules/xstrtold (Makefile.am): Likewise.
93342         * modules/yesno (Makefile.am): Likewise.
93343         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
93345 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
93347         * modules/error (Makefile.am): Distribute files through
93348         EXTRA_DIST, not lib_SOURCES.
93350 2006-10-12  Eric Blake  <ebb9@byu.net>
93352         * modules/error (Makefile.am): Distribute files in /lib.
93353         * modules/obstack (Makefile.am): Likewise.
93355 2006-10-12  Bruno Haible  <bruno@clisp.org>
93357         * modules/acl (Makefile.am): Distribute all files in lib/ through
93358         EXTRA_DIST.
93359         * modules/arcfour (Makefile.am): Likewise.
93360         * modules/arctwo (Makefile.am): Likewise.
93361         * modules/argmatch (Makefile.am): Likewise.
93362         * modules/argz (Makefile.am): Likewise.
93363         * modules/atexit (Makefile.am): Likewise.
93364         * modules/backupfile (Makefile.am): Likewise.
93365         * modules/c-strtod (Makefile.am): Likewise.
93366         * modules/c-strtold (Makefile.am): Likewise.
93367         * modules/calloc (Makefile.am): Likewise.
93368         * modules/canon-host (Makefile.am): Likewise.
93369         * modules/canonicalize (Makefile.am): Likewise.
93370         * modules/chdir-long (Makefile.am): Likewise.
93371         * modules/chdir-safer (Makefile.am): Likewise.
93372         * modules/check-version (Makefile.am): Likewise.
93373         * modules/chown (Makefile.am): Likewise.
93374         * modules/cloexec (Makefile.am): Likewise.
93375         * modules/close-stream (Makefile.am): Likewise.
93376         * modules/closeout (Makefile.am): Likewise.
93377         * modules/crc (Makefile.am): Likewise.
93378         * modules/cycle-check (Makefile.am): Likewise.
93379         * modules/des (Makefile.am): Likewise.
93380         * modules/dirfd (Makefile.am): Likewise.
93381         * modules/dirname (Makefile.am): Likewise.
93382         * modules/dup2 (Makefile.am): Likewise.
93383         * modules/euidaccess (Makefile.am): Likewise.
93384         * modules/exclude (Makefile.am): Likewise.
93385         * modules/exitfail (Makefile.am): Likewise.
93386         * modules/fcntl-safer (Makefile.am): Likewise.
93387         * modules/file-type (Makefile.am): Likewise.
93388         * modules/fileblocks (Makefile.am): Likewise.
93389         * modules/filemode (Makefile.am): Likewise.
93390         * modules/filenamecat (Makefile.am): Likewise.
93391         * modules/fnmatch (Makefile.am): Likewise.
93392         * modules/fopen-safer (Makefile.am): Likewise.
93393         * modules/fpending (Makefile.am): Likewise.
93394         * modules/fprintftime (Makefile.am): Likewise.
93395         * modules/free (Makefile.am): Likewise.
93396         * modules/fsusage (Makefile.am): Likewise.
93397         * modules/ftruncate (Makefile.am): Likewise.
93398         * modules/fts (Makefile.am): Likewise.
93399         * modules/gc (Makefile.am): Likewise.
93400         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
93401         * modules/getaddrinfo (Makefile.am): Likewise.
93402         * modules/getcwd (Makefile.am): Likewise.
93403         * modules/getdelim (Makefile.am): Likewise.
93404         * modules/getdomainname (Makefile.am): Likewise.
93405         * modules/getgroups (Makefile.am): Likewise.
93406         * modules/gethostname (Makefile.am): Likewise.
93407         * modules/gethrxtime (Makefile.am): Likewise.
93408         * modules/getline (Makefile.am): Likewise.
93409         * modules/getloadavg (Makefile.am): Likewise.
93410         * modules/getlogin_r (Makefile.am): Likewise.
93411         * modules/getopt (Makefile.am): Likewise.
93412         * modules/getpass (Makefile.am): Likewise.
93413         * modules/getpass-gnu (Makefile.am): Likewise.
93414         * modules/getsubopt (Makefile.am): Likewise.
93415         * modules/gettime (Makefile.am): Likewise.
93416         * modules/gettimeofday (Makefile.am): Likewise.
93417         * modules/getugroups (Makefile.am): Likewise.
93418         * modules/getusershell (Makefile.am): Likewise.
93419         * modules/glob (Makefile.am): Likewise.
93420         * modules/group-member (Makefile.am): Likewise.
93421         * modules/hard-locale (Makefile.am): Likewise.
93422         * modules/hash (Makefile.am): Likewise.
93423         * modules/hmac-md5 (Makefile.am): Likewise.
93424         * modules/hmac-sha1 (Makefile.am): Likewise.
93425         * modules/human (Makefile.am): Likewise.
93426         * modules/idcache (Makefile.am): Likewise.
93427         * modules/imaxabs (Makefile.am): Likewise.
93428         * modules/imaxdiv (Makefile.am): Likewise.
93429         * modules/inet_ntop (Makefile.am): Likewise.
93430         * modules/inet_pton (Makefile.am): Likewise.
93431         * modules/inttostr (Makefile.am): Likewise.
93432         * modules/isapipe (Makefile.am): Likewise.
93433         * modules/lchown (Makefile.am): Likewise.
93434         * modules/long-options (Makefile.am): Likewise.
93435         * modules/lstat (Makefile.am): Likewise.
93436         * modules/malloc (Makefile.am): Likewise.
93437         * modules/mathl (Makefile.am): Likewise.
93438         * modules/mbchar (Makefile.am): Likewise.
93439         * modules/md2 (Makefile.am): Likewise.
93440         * modules/md4 (Makefile.am): Likewise.
93441         * modules/md5 (Makefile.am): Likewise.
93442         * modules/memcasecmp (Makefile.am): Likewise.
93443         * modules/memchr (Makefile.am): Likewise.
93444         * modules/memcmp (Makefile.am): Likewise.
93445         * modules/memcoll (Makefile.am): Likewise.
93446         * modules/memcpy (Makefile.am): Likewise.
93447         * modules/memmem (Makefile.am): Likewise.
93448         * modules/memmove (Makefile.am): Likewise.
93449         * modules/mempcpy (Makefile.am): Likewise.
93450         * modules/memrchr (Makefile.am): Likewise.
93451         * modules/memset (Makefile.am): Likewise.
93452         * modules/memxor (Makefile.am): Likewise.
93453         * modules/mkancesdirs (Makefile.am): Likewise.
93454         * modules/mkdir (Makefile.am): Likewise.
93455         * modules/mkdir-p (Makefile.am): Likewise.
93456         * modules/mkdtemp (Makefile.am): Likewise.
93457         * modules/mkstemp (Makefile.am): Likewise.
93458         * modules/mktime (Makefile.am): Likewise.
93459         * modules/modechange (Makefile.am): Likewise.
93460         * modules/mountlist (Makefile.am): Likewise.
93461         * modules/nanosleep (Makefile.am): Likewise.
93462         * modules/openat (Makefile.am): Likewise.
93463         * modules/pagealign_alloc (Makefile.am): Likewise.
93464         * modules/physmem (Makefile.am): Likewise.
93465         * modules/poll (Makefile.am): Likewise.
93466         * modules/posixtm (Makefile.am): Likewise.
93467         * modules/posixver (Makefile.am): Likewise.
93468         * modules/putenv (Makefile.am): Likewise.
93469         * modules/quote (Makefile.am): Likewise.
93470         * modules/quotearg (Makefile.am): Likewise.
93471         * modules/raise (Makefile.am): Likewise.
93472         * modules/read-file (Makefile.am): Likewise.
93473         * modules/readline (Makefile.am): Likewise.
93474         * modules/readlink (Makefile.am): Likewise.
93475         * modules/readtokens (Makefile.am): Likewise.
93476         * modules/readutmp (Makefile.am): Likewise.
93477         * modules/realloc (Makefile.am): Likewise.
93478         * modules/regex (Makefile.am): Likewise.
93479         * modules/rename (Makefile.am): Likewise.
93480         * modules/rename-dest-slash (Makefile.am): Likewise.
93481         * modules/rijndael (Makefile.am): Likewise.
93482         * modules/rmdir (Makefile.am): Likewise.
93483         * modules/rpmatch (Makefile.am): Likewise.
93484         * modules/safe-read (Makefile.am): Likewise.
93485         * modules/safe-write (Makefile.am): Likewise.
93486         * modules/same (Makefile.am): Likewise.
93487         * modules/save-cwd (Makefile.am): Likewise.
93488         * modules/savedir (Makefile.am): Likewise.
93489         * modules/setenv (Makefile.am): Likewise.
93490         * modules/settime (Makefile.am): Likewise.
93491         * modules/sha1 (Makefile.am): Likewise.
93492         * modules/sig2str (Makefile.am): Likewise.
93493         * modules/snprintf (Makefile.am): Likewise.
93494         * modules/stdlib-safer (Makefile.am): Likewise.
93495         * modules/stpcpy (Makefile.am): Likewise.
93496         * modules/stpncpy (Makefile.am): Likewise.
93497         * modules/strcase (Makefile.am): Likewise.
93498         * modules/strcasestr (Makefile.am): Likewise.
93499         * modules/strchrnul (Makefile.am): Likewise.
93500         * modules/strcspn (Makefile.am): Likewise.
93501         * modules/strdup (Makefile.am): Likewise.
93502         * modules/strerror (Makefile.am): Likewise.
93503         * modules/strftime (Makefile.am): Likewise.
93504         * modules/strndup (Makefile.am): Likewise.
93505         * modules/strnlen (Makefile.am): Likewise.
93506         * modules/strpbrk (Makefile.am): Likewise.
93507         * modules/strsep (Makefile.am): Likewise.
93508         * modules/strstr (Makefile.am): Likewise.
93509         * modules/strtod (Makefile.am): Likewise.
93510         * modules/strtoimax (Makefile.am): Likewise.
93511         * modules/strtok_r (Makefile.am): Likewise.
93512         * modules/strtol (Makefile.am): Likewise.
93513         * modules/strtoll (Makefile.am): Likewise.
93514         * modules/strtoul (Makefile.am): Likewise.
93515         * modules/strtoull (Makefile.am): Likewise.
93516         * modules/strtoumax (Makefile.am): Likewise.
93517         * modules/strverscmp (Makefile.am): Likewise.
93518         * modules/time_r (Makefile.am): Likewise.
93519         * modules/timegm (Makefile.am): Likewise.
93520         * modules/tmpfile-safer (Makefile.am): Likewise.
93521         * modules/unistd-safer (Makefile.am): Likewise.
93522         * modules/unlinkdir (Makefile.am): Likewise.
93523         * modules/userspec (Makefile.am): Likewise.
93524         * modules/utime (Makefile.am): Likewise.
93525         * modules/utimecmp (Makefile.am): Likewise.
93526         * modules/utimens (Makefile.am): Likewise.
93527         * modules/vasnprintf (Makefile.am): Likewise.
93528         * modules/vasprintf (Makefile.am): Likewise.
93529         * modules/vsnprintf (Makefile.am): Likewise.
93530         * modules/xalloc (Makefile.am): Likewise.
93531         * modules/xgetcwd (Makefile.am): Likewise.
93532         * modules/xnanosleep (Makefile.am): Likewise.
93533         * modules/xreadlink (Makefile.am): Likewise.
93534         * modules/xstrtod (Makefile.am): Likewise.
93535         * modules/xstrtol (Makefile.am): Likewise.
93536         * modules/xstrtold (Makefile.am): Likewise.
93537         * modules/yesno (Makefile.am): Likewise.
93539 2006-10-12  Jim Meyering  <jim@meyering.net>
93541         * m4/getloadavg.m4: Revert the change below.
93543         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
93544         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
93545         fail with a symlink, which is what coreutils' ./bootstrap now
93546         creates by default.
93548 2006-10-12  Bruno Haible  <bruno@clisp.org>
93550         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
93551         mingw.
93552         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
93553         MSVC and mingw explicitly.
93555 2006-10-11  Simon Josefsson  <jas@extundo.com>
93556             Bruno Haible  <bruno@clisp.org>
93558         Add support for multiple gnulib-tool invocations in the scope of a
93559         single configure.ac file.
93560         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
93561         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
93562         with the same contents as the _LIBADD variable.
93563         (func_emit_initmacro_start, func_emit_initmacro_end,
93564         func_emit_initmacro_done): New functions.
93565         (func_import, func_create_testdir): Invoke them. Allow the identifiers
93566         gl_LIBOBJS and gl_LTLIBOBJS.
93568 2006-10-11  Bruno Haible  <bruno@clisp.org>
93570         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
93571         (func_create_testdir): Don't create po/Makefile.am, don't invoke
93572         autoreconf. Instead, invoke autopoint explicitly but move back the
93573         *.m4 files from gnulib.
93575 2006-10-11  Bruno Haible  <bruno@clisp.org>
93577         * gnulib-tool (func_usage): Make module names after --create-testdir
93578         optional.
93579         (func_create_testdir): If no module was specified, use nearly all
93580         modules.
93582 2006-10-12  Jim Meyering  <jim@meyering.net>
93584         Big performance improvement for fts-based tools that use FTS_NOSTAT.
93585         Avoid spurious inode-mismatch problems on non-POSIX file systems.
93586         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
93587         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
93588         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
93589         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
93590         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
93591         (fts_set_stat_required): New function.
93592         (fts_open): Defer the calls to fts_stat, if possible or requested.
93593         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
93594         into fts_stat itself.
93595         (fts_read): Perform any required (deferred) fts_stat call.
93596         (fts_build): Likewise, for the directory we're about to open and read.
93597         In the readdir loop, carefully decide whether each entry will require
93598         an eventual call to fts_stat, using dirent.d_type info if available.
93599         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
93600         a command line argument into this function.  Update all callers.
93601         Map a return value of FTS_DOT to FTS_D for a command line argument.
93602         * modules/fts (Depends-on): Add d-type.  Alphabetize.
93603         Thanks to Miklos Szeredi for his tenacity and for the initial
93604         bug report about "find" failing on a FUSE-based file system.
93606         * lib/fts.c (fts_open): Use consistent indentation.
93608 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
93610         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
93611         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
93612         reported by Jim Meyering.  All uses of cache variables renamed
93613         to match Autoconf's.
93614         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
93615         the other one.
93617         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
93618         Fix misspelling in diagnostic.
93620 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
93622         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
93623         defined.  Problem reported by Matthew Woehlke.
93625         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
93626         Add support for Tandem NonStop R series.
93627         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
93628         Use new macro.
93630         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
93631         (has_trailing_slash): Omit size arg; all callers changed.
93632         Omit 'inline', since it doesn't help performance and we'd
93633         need to configure it.
93634         Don't count //, ///, etc. as having a trailing slash.
93635         As a side effect, this removes a C99ism reported by Matthew Woehlke.
93636         (rpl_rename_dest_slash): On failure, use rename's errno rather
93637         than (in some cases) an incorrect or junk errno.
93638         Simplify code by removing need to compute length; this does
93639         cause it to make two passes instead of one over the file name,
93640         but it's worth it.
93642         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
93643         change, since Autoconf's version may no longer be appropriate now
93644         that we are using CVS Autoconf's version.  Add support for Tandem.
93646 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
93647             Bruno Haible  <bruno@clisp.org>
93649         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
93650         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
93651         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
93652         gl_AC_TYPE_LONG_LONG.
93654         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
93655         instead of HAVE_LONG_LONG.
93656         * lib/printf-args.c (printf_fetchargs): Likewise.
93657         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
93658         * lib/vasnprintf.c (VASNPRINTF): Likewise.
93659         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
93660         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
93661         gl_AC_TYPE_LONG_LONG.
93663 2006-10-11  Bruno Haible  <bruno@clisp.org>
93665         * m4/longlong.m4: Add comments.
93666         * m4/ulonglong.m4: Likewise.
93668 2006-10-10  Bruno Haible  <bruno@clisp.org>
93670         Make it possible to #define stpcpy, strdup to aliases.
93671         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
93672         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
93674 2006-10-10  Bruno Haible  <bruno@clisp.org>
93676         Make it possible to #define gcd to an alias.
93677         * lib/gcd.c: Include config.h.
93679 2006-10-10  Bruno Haible  <bruno@clisp.org>
93681         Make it possible to #define c_isascii to an alias.
93682         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
93683         defined. Undefine the macros before defining them, to avoid gcc
93684         warnings.
93685         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
93686         define NO_C_CTYPE_MACROS early.
93688 2006-10-10  Bruno Haible  <bruno@clisp.org>
93690         Make it possible to #define set_program_name to an alias.
93691         * lib/progname.c: Don't undefine set_program_name; instead, undefine
93692         ENABLE_RELOCATABLE early.
93694 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
93696         Port to Tandem NSK OSS, which has 64-bit signed int but at most
93697         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
93698         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
93699         More generally, don't assume that 64-bit signed int is available
93700         if unsigned int is, and vice versa.
93701         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
93702         unsigned symbols, not on their signed counterparts.
93703         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
93704         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
93705         (UINT64_C, UINTMAX_C):
93706         Likewise.
93707         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
93708         unsigned counterparts.
93709         (Have_long_long, Unsigned): New macros.
93710         (Int): Renamed from INT.
93711         (strtoimax): Use the new macros.
93712         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
93713         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
93714         * modules/inttypes (inttypes.h): Substitute
93715         HAVE_UNSIGNED_LONG_LONG_INT.
93716         * modules/stdint (stdint.h): Likewise.
93717         (Files): Add m4/ulonglong.m4.
93719 2006-10-10  Bruno Haible  <bruno@clisp.org>
93721         Fix a gcc -Wshadow warning.
93722         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
93723         to 'bucket'.
93724         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
93725         gl_linked_indexof_from_to): Likewise.
93726         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
93727         Likewise.
93728         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
93729         Likewise.
93730         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
93731         Reported by Eric Blake.
93733 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
93735         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
93736         for NetBSD.  Problem reported by Bruno Haible.
93738 2006-10-09  Jim Meyering  <jim@meyering.net>
93740         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
93741         Patch from Bruno Haible.
93743 2006-10-09  Jim Meyering  <jim@meyering.net>
93745         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
93746         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
93747         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
93749 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
93751         Don't include <config.h> twice; this doesn't work in some cases,
93752         e.g., when config.h has "#define intmax_t long long int" and
93753         we include <config.h>, <inttypes.h>, <config.h> in that order.
93754         Problem reported by Matthew Woehlke in:
93755         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
93756         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
93757         * lib/fts-cycle.c: Don't include config.h.
93758         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
93759         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
93760         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
93761         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
93762         inttypes.h.
93763         * lib/xstrtoumax.c: Likewise.
93764         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
93765         __strtol and the like, so that this module is more like its siblings.
93766         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
93767         Remove; no longer needed now that we assume gnulib inttypes.h.
93769 2006-10-08  Bruno Haible  <bruno@clisp.org>
93771         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
93772         option.
93774 2006-10-07  Jim Meyering  <jim@meyering.net>
93776         * modules/inttypes (inttypes.h): Revert what seems to have been
93777         an inadvertent part of today's change: use "|", not "/" in the
93778         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
93780 2006-10-07  Bruno Haible  <bruno@clisp.org>
93782         * modules/sublist: New file.
93784 2006-10-07  Bruno Haible  <bruno@clisp.org>
93786         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
93787         * modules/argz (argz.h): Likewise.
93788         * modules/arpa_inet (arpa/inet.h): Likewise.
93789         * modules/byteswap (byteswap.h): Likewise.
93790         * modules/configmake (configmake.h): Likewise.
93791         * modules/fcntl (fcntl.h): Likewise.
93792         * modules/fnmatch (fnmatch.h): Likewise.
93793         * modules/getopt (getopt.h): Likewise.
93794         * modules/glob (glob.h): Likewise.
93795         * modules/inttypes (inttypes.h): Likewise.
93796         * modules/netinet_in (netinet/in.h): Likewise.
93797         * modules/poll (poll.h): Likewise.
93798         * modules/stdbool (stdbool.h): Likewise.
93799         * modules/stdint (stdint.h): Likewise.
93800         * modules/sys_select (sys/select.h): Likewise.
93801         * modules/sys_socket (sys/socket.h): Likewise.
93802         * modules/sys_stat (sys/stat.h): Likewise.
93803         * modules/sysexits (sysexits.h): Likewise.
93804         * modules/unistd (unistd.h): Likewise.
93805         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93806         Add a "DO NOT EDIT" comment to the generated file.
93807         (func_import): Likewise for gnulib-comp.m4.
93809 2006-10-07  Bruno Haible  <bruno@clisp.org>
93811         * lib/gl_sublist.h: New file.
93812         * lib/gl_sublist.c: New file.
93814 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
93816         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
93817         name (relative to the original working directory) and the file
93818         name component (relative to the temporary working directory).  All
93819         callers changed.
93820         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
93821         * lib/mkdir-p.c (make_dir_parents): Likewise.
93822         * lib/mkdir-p.h (make_dir_parents): Likewise.
93824 2006-10-06  Eric Blake  <ebb9@byu.net>
93826         Define several macros for use by the clean-temp module.
93827         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
93828         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
93829         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
93831         * lib/clean-temp.h (close_stream_temp): New declaration.
93832         * lib/clean-temp.c (includes): Pull in headers according to what
93833         other modules are in use.
93834         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
93836 2006-10-06  Bruno Haible  <bruno@clisp.org>
93838         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
93839         instead of fopen, fwriteerror.
93841 2006-10-06  Bruno Haible  <bruno@clisp.org>
93843         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
93844         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
93845         int.
93846         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
93847         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
93848         Return an error indicator.
93849         Suggested by Eric Blake.
93851 2006-10-06  Bruno Haible  <bruno@clisp.org>
93853         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
93854         Reported by Eric Blake.
93856 2006-10-06  Bruno Haible  <bruno@clisp.org>
93858         * modules/closeout (Description): Mention stderr too.
93860 2006-10-06  Bruno Haible  <bruno@clisp.org>
93861         and Paul Eggert  <eggert@cs.ucla.edu>
93863         * lib/closeout.c (close_stdout): Also close stderr.
93864         * lib/closeout.h: Update comment.
93866 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
93868         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
93869         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
93870         * lib/dirchownmod.c: Include lchown.h.
93871         * lib/lchown.c: Don't include files that lchown.h now includes.
93872         Don't declare chown, since lchown.h now does that.
93873         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
93874         (lchown): Define to rpl_chown if lchown is declared but
93875         does not exist.  Declare using a prototype if lchown is not
93876         declared.  Add a copyright notice.
93877         * lib/mkstemp.h: Include <unistd.h>.
93878         * lib/openat.c: Include lchown.h.
93880         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
93881         we now test for that separately.
93882         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
93883         rather than O_NOFOLLOW, when testing whether it's possible to
93884         avoid a race condition reliably.
93885         * lib/savewd.c (savewd_chdir): Likewise.
93887         Remove macros that are no longer needed now that stdint.h is
93888         reliable.
93889         * lib/fsusage.c (UINTMAX_MAX): Remove.
93890         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
93891         * lib/utimecmp.c (SIZE_MAX): Remove.
93893         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
93895         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
93896         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
93897         O_NOATIME works.
93899 2006-10-05  Bruno Haible  <bruno@clisp.org>
93901         * lib/gl_list.h (gl_sortedlist_search_from_to,
93902         gl_sortedlist_indexof_from_to): New declarations.
93903         (gl_list_implementation): New fields sortedlist_search_from_to,
93904         sortedlist_indexof_from_to.
93905         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
93906         inline functions.
93907         * lib/gl_list.c (gl_sortedlist_search_from_to,
93908         gl_sortedlist_indexof_from_to): New functions.
93909         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
93910         function.
93911         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
93912         (gl_array_sortedlist_search_from_to): New function.
93913         (gl_array_list_implementation): Update.
93914         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
93915         function.
93916         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
93917         (gl_carray_sortedlist_search_from_to): New function.
93918         (gl_carray_list_implementation): Update.
93919         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
93920         gl_linked_sortedlist_indexof_from_to): New functions.
93921         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93922         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93923         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
93924         gl_tree_sortedlist_indexof_from_to): New functions.
93925         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93926         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93927         Update.
93928         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93929         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
93930         Update.
93932 2006-10-05  Bruno Haible  <bruno@clisp.org>
93934         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
93935         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
93936         (struct gl_list_implementation): Add fields search_from_to,
93937         indexof_from_to. Remove fields search, indexof.
93938         (gl_list_search): Use the search_from_to method.
93939         (gl_list_search_from, gl_list_search_from_to): New functions.
93940         (gl_list_indexof): Use the indexof_from_to method.
93941         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
93942         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
93943         (gl_list_search_from, gl_list_search_from_to): New functions.
93944         (gl_list_indexof): Use the indexof_from_to method.
93945         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
93946         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
93947         gl_array_indexof. Add start_index, end_index arguments.
93948         (gl_array_search_from_to): Renamed from gl_array_search. Add
93949         start_index, end_index arguments.
93950         (gl_array_remove, gl_array_list_implementation): Update.
93951         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
93952         gl_carray_indexof. Add start_index, end_index arguments.
93953         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
93954         start_index, end_index arguments.
93955         (gl_carray_remove, gl_carray_list_implementation): Update.
93956         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
93957         gl_linked_search. Add start_index, end_index arguments.
93958         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
93959         start_index, end_index arguments.
93960         (gl_linked_remove): Update.
93961         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93962         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93963         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
93964         field to 'size_t'.
93965         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
93966         gl_tree_search. Add start_index, end_index arguments.
93967         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
93968         start_index, end_index arguments.
93969         (gl_tree_remove): Update.
93970         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93971         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93972         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
93973         function.
93974         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
93975         gl_tree_search. Add start_index, end_index arguments.
93976         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
93977         start_index, end_index arguments.
93978         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93979         Update.
93980         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
93982 2006-10-05  Bruno Haible  <bruno@clisp.org>
93984         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
93986         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
93987         fwriteerror_temp): New declarations.
93988         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
93989         (descriptors): New variable.
93990         (cleanup): First, close the descriptors.
93991         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
93992         fclose_temp, fwriteerror_temp): New functions.
93994 2006-10-04  Jim Meyering  <jim@meyering.net>
93996         * lib/fts.c (fts_open): Tiny comment change.
93998 2006-10-04  Bruno Haible  <bruno@clisp.org>
94000         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
94001         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
94002         gl_LOCK_BODY.
94003         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
94004         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
94005         gl_LOCK_EARLY_BODY.
94006         (gl_LOCK): Require gl_LOCK_BODY.
94008 2006-10-04  Bruno Haible  <bruno@clisp.org>
94010         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
94011         (gl_oset_search_atleast): New declaration.
94012         (struct gl_oset_implementation): Add field 'search_atleast'.
94013         (gl_oset_search_atleast): New inline function.
94014         * lib/gl_oset.c (gl_oset_search_atleast): New function.
94015         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
94016         (gl_array_oset_implementation): Update.
94017         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
94018         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
94019         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
94021 2006-10-04  Bruno Haible  <bruno@clisp.org>
94023         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
94025 2006-10-03  Bruno Haible  <bruno@clisp.org>
94027         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
94028         from gl_avltreehash_list_implementation.
94030 2006-10-03  Bruno Haible  <bruno@clisp.org>
94032         * lib/gl_oset.c (gl_oset_add): Fix return type.
94034 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
94036         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
94038 2006-10-02  Eric Blake  <ebb9@byu.net>
94040         * modules/strnlen (Depends-on): Add extensions.
94042 2006-10-02  Eric Blake  <ebb9@byu.net>
94044         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
94045         definition in 2.60+.
94047 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
94049         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
94050         checks.
94052 2006-10-02  Bruno Haible  <bruno@clisp.org>
94054         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
94055         to the AUTOMAKE_OPTIONS.
94056         Reported by Jim Meyering.
94058 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
94060         Work around bug in Solaris 10 /proc file system:
94061         /proc/self/fd/NNN/.. isn't the parent directory of
94062         the directory whose file descriptor is NNN.  This needs to
94063         be worked around at run time, not compile time, since a
94064         program might be built on Solaris 8, where things work, and
94065         run on Solaris 10.
94066         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
94067         to use the following interface instead:
94068         (OPENAT_BUFFER_SIZE): New macro.
94069         (openat_proc_name): New function.
94070         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
94071         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
94072         Likewise.
94073         * lib/openat-proc.c: New file.
94074         * modules/openat (Files): Add lib/openat-proc.c.
94075         (Depends-on): Add same-inode, stdbool.
94076         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
94078 2006-09-29  Bruno Haible  <bruno@clisp.org>
94080         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
94081         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
94082         argument. Set stdout_closed before testing for ferror, not after.
94083         (fwriteerror, fwriteerror_no_ebadf): New functions.
94085 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94087         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
94089 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
94091         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
94092         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
94094 2006-09-28  Jim Meyering  <jim@meyering.net>
94096         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
94097         Include <unistd.h>.
94099 2006-09-28  Bruno Haible  <bruno@clisp.org>
94101         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
94102         * modules/linkedhash-list (Depends-on): Likewise.
94103         * modules/rbtreehash-list (Depends-on): Likewise.
94105 2006-09-28  Bruno Haible  <bruno@clisp.org>
94107         * lib/strndup.h: Simplify the redefinition of strndup.
94108         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
94109         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
94111 2006-09-28  Bruno Haible  <bruno@clisp.org>
94113         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
94114         * lib/gl_linkedhash_list.c: Likewise.
94115         * lib/gl_rbtreehash_list.c: Likewise.
94117 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
94119         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
94120         getaddrinfo.
94122         * lib/__fpending.h: Don't include <stdio_ext.h> unless
94123         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
94124         it causes <stdio_ext.h> to cause a compile-time error.
94125         Problem reported by Nelson H. F. Beebe.
94126         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
94127         of HAVE_DECL___PENDING.
94129         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
94130         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
94131         declaration.
94133 2006-09-27  Jim Meyering  <jim@meyering.net>
94135         This file could end up with a definition for a function
94136         named __strndup, rather than rpl_strndup on a system with
94137         incomplete weak_alias support.
94138         * lib/strndup.c (strndup): Rename from __strndup.
94139         Remove #defines that used to map __strndup to strndup.
94140         Don't use K&R prototypes.
94141         Remove LIBC-related code, since this file is not sync'd with glibc.
94142         * lib/strndup.h: Revamp, accordingly.
94143         * m4/strndup.m4: Modernize.
94145 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
94147         * modules/savewd (Depends-on): Add 'raise'.
94148         * lib/savewd.c: Include <signal.h>, for 'raise'.
94150 2006-09-26  Jim Meyering  <jim@meyering.net>
94152         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
94153         when we detect Darwin 8.7.0's acl_get_file bug.
94154         Rearrange to perform the new (below) run-test while $LIBS
94155         contains any acl-related library.  Set USE_ACL at the end.
94156         (gl_ACL_GET_FILE): New function.
94158 2006-09-26  Eric Blake  <ebb9@byu.net>
94160         * lib/verror.c: Include <config.h> unconditionally.
94162 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
94164         * modules/clock-time (Maintainer): Add self.
94165         * modules/getlogin_r (Depends-on): Add extensions.
94167 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94169         * modules/clock-time: New module.
94170         * modules/nanosleep (Depends-on): Add clock-time.
94171         * modules/gethrxtime (Depends-on): Likewise.
94172         * modules/gettime (Depends-on): Likewise.
94173         * modules/settime (Depends-on): Likewise.
94175         * modules/fts-lgpl: Depend on openat.
94176         * modules/mkancesdirs: Depend on savewd.
94177         * modules/mkdir-p: Likewise.
94179 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94181         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
94183         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
94184         `gl_have_arbitrary_file_name_length_limit' to
94185         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
94186         actually works between configure runs.
94188 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94189             Bruno Haible  <bruno@clisp.org>
94191         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
94193 2006-09-25  Jim Meyering  <jim@meyering.net>
94195         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
94196         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
94198 2006-09-25  Eric Blake  <ebb9@byu.net>
94200         * gnulib-tool (func_import, func_create_testdir): Fix typos in
94201         exec's in 2006-09-18 patch when shuffling fds.
94203 2006-09-25  Bruno Haible  <bruno@clisp.org>
94205         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
94206         Reported by Jim Meyering.
94208 2006-09-24  Jim Meyering  <jim@meyering.net>
94210         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
94211         compare a pointer against a literal "0".  That caused failures with
94212         at least HP-UX's hpcc.
94214 2006-09-22  Simon Josefsson  <jas@extundo.com>
94216         * modules/gc-sha1:
94217         * modules/gc-md4:
94218         * modules/gc-hmac-sha1:
94219         * modules/gc-hmac-md5:
94220         * modules/gc-des:
94221         * modules/gc-arcfour: Distribute more files.
94223 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94225         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
94226         (gl_linked_iterator_from_to): Initialize struct completely.
94227         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
94228         (gl_tree_iterator_from_to): Likewise
94229         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
94230         * lib/gl_array_list.c [lint] (gl_array_iterator)
94231         (gl_array_iterator_from_to): Likewise.
94232         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
94233         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
94234         (gl_carray_iterator_from_to): Likewise.
94236         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
94237         * lib/md4.c (md4_process_block): Remove unused variable.
94238         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
94239         parentheses for clarity.
94241 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94243         * modules/bison-i18n (Depends-on): Add gettext.
94245 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94247         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
94248         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
94249         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
94250         also add missing comma that caused broken test.
94251         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
94252         stdlib.h, for `abort'.
94253         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
94254         variables.
94255         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
94256         include unistd.h if present, for `rmdir'.
94257         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
94258         variables.
94259         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
94260         in the process include standard headers for prototypes.
94261         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
94262         gets declared on GNU/Linux.
94263         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
94264         unistd.h, for `rmdir'.
94265         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
94267         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
94268         always true.
94269         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
94271         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
94273 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94275         * gnulib-tool (func_version): Create output all at once.  This
94276         may help avoid triggering unnecessary SIGPIPEs, and at any
94277         rate it doesn't hurt.
94279 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94280             Bruno Haible  <bruno@clisp.org>
94282         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
94283         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94284         * m4/signed.m4 (bh_C_SIGNED): Likewise.
94286         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
94287         (gl_FUNC_VASPRINTF): Invoke it.
94289 2006-09-22  Bruno Haible  <bruno@clisp.org>
94291         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
94292         getloadavg.c as first argument.
94294 2006-09-22  Bruno Haible  <bruno@clisp.org>
94296         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
94297         at the beginning of the gl_INIT macro.
94298         * modules/getloadavg (configure.ac): Pass $gl_source_base to
94299         gl_GETLOADAVG.
94301 2006-09-22  Bruno Haible  <bruno@clisp.org>
94303         * gnulib-tool (func_create_megatestdir): Don't include the config-h
94304         module.
94305         Suggested by Ralf Wildenhues.
94307 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
94309         Import this patch from libc:
94311         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
94313         * lib/regex_internal.c (re_string_reconstruct): Handle
94314         offset < pstr->valid_raw_len && pstr->offsets_needed case.
94315         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
94316         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
94317         re_string_context_at.
94319         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
94320         now requires it.
94321         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
94322         gl_REGEX now does it for us.
94323         (gl_REGEX): Add test taken from
94324         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
94326         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
94327         Check that large offsets work.  Modernize Autoconf usages.
94328         Prefer "yes" to mean a good thing rather than a bad.
94329         Don't put "#define mkstemp" in config.h, as this might interfere
94330         with standard system headers that "#define mkstemp mkstemp64".
94332         * modules/mkstemp (Depends-on): Add extensions, so that
94333         mkstemp is visible on some platforms.
94334         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
94335         (Include): Change to "mkstemp.h" from <stdlib.h>.
94336         (Files): Add mkstemp.h.
94338         * lib/mkstemp.h: New file, since some standard headers
94339         #define mkstemp.
94340         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
94341         Include "mkstemp.h".
94342         Make the _LIBC code resemble glibc original more,
94343         e.g., use K&R style.
94344         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
94345         (mkstemp): Remove, since mkstemp.h does this for us.
94346         * lib/stdlib--.h: Include mkstemp.h.
94348         Import this patch from libc:
94350         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
94352         * lib/tempname.c (__gen_tempname): Change attempts_min
94353         into a macro.  Use preprocessor to decide how to initialize
94354         attempts [Coverity CID 67].
94356 2006-09-20  Bruno Haible  <bruno@clisp.org>
94358         * lib/mkdtemp.c: Import from libc.
94359         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
94360                 * sysdeps/posix/tempname.c (__gen_tempname): Change
94361                 attempts_min into a macro.  Use preprocessor to decide how to
94362                 initialize attempts [Coverity CID 67].
94363         2001-11-27  Paul Eggert  <eggert@twinsun.com>
94364                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
94365                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
94367 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94369         * gnulib-tool (func_exit): New function, to allow to pass the
94370         exit status portably through the trap.  Use everywhere.
94371         (--help, --version): Signal a write error.
94372         (trap): catch SIGPIPE, for write errors.
94373         Exit at the end of the trap, with the correct exit status.
94375 2006-09-19  Karl Berry  <karl@gnu.org>
94377         * doc/gnulib.texi: note about the license texinfo files.
94379 2006-09-19  Eric Blake  <ebb9@byu.net>
94381         * gnulib-tool: Avoid space-tab.
94383 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
94385         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
94386         that prevented coreutils 6.1 from building.  Problem reported
94387         by Petter Reinholdtsen.
94389 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
94391         * gnulib-tool (avoidlist): Fix typo that broke options like
94392         --avoid=lock that are used by coreutils bootstrap.
94394 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
94396         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
94397         more systematically.
94399 2006-09-18  Jim Meyering  <jim@meyering.net>
94401         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
94403 2006-09-18  Bruno Haible  <bruno@clisp.org>
94405         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
94407 2006-09-18  Bruno Haible  <bruno@clisp.org>
94409         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
94410         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
94411         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
94412         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
94413         * m4/gettext.m4: Require autoconf >= 2.52.
94414         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
94415         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
94416         of gl_cv_header_inttypes_h.
94418 2006-09-18  Bruno Haible  <bruno@clisp.org>
94420         * lib/javaversion.c: Include configmake.h.
94422 2006-09-18  Bruno Haible  <bruno@clisp.org>
94424         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
94425         avoid that the while loops be executed in a subshell.
94427 2006-09-18  Bruno Haible  <bruno@clisp.org>
94429         * MODULES.html.sh (func_module): Break long lines.
94430         Suggested by Bruce Korb <bkorb@gnu.org>.
94432 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94434         Speed up by a factor of 1.12.
94435         * gnulib-tool (nl): New variable.
94436         (func_import): Rewrite include directive extraction to only read each
94437         directive once.
94439 2006-09-17  Bruno Haible  <bruno@clisp.org>
94441         * modules/javaversion (Makefile.am): Remove DEFS setting.
94442         (Depends-on): Add configmake, for PKGDATADIR definition.
94444 2006-09-17  Bruno Haible  <bruno@clisp.org>
94446         * gnulib-tool (func_create_testdir): Rewrite all files at once.
94448 2006-09-17  Bruno Haible  <bruno@clisp.org>
94450         * gnulib-tool (func_append): New function, stolen from libtool.m4.
94451         (func_modules_transitive_closure, func_modules_add_dummy,
94452         func_modules_to_filelist, func_import, func_create_testdir,
94453         func_create_megatestdir, ...): Use it wherever possible.
94454         Suggested by Ralf Wildenhues.
94456 2006-09-16  Karl Berry  <karl@gnu.org>
94458         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
94459         to avoid sectioning errors.
94460         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
94461         [ifinfo]: blank line after @center-ed titles.
94462         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
94463         Spell FSF address consistently with others.
94464         (These changes approved by rms.)
94466 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94468         Speed up by a factor of 1.61.
94469         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
94470         already checked module names again.
94472 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94474         Speed up by a factor of 1.13.
94475         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
94476         for new_files, and the input to func_add_or_update.
94478 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94480         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
94481         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
94483 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
94485         * modules/mkancesdirs (Depends-on): Add fcntl.
94486         * modules/savewd: New file.
94487         * MODULES.html.sh (File system functions): Add savewd.
94489         * modules/configmake (Makefile.am): Add support for the
94490         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
94492 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
94494         * m4/savewd.m4: New file.
94496 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
94498         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
94499         (dirchownmod): New arg FD.  All callers changed.
94500         Use FD rather than opening the directory ourself, as opening is
94501         now the caller's responsibility.
94502         * lib/dirchownmod.h: Likewise.
94503         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
94504         hosts that require <sys/types.h> before <sys/stat.h>.  Include
94505         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
94506         (test_dir): Remove.
94507         (mkancesdirs): Return length of prefix of FILE that has already
94508         been made, or -2 if there is a child doing the work.  Redo
94509         algorithm so that it is O(N) rather than O(N**2).  Optimize away
94510         ".", and treat ".." specially since it might stray back into
94511         already-created areas.  Use a subprocess if necessary.  New arg
94512         WD; all users changed.  MAKE_DIR function should now return 1
94513         if it creates a directory that is not readable.  Return -2 if
94514         a child process is spun off.
94515         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
94516         Adjust signature to match code.
94517         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
94518         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
94519         all users changed.
94520         * lib/savewd.c, lib/savewd.h: New files.
94522 2006-09-15  Jim Meyering  <jim@meyering.net>
94524         * modules/rename-dest-slash: New module.
94525         * MODULES.html.sh (posix_compat): Add it here.
94527         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
94529 2006-09-15  Jim Meyering  <jim@meyering.net>
94531         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
94532         file.
94534         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
94536 2006-09-15  Jim Meyering  <jim@meyering.net>
94538         * lib/rename-dest-slash.c (has_trailing_slash): Use
94539         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
94540         (rpl_rename_dest_slash): Perform the cheaper trailing slash
94541         test before testing whether SRC is a directory.
94542         Suggestions from Bruno Haible.
94544         Avoid a warning about an unused variable.
94545         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
94546         into the #ifdef block where it's used.
94548         * lib/rename-dest-slash.c: New file.
94550 2006-09-14  Bruno Haible  <bruno@clisp.org>
94552         * lib/allocsa.c: Include <config.h> unconditionally.
94553         * lib/asnprintf.c: Likewise.
94554         * lib/asprintf.c: Likewise.
94555         * lib/c-strcasecmp.c: Likewise.
94556         * lib/c-strcasestr.c: Likewise.
94557         * lib/c-strncasecmp.c: Likewise.
94558         * lib/c-strstr.c: Likewise.
94559         * lib/classpath.c: Likewise.
94560         * lib/clean-temp.c: Likewise.
94561         * lib/concatpath.c: Likewise.
94562         * lib/copy-file.c: Likewise.
94563         * lib/csharpcomp.c: Likewise.
94564         * lib/csharpexec.c: Likewise.
94565         * lib/execute.c: Likewise.
94566         * lib/fatal-signal.c: Likewise.
94567         * lib/findprog.c: Likewise.
94568         * lib/fwriteerror.c: Likewise.
94569         * lib/gl_array_list.c: Likewise.
94570         * lib/gl_array_oset.c: Likewise.
94571         * lib/gl_avltree_list.c: Likewise.
94572         * lib/gl_avltree_oset.c: Likewise.
94573         * lib/gl_avltreehash_list.c: Likewise.
94574         * lib/gl_carray_list.c: Likewise.
94575         * lib/gl_linked_list.c: Likewise.
94576         * lib/gl_linkedhash_list.c: Likewise.
94577         * lib/gl_list.c: Likewise.
94578         * lib/gl_oset.c: Likewise.
94579         * lib/gl_rbtree_list.c: Likewise.
94580         * lib/gl_rbtree_oset.c: Likewise.
94581         * lib/gl_rbtreehash_list.c: Likewise.
94582         * lib/imaxabs.c: Likewise.
94583         * lib/imaxdiv.c: Likewise.
94584         * lib/javacomp.c: Likewise.
94585         * lib/javaexec.c: Likewise.
94586         * lib/javaversion.c: Likewise.
94587         * lib/linebreak.c: Likewise.
94588         * lib/localcharset.c: Likewise.
94589         * lib/lock.c: Likewise.
94590         * lib/mbchar.c: Likewise.
94591         * lib/mbswidth.c: Likewise.
94592         * lib/mkdtemp.c: Likewise.
94593         * lib/pipe.c: Likewise.
94594         * lib/printf-args.c: Likewise.
94595         * lib/printf-parse.c: Likewise.
94596         * lib/progname.c: Likewise.
94597         * lib/progreloc.c: Likewise.
94598         * lib/readlink.c: Likewise.
94599         * lib/sh-quote.c: Likewise.
94600         * lib/stpcpy.c: Likewise.
94601         * lib/stpncpy.c: Likewise.
94602         * lib/strcasecmp.c: Likewise.
94603         * lib/strcasestr.c: Likewise.
94604         * lib/strcspn.c: Likewise.
94605         * lib/striconv.c: Likewise.
94606         * lib/strncasecmp.c: Likewise.
94607         * lib/strnlen1.c: Likewise.
94608         * lib/strstr.c: Likewise.
94609         * lib/strtok_r.c: Likewise.
94610         * lib/tls.c: Likewise.
94611         * lib/tmpdir.c: Likewise.
94612         * lib/unicodeio.c: Likewise.
94613         * lib/unsetenv.c: Likewise.
94614         * lib/vasnprintf.c: Likewise.
94615         * lib/vasprintf.c: Likewise.
94616         * lib/wait-process.c: Likewise.
94617         * lib/xallocsa.c: Likewise.
94618         * lib/xsetenv.c: Likewise.
94619         * lib/xstriconv.c: Likewise.
94621 2006-09-13  Simon Josefsson  <jas@extundo.com>
94623         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
94624         that internally, suggested by Ralf Wildenhues
94625         <Ralf.Wildenhues@gmx.de>.
94627 2006-09-13  Simon Josefsson  <jas@extundo.com>
94629         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
94630         @LIBOBJS@.
94631         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94633 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
94635         * lib/_fpending.c: Include <config.h> unconditionally, since we no
94636         longer worry about uses that don't define HAVE_CONFIG_H.
94637         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
94638         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
94639         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
94640         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
94641         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
94642         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
94643         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
94644         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
94645         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
94646         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
94647         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
94648         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
94649         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
94650         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
94651         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
94652         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
94653         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
94654         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
94655         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
94656         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
94657         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
94658         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
94659         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
94660         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
94661         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
94662         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
94663         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
94664         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
94665         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
94666         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
94667         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
94668         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
94669         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
94670         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
94671         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
94672         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
94673         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
94674         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
94675         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
94676         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
94677         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
94678         Likewise.
94680 2006-09-13  Eric Blake  <ebb9@byu.net>
94682         * lib/getopt.c: Fix typo in last commit.
94684 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
94686         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
94687         dgettext.
94689 2006-09-12  Jim Meyering  <jim@meyering.net>
94691         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
94692         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
94693         Reported by Nelson H. F. Beebe.
94695 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
94697         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
94698         program_invocation_name and program_invocation_short_name are
94699         initialized.
94700         * lib/argp-namefrob.h: Move declarations of program_invocation_name
94701         and program_invocation_short_name to argp.h, so they are visible
94702         to user programs.
94703         * lib/argp.h: Likewise
94705 2006-09-10  Bruno Haible  <bruno@clisp.org>
94707         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
94708         m4/inttypes_h.m4, m4/uintmax_t.m4.
94710 2006-09-10  Bruno Haible  <bruno@clisp.org>
94712         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
94713         gl_AC_TYPE_UINTMAX_T.
94715 2006-09-10  Bruno Haible  <bruno@clisp.org>
94717         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
94719 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
94721         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
94722         convention.  Text proposed by Bruno Haible.
94723         (struct argp_option): Document the use of N_() wrappers.
94725         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
94726         '\v', and translate the two parts separately, instead of feeding
94727         the whole string to gettext.  This allows to exclude
94728         '\v' from the strings visible to the translator by writing doc
94729         strings as N_("..") "\v" N_("..").
94731 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
94733         * config/srclist.txt: Undo latest change; the bug was fixed.
94735 2006-09-09  Bruno Haible  <bruno@clisp.org>
94737         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
94738         assignments if building a library without libtool.
94739         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
94740         in func_emit_lib_Makefile_am.
94741         (func_import): When building a static library libfoo.a, arrange to
94742         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
94743         (func_create_testdir): Likewise.
94744         * modules/gc (configure.ac, Makefile.am): If building statically,
94745         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
94746         * modules/iconvme (configure.ac, Makefile.am): Likewise.
94747         * modules/striconv (configure.ac, Makefile.am): Likewise.
94748         Based on a suggestion by Ralf Wildenhues.
94750 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94752         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
94753         Check for unistd.h too, since Autoconf doesn't assume POSIX.
94754         Also:
94756         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94757         Add year_2050_test to catch glibc bug 2821
94758         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
94760         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94761         Prefer #ifdef to #if.
94763         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
94764         Return from 'main' instead of calling 'exit'.
94766 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94768         * lib/mktime.c (guess_time_tm): Fix bug where mktime
94769         returned the maximum time_t value rather than (time_t) -1.
94770         Problem originally reported by William Bardwell
94771         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
94773         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
94774         Moved to here ...
94775         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
94776         ... from here.
94778 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94780         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
94781         2821 is fixed.
94783 2006-09-08  Jim Meyering  <jim@meyering.net>
94785         Don't make generated files read-only.  That would bother too many
94786         people.  However, do retain the ability to work when targets are
94787         read-only: remove the destination and temporary files before writing
94788         them (when generated via sed or echo), or by using the -f option for
94789         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
94790         * modules/alloca-opt, modules/argz, modules/arpa_inet:
94791         * modules/byteswap, modules/configmake, modules/fcntl:
94792         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
94793         * modules/localcharset, modules/netinet_in, modules/poll:
94794         * modules/stdbool, modules/stdint, modules/sys_select:
94795         * modules/sys_socket, modules/sys_stat, modules/sysexits:
94797 2006-09-08  Jim Meyering  <jim@meyering.net>
94799         Avoid new build failure on FreeBSD 6.0.
94800         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
94801         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
94802         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
94804 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94806         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
94808 2006-09-07  Jim Meyering  <jim@meyering.net>
94810         Fix global typo in last change: use chmod u-w, not chmod u-x.
94811         Spotted by Paul Eggert and Bruce Korb.
94812         * modules/alloca-opt, modules/argz, modules/arpa_inet:
94813         * modules/byteswap, modules/configmake, modules/fcntl:
94814         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
94815         * modules/localcharset, modules/netinet_in, modules/poll:
94816         * modules/stdbool, modules/stdint, modules/sys_select:
94817         * modules/sys_socket, modules/sys_stat, modules/sysexits:
94819 2006-09-06  Jim Meyering  <jim@meyering.net>
94821         Make generated files be read-only.
94822         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
94823         Ensure that each generated file is now read-only.
94824         * modules/argz: Likewise.
94825         * modules/arpa_inet: Likewise.
94826         * modules/byteswap: Likewise.
94827         * modules/configmake: Likewise.
94828         * modules/fcntl: Likewise.
94829         * modules/fnmatch: Likewise.
94830         * modules/getopt: Likewise.
94831         * modules/glob: Likewise.
94832         * modules/inttypes: Likewise.
94833         * modules/netinet_in: Likewise.
94834         * modules/poll: Likewise.
94835         * modules/stdbool: Likewise.
94836         * modules/stdint: Likewise.
94837         * modules/sys_select: Likewise.
94838         * modules/sys_socket: Likewise.
94839         * modules/sys_stat: Likewise.
94840         * modules/sysexits: Likewise.
94841         * modules/localcharset: Same as above, but continue using temporary
94842         file named "t-$@" (why different?) rather than the "$@-t" used
94843         everywhere else.
94845         * modules/sysexits (Makefile.am): Replace literal occurrences
94846         of "sysexit.h" more readable, and more consistent, "$@".
94848 2006-09-06  Bruno Haible  <bruno@clisp.org>
94850         * modules/striconv: New file.
94851         * modules/xstriconv: New file.
94852         * MODULES.html.sh (Internationalization functions): Add striconv,
94853         xstriconv.
94855 2006-09-06  Bruno Haible  <bruno@clisp.org>
94857         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
94858         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
94859         not using libtool correctly.
94861 2006-09-06  Bruno Haible  <bruno@clisp.org>
94863         * lib/striconv.h: New file.
94864         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
94865         iconvstring.c.
94866         * lib/xstriconv.h: New file.
94867         * lib/xstriconv.c: New file.
94869 2006-09-06  Bruno Haible  <bruno@clisp.org>
94871         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94872         lib_..._LDFLAGS.
94874 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94876         * lib/argz_.h: Sync from Libtool.
94878         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
94879                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
94881         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
94883 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
94885         * modules/trim: New file.
94887 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
94889         * lib/trim.h: New file.
94890         * lib/trim.c: New file.
94892 2006-09-05  Bruno Haible  <bruno@clisp.org>
94894         * MODULES.html.sh (String handling): Add trim.
94896 2006-09-04  Karl Berry  <karl@gnu.org>
94898         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
94899         until next release.
94901 2006-09-03  Bruno Haible  <bruno@clisp.org>
94903         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
94904         correctly.
94906 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94908         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
94909         not gl_GETLOADAVG.  Omit unneeded semicolons.
94910         Problems reported by Ralf Wildenhues in
94911         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
94912         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
94913         at the end, which is the usual gnulib style.
94915         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
94916         of doing all the work ourselves.
94917         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
94918         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
94920 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94922         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
94923         Problem reported by Ralf Wildenhues in
94924         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
94926         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
94927         HAVE_STRUCT_STATFS_F_FSTYPENAME.
94929 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94931         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
94932         yesterday's patch by changing test -n to test -z.
94934 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94936         * modules/getloadavg (Files): Add m4/getloadavg.m4.
94937         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
94938         the former is now obsolescent.
94940         * modules/chdir-long (Depends-on): Add fcntl.
94942 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94944         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
94945         obsolescent, and programs should use gnulib instead.
94946         * m4/getloadavg.m4: New file, with contents taken from Autoconf
94947         but with prefixes changed.
94949 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94951         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
94952         or stdbool.h, because they might not exist while configuring.
94954         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
94955         Don't include unistd.h or limits.h; not needed, since chdir-long.h
94956         does that for us.
94957         (O_DIRECTORY): Remove.
94959 2006-08-31  Eric Blake  <ebb9@byu.net>
94961         * gnulib-tool: Don't let emacs change spaces to TAB.
94963 2006-08-31  Bruno Haible  <bruno@clisp.org>
94965         * gnulib-tool: When calling func_import more than once, do it in a
94966         subshell.
94967         Reported by Eric Blake <ebb9@byu.net>.
94969 2006-08-31  Bruno Haible  <bruno@clisp.org>
94971         * gnulib-tool (nl): Remove variable.
94972         (sed_transform_lib_file): Use more robust test for config-h module.
94973         (func_import): Fix typo in 2006-08-25 patch.
94975 2006-08-31  Bruno Haible  <bruno@clisp.org>
94977         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
94978         specified, augment Makefile.am variables instead of assigning them.
94980 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94982         Work around a bug in both the Linux and SunOS 64-bit kernels:
94983         nanosleep mishandles sleeps for longer than 2**31 seconds.
94984         Problem reported by Frank v Waveren in
94985         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
94986         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
94987         Check for nanosleep bug.
94988         (LIB_NANOSLEEP): Append clock_gettime library if needed.
94990 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94992         Work around a bug in both the Linux and SunOS 64-bit kernels:
94993         nanosleep mishandles sleeps for longer than 2**31 seconds.
94994         Problem reported by Frank v Waveren in
94995         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
94996         * lib/nanosleep.c (BILLION): New constant.
94997         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
94998         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
94999         implementation.
95001 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95003         * modules/nanosleep (Depends-on): Add gettime.
95005 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95006         and Simon Josefsson  <jas@extundo.com>
95007         and Oskar Liljeblad  <oskar@osk.mine.nu>
95009         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
95010         * gnulib-tool (func_import): New license type 'unmodifiable license
95011         text'.
95012         * modules/fdl: Use it.  Longer description.
95013         * module/gpl, module/lgpl: New files.
95015 2006-08-30  Jim Meyering  <jim@meyering.net>
95017         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
95018         shadowing the parameter.
95020 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95022         Sync from Libtool:
95024         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95026         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
95027         sharing with gnulib.  Report by Eric Blake.
95029 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95031         * modules/isapipe: New file.
95032         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
95034 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95036         * modules/configmake (Makefile.am): Add a comment, and omit
95037         the CONFIGMAKE_ prefix from generated macro names.  Suggested
95038         by Bruno Haible.
95040 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95042         * m4/isapipe.m4: New file.
95044 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95046         * lib/isapipe.c, lib/isapipe.h: New files.
95048 2006-08-29  Jim Meyering  <jim@meyering.net>
95050         * modules/configmake (Makefile.am): Make configmake.h depend on
95051         Makefile.  Otherwise, a stale configmake.h could hang around.
95053 2006-08-29  Eric Blake  <ebb9@byu.net>
95055         * lib/error.c (error_at_line, print_errno_message): Match libc, after
95056         resolution of upstream bug 3044.
95058 2006-08-29  Bruno Haible  <bruno@clisp.org>
95060         * modules/localcharset (Depends-on): Add configmake.
95061         (Makefile.am): Remove setting of LIBDIR through DEFS.
95063 2006-08-29  Bruno Haible  <bruno@clisp.org>
95065         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
95066         defined.
95068 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95070         * modules/fcntl: New file.
95071         * modules/chdir-safer (Depends-on): Add fcntl.
95072         * modules/fts: Likewise.
95073         * modules/mkdir-p: Likewise.
95075         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
95076         This undoes the most recent change, since we're now addressing the
95077         problem in a different way.
95079         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
95080         into output, since the output might be called Makefile.am even
95081         if $makefile_name is something different.
95082         (func_import): Use $makefile_am rather than
95083         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
95084         empty.
95086         * modules/inttypes (Files): Add m4/inttypes-h.m4.
95088 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95090         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
95091         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
95092         recent change to stdint.m4, since we're now addressing the problem in a
95093         different way.
95095 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95097         * m4/fcntl_h.m4: New file.
95099 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95101         * lib/fcntl_.h: New file.
95102         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
95103         the fcntl module.
95104         * lib/dirchownmod.c: Likewise.
95105         * lib/fts.c: Likewise.
95107         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
95108         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
95109         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
95110         just before including <inttypes.h>, to avoid circular inclusion.
95112 2006-08-28  Jim Meyering  <jim@meyering.net>
95114         * doc/visibility.texi: Actually read and correct the grammar of the
95115         sentence affected by yesterday's change.
95117 2006-08-28  Eric Blake  <ebb9@byu.net>
95119         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
95120         needs wrapper.
95122 2006-08-28  Eric Blake  <ebb9@byu.net>
95124         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
95126 2006-08-28  Eric Blake  <ebb9@byu.net>
95128         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
95130 2006-08-28  Bruno Haible  <bruno@clisp.org>
95132         * modules/c-strstr: New file, from GNU gettext.
95133         * MODULES.html.sh (String handling): Add c-strstr.
95135 2006-08-28  Bruno Haible  <bruno@clisp.org>
95137         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
95138         macros.
95139         Reported by Eric Blake.
95141 2006-08-28  Bruno Haible  <bruno@clisp.org>
95143         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
95144         (VASNPRINTF): Return a string of length > INT_MAX without failing.
95145         * lib/vasprintf.c: Include errno.h, limits.h.
95146         (EOVERFLOW): New fallback definition.
95147         (vasprintf): Test here whether the string length is > INT_MAX.
95148         * lib/vsnprintf.c: Include errno.h, limits.h.
95149         (EOVERFLOW): New fallback definition.
95150         (vsnprintf): Fix bug when generated string was too long for the buffer.
95151         Test here whether the string length is > INT_MAX.
95153 2006-08-28  Bruno Haible  <bruno@clisp.org>
95155         * lib/inttypes_.h (SCNX*): Remove definitions.
95156         Reported by Eric Blake.
95158 2006-08-28  Bruno Haible  <bruno@clisp.org>
95160         * lib/c-strstr.h: New file, from GNU gettext.
95161         * lib/c-strstr.c: New file, from GNU gettext.
95163 2006-08-28  Bruno Haible  <bruno@clisp.org>
95165         * gnulib-tool: Reorder some statements.
95167 2006-08-28  Bruno Haible  <bruno@clisp.org>
95169         * gnulib-tool: New option --makefile-name.
95170         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
95171         $makefile_name.
95172         (func_import): Write $makefile_name to the cache file, and read it from
95173         there unless explicitly specified. Use $makefile_name as file name
95174         instead of Makefile.am. Adjust the recommendations accordingly.
95176 2006-08-28  Bruno Haible  <bruno@clisp.org>
95178         * gnulib-tool (func_verify_module): Check against misapplying patch.
95180 2006-08-28  Bruno Haible  <bruno@clisp.org>
95182         * gnulib-tool (func_relativize, func_relconcat): New functions.
95183         Give an error if --local-dir is given with --update.
95184         Remove trailing slashes from $local_gnulib_dir.
95185         (func_import): Store the relativized $local_gnulib_dir in
95186         gnulib-cache.m4, and read it from there if not specified explicitly.
95188 2006-08-28  Bruno Haible  <bruno@clisp.org>
95190         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
95191         is the current directory. Respect also $local_gnulib_dir.
95193 2006-08-28  Bruno Haible  <bruno@clisp.org>
95194             Simon Josefsson  <jas@extundo.com>
95196         BeOS portability.
95197         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
95199 2006-08-27  Jim Meyering  <jim@meyering.net>
95201         * doc/visibility.texi: Remove duplicate word: "pointer".
95203 2006-08-26  Bruno Haible  <bruno@clisp.org>
95205         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
95206         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
95207         (Makefile.am): Create inttypes.h from inttypes_.h.
95208         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
95210         * modules/imaxabs: New file.
95212         * modules/imaxdiv: New file.
95214 2006-08-26  Bruno Haible  <bruno@clisp.org>
95216         * m4/inttypes.m4: New file.
95217         * m4/_inttypes_h.m4: Remove file.
95218         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
95219         PRI_MACROS_BROKEN.
95220         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
95222         * m4/imaxabs.m4: New file.
95224         * m4/imaxdiv.m4: New file.
95226 2006-08-26  Bruno Haible  <bruno@clisp.org>
95228         * lib/inttypes_.h: New file.
95229         * lib/inttypes.h: Remove file.
95230         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
95232         * lib/imaxabs.c: New file.
95234         * lib/imaxdiv.c: New file.
95236 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95238         New config-h module, so that "make" output needn't be cluttered
95239         by -DHAVE_CONFIG_H.
95240         * MODULES.html.sh (Support for building libraries and executables):
95241         Add config-h.
95242         * modules/config-h: New file.
95243         * gnulib-tool (nl, sed_transform_lib_file): New vars.
95244         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
95245         the config-h module is used.
95247         New configmake module, so that "make" output needn't be cluttered
95248         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
95249         * MODULES.html.sh (Support for building libraries and executables):
95250         Add configmake.
95251         * modules/configmake: New file.
95253 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95255         * m4/config-h.m4: New file.
95257 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95259         * config/srclist.txt: Add elisp-comp.
95261 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95263         * MODULES.html.sh (Support for building libraries and executables):
95264         Add elisp-comp.
95265         * build-aux/elisp-comp: New file.
95266         * modules/elisp-comp: New file.
95268 2006-08-24  Bruno Haible  <bruno@clisp.org>
95270         * gnulib-tool (func_create_testdir): Use non-default values of
95271         sourcebase and m4base.
95273 2006-08-24  Bruno Haible  <bruno@clisp.org>
95275         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
95276         HTML structure.
95278 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
95280         * modules/openat (Depends-on): Add lchown.
95282 2006-08-23  Bruno Haible  <bruno@clisp.org>
95284         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
95285         of gl_LOCK_EARLY instead of gl_LOCK.
95287 2006-08-23  Bruno Haible  <bruno@clisp.org>
95289         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
95290         on OSF/1 to no.
95291         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
95293 2006-08-23  Bruno Haible  <bruno@clisp.org>
95295         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
95296         as unusable.
95298         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
95299         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
95300         (gl_LOCK): New macro.
95302 2006-08-22  Simon Josefsson  <jas@extundo.com>
95304         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
95305         to md5 module.
95307 2006-08-22  Simon Josefsson  <jas@extundo.com>
95309         * MODULES.html.sh: Add "Support for maintaining and release
95310         projects".
95312         * build-aux/gnupload: New file, from coreutils.
95314 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95316         Avoid the need for AC_LIBSOURCES in m4 macros.
95317         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
95318         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
95319         * modules/check-version (EXTRA_DIST): Add check-version.h.
95320         * modules/crc (EXTRA_DIST): Add crc.h.
95321         * modules/des (EXTRA_DIST): Add des.h.
95322         * modules/gc (EXTRA_DIST): Add gc.h.
95323         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
95324         * modules/getline (EXTRA_DIST): Add getline.h.
95325         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
95326         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
95327         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
95328         * modules/md2 (EXTRA_DIST): Add md2.h.
95329         * modules/md4 (EXTRA_DIST): Add md4.h.
95330         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
95331         * modules/read-file (EXTRA_DIST): Add read-file.h.
95332         * modules/readline (EXTRA_DIST): Add readline.h.
95333         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
95334         rijndael-api-fst.h.
95336 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95338         * m4/rijndael.m4 (gl_ARCFOUR):
95339         * m4/arctwo.m4 (gl_ARCTWO):
95340         * m4/check-version.m4 (gl_CHECK_VERSION):
95341         * m4/crc.m4 (gl_CRC):
95342         * m4/des.m4 (gl_DES):
95343         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
95344         * m4/gc.m4 (gl_GC):
95345         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
95346         * m4/getline.m4 (gl_FUNC_GETLINE):
95347         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
95348         * m4/hmac-md5.m4 (gl_HMAC_MD5):
95349         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
95350         * m4/md2.m4 (gl_MD2):
95351         * m4/md4.m4 (gl_MD4):
95352         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
95353         * m4/read-file.m4 (gl_FUNC_READ_FILE):
95354         * m4/readline.m4 (gl_FUNC_READLINE):
95355         * m4/rijndael.m4 (gl_RIJNDAEL):
95356         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
95357         to get the necessary .h files and whatnot.
95359 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95361         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
95362         gnulib rather than the other way around.
95363         * config/srclistvars.sh (COREUTILS): Remove.
95365 2006-08-22  Jim Meyering  <jim@meyering.net>
95367         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
95369         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
95371 2006-08-22  Eric Blake  <ebb9@byu.net>
95373         * modules/regexprops-generic: New file.
95374         * MODULES.html.sh (Support for building documentation): List it.
95376 2006-08-22  Eric Blake  <ebb9@byu.net>
95378         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
95379         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
95380         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
95381         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
95383 2006-08-22  Bruno Haible  <bruno@clisp.org>
95385         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
95386         and lib_LTLIBRARIES like the other lib_* variables.
95388 2006-08-22  Bruno Haible  <bruno@clisp.org>
95390         * build-aux/x-to-1.in: New file, from GNU gettext.
95392 2006-08-22  Bruno Haible  <bruno@clisp.org>
95394         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
95395         <utmpx.h> exists.
95397 2006-08-22  Bruno Haible  <bruno@clisp.org>
95399         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
95400         <utmpx.h> exists.
95402 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
95404         BeOS portability.
95405         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
95406         exist.
95407         Problem reported by Bruno Haible.
95409 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
95411         Avoid the need for AC_LIBSOURCES in m4 macros.
95412         * modules/acl (EXTRA_DIST): Add acl.h.
95413         * modules/argmatch (Files): Add m4/argmatch.m4.
95414         (configure.ac): Add gl_ARGMATCH.
95415         (EXTRA_DIST): Renamed from lib_SOURCES, for
95416         consistency with the other modules.  Remove argmatch.c.
95417         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
95418         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
95419         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
95420         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
95421         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
95422         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
95423         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
95424         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
95425         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
95426         * modules/closeout (EXTRA_DIST): Add closeout.h.
95427         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
95428         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
95429         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
95430         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
95431         dirname.h; remove basename.c and stripslash.c.
95432         * modules/exclude (EXTRA_DIST): Add exclude.h.
95433         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
95434         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
95435         * modules/file-type (EXTRA_DIST): Add file-type.h.
95436         * modules/filemode (EXTRA_DIST): Add filemode.h.
95437         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
95438         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
95439         * modules/fpending (EXTRA_DIST): Add __fpending.h.
95440         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
95441         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
95442         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
95443         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
95444         * modules/getdate (EXTRA_DIST): Add getdate.c.
95445         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
95446         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
95447         * modules/getpass (EXTRA_DIST): Add getpass.h.
95448         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
95449         * modules/group-member (EXTRA_DIST): Add group-member.h.
95450         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
95451         * modules/hash (EXTRA_DIST): Add hash.h.
95452         * modules/human (EXTRA_DIST): Add human.h.
95453         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
95454         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
95455         * modules/lchown (EXTRA_DIST): Add lchown.h.
95456         * modules/long-options (EXTRA_DIST): Add long-options.h.
95457         * modules/lstat (EXTRA_DIST): Add lstat.h.
95458         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
95459         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
95460         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
95461         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
95462         * modules/memxor (EXTRA_DIST): Add memxor.h.
95463         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
95464         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
95465         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
95466         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
95467         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
95468         * modules/physmem (EXTRA_DIST): Add physmem.h.
95469         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
95470         * modules/posixver (EXTRA_DIST): Add posixver.h.
95471         * modules/quote (EXTRA_DIST): Add quote.h.
95472         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
95473         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
95474         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
95475         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
95476         regex_internal.h regexec.c.
95477         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
95478         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
95479         * modules/same (EXTRA_DIST): Add same.h.
95480         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
95481         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
95482         * modules/savedir (EXTRA_DIST): Add savedir.h.
95483         * modules/sha1 (EXTRA_DIST): Add sha1.h.
95484         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
95485         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
95486         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
95487         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
95488         * modules/strdup (EXTRA_DIST): Add strdup.h.
95489         * modules/strftime (EXTRA_DIST): Add strftime.h.
95490         * modules/strndup (EXTRA_DIST): Add strndup.h.
95491         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
95492         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
95493         * modules/time_r (EXTRA_DIST): Add time_r.h.
95494         * modules/timespec (EXTRA_DIST): Add timespec.h.
95495         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
95496         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
95497         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
95498         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
95499         * modules/userspec (EXTRA_DIST): Add userspec.h.
95500         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
95501         * modules/utimens (EXTRA_DIST): Add utimens.h.
95502         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
95503         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
95504         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
95505         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
95506         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
95507         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
95508         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
95509         * modules/yesno (EXTRA_DIST): Add yesno.h.
95511 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
95513         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
95515         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
95516         * m4/dev-ino.m4, same-inode.m4: Remove.
95518         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
95519         * m4/acl.m4 (AC_FUNC_ACL):
95520         * m4/backupfile.m4 (gl_BACKUPFILE):
95521         * m4/c-strtod.m4 (gl_C99_STRTOLD):
95522         * m4/canon-host.m4 (gl_CANON_HOST):
95523         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
95524         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
95525         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
95526         * m4/cloexec.m4 (gl_CLOEXEC):
95527         * m4/close-stream.m4 (gl_CLOSE_STREAM):
95528         * m4/closeout.m4 (gl_CLOSEOUT):
95529         * m4/dirfd.m4 (gl_FUNC_DIRFD):
95530         * m4/dirname.m4 (gl_DIRNAME):
95531         * m4/exclude.m4 (gl_EXCLUDE):
95532         * m4/exitfail.m4 (gl_EXITFAIL):
95533         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
95534         * m4/file-type.m4 (gl_FILE_TYPE):
95535         * m4/filemode.m4 (gl_FILEMODE):
95536         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
95537         * m4/fpending.m4 (gl_FUNC_FPENDING):
95538         * m4/fprintftime.m4 (gl_FPRINTFTIME):
95539         * m4/fts.m4 (gl_FUNC_FTS):
95540         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
95541         * m4/getdate.m4 (gl_GETDATE):
95542         * m4/gethrxtime.m4 (gl_GETHRXTIME):
95543         * m4/getpagesize.m4 (gl_GETPAGESIZE):
95544         * m4/getpass.m4 (gl_FUNC_GETPASS):
95545         * m4/gettime.m4 (gl_GETTIME):
95546         * m4/getugroups.m4 (gl_GETUGROUPS):
95547         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
95548         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
95549         * m4/hard-locale.m4 (gl_HARD_LOCALE):
95550         * m4/hash.m4 (gl_HASH):
95551         * m4/idcache.m4 (gl_IDCACHE):
95552         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
95553         * m4/lchown.m4 (gl_FUNC_LCHOWN):
95554         * m4/long-options.m4 (gl_LONG_OPTIONS):
95555         * m4/lstat.m4 (gl_FUNC_LSTAT):
95556         * m4/md5.m4 (gl_MD5):
95557         * m4/memcasecmp.m4 (gl_MEMCASECMP):
95558         * m4/memcoll.m4 (gl_MEMCOLL):
95559         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
95560         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
95561         * m4/memxor.m4 (gl_MEMXOR):
95562         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
95563         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
95564         * m4/modechange.m4 (gl_MODECHANGE):
95565         * m4/mountlist.m4 (gl_MOUNTLIST):
95566         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
95567         * m4/openat.m4 (gl_FUNC_OPENAT):
95568         * m4/pathmax.m4 (gl_PATHMAX):
95569         * m4/physmem.m4 (gl_PHYSMEM):
95570         * m4/posixtm.m4 (gl_POSIXTM):
95571         * m4/posixver.m4 (gl_POSIXVER):
95572         * m4/quote.m4 (gl_QUOTE):
95573         * m4/quotearg.m4 (gl_QUOTEARG):
95574         * m4/readtokens.m4 (gl_READTOKENS):
95575         * m4/readutmp.m4 (gl_READUTMP):
95576         * m4/regex.m4 (gl_REGEX):
95577         * m4/safe-read.m4 (gl_SAFE_READ):
95578         * m4/safe-write.m4 (gl_SAFE_WRITE):
95579         * m4/same.m4 (gl_SAME):
95580         * m4/save-cwd.m4 (gl_SAVE_CWD):
95581         * m4/savedir.m4 (gl_SAVEDIR):
95582         * m4/settime.m4 (gl_SETTIME):
95583         * m4/sha1.m4 (gl_SHA1):
95584         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
95585         * m4/stat-macros.m4 (gl_STAT_MACROS):
95586         * m4/stat-time.m4 (gl_STAT_TIME):
95587         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
95588         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
95589         * m4/strdup.m4 (gl_FUNC_STRDUP):
95590         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
95591         * m4/strndup.m4 (gl_FUNC_STRNDUP):
95592         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
95593         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
95594         * m4/time_r.m4 (gl_TIME_R):
95595         * m4/timespec.m4 (gl_TIMESPEC):
95596         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
95597         * m4/unlinkdir.m4 (gl_UNLINKDIR):
95598         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
95599         * m4/userspec.m4 (gl_USERSPEC):
95600         * m4/utimecmp.m4 (gl_UTIMECMP):
95601         * m4/utimens.m4 (gl_UTIMENS):
95602         * m4/xalloc.m4 (gl_XALLOC):
95603         * m4/xgetcwd.m4 (gl_XGETCWD):
95604         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
95605         * m4/xreadlink.m4 (gl_XREADLINK):
95606         * m4/xstrtod.m4 (gl_XSTRTOD):
95607         * m4/yesno.m4 (gl_YESNO):
95608         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
95609         to get the necessary .h files and whatnot.
95611 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
95612             Bruno Haible  <bruno@clisp.org>
95614         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
95615         /bin/sh understanding of '!' conditional negation.
95617 2006-08-21  Jim Meyering  <jim@meyering.net>
95619         * modules/openat (Depends-on): Really alphabetize.
95621         * modules/acl (Depends-on): Add error and quote.
95623         * check-module (find_included_lib_files): Add at-func.c to the
95624         ok-to-include-more-than-once white list.
95626         * modules/openat (Depends-on): Add lstat.  Alphabetize.
95628 2006-08-21  Bruno Haible  <bruno@clisp.org>
95630         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95631         Emit a pkgdata_DATA variable only if some snippets add contents to it.
95632         Reported by Martin Lambers <marlam@marlam.de>.
95634 2006-08-21  Bruno Haible  <bruno@clisp.org>
95636         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
95637         specify an installation location, don't emit a noinst_LIBRARIES or
95638         noinst_LTLIBRARIES assignment.
95640 2006-08-21  Bruno Haible  <bruno@clisp.org>
95642         BeOS portability.
95643         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
95644         BeOS has mbrtowc() but no <wctype.h>.
95646 2006-08-21  Bruno Haible  <bruno@clisp.org>
95648         BeOS portability.
95649         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
95650         exist.
95652 2006-08-21  Bruno Haible  <bruno@clisp.org>
95654         BeOS portability.
95655         * lib/mbchar.h: Include <wctype.h> only if it exists.
95657 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95659         Remove files that are no longer needed by their respective modules.
95660         * m4/obstack.m4: Remove.
95661         * m4/strerror_r.m4: Remove.
95662         * m4/uint32_t.m4: Remove.
95663         * m4/uintptr_t.m4: Remove.
95664         * m4/ullong_max.m4: Remove.
95665         * m4/xstrtoimax.m4: Remove.
95666         * m4/xstrtoumax.m4: Remove.
95668         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
95669         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
95670         dependencies now capture this.
95672         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
95673         Do not use AC_LIBSOURCES, since gnulib modules now do this.
95674         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
95675         * m4/human.m4 (gl_HUMAN): Likewise.
95676         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
95677         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
95679         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
95681         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
95682         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
95683         stdint.
95684         * m4/human.m4 (gl_HUMAN): Likewise.
95685         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
95686         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
95687         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
95688         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
95689         * m4/xstrtol (gl_XSTRTOL): Likewise.
95691         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
95692         AC_TYPE_LONG_LONG_INT.
95693         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
95694         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
95695         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
95696         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
95698         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
95699         on stdbool.
95701         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
95702         (gl_PREREQ_XSTRTOUL): Remove.
95704         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
95706         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
95707         mode.
95709 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95711         Add and change modules to make it easier for coreutils to use
95712         gnulib-tool.
95713         * modules/backupfile (Files): Remove m4/d-ino.m4.
95714         (Depends-on): Add d-ino.
95715         * modules/cycle-check (Depends-on): Add stdint.
95716         (lib_SOURCES): Add cycle-check.h.
95717         * modules/d-ino: New module.
95718         * modules/d-type: New module.
95719         * modules/error (Files): Remove m4/strerror_r.m4.
95720         * modules/filemode (Files): Add m4/st_dm_mode.m4.
95721         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
95722         m4/inttypes_h.m4, m4/uintmax_t.m4.
95723         (Depends-on): Add stdint.
95724         (lib_SOURCES): Add fsusage.h.
95725         * modules/getcwd (Files): Remove d-ino.m4.
95726         (Depends-on): Add d-ino.
95727         * modules/getndelim2 (Depends-on): Add stdint.
95728         * modules/glob (Files): Remove m4/d-type.m4.
95729         (Depends-on): Add d-type.
95730         * modules/host-os: New module.
95731         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
95732         m4/inttypes_h.m4, m4/uintmax_t.m4.
95733         * Depends-on: Add stdint.
95734         (lib_SOURCES): Add human.h.
95735         * modules/inttostr (Files): Remove m4/intmax_t.m4,
95736         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
95737         m4/uintmax_t.m4, m4/ulonglong.m4.
95738         (Depends-on): Add stdint.
95739         (EXTRA_DIST): Add inttostr.h.
95740         * modules/lchmod: New module.
95741         * modules/link-follow: New module.
95742         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
95743         (Depends-on): Add lchmod.
95744         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
95745         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
95746         (Depends-on): Add stdint.
95747         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
95748         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
95749         (Depends-on): Add stdint.
95750         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
95751         * modules/perl: New module.
95752         * modules/regex (Depends-on): Add stdint.
95753         * modules/rmdir-errno: New module.
95754         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
95755         m4/intmax_t.m4.
95756         (Depends-on): Add stdint.
95757         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
95758         m4/uintmax_t.m4.
95759         (Depends-on): Add stdint.
95760         * modules/unlink-busy: New module.
95761         * modules/utimecmp (Depends-on): Add stdint.
95762         * modules/uptime: New module.
95763         * modules/winsz-ioctl: New module.
95764         * modules/winsz-termios: New module.
95765         * modules/xnanosleep (Depends-on): Add nanosleep.
95766         * modules/ullong_max: Remove.
95767         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
95768         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
95769         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
95770         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
95771         (Depends-on): Add inttypes.
95772         (lib_SOURCES): Add xstrtol.h.
95773         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
95774         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
95775         * MODULES.html.sh: Move 'assert' into the assert section.
95776         Move 'dummy' into the linking section.
95777         Remove ullong_max.
95778         Add section for compatibility checks for POSIX:2001 functions,
95779         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
95780         winsz-ioctl, and winsz-termios into it.
95781         Add lchmod.
95782         Add top-level Misc section and put host-os, perl, and uptime
95783         into it.
95785 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95787         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
95788         now assume the stdint module.  Do not include inttypes.h.
95789         * lib/fsusage.h: Likewise.
95790         * lib/getndelim2.c: Likewise.
95791         * lib/human.h: Likewise.
95792         * lib/inttostr.h: Likewise.
95793         * lib/obstack.c: Likewise.
95794         * lib/regex_internal.h: Likewise.
95795         * lib/tempname.c: Likewise.
95796         * lib/utimecmp.c: Likewise.
95797         * lib/xstrtol.h: Likewise.
95799         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
95801         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
95802         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
95803         * lib/xtime.h: Likewise.
95805 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
95807         * modules/openat (Files): Add lib/fchmodat.c.
95808         Fixes problem reported by Jay Youngman.
95810 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
95812         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
95813         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
95815 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
95816             Bruno Haible  <bruno@clisp.org>
95818         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
95819         and is a script that invokes bison. Tighten the code. Add comments.
95821 2006-08-18  Jim Meyering  <jim@meyering.net>
95823         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
95824         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
95825         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
95826         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
95828 2006-08-18  Bruno Haible  <bruno@clisp.org>
95830         * modules/bison-i18n: New file.
95831         * MODULES.html.sh (Internationalization functions): Add it.
95833 2006-08-18  Bruno Haible  <bruno@clisp.org>
95835         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
95836         sys/statvfs.h. When getmntinfo was found, check its declaration and
95837         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
95839 2006-08-18  Bruno Haible  <bruno@clisp.org>
95841         * m4/bison-i18n.m4: New file, from bison.
95843 2006-08-18  Bruno Haible  <bruno@clisp.org>
95845         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
95846         (ME_DUMMY): Treat "kernfs" as a dummy.
95847         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
95849 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
95851         Update from coreutils.
95853         2006-08-15  Jim Meyering  <jim@meyering.net>
95855         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
95857         2006-01-17  Jim Meyering  <jim@meyering.net>
95859         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
95861         2006-01-11  Jim Meyering  <jim@meyering.net>
95863         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
95864         Check for the lchmod function.
95866 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
95868         Update from coreutils.
95870         * lib/__fpending.h: Add copyright notice.
95871         * lib/fprintftime.h: Likewise.
95872         * lib/savedir.c: Use (C) in copyright notice.
95873         * lib/savedir.h: Likewise.
95875         2006-08-15  Jim Meyering  <jim@meyering.net>
95877         * lib/at-func.c: New file, with the logic of all emulated at-functions.
95878         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
95879         in support of the EXPECTED_ERRNO macro.
95880         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
95881         definitions.  Instead, define the appropriate symbols and include
95882         "at-func.c".
95883         * lib/mkdirat.c (mkdirat): Likewise.
95884         * lib/fchmodat.c (fchmodat): Likewise.
95885         (ENOSYS): Remove definition.
95886         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
95887         it.  Don't include "unistd--.h" -- it wasn't ever used.
95889         2006-01-17  Jim Meyering  <jim@meyering.net>
95891         Rewrite fts.c not to change the current working directory,
95892         by using openat, fstatat, fdopendir, etc..
95894         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
95895         (HAVE_OPENAT_SUPPORT): Define.
95896         [_LIBC] (fchdir): Don't undef or define; no longer used.
95897         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
95898         Now, this `function' always succeeds, and consumes its file descriptor
95899         parameter -- so callers must not close such FDs.  Update callers.
95900         (diropen_fd, opendirat, cwd_advance_fd): New functions.
95901         (diropen): Add parameter, SP.  Adjust all callers.
95902         Implement using diropen_fd, rather than open.
95903         (fts_open): Initialize new member, fts_cwd_fd.
95904         Remove fts_rft-setting code.
95905         (fts_close): Close fts_cwd_fd, if necessary.
95906         (__opendir2): Define in terms of opendir or opendirat,
95907         depending on whether the FST_NOCHDIR flag is set.
95908         (fts_build): Since fts_safe_changedir consumes its FD, and since
95909         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
95910         and close the dup'd file descriptor upon failure.
95911         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
95912         (fts_safe_changedir): Tweak semantics to reflect that this function
95913         now calls cwd_advance_fd and hence consumes its FD argument.
95914         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
95915         [struct FTS] (fts_rft): Remove now-unused member.
95916         [struct FTS] (fts_cycle.state): Improve comment.
95918         * lib/openat.c (openat_needs_fchdir): New function.
95919         * lib/openat.h (openat_needs_fchdir): Declare it.
95921 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
95923         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
95924         Problem and fix reported by Pádraig Brady in
95925         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
95927 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95929         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
95931 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95933         * lib/memcoll.c (memcoll): Optimize for the common case where the
95934         arguments are bytewise equal.
95936 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95938         * doc/regexprops-generic.texi: Add a copyright notice.
95940 2006-08-15  Bruno Haible  <bruno@clisp.org>
95942         * modules/tmpdir (License): Change to LGPL.
95944 2006-08-15  Bruno Haible  <bruno@clisp.org>
95946         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
95947         module.
95949 2006-08-14  Simon Josefsson  <jas@extundo.com>
95951         * config/srclist.txt: Add gnupload.
95953 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95955         Change copyright notice from LGPL 2 to GPL 2, since that's the
95956         standard form used in the gnulib repository.
95957         * tests/test-lock.c: Likewise.
95958         * tests/test-stdint.c: Likewise.
95959         * tests/test-tls.c: Likewise.
95961         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
95962         prelude-manager.  User shorter URLs for GNU projects, without '?'.
95963         Add copyright notice.
95965         * check-module: Add copyright notice.  Output a copyright
95966         notice if "--version" is specified.
95967         * modules/COPYING: New file.
95968         * tests/test-getaddrinfo.c: Add copyright notice.
95969         * tests/test-verify.c: Likewise.
95971 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95973         Change copyright notice from LGPL 2 to GPL 2, since that's the
95974         standard form used in the gnulib repository.
95975         * lib/lock.c: LGPL -> GPL.
95976         * lib/lock.h: Likewise.
95977         * lib/strnlen1.c: Likewise.
95978         * lib/strnlen1.h: Likewise.
95979         * lib/tls.c: Likewise.
95980         * lib/tls.h: Likewise.
95981         * lib/tmpdir.c: Likewise.
95983         * lib/TODO: Remove; this belongs only in coreutils.
95985 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95987         Add copyright notices to long-enough files that lack them, since
95988         otherwise the files aren't clearly free.  Use the same notice that
95989         getdate.texi already uses.
95990         * doc/alloca-opt.texi: Add copyright notice.
95991         * doc/alloca.texi: Likewise.
95992         * doc/ctime.texi: Likewise.
95993         * doc/functions.texi: Likewise.
95994         * doc/gcd.texi: Likewise.
95995         * doc/gnulib-tool.texi: Likewise.
95996         * doc/inet_ntoa.texi: Likewise.
95997         * doc/visibility.texi: Likewise.
95999         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
96000         * doc/quote.texi: Add copyright notice.
96002         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
96003         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
96004         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
96005         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
96006         is now obsolete, and give a pointer to the Sun list.
96007         Add copyright notice.
96009 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96011         * config/srclistvars.sh: Add copyright notice.
96013 2006-08-14  Eric Blake  <ebb9@byu.net>
96015         Import the following change from libc:
96017         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
96019         Upstream bug 2997.
96020         * lib/misc/error.c: Add space between program name and message if file
96021         name is missing.
96023 2006-08-12  Karl Berry  <karl@gnu.org>
96025         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
96026         remove, these originate in gnulib now.
96028 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96030         * doc/Makefile (standards.info standards.html standards.dvi):
96031         Also depend on make-stds.texi.
96033 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
96035         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
96036         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
96038         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
96039         in wchar_t.  Problem reported by Eric Blake.
96041         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
96042         LEN is smaller than SIZE.  Suggested by Bruno Haible.
96043         Also, help the compiler to keep LEN in a register.
96045 2006-08-11  Eric Blake  <ebb9@byu.net>
96047         * users.txt: Sort.  Add tar.
96049 2006-08-11  Bruno Haible  <bruno@clisp.org>
96051         * users.txt: New file.
96053 2006-08-11  Bruno Haible  <bruno@clisp.org>
96055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
96056         before <wchar.h>. Needed for OSF/1 and BSD/OS.
96058 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
96060         * modules/snprintf (Depends-on): Remove minmax.
96061         (Maintainer): Add self and Bruno.
96063 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
96065         * lib/.cppi-disable: Add snprintf.h, socket_.h.
96066         * lib/snprintf.c: Include <errno.h> and <limits.h>.
96067         (EOVERFLOW): Define if the system does not.
96068         Do not include "minmax.h"; it wasn't used.
96069         (snprintf): Don't assume size_t promotes to an unsigned type.
96070         Fix bug when generated string was too long for the buffer: the
96071         buffer's contents are supposed to be the initial prefix of the
96072         output.  Don't assume vasnprintf returns EOVERFLOW if the size
96073         exceeds INT_MAX; do the check ourselves.
96075         Import the following changes from libc:
96077         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
96079         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
96080         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
96081         set wc to the byte which couldn't be converted.
96082         (re_string_reconstruct): Don't clear valid_raw_len before calling
96083         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
96084         tip_context using re_string_context_at.
96086         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
96088         * lib/posix/regex.h: g++ still cannot handled [restrict].
96090         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
96092         * lib/posix/regex.h: Remove special handling for VMS.
96094 2006-08-10  Jim Meyering  <jim@meyering.net>
96096         * modules/same-inode: New module.
96097         * modules/dev-ino: New module.
96098         * modules/cycle-check: Depend on these modules, rather than simply
96099         including their .h files.
96100         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
96101         required via m4/cycle-check.m4.
96102         * modules/same: Depend on new same-inode module, rather than
96103         including same-inode.h.
96104         * modules/chdir-safer: New file.
96106         * modules/chown (Depends-on): Add stat-macros.
96108 2006-08-10  Jim Meyering  <jim@meyering.net>
96110         * m4/cycle-check.m4: New file.
96111         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
96112         * m4/dev-ino.m4, m4/same-inode.m4: New files.
96114 2006-08-10  Eric Blake  <ebb9@byu.net>
96116         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
96117         in from original proposal.
96119 2006-08-10  Eric Blake  <ebb9@byu.net>
96120         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
96122         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
96123         namespace.
96125 2006-08-10  Bruno Haible  <bruno@clisp.org>
96127         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
96128         as well.
96130 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96132         Sync from coreutils.
96134         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
96136         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
96137         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
96139 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96141         * modules/restrict: Remove; no longer needed now that we assume
96142         Autoconf 2.59 or later.
96143         * MODULES.html.sh: Remove 'restrict'.
96144         * modules/argp (Depends-on): Remove 'restrict'.
96145         * modules/base64 (Depends-on): Likewise.
96146         * modules/gc (Depends-on): Likewise.
96147         * modules/getaddrinfo (Depends-on): Likewise.
96148         * modules/glob (Depends-on): Likewise.
96149         * modules/inet_ntop (Depends-on): Likewise.
96150         * modules/inet_pton (Depends-on): Likewise.
96151         * modules/memxor (Depends-on): Likewise.
96152         * modules/regex (Depends-on): Likewise.
96153         * modules/strtok_r (Depends-on): Likewise.
96154         * modules/time_r (Depends-on): Likewise.
96156 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96158         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
96159         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
96160         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
96161         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
96162         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
96163         * m4/memxor.m4 (gl_MEMXOR): Likewise.
96164         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
96165         gl_C_RESTRICT replaced by AC_C_RESTRICT.
96167         Merge from coreutils.
96168         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
96169         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
96170         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
96171         * m4/time_r.m4 (gl_TIME_R): Likewise.
96173 2006-08-09  Karl Berry  <karl@gnu.org>
96175         * config/srclist.txt: no more gettext-tools, per Bruno.
96177 2006-08-08  Eric Blake  <ebb9@byu.net>
96179         * modules/verror: New module.
96180         * MODULES.html.sh: Document it.
96182 2006-08-08  Eric Blake  <ebb9@byu.net>
96184         * lib/verror.h, lib/verror.c: New files.
96186 2006-08-08  Eric Blake  <ebb9@byu.net>
96188         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
96189         verror_at_line output complies with GNU Coding Standards even when
96190         file is NULL.
96192 2006-08-07  Bruno Haible  <bruno@clisp.org>
96194         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
96195         versions of AIX.
96196         Reported by Ralf Wildenhues.
96198 2006-08-07  Bruno Haible  <bruno@clisp.org>
96200         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
96201         in an AC_DEFUN. Needed so that the autoconf snippets can use
96202         AC_REQUIRE.
96204 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96206         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96207         Initialize pkgdata_DATA.
96208         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
96209         overriding it.
96211 2006-08-06  Eric Blake  <ebb9@byu.net>
96213         * lib/error.h: Fold in some upstream changes from glibc.
96214         * lib/error.c: Likewise.
96216 2006-08-04  Bruno Haible  <bruno@clisp.org>
96218         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96219         Make the mostlyclean-local rule depend on mostlyclean-generic.
96220         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
96222 2006-07-31  Bruno Haible  <bruno@clisp.org>
96224         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
96225         <stdlib.h>, <string.h>.
96227 2006-07-30  Bruno Haible  <bruno@clisp.org>
96229         * modules/readlink (License): Change to LGPL.
96231 2006-07-30  Bruno Haible  <bruno@clisp.org>
96233         * modules/javaversion (Makefile.am): Distribute javaversion.java and
96234         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
96235         set PKGDATADIR to point to it.
96237 2006-07-30  Bruno Haible  <bruno@clisp.org>
96239         * modules/csharpexec (configure.ac): Comment out macro invocation.
96240         * modules/javaexec (configure.ac): Likewise.
96241         * modules/javacomp-script (configure.ac): Likewise.
96243         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
96245 2006-07-30  Bruno Haible  <bruno@clisp.org>
96247         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
96248         linked-list.
96250 2006-07-30  Bruno Haible  <bruno@clisp.org>
96252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
96254 2006-07-30  Bruno Haible  <bruno@clisp.org>
96256         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96257         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
96258         get removed.
96260 2006-07-29  Bruno Haible  <bruno@clisp.org>
96262         Make it possible for gnulib-tool to work with locally modified or
96263         augmented gnulib repositories.
96264         * gnulib-tool (func_usage): Document --local-dir option.
96265         (local_gnulib_dir): New variable.
96266         Handle --local-dir option.
96267         (func_lookup_file): New function.
96268         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
96269         (func_get_description, func_get_filelist, func_get_description,
96270         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
96271         func_get_automake_snippet, func_get_include_directive,
96272         func_get_license, func_get_maintainer): Use func_lookup_file.
96273         (func_import, func_create_testdir): Use func_lookup_file.
96275 2006-07-29  Bruno Haible  <bruno@clisp.org>
96277         * modules/setenv (Depends-on): Add unistd.
96279 2006-07-29  Bruno Haible  <bruno@clisp.org>
96281         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
96283 2006-07-29  Bruno Haible  <bruno@clisp.org>
96285         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
96287 2006-07-29  Bruno Haible  <bruno@clisp.org>
96289         * gnulib-tool (import, update): If there is no Makefile.am, look at
96290         aclocal.m4, instead of bailing out.
96292 2006-07-29  Bruno Haible  <bruno@clisp.org>
96294         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
96295         Categorize the options by when they are useful.
96297 2006-07-29  Bruno Haible  <bruno@clisp.org>
96299         * gnulib-tool (func_usage): Document option --no-libtool.
96300         Handle option --no-libtool.
96301         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
96302         for changed semantics of $libtool variable.
96303         (func_import): Likewise. If libtool is not used, show this through
96304         an option --no-libtool.
96305         (func_create_testdir): Update.
96307 2006-07-29  Bruno Haible  <bruno@clisp.org>
96309         * gnulib-tool (func_import): Extend error message about missing
96310         --doc-base.
96312 2006-07-29  Bruno Haible  <bruno@clisp.org>
96314         * gnulib-tool (func_import): Don't create the $docbase directory if
96315         there is no file to store there.
96317 2006-07-29  Bruno Haible  <bruno@clisp.org>
96319         * gnulib-tool (autoconf_minversion): If a --dir option is given and
96320         relevant, look for configure.ac there, not in the current directory.
96321         Also use a simple search for AC_PREREQ, not "autoconf --trace".
96323 2006-07-29  Bruno Haible  <bruno@clisp.org>
96325         * gnulib-tool (SORT): New variable.
96326         (func_usage): Undocument --assume-autoconf option.
96327         Remove --assume-autoconf option handling.
96328         (autoconf_minversion): Determine from the contents of configure.ac.
96329         (func_import): Remove autoconf_minversion handling.
96330         Suggested by Eric Blake.
96332 2006-07-29  Bruno Haible  <bruno@clisp.org>
96334         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
96336 2006-07-29  Bruno Haible  <bruno@clisp.org>
96338         * config/srclist.txt (*setenv.[ch]): Remove rules.
96340 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96342         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
96344 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96346         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
96347         arpa/inet.h.
96349 2006-07-28  Simon Josefsson  <jas@extundo.com>
96351         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
96352         * modules/inet_pton (Depends-on): Likewise.
96354 2006-07-28  Simon Josefsson  <jas@extundo.com>
96356         * m4/netinet_in_h.m4: New file.
96358 2006-07-28  Simon Josefsson  <jas@extundo.com>
96360         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
96361         #include's.
96363 2006-07-28  Simon Josefsson  <jas@extundo.com>
96365         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
96366         #include's.
96368 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
96370         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
96371         setgid on directories only if they set these bits.
96372         * lib/modechange.h: Remove obsolete comment about masks.
96374 2006-07-28  Eric Blake  <ebb9@byu.net>
96376         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
96377         macro expansion.
96379 2006-07-28  Bruno Haible  <bruno@clisp.org>
96381         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
96383 2006-07-28  Bruno Haible  <bruno@clisp.org>
96385         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
96387 2006-07-28  Bruno Haible  <bruno@clisp.org>
96389         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
96390         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
96391         Define fallbacks.
96392         Avoids link error on FreeBSD 4.x.
96393         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
96395         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
96396         encoding.
96397         * lib/mbswidth.c (iswcntrl): Likewise.
96399 2006-07-27  Bruno Haible  <bruno@clisp.org>
96401         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
96402         test.
96404 2006-07-27  Bruno Haible  <bruno@clisp.org>
96406         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
96407         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
96408         defined.
96410 2006-07-26  Eric Blake  <ebb9@byu.net>
96412         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
96414 2006-07-26  Eric Blake  <ebb9@byu.net>
96416         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
96417         like mingw that lack mkstemp.
96418         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
96419         avoid compilation warning on mingw.
96421 2006-07-26  Bruno Haible  <bruno@clisp.org>
96423         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
96424         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
96425         INT_FAST*_MIN, INTPTR_MIN.
96427 2006-07-25  Bruno Haible  <bruno@clisp.org>
96429         * modules/version-etc (Depends-on): Add stdarg.
96431 2006-07-25  Bruno Haible  <bruno@clisp.org>
96433         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
96434         complex commands.
96436 2006-07-25  Bruno Haible  <bruno@clisp.org>
96438         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
96439         defined in <stdarg.h> or config.h.
96441 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
96443         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
96444         (gl_STDIO_SAFER): Remove.
96446 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
96448         * MODULES.html.sh (File stream based Input/Output):
96449         Add fopen-safer, tmpfile-safer; remove stdio-safer.
96450         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
96451         * modules/fopen-safer, modules/tmpfile-safer: New files.
96452         * modules/stdio-safer: Remove.
96454 2006-07-24  Bruno Haible  <bruno@clisp.org>
96456         * modules/tmpdir: New file.
96457         * MODULES.html.sh (File system functions): Add it.
96459 2006-07-24  Bruno Haible  <bruno@clisp.org>
96461         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
96462         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
96464 2006-07-24  Bruno Haible  <bruno@clisp.org>
96466         * modules/clean-temp: New file.
96468 2006-07-24  Bruno Haible  <bruno@clisp.org>
96470         * m4/tmpdir.m4: New file, from GNU gettext.
96472 2006-07-24  Bruno Haible  <bruno@clisp.org>
96474         * lib/tmpdir.h: New file, from GNU gettext.
96475         * lib/tmpdir.c: New file, from GNU gettext.
96477 2006-07-24  Bruno Haible  <bruno@clisp.org>
96479         * lib/clean-temp.h: New file, from GNU gettext.
96480         * lib/clean-temp.c: New file, from GNU gettext.
96482 2006-07-23  Eric Blake  <ebb9@byu.net>
96484         * modules/stdio-safer (Files): Add tmpfile-safer.c.
96485         (Depends-on): Add binary-io.
96487 2006-07-23  Eric Blake  <ebb9@byu.net>
96489         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
96491 2006-07-23  Eric Blake  <ebb9@byu.net>
96493         * lib/tmpfile-safer.c: New file.
96494         * lib/stdio-safer.h (fopen_safer): Add prototype.
96495         * lib/stdio--.h (tmpfile): Make safer.
96497 2006-07-23  Bruno Haible  <bruno@clisp.org>
96499         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
96500         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
96501         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
96502         gl_linked_remove_at): Use it.
96504 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96505         and Simon Josefsson <jas@extundo.com>
96507         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
96509         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
96511 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
96513         * modules/close-stream: New file.
96514         * modules/closeout (Description): Make it clear that it exits
96515         with a diagnostic on error.
96516         (Depends-on): Add close-stream.  Remove fpending, stdbool.
96517         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
96519 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
96521         * m4/close-stream.m4: New file.
96523 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
96525         * lib/close-stream.c, lib/close-stream.h: New files.
96527 2006-07-22  Bruno Haible  <bruno@clisp.org>
96529         Merge from GNU gettext 0.15.
96531         2006-05-01  Bruno Haible  <bruno@clisp.org>
96533                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
96535         2006-07-22  Bruno Haible  <bruno@clisp.org>
96537                 * modules/javaversion: New file.
96538                 * MODULES.html.sh (Java): Add javaversion.
96540         2006-03-12  Bruno Haible  <bruno@clisp.org>
96542                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
96544         2005-12-04  Bruno Haible  <bruno@clisp.org>
96546                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
96547                 (untested).
96549         2006-06-21  Bruno Haible  <bruno@clisp.org>
96551                 Avoid warnings from recent versions of mcs.
96552                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
96553                 -o, -L, -r any more. Use options documented since mcs-1.0
96554                 instead. Similarly for -g.
96556         2005-12-04  Bruno Haible  <bruno@clisp.org>
96558                 * build-aux/csharpcomp.sh.in: Suffix for resources is
96559                 .resources, not .resource.
96561         2005-07-09  Bruno Haible  <bruno@clisp.org>
96563                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
96564                 add a .dll suffix.
96565                 Reported by Mark Junker <mjscod@gmx.de>.
96567         2006-07-22  Bruno Haible  <bruno@clisp.org>
96569                 * modules/gettext: Upgrade to gettext-0.15.
96570                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
96571                 m4/visibility.m4.
96572                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
96574 2006-07-22  Bruno Haible  <bruno@clisp.org>
96576         Merge from GNU gettext 0.15.
96578         2006-03-25  Bruno Haible  <bruno@clisp.org>
96580                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
96582         2006-07-21  Bruno Haible  <bruno@clisp.org>
96584                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
96585                 "1.1".
96587         2006-05-09  Bruno Haible  <bruno@clisp.org>
96589                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
96590                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
96591                 for the conftestver execution.
96593         2006-05-01  Bruno Haible  <bruno@clisp.org>
96595                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
96596                 optional target-version argument. Verify that the compiler
96597                 groks source of the specified source-version, or add -source
96598                 option as necessary. Verify that the compiler produces
96599                 bytecode in the specified target-version, or add -target and
96600                 -source options as necessary. Make the result of the test
96601                 available as variable CONF_JAVAC. Also log error output in
96602                 config.log.
96604         2006-03-11  Bruno Haible  <bruno@clisp.org>
96606                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
96608         2006-05-09  Bruno Haible  <bruno@clisp.org>
96610                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
96611                 CLASSPATH_SEPARATOR to a semicolon.
96613         2006-03-12  Bruno Haible  <bruno@clisp.org>
96615                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
96616                 available as variable CONF_JAVA, for subsequent autoconf
96617                 tests. Also log error output in config.log.
96619         2006-07-19  Bruno Haible  <bruno@clisp.org>
96621                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
96622                 that getline works on glibc2 systems. Needed to avoid trouble
96623                 in relocatable.c.
96624                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
96626         2005-12-04  Bruno Haible  <bruno@clisp.org>
96628                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
96629                 launcher (untested).
96631         2005-12-04  Bruno Haible  <bruno@clisp.org>
96633                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
96635         2006-07-22  Bruno Haible  <bruno@clisp.org>
96637                 * gettext.m4: Update from GNU gettext-0.15.
96638                 * nls.m4: Likewise.
96639                 * po.m4: Likewise.
96640                 * inttypes-pri.m4: Likewise.
96641                 * inttypes-h.m4: Renamed from inttypes.m4.
96642                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
96644 2006-07-22  Bruno Haible  <bruno@clisp.org>
96646         Merge from GNU gettext 0.15.
96648         2005-07-05  Bruno Haible  <bruno@clisp.org>
96650                 * printf-args.c (printf_fetchargs): Work around broken
96651                 definition of wint_t on mingw.
96653         2005-02-12  Bruno Haible  <bruno@clisp.org>
96655                 * xallocsa.h: Add extern "C" for C++.
96657         2006-05-17  Bruno Haible  <bruno@clisp.org>
96659                 Cygwin portability.
96660                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
96662         2006-04-30  Bruno Haible  <bruno@clisp.org>
96664                 * progreloc.c: Include <mach-o/dyld.h> if available.
96665                 (find_executable): Use _NSGetExecutablePath when possible.
96667         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
96669                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
96670                 function.
96672         2005-12-29  Bruno Haible  <bruno@clisp.org>
96674                 * progreloc.c (set_program_name_and_installdir): Fix
96675                 compilation error.
96677         2005-12-04  Bruno Haible  <bruno@clisp.org>
96679                 Cygwin portability.
96680                 * progreloc.c: Include <windows.h> also on Cygwin.
96681                 (find_executable): Add support for Cygwin.
96682                 (set_program_name_and_installdir): Handle also platforms with
96683                 nonempty EXEEXT.
96685         2006-07-11  Bruno Haible  <bruno@clisp.org>
96687                 * javacomp.c: Fix a comment.
96688                 Reported by Jim Meyering.
96690         2006-04-30  Bruno Haible  <bruno@clisp.org>
96692                 * javacomp.h (compile_java_class): Add source_version,
96693                 target_version arguments.
96694                 * javacomp.c: Rewritten to choose only a compiler that
96695                 respects the specified source_version and target_version.
96697         2006-06-27  Bruno Haible  <bruno@clisp.org>
96699                 Assume correct S_ISDIR macro.
96700                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
96702         2006-07-22  Bruno Haible  <bruno@clisp.org>
96704                 * javaversion.h: New file, from GNU gettext.
96705                 * javaversion.c: New file, from GNU gettext.
96706                 * javaversion.java: New file, from GNU gettext.
96707                 * javaversion.class: New file, from GNU gettext.
96709         2006-05-17  Bruno Haible  <bruno@clisp.org>
96711                 Cygwin portability.
96712                 * javaexec.c (execute_java_class): Test for jview program
96713                 also on Cygwin.
96715         2006-04-09  Bruno Haible  <bruno@clisp.org>
96717                 * fatal-signal.c: Don't include string.h.
96718                 (at_fatal_signal): Use a copying loop instead of memcpy.
96720         2005-12-04  Bruno Haible  <bruno@clisp.org>
96722                 * csharpexec.c: Add support for 'clix' launcher (untested).
96723                 (execute_csharp_using_sscli): New function.
96724                 (execute_csharp_program): Call it.
96726         2006-06-21  Bruno Haible  <bruno@clisp.org>
96728                 Avoid warnings from recent versions of mcs.
96729                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
96730                 -o, -L, -r any more. Use options documented since mcs-1.0
96731                 instead. Similarly for -g.
96733         2005-07-09  Bruno Haible  <bruno@clisp.org>
96735                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
96736                 add a .dll suffix.
96737                 Reported by Mark Junker <mjscod@gmx.de>.
96739         2006-06-17  Bruno Haible  <bruno@clisp.org>
96741                 * config.charset: Update for NetBSD 3.0.
96743         2006-05-17  Bruno Haible  <bruno@clisp.org>
96745                 Cygwin portability.
96746                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
96748         2006-05-16  Bruno Haible  <bruno@clisp.org>
96750                 * localcharset.c [CYGWIN]: Include <windows.h>.
96751                 (get_charset_aliases): For Cygwin, return the same CPxxx
96752                 aliases list as under WIN32.
96753                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
96754                 the environment variables. Fall back to GetACP().
96756         2006-04-05  Bruno Haible  <bruno@clisp.org>
96758                 * config.charset: Update Juan Manuel Guerrero's address.
96760         2005-02-12  Bruno Haible  <bruno@clisp.org>
96762                 * allocsa.h: Add extern "C" for C++.
96764         2005-02-10  Bruno Haible  <bruno@clisp.org>
96766                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
96767                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
96769         2006-07-22  Bruno Haible  <bruno@clisp.org>
96771                 * gettext.h: Update to GNU gettext-0.15.
96773 2006-07-22  Bruno Haible  <bruno@clisp.org>
96775         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
96776         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
96777         lib-prefix.m4, longdouble.m4, ssize_t.m4.
96779 2006-07-21  Eric Blake  <ebb9@byu.net>
96781         * modules/stdlib-safer: New file.
96782         * MODULES.html.sh (File stream based Input/Output): Add
96783         stdlib-safer.
96785 2006-07-21  Eric Blake  <ebb9@byu.net>
96787         * lib/stdlib-safer.h: New file from coreutils, required by
96788         stdlib--.h.
96790 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
96792         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
96794 2006-07-20  Bruno Haible  <bruno@clisp.org>
96796         * gnulib-tool: Recognize new option --assume-autoconf.
96797         (autoconf_minversion): New variable.
96798         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
96800 2006-07-20  Bruno Haible  <bruno@clisp.org>
96802         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
96804 2006-07-19  Derek R. Price  <derek@ximbiot.com>
96806         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
96807         Reindent and repaginate.
96809 2006-07-19  Derek Price  <derek@ximbiot.com>
96811         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
96812         Correct grammar.
96814 2006-07-17  Bruno Haible  <bruno@clisp.org>
96816         * modules/list: New file.
96817         * modules/array-list: New file.
96818         * modules/carray-list, modules/carray-list-tests: New files.
96819         * modules/linked-list, modules/linked-list-tests: New files.
96820         * modules/avltree-list, modules/avltree-list-tests: New files.
96821         * modules/rbtree-list, modules/rbtree-list-tests: New files.
96822         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
96823         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
96824         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
96825         * modules/oset: New file.
96826         * modules/array-oset: New file.
96827         * modules/avltree-oset, modules/avltree-oset-tests: New files.
96828         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
96829         * tests/test-carray_list.c: New file.
96830         * tests/test-linked_list.c: New file.
96831         * tests/test-avltree_list.c: New file.
96832         * tests/test-rbtree_list.c: New file.
96833         * tests/test-linkedhash_list.c: New file.
96834         * tests/test-avltreehash_list.c: New file.
96835         * tests/test-rbtreehash_list.c: New file.
96836         * tests/test-avltree_oset.c: New file.
96837         * tests/test-rbtree_oset.c: New file.
96838         * MODULES.html.sh (Container data structures): New section.
96840 2006-07-17  Bruno Haible  <bruno@clisp.org>
96842         * m4/gl_list.m4: New file.
96844 2006-07-17  Bruno Haible  <bruno@clisp.org>
96846         * lib/gl_list.h: New file.
96847         * lib/gl_list.c: New file.
96848         * lib/gl_array_list.h: New file.
96849         * lib/gl_array_list.c: New file.
96850         * lib/gl_carray_list.h: New file.
96851         * lib/gl_carray_list.c: New file.
96852         * lib/gl_linked_list.h: New file.
96853         * lib/gl_linked_list.c: New file.
96854         * lib/gl_anylinked_list1.h: New file.
96855         * lib/gl_anylinked_list2.h: New file.
96856         * lib/gl_avltree_list.h: New file.
96857         * lib/gl_avltree_list.c: New file.
96858         * lib/gl_anyavltree_list1.h: New file.
96859         * lib/gl_anyavltree_list2.h: New file.
96860         * lib/gl_rbtree_list.h: New file.
96861         * lib/gl_rbtree_list.c: New file.
96862         * lib/gl_anyrbtree_list1.h: New file.
96863         * lib/gl_anyrbtree_list2.h: New file.
96864         * lib/gl_anytree_list1.h: New file.
96865         * lib/gl_anytree_list2.h: New file.
96866         * lib/gl_linkedhash_list.h: New file.
96867         * lib/gl_linkedhash_list.c: New file.
96868         * lib/gl_anyhash_list1.h: New file.
96869         * lib/gl_anyhash_list2.h: New file.
96870         * lib/gl_avltreehash_list.h: New file.
96871         * lib/gl_avltreehash_list.c: New file.
96872         * lib/gl_rbtreehash_list.h: New file.
96873         * lib/gl_rbtreehash_list.c: New file.
96874         * lib/gl_anytreehash_list1.h: New file.
96875         * lib/gl_anytreehash_list2.h: New file.
96877         * lib/gl_oset.h: New file.
96878         * lib/gl_oset.c: New file.
96879         * lib/gl_array_oset.h: New file.
96880         * lib/gl_array_oset.c: New file.
96881         * lib/gl_avltree_oset.h: New file.
96882         * lib/gl_avltree_oset.c: New file.
96883         * lib/gl_rbtree_oset.h: New file.
96884         * lib/gl_rbtree_oset.c: New file.
96885         * lib/gl_anytree_oset.h: New file.
96887 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96889         * m4/mkancesdirs.m4: New file.
96890         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
96891         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
96892         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
96893         it.
96895 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96897         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
96898         * lib/mkancesdirs.h: New files.
96899         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
96900         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
96901         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
96902         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
96903         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
96904         callers changed.  Revamp internals significantly, by not
96905         attempting to create directories that are temporarily more
96906         permissive than the final results.  Do not attempt to use
96907         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
96908         This removes some race conditions, fixes some bugs, and simplifies
96909         things.  Use new dirchownmod function to do owner and mode changes.
96910         * lib/mkdir-p.h: Likewise.
96911         * lib/modechange.c (octal_to_mode): New function.
96912         (struct mode_change): New member mentioned.
96913         (make_node_op_equals): New arg mentioned.  All callers changed.
96914         (mode_compile): Keep track of which mode bits the user has explicitly
96915         mentioned.
96916         (mode_adjust): New arg DIR, so that we implement the X op correctly.
96917         New arg PMODE_BITS, to keep track of which mode bits the user
96918         mentioned; it treats S_ISUID and S_ISGID speciall.
96919         All callers changed.
96920         * lib/modechange.h: Likewise.
96922 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96924         * MODULES.html.sh: Add mkancestors.
96925         * modules/mkancesdirs: New module.
96926         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
96927         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
96928         The chdir-safer and afs files are now orphans; I'll remove them
96929         unless someone speaks up.
96930         Add lib/dirchownmod.c, lib/dirchownmod.h.
96931         (Depends-on): Remove alloca, chown, save-cwd, dirname.
96932         Add lchown, mkancesdirs.
96933         (Maintainer): Add self.
96935 2006-07-15  Karl Berry  <karl@gnu.org>
96937         * gnulib-tool: help message wording/arrangement.
96939 2006-07-14  Simon Josefsson  <jas@extundo.com>
96941         * doc/gnulib.texi (Libtool and Windows): New section.
96943 2006-07-12  Simon Josefsson  <jas@extundo.com>
96945         * modules/gendocs (License): Fix license, approved by Karl.
96947 2006-07-12  Eric Blake  <ebb9@byu.net>
96949         * MODULES.html.sh: Add gendocs.
96951 2006-07-11  Eric Blake  <ebb9@byu.net>
96953         * modules/fdl: New module, to install doc/fdl.texi.
96954         * MODULES.html.sh: Add new section for documentation modules.
96955         * gnulib-tool: Avoid space-tab.
96956         (--doc-base): New option, to manage files from doc.
96958 2006-07-11  Eric Blake  <ebb9@byu.net>
96960         * m4/absolute-header.m4: Fix comments to match recent change.
96962 2006-07-11  Eric Blake  <ebb9@byu.net>
96964         * gnulib-tool: List --doc-base before --tests-base.
96966 2006-07-11  Derek R. Price  <derek@ximbiot.com>
96968         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
96970 2006-07-11  Bruno Haible  <bruno@clisp.org>
96972         * README: Mention where to put documentation.
96974 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96976         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
96978 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
96980         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
96981         to stdint.m4.
96983 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
96985         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
96986         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
96987         "no/such/file/stdint.h" when there is no such file, so that
96988         the resulting C code can be parsed by dodgy compilers.
96989         Problems reported by Bob Proulx.
96991 2006-07-10  Derek R. Price  <derek@ximbiot.com>
96993         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
96994         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
96995         macros into the GNU _D_EXACT_NAMLEN.
96996         * lib/savedir.c:  Likewise.
96997         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
96999 2006-07-10  Derek R. Price  <derek@ximbiot.com>
97000         and Paul Eggert  <eggert@cs.ucla.edu>
97002         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
97003         * m4/savedir.m4:
97004         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
97005         macros into the GNU _D_EXACT_NAMLEN.
97007 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97009         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
97010         around the absolute name, to work around a problem with the HP-UX
97011         11.23 native C compiler, reported by Bob Proulx.
97013 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97015         * doc/maintain.texi, make-stds.texi: Sync from
97016         <http://savannah.gnu.org/projects/gnustandards>.
97018 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97020         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
97022 2006-07-09  Jim Meyering  <jim@meyering.net>
97024         * m4/glob.m4: Remove a doubled word in a comment.
97026 2006-07-09  Jim Meyering  <jim@meyering.net>
97028         * lib/argp-pv.c: Remove a doubled word in a comment.
97029         * lib/check-version.c (check_version): Likewise.
97030         * lib/javacomp.c (compile_java_class): Likewise.
97032 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
97034         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
97035         for the benefit of people using Autoconf 2.60.  If you want to
97036         support older Autoconf versions you can copy m4/onceonly_2_57.m4
97037         (or m4/onceonly.m4, if pre-2.57) manually.
97039 2006-07-08  Jim Meyering  <jim@meyering.net>
97041         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
97042         comment.
97043         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
97044         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
97045         comment.
97047 2006-07-08  Jim Meyering  <jim@meyering.net>
97049         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
97051 2006-07-07  Simon Josefsson  <jas@extundo.com>
97053         * tests/test-crc.c: Change expected crc value, the test vector
97054         were probably computed using the old broken crc.c?
97056 2006-07-06  Simon Josefsson  <jas@extundo.com>
97058         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
97059         now the canonical place for the M4 file).
97061         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
97062         from the sys_socket dependency now.
97064         * modules/inet_pton (Files): Ditto.
97066         * modules/inet_ntop (Files): Ditto.
97068 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
97070         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
97071         not gl_PREREQ_GETUSERSHELL.
97073 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97075         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
97076         with only one argument, for Autoconf 2.60.
97077         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
97078         expand to nothing, so add a shell command to avoid syntax error.
97079         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
97081 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97083         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
97085 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97087         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
97088         no longer needed.  Check for isblank decl.
97089         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
97090         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
97091         of existence.
97093 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97095         * lib/getloadavg.c: Use __VMS, not VMS.
97096         * lib/getopt.c: Likewise.
97097         * lib/getpagesize.h: Likewise.
97098         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
97099         and probably does not work.
97101 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97103         * lib/.cppi-disable: Add wcwidth.
97104         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
97105         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
97106         (ISGRAPH): Remove.  All uses changed to isgraph.
97107         (FOLD) [!defined _LIBC]: Remove special case.
97108         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
97109         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
97110         HAVE_ISBLANK.
97111         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
97112         case.
97114 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
97116         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
97117         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
97118         brackets.  Other minor changes to suppress some compiler
97119         warnings.
97121 2006-07-06  Derek R. Price  <derek@ximbiot.com>
97122         and Paul Eggert  <eggert@cs.ucla.edu>
97124         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
97125         of invoking obsolescent AC_HEADER_DIRENT macro.
97126         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
97127         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
97128         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
97129         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
97130         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
97131         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
97132         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
97133         * m4/readdir.m4: Remove; no longer needed.
97135 2006-07-06  Derek R. Price  <derek@ximbiot.com>
97136         and Paul Eggert  <eggert@cs.ucla.edu>
97138         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
97139         Don't worry about this obsolete case any more.
97140         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
97141         directories.
97142         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
97143         worry about this obsolete case any more.
97144         * lib/fts.c: Likewise.
97145         * lib/getcwd.c: Likewise.
97146         * lib/glob.h: Likewise.
97147         * lib/savedir.c: Likewise.
97149 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
97151         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
97152         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
97153         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
97154         needed.
97155         All uses removed.
97156         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97157         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
97158         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
97159         needed.
97160         * m4/getdate.m4 (gl_GETDATE): Likewise.
97161         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
97162         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
97163         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
97164         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97165         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
97166         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
97167         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
97168         needed.
97170 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
97172         * lib/memcasecmp.c: Include <limits.h>.
97173         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
97174         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
97175         Don't assume isdigit succeeds only on '0' through '9'.
97177 2006-07-05  Eric Blake  <ebb9@byu.net>
97179         * modules/getaddrinfo (Depends-on): Add snprintf.
97181 2006-07-05  Eric Blake  <ebb9@byu.net>
97183         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
97184         to avoid 'header present but could not be compiled' on cygwin.
97186 2006-07-05  Eric Blake  <ebb9@byu.net>
97188         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
97189         missing from netdb.h.
97190         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
97192 2006-07-05  Derek R. Price  <derek@ximbiot.com>
97194         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
97195         no longer needed.
97196         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
97197         * m4/getdate.m4 (gl_GETDATE): Likewise.
97198         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
97199         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
97200         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
97201         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97202         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
97204 2006-07-05  Derek R. Price  <derek@ximbiot.com>
97206         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
97207         All uses of is_space replaced by isspace.
97208         * lib/exit.h: Don't talk about STDC_HEADERS.
97209         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
97210         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
97211         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
97212         replaced by isprint etc.
97213         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
97214         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
97215         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
97216         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
97217         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
97218         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
97220 2006-07-05  Bruno Haible  <bruno@clisp.org>
97222         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
97223         the function exists, before testing against AIX.
97224         Reported by Martin Lambers <marlam@marlam.de>.
97226 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
97228         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
97229         From Mark D. Baushke.
97231 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
97233         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
97234         to the absolute name, not just one, to bypass Sun C 5.8's
97235         "warning: #include of /usr/include/... may be non-portable".
97237 2006-07-04  Eric Blake  <ebb9@byu.net>
97239         * modules/dirname-tests: New test module.
97240         * tests/test-dirname.c: New file, replacing dirname.c
97241         TEST_DIRNAME section that was recently deleted.
97243 2006-07-04  Bruno Haible  <bruno@clisp.org>
97245         Assume ANSI C header files and <ctype.h> functions.
97246         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
97247         (mbsnwidth): Use isprint, iscntrl instead.
97249 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97251         Merge from coreutils.
97252         * MODULES.html.sh: Add xstrtold.
97253         * modules/xstrtold: New file.
97254         * modules/cycle-check (Files): Add lib/same-inode.h.
97255         * modules/dirname (Files): Add m4/double-slash-root.m4.
97256         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
97257         * modules/mkdir-p (Files): Add lib/same-inode.h.
97258         * modules/same (Files): Add lib/same-inode.h.
97260 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97262         * m4/absolute-header.m4: Renamed from full-header-path.m4.
97263         This is to keep the terminology clean; POSIX talks about
97264         "absolute pathnames", not "full pathnames", but the GNU
97265         Coding Standards say to use "path" for something else;
97266         so use "absolute" to keep both sides happy.
97267         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
97268         Set gl_absolute_header, not gl_full_header_path.
97269         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
97270         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
97271         All uses changed.
97273         Merge from coreutils.
97275         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
97277         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
97278         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
97279         want to require the building of c-strtod.o.
97280         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
97281         needs -lm directly.
97282         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
97284         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
97286         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
97287         --as-needed option if available.  Problem reported by Albert Chin in
97288         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
97289         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
97290         cc merely issues a bunch of annoying warnings for --as-needed
97291         (this problem was reported by Bob Proulx).  Also, try linking with
97292         -lm to detect a bug in binutils 2.16 (this problem was reported
97293         by Ralf Wildenhues).
97295         2006-06-18  Jim Meyering  <jim@meyering.net>
97297         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
97298         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
97299         macro.
97300         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
97301         also check for glibc-2.4's abort-inducing bug.
97303         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
97304         Low-probability clean-up should be to use rmdir to get rid of
97305         the just-created directory, not unlink.
97307         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
97308         configure fail, and request a bug report to inform us about it.
97309         Add a comment that, barring reports to the contrary, in 2007 we'll
97310         assume ftruncate is universally available.
97312         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
97314         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
97316         2006-03-12  Jim Meyering  <jim@meyering.net>
97318         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
97319         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
97320         * m4/same.m4 (gl_SAME): Likewise.
97321         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
97323         2006-03-11  Eric Blake  <ebb9@byu.net>
97325         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
97326         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
97327         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
97328         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
97330 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97332         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
97333         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
97334         reported by Mark D. Baushke, one in
97335         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
97337         Merge from coreutils.
97339         * lib/.cppi-disable: Add stdint_.h.
97340         * lib/.cvsignore: Add stdint.h.
97342         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
97344         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
97345         both double and long double versions.
97346         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
97347         * lib/xstrtold.c: New file.
97348         * lib/xstrtod.h (xstrtold): New decl.
97350         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
97352         * lib/filemode.c (setst): Remove.
97353         (strmode): Rewrite to avoid setst.  This makes the code shorter,
97354         (arguably) clearer, and the generated code is a bit smaller on my
97355         Debian GNU/Linux stable x86 host.
97357         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
97359         * lib/filemode.c: Include "filemode.h" first, to test the interface.
97360         Assume that filemode.h includes sys/types.h and sys/stat.h.
97361         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
97362         (ftypelet): Reorder to put common cases first, for efficiency.
97363         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
97364         to do 'M'.
97365         (strmode): Renamed from mode_string, and now stores 12 bytes instead
97366         of 10, for compatibility with FreeBSD.  All callers changed.
97367         (filemodestring): Now stores 12 bytes instead of 10, and sets file
97368         types that can't be deduced solely from st_mode.  First arg is now a
97369         const pointer.
97370         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
97371         (strmode): Renamed from mode_string.
97372         (filemodestring): New decl.
97373         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
97374         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
97375         needed.
97376         (S_ISPORT, S_ISWHT): New macros, if not already defined.
97378         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
97380         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
97381         fsusage.h now does that.  Include fsusage.h first, to test interface.
97382         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
97383         at most one method (the old code could have generated decls that
97384         didn't conform to C89, not that this was ever exercised).
97385         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
97387         2006-03-19  Jim Meyering  <jim@meyering.net>
97389         Work even in a chroot where d_ino values for entries in "/"
97390         don't match the stat.st_ino values for the same names.
97391         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
97392         number, iterate through all entries again, using lstat instead.
97393         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
97394         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
97396         * lib/getcwd.c (__getcwd): Clarify a comment.
97397         Use memcpy in place of a call to strcpy.
97399         2006-03-12  Jim Meyering  <jim@meyering.net>
97401         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
97402         matches that of the current directory (which we're about to chdir ".."
97403         out of), then save the dev-ino of the parent, instead.
97405         * lib/same-inode.h (SAME_INODE): New file/macro.
97406         * lib/chdir-safer.c (SAME_INODE): Remove definition.
97407         Include "same-inode.h", instead.
97408         * lib/same.c: Likewise.
97409         * lib/cycle-check.h: Include "same-inode.h".
97410         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
97411         * lib/cycle-check.c (SAME_INODE): Remove definition.
97412         * lib/root-dev-ino.h: Include "same-inode.h".
97414         2006-03-11  Eric Blake  <ebb9@byu.net>
97416         * lib/same.c (same_name): s/base_name/last_component/
97417         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
97418         * lib/filenamecat.c (file_name_concat): Likewise.
97420         2006-03-11  Eric Blake  <ebb9@byu.net>,
97421                     Paul Eggert  <eggert@cs.ucla.edu>
97423         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
97424         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
97425         drive prefix.
97426         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
97427         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
97428         (last_component): New method.
97429         * lib/dirname.c (dir_len): Determine when drive letters need a
97430         subsequent slash.  Preserve // when it is special.
97431         (dir_name): Don't append dot when drive letter is absolute.
97432         [TEST_DIRNAME]: Move into a full-blown gnulib test.
97433         * lib/basename.c (base_name): New semantics - malloc the result.
97434         Preserve // when it is special.  Preserve relative files that look
97435         like drive letters.
97436         (base_len): Preserve // when it is special.
97437         (last_component): New method, similar to old base_name semantics.
97438         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
97439         base_name.  Strip redundant slashes from ///.
97441 2006-07-03  Jim Meyering  <jim@meyering.net>
97443         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
97444         macro is used before the first cycle_check call.
97446 2006-07-03  Eric Blake  <ebb9@byu.net>
97448         * modules/dirname (Depends-on): Add xstrndup.
97450 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
97452         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
97453         test cases, so that config.log is a bit easier to follow.
97455 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
97457         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
97458         both are 64 bits, since this seems to be the tradition, and this
97459         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
97460         we ever run into a host that prefers long long to long in this
97461         case, we'll need another configure-time test.  Problem reported by
97462         Jim Meyering.
97464 2006-07-02  Eric Blake  <ebb9@byu.net>
97466         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
97468 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
97470         * modules/inttypes (Depends-on): No longer depends on stdint.
97471         * modules/stdint (Description): Say more about assumptions.
97472         Say that the fast types might differ.  Say macros are used.
97473         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
97474         (Makefile.am): Revise list of substituted symbols to match
97475         new stdint.m4.
97476         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
97477         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
97478         * tests/test-stdint.c (verify_same_types)
97479         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
97480         the code conforms to C99/C89.
97481         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
97482         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
97484 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
97486         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
97487         but fix a bug, by requiring at least 64 bits.
97488         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
97489         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
97490         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
97491         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97493         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
97494         changes.  Make 2.59 a prerequisite.  Check and substitute for
97495         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
97496         inttypes.h.  Do not use special include files; just use the
97497         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
97498         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
97499         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
97500         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
97501         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
97502         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
97503         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
97504         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
97505         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
97506         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
97507         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
97508         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
97509         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
97510         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
97511         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
97512         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
97513         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
97514         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
97515         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
97516         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
97517         WINT_MAX.  Check for C99 conformance more strictly, by detecting
97518         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
97519         not check for things that C99 does not require, e.g., int8_t.  If
97520         a test isn't needed unless <stdint.h> isn't working, and is
97521         unlikely to be needed for any other reason, then don't do it
97522         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
97523         size_t, since we assume C89 freestanding at least.  Do not check
97524         for sig_atomic_t, wchar_t, or wint_t, since the code now does
97525         the right thing even if the types are not defined.  Instead use:
97526         (gl_STDINT_TYPE_PROPERTIES): New macro.
97527         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
97528         testing whether <sys/types.h> clashes, as Autoconf does this for
97529         us now.  All uses removed.
97530         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
97531         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
97532         (gl_CHECK_TYPE_SAME):
97533         Remove; no longer needed.
97534         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
97535         exists, since we'll return 0 anyway in that case.
97536         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
97538 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
97540         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
97541         possible collision with system files.
97542         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
97543         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
97544         WCHAR_MIN and WCHAR_MAX in this case.
97545         (<stddef.h>): Do not include; no longer needed.
97546         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
97547         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
97548         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
97549         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
97550         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
97551         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
97552         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
97553         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
97554         !defined(__c99))]: Include in this case too, since it's harmless
97555         now.
97556         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
97557         dangerous to do so.
97558         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
97559         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
97560         (_STDINT_MIN, _STDINT_MAX): New macros.
97561         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
97562         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
97563         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
97564         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
97565         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
97566         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
97567         macros, not typedefs; this simplifies things quite a bit.
97568         Use long int for all types narrower than int64_t.
97569         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
97570         Define in terms of long long int or int64_t or long int,
97571         not int64_t or int32_t.  This saves some compile-time testing.
97572         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
97573         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
97574         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
97575         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
97576         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
97577         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
97578         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
97579         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
97580         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
97581         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
97582         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
97583         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
97584         undef any previous version and define our own version, for
97585         simplicity and consistency with the new macros for types.
97586         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
97587         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
97588         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
97589         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
97590         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
97591         @WINT_T_SUFFIX@ to keep things simple here.
97592         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
97593         Simplify by assuming typical 8/16/32/64 host, since we're
97594         already doing that elsewhere anyway.
97595         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
97596         and assume long long int is 64 bits if available.  This
97597         speeds up 'configure'.
97599 2006-07-01  Eric Blake  <ebb9@byu.net>
97601         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
97602         Reported by Andreas Buening.
97604 2006-07-01  Eric Blake  <ebb9@byu.net>
97606         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
97608 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
97610         * lib/getaddrinfo.c: fixed typo
97612 2006-06-29  Jim Meyering  <jim@meyering.net>
97614         * modules/strftime (Maintainer): Add my name, since with the
97615         FPRINTFTIME changes strftime.c has forked from glibc.
97617 2006-06-29  Eric Blake  <ebb9@byu.net>
97619         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
97621 2006-06-29  Eric Blake  <ebb9@byu.net>
97623         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
97625 2006-06-29  Eric Blake  <ebb9@byu.net>
97627         * lib/stat_.h: New file.
97629 2006-06-29  Eric Blake  <ebb9@byu.net>
97631         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
97632         unused static function.
97634 2006-06-29  Eric Blake  <ebb9@byu.net>
97636         * doc/functions.texi (Function Portability): Document missing lstat
97637         on mingw.
97639 2006-06-29  Eric Blake  <ebb9@byu.net>
97641         * MODULES.html.sh: Add sys_stat.
97642         * modules/sys_stat: New module.
97643         * modules/mkstemp (Depends-on): Add sys_stat.
97645 2006-06-29  Derek R. Price  <derek@ximbiot.com>
97647         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
97649 2006-06-29  Derek R. Price  <derek@ximbiot.com>
97651         * m4/c-bs-a.m4: Removed.
97653 2006-06-29  Derek R. Price  <derek@ximbiot.com>
97655         * lib/strftime.c: Assume strftime() exists.
97657 2006-06-29  Derek Price  <derek@ximbiot.com>
97659         * modules/c-bs-a: Removed - \a is C89.
97660         * MODULES.html.sh: Remove c-bs-a.
97662 2006-06-29  Bruno Haible  <bruno@clisp.org>
97664         * modules/wcwidth (License): Change to LGPL.
97666 2006-06-28  Simon Josefsson  <jas@extundo.com>
97668         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
97669         on _WIN32.
97671         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
97672         getnameinfo.
97674 2006-06-28  Simon Josefsson  <jas@extundo.com>
97676         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
97678 2006-06-28  Simon Josefsson  <jas@extundo.com>
97680         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
97681         functions there.  It will succeed on Windows XP, but on Windows
97682         2000 and (presumably) earlier, it will fail, and use the internal
97683         re-implementation.
97684         (use_win32_p): New function.
97685         (getaddrinfo): Use strtoul on servname, to support numeric ports.
97686         Support AI_NUMERICSERV to disable getservbyname.
97687         (getnameinfo): New function, only supports
97688         NI_NUMERICHOST|NI_NUMERICSERV for now.
97690         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
97691         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
97692         getnameinfo.
97694 2006-06-28  Eric Blake  <ebb9@byu.net>
97696         * modules/wcwidth: New file.
97697         * modules/mbchar (Depends-on): Add wcwidth.
97698         * modules/mbswidth (Depends-on): Add wcwidth.
97699         * MODULES.html.sh: Add wcwidth.
97701 2006-06-28  Eric Blake  <ebb9@byu.net>
97703         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
97704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
97706 2006-06-28  Eric Blake  <ebb9@byu.net>
97708         * lib/xvasprintf.h: Fix comments.
97710 2006-06-28  Eric Blake  <ebb9@byu.net>
97712         * lib/mbchar.h (wcwidth): Include wcwidth.h.
97713         * lib/mbswidth.c (wcwidth): Move from here...
97714         * lib/wcwidth.h: ...to this new file.
97716 2006-06-28  Derek R. Price  <derek@ximbiot.com>
97718         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
97720         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
97721         it's obsolete.
97722         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
97724 2006-06-28  Derek R. Price  <derek@ximbiot.com>
97726         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
97727         Autoconf 2.60 says this stuff was obsolete.
97729 2006-06-28  Bruno Haible  <bruno@clisp.org>
97731         * modules/wcwidth (Files): Add m4/wchar_t.m4.
97733 2006-06-28  Bruno Haible  <bruno@clisp.org>
97735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
97736         gt_TYPE_WCHAR_T.
97738 2006-06-28  Bruno Haible  <bruno@clisp.org>
97740         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
97741         declaration for wcwidth.
97742         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
97744 2006-06-28  Bruno Haible  <bruno@clisp.org>
97746         * lib/mkdtemp.c [MINGW]: Include <io.h>.
97747         (mkdir): Define using _mkdir.
97749 2006-06-28  Bruno Haible  <bruno@clisp.org>
97751         * lib/getaddrinfo.h: Fix POSIX URL.
97752         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
97753         _WIN32.
97754         (use_win32_p): Make static.
97755         (getaddrinfo): Reject service name if it is empty or does not consist
97756         solely of decimal digits, or if its value is > 65535.
97757         (getnameinfo): Remove useless casts.
97759 2006-06-27  Simon Josefsson  <jas@extundo.com>
97761         * modules/sys_select: New file, suggested by Bruno Haible, Paul
97762         Eggert and Martin Lambers.
97764 2006-06-27  Simon Josefsson  <jas@extundo.com>
97766         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
97767         Eggert and Martin Lambers.
97769 2006-06-27  Bruno Haible  <bruno@clisp.org>
97771         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
97772         result to 0, not to empty.
97773         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
97775 2006-06-27  Bruno Haible  <bruno@clisp.org>
97777         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
97779 2006-06-26  Simon Josefsson  <jas@extundo.com>
97781         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
97782         present.
97784 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
97786         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
97787         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
97788         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
97790 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
97792         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
97794 2006-06-26  Bruno Haible  <bruno@clisp.org>
97796         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
97798 2006-06-26  Bruno Haible  <bruno@clisp.org>
97800         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
97802 2006-06-26  Bruno Haible  <bruno@clisp.org>
97804         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
97805         SGI C compiler in pre-C99 mode.
97806         Suggested by Mark D. Baushke and Larry Jones.
97808 2006-06-26  Bruno Haible  <bruno@clisp.org>
97810         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
97811         WCHAR_MAX.
97812         Reported by Mark D. Baushke and Larry Jones.
97814 2006-06-26  Bruno Haible  <bruno@clisp.org>
97816         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
97817         in pre-C99 mode.
97818         Suggested by Mark D. Baushke and Larry Jones.
97820 2006-06-23  Simon Josefsson  <jas@extundo.com>
97821             Bruno Haible  <bruno@clisp.org>
97823         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
97824         Emit mostlyclean-local rule.
97825         (func_emit_tests_Makefile_am): Likewise.
97826         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
97828 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
97830         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
97832 2006-06-23  Bruno Haible  <bruno@clisp.org>
97834         * tests/test-stdint.c: Update to match ISO C 99 Technical
97835         Corrigendum 1.
97837 2006-06-23  Bruno Haible  <bruno@clisp.org>
97839         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
97841 2006-06-23  Bruno Haible  <bruno@clisp.org>
97843         * lib/stdint_.h: Treat IRIX like OpenBSD.
97845 2006-06-23  Bruno Haible  <bruno@clisp.org>
97847         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
97848         ISO C 99 Technical Corrigendum 1.
97850 2006-06-22  Simon Josefsson  <jas@extundo.com>
97852         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
97853         MinGW.
97855 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
97857         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
97858         needed.  Some compiler complained about some of them.  Problem reported
97859         by Larry Jones in
97860         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
97862 2006-06-21  Simon Josefsson  <jas@extundo.com>
97864         * tests/test-getaddrinfo.c: New file.
97866         * modules/getaddrinfo-tests: New file.
97868         * MODULES.html.sh: Add inet_pton.
97870         * modules/inet_pton: New file.
97872 2006-06-21  Simon Josefsson  <jas@extundo.com>
97874         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
97875         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
97876         of using the (limited) gnulib implementation on Windows XP.
97878         * m4/inet_pton.m4: New file.
97880 2006-06-21  Simon Josefsson  <jas@extundo.com>
97882         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
97883         variable.
97885         * lib/socket_.h: Don't define WINVER.
97887         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
97888         slightly modified to work in gnulib.
97890 2006-06-21  Simon Josefsson  <jas@extundo.com>
97892         * doc/gnulib.texi (Windows sockets): Add.
97894 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
97896         * lib/read-file.c (fread_file): Start with buffer allocation of
97897         0 bytes rather than 1 byte; this simplifies the code.
97898         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
97899         code to free buffer and save/restore errno.
97900         (internal_read_file): Remove unused local.
97902 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
97904         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
97905         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
97906         Problem reported by Denis Excoffier in
97907         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
97909 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97911         * modules/sys_socket, modules/socklen: Include sys/types since
97912         FreeBSD 4.x's sys/socket.h needs it.
97914 2006-06-19  Simon Josefsson  <jas@extundo.com>
97916         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
97918 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
97920         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
97922 2006-06-19  Bruno Haible  <bruno@clisp.org>
97924         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
97925         and FULL_PATH_INTTYPES_H in angle brackets.
97926         Reported by Mark D. Baushke <mdb@gnu.org>.
97928 2006-06-17  Eric Blake  <ebb9@byu.net>
97930         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
97931         errno.
97933 2006-06-17  Bruno Haible  <bruno@clisp.org>
97935         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
97936         <sys/inttypes.h>.
97938 2006-06-17  Bruno Haible  <bruno@clisp.org>
97940         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
97941         whether errno is declared. Assume <errno.h> declares errno.
97943 2006-06-17  Bruno Haible  <bruno@clisp.org>
97945         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
97947 2006-06-17  Bruno Haible  <bruno@clisp.org>
97949         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
97950         problem on Solaris 2.5.1.
97952 2006-06-16  Eric Blake  <ebb9@byu.net>
97954         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
97955         * lib/unicodeio.c [!defined errno]: Likewise.
97956         * lib/strtol.c [!defined errno]: Likewise.
97957         * lib/strtod.c [!defined errno]: Likewise.
97959 2006-06-15  Eric Blake  <ebb9@byu.net>
97961         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
97963 2006-06-15  Eric Blake  <ebb9@byu.net>
97965         * config/srclist.txt (ssize_t.m4): Lose sync.
97967 2006-06-15  Bruno Haible  <bruno@clisp.org>
97969         * modules/stdint (Files): Include m4/full-header-path.m4,
97970         m4/size_max.m4, m4/wchar_t.m4.
97971         (Makefile.am): Many more substitutions.
97972         * modules/stdint-tests: New file.
97973         * tests/test-stdint.c: New file.
97975 2006-06-15  Bruno Haible  <bruno@clisp.org>
97977         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
97978         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
97979         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
97980         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
97981         gl_CHECK_TYPE_SAME): New macros.
97983 2006-06-15  Bruno Haible  <bruno@clisp.org>
97985         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
97987 2006-06-15  Bruno Haible  <bruno@clisp.org>
97989         * lib/stdint_.h: Rewritten to be fully auto-configured.
97990         Fixes bug on HP-UX/IA64.
97992 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
97994         * lib/getdate.y (__attribute__): Don't define if already defined.
97995         Problem reported by Larry Jones.
97996         * lib/utimens.c (__attribute__): Likewise.
97998 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
98000         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
98001         reported by Andreas Schwab.
98003 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98004             Bruno Haible  <bruno@clisp.org>
98006         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
98007         check for the declaration of strnlen and a run test that exposes the
98008         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
98009         rpl_strndup.
98011 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98012             Bruno Haible  <bruno@clisp.org>
98014         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
98016 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98018         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
98019         compile test, for Tru64 4.0D.
98021 2006-05-28  Karl Berry  <karl@gnu.org>
98023         * config/srclist.txt (printf-args.c): lose sync.
98025 2006-05-26  Martin Lambers  <marlam@marlam.de>
98027         * lib/getpass.c: Updates the test for the native W32 API, and adds
98028         missing includes, thus fixing compilation warnings.
98030 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
98032         * lib/exclude.c (exclude_fnmatch): New function.
98033         (excluded_file_name): Call exclude_fnmatch.
98034         * lib/exclude.h (excluded_file_name): New prototype
98036 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
98038         * lib/tempname.c (small_open, large_open): New macros.
98039         (__open, __open64) [!_LIBC]: Remove.
98040         (__gen_tempname): Use small_open and large_open instead of __open
98041         and __open64.  This fixes a portability bug on HP-UX 11.11i
98042         reported by Simon Wing-Tang in
98043         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
98045 2006-05-24  Bruno Haible  <bruno@clisp.org>
98047         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
98048         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
98049         Reported by Thorsten Maerz <torte@netztorte.de> via
98050         Aaron Stone <aaron@serendipity.cx>.
98052 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
98054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
98055         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
98056         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
98057         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
98058         not really conditional on the cache.
98059         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
98061 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
98063         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
98064         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
98065         (my_usleep): Don't mishandle maximum value.
98067 2006-05-19  Jim Meyering  <jim@meyering.net>
98069         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
98071 2006-05-17  Bruno Haible  <bruno@clisp.org>
98073         Cygwin portability.
98074         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
98076 2006-05-17  Bruno Haible  <bruno@clisp.org>
98078         * lib/stdint_.h: Fix recognition of Cygwin.
98080 2006-05-15  Bruno Haible  <bruno@clisp.org>
98082         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
98083         on libtool patch by Ralf Wildenhues.
98085 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
98087         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
98088         test for C99 conformance; (bool) 0.5 is an integer constant
98089         expression, but (bool) -0.5 is not.  Problem reported by Fedor
98090         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
98092 2006-05-11  Simon Josefsson  <jas@extundo.com>
98094         * m4/xvasprintf.m4: Fix obvious typo.
98096 2006-05-11  Jim Meyering  <jim@meyering.net>
98098         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
98099         James Lemley.
98101 2006-05-10  Simon Josefsson  <jas@extundo.com>
98103         * lib/md4.c: Typo fix, update copyright years.
98104         (K1, K2): Don't use L because it turn computations into 64-bit on
98105         64-bit platforms.
98107 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
98109         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
98110         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
98111         unwanted sign propagation, e.g., on hosts with 64-bit int.
98112         There still are some problems with reeelly weird theoretical hosts
98113         (e.g., 33-bit int) but it's not worth worrying about now.
98114         * lib/sha1.c (rol): Likewise.
98115         (K1, K2, K3, K4): Remove unnecessary L suffix.
98117 2006-05-10  Bruno Haible  <bruno@clisp.org>
98119         * lib/des.c: Cast to avoid warnings.
98121 2006-05-09  Bruno Haible  <bruno@clisp.org>
98123         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
98124         (Depends-on): Depend also on xsize, stdarg.
98125         (configure.ac): Add gl_XVASPRINTF.
98127 2006-05-09  Bruno Haible  <bruno@clisp.org>
98129         * m4/xvasprintf.m4: New file.
98131 2006-05-09  Bruno Haible  <bruno@clisp.org>
98133         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
98134         (EOVERFLOW): Define fallback value.
98135         (xstrcat): New function.
98136         (xvasprintf): Recognize the special case of a string concatenation.
98138 2006-05-08  Eric Blake  <ebb9@byu.net>
98140         * gnulib-tool (func_version): Base copyright year on CVS date.
98141         (func_emit_copyright_notice): New function.
98142         (func_emit_lib_Makefile_am): Use it.
98143         (func_emit_tests_Makefile_am): Likewise.
98144         (func_import): Likewise.
98146 2006-05-08  Bruno Haible  <bruno@clisp.org>
98148         * modules/stdarg: New file.
98149         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
98151 2006-05-08  Bruno Haible  <bruno@clisp.org>
98153         * m4/stdarg.m4: New file, from GNU gettext.
98155 2006-05-08  Bruno Haible  <bruno@clisp.org>
98157         * config/srclist.txt (build-aux/config.rpath): different from latest
98158         release.
98160 2006-05-08  Bruno Haible  <bruno@clisp.org>
98162         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
98164 2006-05-05  Jim Meyering  <jim@meyering.net>
98166         * m4/warning.m4: New file, derived from bison's file by the same name.
98168 2006-05-03  Bruno Haible  <bruno@clisp.org>
98170         * lib/stdint_.h: Shorter URL.
98171         * lib/inttypes.h: Likewise.
98173 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98175         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
98177 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98179         * lib/verify.h: Document the internals better.  Most of this change
98180         was written by Bruno Haible.
98182 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98184         * doc/verify.texi: New file, partly based on a proposal by
98185         Bruno Haible.
98187 2006-05-02  Bruno Haible  <bruno@clisp.org>
98189         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
98190         test from here...
98191         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
98193 2006-04-29  Bruno Haible  <bruno@clisp.org>
98195         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
98196         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
98198 2006-04-29  Bruno Haible  <bruno@clisp.org>
98200         * gnulib-tool: Make --update option actually work.
98202 2006-04-29  Bruno Haible  <bruno@clisp.org>
98204         * doc/gcd.texi: New file.
98205         * doc/gnulib.texi: Include it.
98207 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
98209         * lib/getdate.y (get_date): When adding relative date, start with the
98210         initial time, not with the result of the first mktime call.
98212 2006-04-25  Bruno Haible  <bruno@clisp.org>
98214         * gnulib-tool (func_import): Output the include directives in three
98215         blocks, sorted separately.
98216         Reported by Ben Pfaff <blp@cs.stanford.edu>.
98218 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
98220         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
98221         to define main with arguments, for C++.  Reported by Eric Blake.
98222         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
98223         Prefer 'int main ()' to 'int main (void)', for C++.
98224         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
98225         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
98226         for 'main', for C99 and C++.
98228 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
98230         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
98231         Don't assume that exit status -1 is valid.
98232         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
98233         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
98234         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
98235         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
98236         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
98237         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
98238         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
98239         functions can be used without declaring them, or that you can
98240         exit with status -1.
98241         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
98243 2006-04-24  Karl Berry  <karl@gnu.org>
98245         * config/srclist.txt (longdouble.m4): sync lost.
98247 2006-04-24  Eric Blake  <ebb9@byu.net>
98249         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
98251 2006-04-24  Bruno Haible  <bruno@clisp.org>
98253         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
98254         poll() implementation in AIX.
98255         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98257 2006-04-24  Bruno Haible  <bruno@clisp.org>
98259         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
98260         assigned exactly once.
98262 2006-04-23  Claudio Fontana  <claudio@gnu.org>
98263             Bruno Haible  <bruno@clisp.org>
98265         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
98266         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
98267         for AM_CPPFLAGS.
98269 2006-04-23  Bruno Haible  <bruno@clisp.org>
98271         * modules/copy-file: Depend on unistd.
98272         * modules/execute: Likewise.
98273         * modules/fatal-signal: Likewise.
98274         * modules/findprog: Likewise.
98275         * modules/mkdtemp : Likewise.
98276         * modules/pipe: Likewise.
98277         * modules/wait-process: Likewise.
98279 2006-04-23  Bruno Haible  <bruno@clisp.org>
98281         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
98282         condition was already detected.
98283         Reported by Ben Pfaff <blp@cs.stanford.edu>.
98285 2006-04-23  Bruno Haible  <bruno@clisp.org>
98287         * lib/copy-file.c: Include <unistd.h> unconditionally.
98288         * lib/execute.c: Likewise.
98289         * lib/fatal-signal.c: Likewise.
98290         * lib/findprog.c: Likewise.
98291         * lib/mkdtemp.c: Likewise.
98292         * lib/pipe.h: Likewise.
98293         * lib/pipe.c: Likewise.
98294         * lib/wait-process.h: Likewise.
98296 2006-04-23  Bruno Haible  <bruno@clisp.org>
98298         * gnulib-tool (func_usage): Fix --import description. Document
98299         --update.
98300         (func_import): Create temporary file in a temporary directory, if
98301         --dry-run is specified. Silence errors from 'grep' when there are no
98302         m4 files in $m4dir.
98303         (func_create_testdir): Silence errors from 'grep' when there are no
98304         m4 files in $m4dir.
98305         Reported by Karl Berry <karl@freefriends.org>.
98307 2006-04-20  Bruno Haible  <bruno@clisp.org>
98309         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
98310         one argument, so that the code will be portable to Autoconf 2.60.
98311         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
98312         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
98313         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
98315 2006-04-19  Derek Price  <derek@ximbiot.com>
98316             Eric Blake  <ebb9@byu.net>
98318         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
98319         rather than "/full/path.h".  Update comment to match.  Shorten &
98320         generalize m4_translit call via AS_TR_CPP.
98322 2006-04-19  Derek Price  <derek@ximbiot.com>
98323             Eric Blake  <ebb9@byu.net>
98325         * lib/inttypes.h: Correct grammar in comment.
98327 2006-04-18  Derek Price  <derek@ximbiot.com>
98328             Paul Eggert  <eggert@cs.ucla.edu>
98330         * modules/inttypes: New file.
98331         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
98333 2006-04-18  Derek Price  <derek@ximbiot.com>
98334             Paul Eggert  <eggert@cs.ucla.edu>
98336         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
98337         New files.
98339 2006-04-18  Derek Price  <derek@ximbiot.com>
98340             Paul Eggert  <eggert@cs.ucla.edu>
98342         * lib/inttypes.h: New file.
98343         * lib/strtoimax.c: Assume <inttypes.h>.
98345 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
98347         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
98348         isn't mounted.  Problem reported by Kir Kolyshkin.
98350 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
98352         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
98353         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
98354         Derek R. Price.
98355         * lib/regex.h (RE_DUP_MAX): Update comment to match current
98356         implementation.
98358 2006-04-12  Eric Blake  <ebb9@byu.net>
98360         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
98361         is now done automatically by the corresponding Autoconf macro.
98363 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
98365         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
98366         time_r.h.
98368 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98370         Merge regex changes from libc, removing some of our
98371         POSIX-conformance changes that were rejected and redoing them in a
98372         less-intrusive way.
98374         * lib/regcomp.c (re_compile_internal, init_dfa):
98375         Length arg is now size_t, not Idx.  All uses changed.
98376         (peek_token): Forward decl now says internal_function.
98377         (__re_error_msgid, __re_error_msgid_idx):
98378         Now static rather than extern with attribute_hidden.
98379         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
98380         For some reason libc prefers K&R style defns for external functions.
98381         (regerror) [!defined _LIBC]: Likewise.
98382         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
98383         (seek_collating_symbol_entry, lookup_collation_sequence_value):
98384         (build_range_exp, build_collating_symbol):
98385         Use K&R-style defn.
98386         (re_compile_fastmap): Use '\0' to memset, not 0.
98387         (utf8_sb_map): Make the calculations more obvious.
98388         (init_dfa, parse_bracket_exp, build_charclass_op):
98389         Call calloc and cast result, as glibc does.
98390         (init_word_char, fetch_token, peek_token, peek_token_bracket):
98391         (build_range_exp, build_collating_symbol):
98392         Now internal functions.
98394         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
98396         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
98397         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
98398         Don't depend on VMS; depend on __VMS instead, for POSIX
98399         namespace cleanness.
98400         (regoff_t): Define to ssize_t, not long int.
98402         Remove the REG_ macros named below.  Instead, make the old names
98403         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
98404         __USE_GNU_REGEX.
98405         (REG_BACKSLASH_ESCAPE_IN_LISTS):
98406         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
98407         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
98408         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
98409         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
98410         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
98411         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
98412         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
98413         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
98414         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
98415         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
98416         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
98417         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
98418         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
98419         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
98420         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
98421         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
98422         (REG_NREGS):
98423         Remove.  All uses replaced by the old RE_* names.
98424         (RE_BACKSLASH_ESCAPE_IN_LISTS):
98425         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
98426         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
98427         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
98428         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
98429         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
98430         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
98431         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
98432         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
98433         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
98434         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
98435         Don't bother having these macros be independent of each others'
98436         values, since they no longer exist in the POSIX name space.
98438         Rename the following member names back to their old names,
98439         unless !__USE_GNU_REGEX.  All uses changed back.
98440         (buffer): Renamed from re_buffer.
98441         (allocated): Renamed from re_allocated.
98442         (used): Renamed from re_used.
98443         (syntax): Renamed from re_syntax.
98444         (fastmap): Renamed from re_fastmap.
98445         (translate): Renamed from re_translate.
98446         (can_be_null): Renamed from re_can_be_null.
98447         (regs_allocated): Renamed from re_regs_allocated.
98448         (fastmap_accurate): Renamed from re_fastmap_accurate.
98449         (no_sub): Renamed from re_no_sub.
98450         (not_bol): Renamed from re_not_bol.
98451         (not_eol): Renamed from re_not_eol.
98452         (newline_anchor): Renamed from re_newline_anchor.
98453         (num_regs): Renamed from rm_num_regs.
98454         (start): Renamed from rm_start.
98455         (end): Renamed from rm_end.
98457         (free_state): Move up a bit.
98459         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
98460         #define to be empty.
98461         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
98462         when that is what is intended.
98463         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
98464         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
98465         (MAX): New macro.
98466         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
98467         All uses changed back to re_malloc, etc.  It's now the caller's
98468         responsibility to check for overflow; all callers changed.
98469         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
98470         (re_x2nrealloc): Remove.
98471         (free_state): Remove decl.
98473         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
98474         (re_set_registers, re_exec):
98475         Use K&R-style defn.
98477         2006-01-31  Roland McGrath  <roland@redhat.com>
98479         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
98480         Reported by Mike Frysinger <vapier@gentoo.org>.
98482         2006-01-15  Andreas Jaeger  <aj@suse.de>
98484         [BZ #1950]
98485         * lib/regex_internal.c (re_string_reconstruct): Adjust for
98486         build_wcs_upper_buffer change.
98487         (build_wcs_upper_buffer): Change return type.
98489         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
98491         * lib/regex_internal.h: Include <stdint.h> if available.
98493         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
98495         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
98497         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
98499         * lib/regcomp.c: Adjust for changed secondary hash function.
98501         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
98503         * lib/regex.h: Pretty printing.
98504         Clean up namespace a bit.
98506         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
98508         * lib/regexec.c (update_cur_sifted_state, check_arrival,
98509         check_arrival_add_next_nodes): Avoid using uninitialized variable.
98511         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98512                     Ulrich Drepper  <drepper@redhat.com>
98514         [BZ #1302]
98515         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
98516         changed.
98517         (bitset_word_t): Renamed from bitset_word.  All uses changed.
98519         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
98521         [BZ #281]
98522         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
98523         * lib/regcomp.c: Remove unnecessary uses of
98524         unsigned RE_TRANSLATE_TYPE.
98525         * lib/regex_internal.h: Likewise.
98526         * lib/regex_internal.c: Likewise.
98527         * lib/regexec.c: Likewise.
98528         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
98530         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
98532         * lib/regexec.c (find_recover_state): Remove unnecessary
98533         initialization.
98534         (transit_state_bkref): Make DFA a const pointer.
98535         (get_subexp): Likewise.
98536         (check_arrival): Likewise.
98537         (update_cur_sifted_state): Likewise.
98538         (re_search_internal): Likewise.
98539         (prune_impossible_nodes): Likewise.
98540         (acquire_init_state_context): Likewise.
98541         (proceed_next_node): Likewise.
98542         (set_regs): Likewise.
98543         (free_fail_stack_return): Likewise.
98544         (check_arrival_expand_ecl): Mark DFA parameter as const.
98545         (check_arrival_expand_ecl_sub): Likewise.
98546         (check_subexp_limits): Likewise.
98547         (sub_epsilon_src_nodes):  Likewise.
98548         (add_epsilon_src_nodes):  Likewise.
98549         (merge_state_array): Likewise.
98550         (update_regs): Likewise.
98551         (build_trtable): Likewise.
98552         (sift_states_backward): Mark MCTX parameter as const.
98553         (build_sifted_states): Likewise.
98554         (update_cur_sifted_state): Likewise.
98555         (sift_states_mkref): Likewise.
98556         (check_arrival_expand_ecl): Mark eclosure as const.
98557         (check_dst_limits_calc_pos_1): Likewise.
98558         * lib/regex_internal.h (re_match_context_t): Make dfa a const
98559         pointer.
98561         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
98563         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
98564         (transit_state_sb): Likewise.
98565         (transit_state_mb): Likewise.
98566         (sift_states_iter_mb): Likewise.
98567         (check_arrival_add_next_nodes): Likewise.
98568         (check_node_accept_bytes): Change first parameter to pointer-to-const.
98569         [_LIBC] (re_search_2_stub): Use mempcpy.
98571         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
98572         mbrtowc for very simple UTF-8 case.
98574         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
98575         a pointer-to-const.
98576         (re_acquire_state_context): Likewise.
98577         * lib/regex_internal.h: Adjust prototypes.
98579         * lib/regex.c: Prevent using C++ compilers.
98581         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
98582         (re_acquire_state_context): Likewise.
98584 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98586         * modules/regex (Depends-on): Add ssize_t.
98588 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98590         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
98591         translation table.
98593 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98595         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
98597 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
98598             Bruno Haible  <bruno@clisp.org>
98600         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
98601         <sys/types.h> and <inttypes.h>.
98603 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98605         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
98606         `__error_t_defined', so argp.h will not typedef the former.
98608 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
98610         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
98611         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
98612         glibc names.  Even if glibc is changed to conform to POSIX, the
98613         traditional names will be available anyway, since regex depends on
98614         the extensions module.  Also, fix a longstanding typo in the
98615         implementation of Spencer ERE test #75 from grep 2.3.  Problems
98616         reported by Emanuele Giaquinta.  Also, change sense of cached
98617         variable, so that the message makes sense.
98619 2006-03-24  Simon Josefsson  <jas@extundo.com>
98621         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
98622         including some doc fixes.
98623         (base64_encode_alloc): Fix +1 bug on allocation failures.
98625 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98627         * lib/base64.c (base64_encode): Do not read past end of array with
98628         unsanitized input on systems with CHAR_BIT > 8.
98630 2006-03-24  Eric Blake  <ebb9@byu.net>
98632         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
98634 2006-03-22  Karl Berry  <karl@gnu.org>
98636         * config/srclist.txt (*setenv.[ch]): get from coreutils.
98637         * config/srclistvars.sh (COREUTILS): new var.
98639 2006-03-17  Jim Meyering  <jim@meyering.net>
98641         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
98642         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
98644 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
98646         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
98647         no longer needs it.  Instead, check that regoff_t is as least
98648         as wide as ptrdiff_t.
98650         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
98651         so that our regex.h stays compatible with the installed regex.
98652         This is helpful for installers who configure --without-included-regex.
98653         Problem reported by Emanuele Giaquinta.
98655 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
98657         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
98658         Typedef to long int, not to off_, as POSIX will likely change
98659         in that direction.
98661 2006-03-15  Eric Blake  <ebb9@byu.net>
98663         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
98665 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
98667         * lib/argp-help.c (validate_uparams): Fix typo
98668         * lib/argp-parse.c (argp_default_options): Consistently begin help
98669         messages with a lowercase letter.
98671 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
98673         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
98674         overrun buffers and shouldn't be used (much as gets shouldn't be
98675         used).
98676         * lib/time_r.c (asctime_r, ctime_r): Likewise.
98678 2006-03-08  Simon Josefsson  <jas@extundo.com>
98680         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
98681         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98683 2006-03-08  Simon Josefsson  <jas@extundo.com>
98685         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
98686         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98688 2006-03-08  Simon Josefsson  <jas@extundo.com>
98690         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
98691         signal that configure disabled the device.
98693 2006-03-08  Simon Josefsson  <jas@extundo.com>
98695         * build-aux/maint.mk: Fix refresh-po, to handle no translated
98696         languages.
98698 2006-03-07  Simon Josefsson  <jas@extundo.com>
98700         * modules/getopt (Depends-on): Add unistd.
98702         * modules/unistd: New file.
98704 2006-03-07  Simon Josefsson  <jas@extundo.com>
98706         * modules/gc-random: New file.
98708 2006-03-07  Simon Josefsson  <jas@extundo.com>
98710         * m4/unistd_h.m4: New file.
98712 2006-03-07  Simon Josefsson  <jas@extundo.com>
98714         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
98715         test to be side-effect free by storing the result in the cache
98716         variable gl_cv_lib_readline, and moving the assignment of
98717         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
98718         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98720 2006-03-07  Simon Josefsson  <jas@extundo.com>
98722         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
98723         error on missing devices (the functions will return an error).
98725         * m4/gc.m4: Move random stuff to gc-random.m4
98727 2006-03-07  Simon Josefsson  <jas@extundo.com>
98729         * lib/unistd_.h: New file.
98731 2006-03-07  Simon Josefsson  <jas@extundo.com>
98733         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
98735 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
98737         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
98738         Problem reported by Juan Manuel Guerrero.
98740 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
98742         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
98743         the unistd module.
98744         * lib/getlogin_r.c: Likewise.
98745         * lib/getlogin_r.h: Likewise.
98746         * lib/glob.c: Likewise.
98747         * lib/pagealign_alloc.c: Likewise.
98748         * lib/unistd_.h: Remove; no longer needed.
98750 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
98752         * MODULES.html.sh (Support for systems lacking POSIX:2001):
98753         Add unistd.
98754         * modules/c-stack (Depends-on): Add unistd.
98755         * modules/getlogin_r: Likewise.
98756         * modules/glob: Likewise.
98757         * modules/pagealign_alloc: Likewise.
98758         * modules/unistd (Files): Remove lib/unistd_.h.
98759         (EXTRA_DIST): Remove.
98760         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
98761         need unistd_.h.
98762         (MOSTLYCLEANFILES): Remove unistd.h-t.
98764 2006-03-03  Simon Josefsson  <jas@extundo.com>
98766         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
98768 2006-03-03  Simon Josefsson  <jas@extundo.com>
98770         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
98771         libidn and bison.
98773 2006-03-03  Simon Josefsson  <jas@extundo.com>
98775         * build-aux/maint.mk: Add indent target.
98777 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
98779         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
98780         our replacement poll.h in any case, to avoid a differing
98781         declaration from a system header.  Seen on AIX.
98783 2006-03-01  Simon Josefsson  <jas@extundo.com>
98785         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
98786         <kasal@ucw.cz>.
98788 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98790         * modules/gettime (Depends-on): Add extensions module.
98791         * modules/nanosleep (Depends-on): Likewise.
98792         * modules/settime (Depends-on): Likewise.
98794 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98796         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
98797         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
98798         pedantically.
98799         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
98800         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
98802         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
98803         not "==".  Reported by Ralf Wildenhues.
98805 2006-03-01  Karl Berry  <karl@gnu.org>
98807         * doc/Copyright/request-*: new files, synced from gnuorg.
98809 2006-03-01  Karl Berry  <karl@gnu.org>
98811         * config/srclist.txt (Copyright/*): new entries.
98813 2006-02-28  Simon Josefsson  <jas@extundo.com>
98815         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
98817 2006-02-27  Simon Josefsson  <jas@extundo.com>
98819         * lib/base64.h: Indent #define's.  From Jim Meyering
98820         <jim@meyering.net>.
98822 2006-02-27  Jim Meyering  <jim@meyering.net>
98824         Revert the change of 2006-02-24, so these files can continue
98825         to be sync'd from gettext.
98826         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
98827         of `config.h'.
98829 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
98831         * modules/intprops: New file.
98832         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
98833         Add intprops.
98834         * modules/getloadavg (Files): Remove lib/intprops.h.
98835         (Depends-on): Add intprops.
98836         * modules/human: Likewise.
98837         * modules/inttostr: Likewise.
98838         * modules/openat: Likewise.
98839         * modules/sig2str: Likewise.
98840         * modules/userspec: Likewise.
98841         * modules/utimecmp: Likewise.
98842         * modules/xnanosleep: Likewise.
98843         * modules/xstrtol: Likewise.
98845 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
98847         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
98848         * modules/lock-tests (TESTS): Use $(EXEEXT).
98849         * modules/tls-tests: Likewise.
98850         * modules/argp-tests: Likewise.
98851         (check_PROGRAMS): New var, replacing...
98852         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
98854 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98856         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
98857         `config.h'.
98859 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
98861         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
98863 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98865         Sync from coreutils.
98866         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
98867         gl_CHDIR_SAFER.
98869 2006-02-22  Jim Meyering  <jim@meyering.net>
98871         Sync from coreutils.
98872         * m4/chdir-safer.m4: New file.
98874 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
98876         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
98877         AT_FDCWD exceeds INT_MAX.
98878         * lib/openat.h (AT_FDCWD): Likewise.
98880 2006-02-17  Eric Blake  <address@hidden>
98882         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
98884 2006-02-16  Simon Josefsson  <jas@extundo.com>
98886         * modules/getaddrinfo (Depends-on): Add sys_socket.
98888 2006-02-15  Simon Josefsson  <jas@extundo.com>
98890         * build-aux/maint.mk: Add dsyntax-check rule.
98892 2006-02-15  Eric Blake  <ebb9@byu.net>
98894         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
98895         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
98896         'present but cannot compile' warnings on cygwin.
98897         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
98898         use ws2tcpip.h if sys/socket.h works.
98899         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
98900         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
98902 2006-02-14  Simon Josefsson  <jas@extundo.com>
98904         * modules/maintainer-makefile (Files): Rename.
98906         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
98907         and (the local) Makefile.cfg to maint-cfg.mk.
98909         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
98910         to the latter.
98912         * modules/maintainer-makefile: New module.
98914         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
98915         severaly stripped to make it possible to build it up from scratch
98916         with reliable tests.
98918         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
98919         fixes to permit overriding the default actions when configure and
98920         makefile are not available.
98922 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
98924         Sync from coreutils.
98925         * modules/lstat (Depends-on): Don't depend on xalloc.
98926         (License): Change from GPL to LGPL, since this is now simply a
98927         replacement for a libc function.
98929 2006-02-14  Jim Meyering  <jim@meyering.net>
98931         Sync from coreutils.
98933         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
98934         failure on deficient systems, and simplify gnulib lgpl dependencies.
98935         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
98936         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
98938         * lib/xalloc-die.c: Remove unused definition of N_.
98940 2006-02-14  Jim Meyering  <jim@meyering.net>
98942         Sync from coreutils.
98943         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
98944         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
98945         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
98946         double-quote uses of that variable, to accommodate the rare case in
98947         which getmntent is available in none of the libraries checked.  This
98948         happens at least on FreeBSD 5.0.
98950 2006-02-13  Simon Josefsson  <jas@extundo.com>
98952         * gnulib-tool (Usage): Fix --import, from
98953         karl@freefriends.org (Karl Berry).
98955 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
98957         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
98959 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
98961         * lib/argp-namefrob.h: Restore changes accidentally lost during the
98962         "autoupdate" on 2005-12-12.
98964 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
98966         * modules/closeout (Depends-on): Remove atexit.
98968 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
98970         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
98971         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
98973 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
98975         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
98976         __EXTENSIONS__ if this causes compilation to fail.  Problem
98977         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
98978         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
98980 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
98982         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
98983         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
98984         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
98985         All uses changed.
98987 2006-01-26  Simon Josefsson  <jas@extundo.com>
98989         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
98990         prototype is visible on mingw32.
98992         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
98993         for mingw32.
98995         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
98996         mingw32).
98998 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
99000         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
99001         attempt to open for write; this always fails, at least on POSIX
99002         hosts.  This reinstates the 2006-01-09 change, which was
99003         inadvertently removed.
99005 2006-01-26  Bruno Haible  <bruno@clisp.org>
99007         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
99008         Reported by Paul Eggert.
99010 2006-01-26  Bruno Haible  <bruno@clisp.org>
99011             Paul Eggert  <eggert@cs.ucla.edu>
99013         * lib/stdbool_.h (_Bool)
99014         [(! (defined __cplusplus || defined __BEOS__)
99015           && !defined __GNUC__
99016           && !(defined __HP_cc || defined __xlc__
99017                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
99018                || defined __sgi))]:
99019         #define to signed char in these cases too; this simplifies
99020         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
99021         etc., separately) and makes it more conservative.
99023 2006-01-25  Simon Josefsson  <jas@extundo.com>
99025         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
99026         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
99027         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
99029 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
99031         * lib/argp-namefrob.h: Bugfix. Remove stray #
99033 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
99035         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
99036         so that we test the test.
99037         Check for yet another HP-UX cc bug involving *bool |= bool.
99039 2006-01-25  Karl Berry  <karl@gnu.org>
99041         * config/srclist.txt (vasnprintf.c): sync lost.
99043 2006-01-25  Jim Meyering  <jim@meyering.net>
99045         Sync from the stable (b5) branch of coreutils:
99047         * lib/fts.c (fts_children): Don't let close() clobber errno from
99048         failed fchdir().
99050         * lib/fts.c (fts_stat): When following a symlink-to-directory,
99051         don't necessarily interpret stat-fails+lstat-succeeds as indicating
99052         a dangling symlink.  That can also happen at least for ELOOP.
99053         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
99054         FYI, this bug predates the inclusion of fts.c in coreutils.
99056         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
99057         in their own block, so pre-c99 compilers don't object.
99059         Avoid the double-free (first in fts_read, second in fts_close) that
99060         would occur when an `active' directory is made inaccessible (e.g.,
99061         via chmod a-x) during a traversal.
99062         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
99063         before returning.  Reproduce this failure by
99064         mkdir -p a/b; cd a; chmod a-x . b
99065         Reported by Stavros Passas.
99067 2006-01-25  Jim Meyering  <jim@meyering.net>
99069         * lib/fileblocks.c: Remove more useless parentheses.
99070         * lib/readutmp.h: Likewise.
99072 2006-01-25  Bruno Haible  <bruno@clisp.org>
99074         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
99075         warnings.
99076         Reported by Paul Eggert.
99078 2006-01-25  Bruno Haible  <bruno@clisp.org>
99080         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
99081         rid of a trap command. For Solaris sh.
99082         Reported by Mark D. Baushke <mdb@gnu.org>.
99084 2006-01-24  Simon Josefsson  <jas@extundo.com>
99086         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
99087         Bruno.
99089 2006-01-24  Karl Berry  <karl@gnu.org>
99091         * config/srclist.txt (argp-namefrob.h): sync lost.
99093 2006-01-24  Jim Meyering  <jim@meyering.net>
99095         * modules/openat (Files): Add lib/intprops.h.
99096         From Mark D. Baushke.
99098 2006-01-24  Jim Meyering  <jim@meyering.net>
99100         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
99101         Reported by Mark D. Baushke.
99103 2006-01-24  Jim Meyering  <jim@meyering.net>
99105         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
99107 2006-01-24  Bruno Haible  <bruno@clisp.org>
99109         * modules/strnlen (Maintainer): Change from glibc to all.
99111 2006-01-24  Bruno Haible  <bruno@clisp.org>
99113         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
99114         Patch by Paul Eggert.
99116 2006-01-24  Bruno Haible  <bruno@clisp.org>
99118         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
99119         already has it.
99120         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
99121         2005-11-26.
99123         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
99124         'signed char' to avoid problems with the built-in _Bool type.
99125         Reported by Paul Eggert on 2005-11-26.
99127 2006-01-24  Bruno Haible  <bruno@clisp.org>
99129         * gnulib-tool (func_import): Avoid constructing complicated sed
99130         expressions inside backquote.
99131         Report and solution by Mark D. Baushke <mdb@gnu.org>.
99133 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
99135         These changes imported from libc.
99136         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
99137         test and two separate function calls.
99138         * lib/strndup.c (__strndup): Add libc_hidden_def.
99140 2006-01-23  Simon Josefsson  <jas@extundo.com>
99142         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
99143         Remove the test_*_SOURCES variable: automake infers it by default.
99144         * modules/tls-tests: Likewise.
99146 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99148         Work around porting bugs reported by Dieter in
99149         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
99150         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
99151         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
99152         Include "getopt.h" first, to check interface.
99153         (getenv): Declare only if defined HAVE_DECL_GETENV &&
99154         !HAVE_DECL_GETENV.
99155         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
99156         (__strndup): Revert to K&R-style function dfns, the glibc style.
99157         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
99158         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
99159         Include strnlen.h first, to get prototype properly.
99160         (strnlen): Renamed from __strnlen.
99161         Remove weak alias.
99163 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99165         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
99167 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99169         * config/srclist.txt: Adjust to reflect glibc reorganization.
99170         This affects only comments.
99172 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99174          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
99175          Reported by Bruce Korb <bkorb@gnu.org>.
99177 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
99179         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
99180         to pacify gcc -Wswitch-default.
99182 2006-01-22  Bruno Haible  <bruno@clisp.org>
99184         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
99185         temporary buffer for sprintf, take into account the precision also
99186         for 'd', 'i', 'u', 'o', 'x', 'X'.
99188 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
99190         * modules/argp-tests: New module
99191         * tests/test-argp.c: New file
99192         * tests/test-argp-2.sh: New file
99194 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
99196         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
99197         (__argp_base_name): Removed
99198         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
99199         typo.
99200         (__argp_base_name): Provide macro definition or extern declaration
99201         depending on the configuration
99203 2006-01-20  Simon Josefsson  <jas@extundo.com>
99205         * modules/inet_ntop (Depends-on): Depend on sys_socket.
99207 2006-01-20  Simon Josefsson  <jas@extundo.com>
99209         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
99211 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
99213         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
99214         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
99215         Suggested by Bruno Haible.
99217 2006-01-20  Karl Berry  <karl@gnu.org>
99219         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
99220         until changes propagate, I guess.
99222 2006-01-19  Simon Josefsson  <jas@extundo.com>
99224         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
99226 2006-01-19  Simon Josefsson  <jas@extundo.com>
99228         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
99230 2006-01-19  Simon Josefsson  <jas@extundo.com>
99232         * gnulib-tool: Set check_PROGRAMS.
99234         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
99235         modules/des-tests, modules/gc-arcfour-tests,
99236         modules/gc-arctwo-tests, modules/gc-des-tests,
99237         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
99238         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
99239         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
99240         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
99241         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
99242         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
99243         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
99244         test_*_SOURCES.
99246 2006-01-18  Simon Josefsson  <jas@extundo.com>
99248         * modules/socklen (Depends-on): Depend on sys_socket.
99250 2006-01-18  Simon Josefsson  <jas@extundo.com>
99252         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
99253         modules/des-tests, modules/gc-arcfour-tests,
99254         modules/gc-arctwo-tests, modules/gc-des-tests,
99255         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
99256         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
99257         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
99258         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
99259         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
99260         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
99261         $(EXEEXT) to automake TESTS variable, for mingw32.
99263 2006-01-17  Simon Josefsson  <jas@extundo.com>
99265         * modules/socklen (Include): Need sys/socket.h.
99267 2006-01-17  Bruno Haible  <bruno@clisp.org>
99269         * modules/ssize_t (Include): Add <sys/types.h>.
99271 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
99273         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
99274         it's not portable and it doesn't work with cross-compiles.
99275         Problem reported by Bruno Haible.  Fix missing-$ typo in
99276         'test "gl_cv_ignore_unused_libraries" ...' that prevented
99277         -zignore from being used with Sun's C compiler.
99279 2006-01-12  Simon Josefsson  <jas@extundo.com>
99281         * lib/base64.c: Fix warning, reported by Bruno Haible
99282         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
99284 2006-01-12  Bruno Haible  <bruno@clisp.org>
99286         * modules/ldd: New file.
99287         * build-aux/ldd.sh.in: New file.
99288         * MODULES.html.sh (Support for building libraries and executables): Add
99289         ldd.
99291 2006-01-12  Bruno Haible  <bruno@clisp.org>
99293         * m4/ldd.m4: New file.
99295 2006-01-12  Bruno Haible  <bruno@clisp.org>
99297         * gnulib-tool (func_import, func_create_testdir): Don't go into an
99298         endless loop while replacing $auxdir with build-aux.
99300 2006-01-11  Simon Josefsson  <jas@extundo.com>
99302         * lib/stdint_.h (SIZE_MAX): Add missing (.
99304 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
99306         Sync from coreutils.
99307         * lib/md5.c: Fix commentary typos.
99308         (alignof, UNALIGNED_P): No need for a GCC-specific version.
99309         * lib/md5.h (__attribute__): Remove; unused.
99310         * lib/sha1.c: Fix commentary to match md5 better.
99311         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
99312         so that we don't need to worry about alignment.  All uses changed.
99313         This merges the 2005-10-28 md5 change into sha1.
99315 2006-01-11  Jim Meyering  <jim@meyering.net>
99317         Sync from coreutils.
99318         * lib/md5.c (OP): Fix spacing.
99320 2006-01-11  Bruno Haible  <bruno@clisp.org>
99322         Ensure automatic ordering between gl_LOCK and gl_ARGP.
99323         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
99324         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
99326 2006-01-11  Bruno Haible  <bruno@clisp.org>
99328         Ensure automatic ordering between gl_LOCK and gl_ARGP.
99329         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
99330         the "early" section as well.
99332 2006-01-11  Bruno Haible  <bruno@clisp.org>
99334         Avoid "ar: no archive members specified" error on MacOS X.
99335         * gnulib-tool (func_modules_add_dummy): New function.
99336         (func_import, func_create_testdir): Invoke it.
99338 2006-01-11  Bruno Haible  <bruno@clisp.org>
99340         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
99341         with $auxdir in AC_CONFIG_FILES statements.
99343 2006-01-11  Bruno Haible  <bruno@clisp.org>
99345         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99346         Initialize also noinst_HEADERS to empty.
99348 2006-01-11  Bruno Haible  <bruno@clisp.org>
99350         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
99351         variables.
99352         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
99353         autoreconf.
99355 2006-01-11  Bruno Haible  <bruno@clisp.org>
99357         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
99358         overridable by the user.
99359         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99361 2006-01-10  Simon Josefsson  <jas@extundo.com>
99363         * modules/sys_socket: New file.
99365 2006-01-10  Simon Josefsson  <jas@extundo.com>
99367         * m4/sys_socket_h.m4: New file.
99369 2006-01-10  Simon Josefsson  <jas@extundo.com>
99371         * lib/socket_.h: New file.
99373 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99375         * modules/readutmp (Maintainer): Add myself.
99377 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99379         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
99380         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
99381         People who are still concerned with buggy memcmp implementations
99382         can invoke gl_FUNC_MEMCMP themselves.
99384 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99386         * lib/regex_internal.h (BITSET_WORD_BITS):
99387         Work around a bug in 64-bit PGC (before version 6.1-2), where the
99388         preprocessor mishandles large unsigned values as if they were signed.
99389         Problem reported by Claudio Fontana in
99390         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
99392 2006-01-10  Jim Meyering  <jim@meyering.net>
99394         Avoid the double-free (first in fts_read, second in fts_close) that
99395         would occur when an `active' directory is made inaccessible (e.g.,
99396         via chmod a-x) during a traversal.
99397         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
99398         before returning.  Reproduce this failure by
99399         mkdir -p a/b; cd a; chmod a-x . b
99400         Reported by Stavros Passas.
99402         Sync from coreutils.
99403         * lib/sha1.c: Tweak grammar in a comment.
99405 2006-01-10  Jim Meyering  <jim@meyering.net>
99407         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
99408         Patch by Joerg Sonnenberger.
99410 2006-01-10  Bruno Haible  <bruno@clisp.org>
99412         * modules/readutmp: Depend on module free.
99413         * modules/strtok_r: Depend on module restrict.
99415 2006-01-10  Bruno Haible  <bruno@clisp.org>
99417         * modules/gettext (configure.ac): Add an invocation of
99418         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
99420 2006-01-10  Bruno Haible  <bruno@clisp.org>
99422         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
99423         Reported by Werner Lemberg <wl@gnu.org>.
99425 2006-01-10  Bruno Haible  <bruno@clisp.org>
99427         * lib/localcharset.c: Update from GNU gettext.
99429 2006-01-10  Bruno Haible  <bruno@clisp.org>
99431         * lib/argp.h (__const): Remove macro. Use const instead.
99432         * lib/argp-fmtstream.h (__const): Likewise.
99433         * lib/glob_.h (__const): Remove macro.
99434         * lib/glob-libc.h: Use const instead of __const.
99436 2006-01-10  Bruno Haible  <bruno@clisp.org>
99438         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
99439         variable.
99440         Needed to avoid an automake error regarding the 'gettext' module.
99442 2006-01-09  Simon Josefsson  <jas@extundo.com>
99444         * modules/inet_ntop (Depends-on): Add restrict.
99446 2006-01-09  Simon Josefsson  <jas@extundo.com>
99448         * modules/gc-rijndael-tests (License): Put under LGPL.
99450         * modules/gc-des-tests (License): Likewise.
99452         * modules/gc-arcfour-tests (License): Likewise.
99454         * modules/gc-arctwo-tests (License): Likewise.
99456         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
99458         * modules/gc-hmac-sha1-tests (Files): Likewise.
99460         * modules/gc-hmac-md5-tests (License): Likewise.
99462         * modules/gc-sha1-tests (License): Likewise.
99464         * modules/gc-md5-tests (License): Likewise.
99466         * modules/gc-md4-tests (License): Likewise.
99468         * modules/gc-md2-tests (License): Likewise.
99470         * modules/gc-tests (License): Likewise.
99472         * modules/des-tests (License): Likewise.
99474         * modules/md4-tests (License): Likewise.
99476         * modules/md2-tests (License): Likewise.
99478 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99480         Sync from coreutils:
99482         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
99483         * modules/lib-ignore: New file.
99484         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
99485         chdir-safer.m4, lchmod.m4.
99486         * modules/openat: Add mkdirat.c, openat-priv.h.
99488 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99490         Sync from coreutils.
99491         * m4/lib-ignore.m4: New file.
99492         * m4/lchmod.m4: New file.
99494 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99496         Sync from coreutils.
99497         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
99498         for write access: POSIX says that must fail.
99499         * lib/fts.c (diropen): Likewise.
99500         * lib/save-cwd.c (save_cwd): Likewise.
99501         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
99502         well, for minor improvements on hosts that lack O_DIRECTORY.
99503         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
99504         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
99505         Fall back on chown if open failed with EACCES.
99507         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
99508         Report an error at compile-time if only a 1-second nominal clock
99509         resolution is found.
99511         * lib/lchmod.h: New file.
99512         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
99513         (make_dir_parents): Use lchown rather than chown, and
99514         lchmod rather than chmod.
99516         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
99517         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
99518         "proc" reported by n0dalus.
99520         * lib/mountlist.c: Include <limits.h>.
99521         (dev_from_mount_options)
99522         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
99523         New function.  It no longer assumes "dev=" has the System V meaning
99524         on Linux (since it doesn't).  It also parses "dev=" more carefully.
99525         (read_file_system_list)
99526         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
99527         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
99528         dev= in that case.
99530         * lib/posixtm.h (PDS_PRE_2000): New macro.
99531         * lib/posixtm.c (year): Arg is now syntax_bits rather than
99532         allow_century.  All usages changed.  Reject dates outside the range
99533         1969-1999 if PDS_PRE_2000 is used.
99535 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99537         Sync from coreutils.
99538         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
99539         (Time of day items): Mention the possibility of leap seconds.
99540         Problem reported by Dr. David Alan Gilbert.
99542 2006-01-09  Jim Meyering  <jim@meyering.net>
99544         Sync from coreutils.
99546         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
99548         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
99550         * lib/modechange.c (mode_compile): Reject an invalid mode string
99551         that starts with an octal digit.  From Andreas Gruenbacher.
99553         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
99554         and dup to open_safer and dup_safer, respectively.
99555         (openat_permissive): Fix typo in comment.
99557         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
99558         "gettext.h"; either no longer needed or are guaranteed by openat.h.
99559         (_): Remove; no longer needed.
99560         (openat): Renamed from rpl_openat; no need for rpl_openat
99561         since openat.h renames openat for us.
99562         Replace most of the body with a call to openat_permissive,
99563         to avoid duplicate code.
99564         Port to (probably hypothetical) environments were mode_t is
99565         wider than int.
99566         (openat_permissive): Require mode arg, so that we can check
99567         types better.  Put it just after flags.  Change cwd failure
99568         indicator from pointer-to-bool to pointer-to-errno-value.
99569         All callers changed.
99570         Invoke openat_save_fail and/or openat_restore_fail if
99571         cwd_errno is null, so that openat can call us.
99572         (openat_permissive, fdopendir, fstatat, unlinkat):
99573         Simplify errno handling to avoid some duplicate code,
99574         as it's OK to set errno on success.
99575         * lib/openat.h: Revamp code so that function macros depend on
99576         __OPENAT_PREFIX only, not also on AT_FDCWD.
99577         (openat_ro): Remove.  Caller changed to use openat_permissive.
99578         (openat_permissive): Now a macro, if not a function.
99579         (openat_restore_fail, openat_save_fail): Now always functions,
99580         since mkdirat needs them even if __OPENAT_PREFIX is defined.
99582         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
99583         and openat.c.
99584         * lib/mkdirat.c: Include openat-priv.h.
99585         Remove definitions of macros defined therein.
99586         * lib/openat.c: Likewise.
99588         * lib/mkdirat.c (mkdirat): New file and function.
99589         * lib/openat.h (mkdirat): Declare.
99591         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
99593         * lib/openat.h (openat_permissive): Declare.
99594         (openat_ro): Define.
99596         * lib/openat.c (EXPECTED_ERRNO): New macro.
99597         (openat_permissive): New function -- used in remove.c rewrite.
99598         (all functions): Set errno just before returning, only if there
99599         was an actual failure.
99600         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
99602         Emulate openat-family functions using Linux's procfs, if possible.
99603         Idea and some code based on Ulrich Drepper's glibc changes.
99605         * lib/openat.c: (BUILD_PROC_NAME): New macro.
99606         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
99607         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
99608         before falling back on save_cwd and restore_cwd.
99609         (fdopendir, fstatat, unlinkat): Likewise.
99611         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
99612         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
99614         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
99615         as second argument to va_arg.  Otherwise, some versions of gcc
99616         warn that `if this code is reached, the program will abort'.
99618 2006-01-09  Jim Meyering  <jim@meyering.net>
99620         Sync from coreutils.
99621         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
99622         Require openat-priv.h.
99624 2006-01-09  Bruno Haible  <bruno@clisp.org>
99626         * modules/strnlen (Include): Use strnlen.h.
99628 2006-01-09  Bruno Haible  <bruno@clisp.org>
99630         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
99632 2006-01-09  Bruno Haible  <bruno@clisp.org>
99634         * lib/sysexit_.h (EX_OK): New macro.
99635         Suggested by Martin Lambers <marlam@marlam.de>.
99637 2006-01-09  Bruno Haible  <bruno@clisp.org>
99639         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
99640         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
99642 2006-01-09  Bruno Haible  <bruno@clisp.org>
99644         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
99645         numbers.
99647 2006-01-09  Bruno Haible  <bruno@clisp.org>
99649         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
99650         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
99651         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
99652         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
99654 2006-01-09  Bruno Haible  <bruno@clisp.org>
99656         * build-aux/javacomp.sh.in: New file, moved from lib/.
99657         * modules/javacomp-script (Files): Update.
99658         (configure.ac): Add AC_CONFIG_FILES invocation.
99659         (EXTRA_DIST): Remove variable.
99661         * build-aux/javaexec.sh.in: New file, moved from lib/.
99662         * modules/javaexec (Files): Update.
99663         (configure.ac): Add AC_CONFIG_FILES invocation.
99664         (EXTRA_DIST): Remove javaexec.sh.in.
99666         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
99667         * modules/csharpcomp-script (Files): Update.
99668         (configure.ac): Add AC_CONFIG_FILES invocation.
99669         (EXTRA_DIST): Remove variable.
99671         * build-aux/csharpexec.sh.in: New file, moved from lib/.
99672         * modules/csharpexec (Files): Update.
99673         (configure.ac): Add AC_CONFIG_FILES invocation.
99674         (EXTRA_DIST): Remove csharpexec.sh.in.
99676 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
99678         Sync from coreutils.
99680         Add POSIX ACL support
99681         * lib/acl.h (copy_acl, set_acl): Add declarations.
99682         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
99683         systems other than Linux.
99684         (chmod_or_fchmod): New function: use fchmod when possible,
99685         and chmod otherwise.
99686         (file_has_acl): Add a POSIX ACL implementation, with a
99687         Linux-specific subcase.
99688         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
99689         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
99690         acls are unsupported.
99691         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
99692         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
99693         are unsupported.
99695 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
99697         Sync from coreutils.
99698         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
99700 2006-01-07  Bruno Haible  <bruno@clisp.org>
99702         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
99703         gl_EARLY.
99705 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
99707         * lib/strftime.c (tzname): Don't declare if it is already #defined.
99708         Problem reported for Mingw by Mark Junker.
99710 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
99712         * README: Gnulib normally doesn't generate a tarball.
99714 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
99716         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
99717         long int, not int, for nanosecond counts, so that people who are
99718         used to POSIX struct timespec won't be surprised.  Reported by Jim
99719         Meyering.
99721 2005-12-28  Bruno Haible  <bruno@clisp.org>
99723         * build-aux/config.rpath: Update from GNU gettext.
99725 2005-12-16  Jim Meyering  <jim@meyering.net>
99727         * modules/fprintftime: New module.
99728         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
99730 2005-12-16  Jim Meyering  <jim@meyering.net>
99732         * m4/fprintftime.m4: New file.
99734 2005-12-16  Jim Meyering  <jim@meyering.net>
99736         * lib/fprintftime.c, lib/fprintftime.h: New files.
99738 2005-12-15  Simon Josefsson  <jas@extundo.com>
99740         * modules/socklen (configure.ac): Fix M4 macro name, to align with
99741         new m4/socklen.m4.
99743 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
99745         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
99746         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
99748 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
99750         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
99751         * lib/argp-help.c (fill_in_uparams): Check if the constructed
99752         struct uparams is valid. Fall back to the default values if it is
99753         not.
99755 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99757         * modules/argp (Files): Add argp-pin.c
99758         (Depends-on): dirname
99759         (lib_SOURCES): Add argp-pin.c
99761 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99763         * m4/argp.m4:  Check if program_invocation_name and
99764         program_invocation_short_name are declared and define appropriate
99765         macros if they are not.
99767 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99769         * lib/argp-help.c (__argp_base_name): New function
99770         (__argp_short_program_name): Rewrite using __argp_base_name
99771         * lib/argp-namefrob.h: Define program_invocation_name and
99772         program_invocation_short_name if requested
99773         (__argp_base_name): Add prototype
99774         * lib/argp-parse.c (argp_def): Use gettext wrappers
99775         (argp_default_parser): Use __argp_base_name
99776         * lib/argp-pin.c: New file. Defines program_invocation_name and
99777         program_invocation_short_name on systems that lack them.
99779 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
99781         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
99782         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
99783         porting problem reported by Georg Schwarz in
99784         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
99786 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
99788         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
99789         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
99790         porting problem reported by Georg Schwarz in
99791         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
99793 2005-12-05  Bruno Haible  <bruno@clisp.org>
99795         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
99796         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
99797         Reported by Mark Junker <mjscod@gmx.de>.
99799 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
99801         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
99802         Use implementation from Albert Chin, with some
99803         comments/corrections by Stepan Kasal and myself.
99805 2005-12-02  Bruno Haible  <bruno@clisp.org>
99807         * gnulib-tool (func_import): Accept GPLed build tool modules when
99808         --lgpl is given.
99809         * modules/csharpcomp-script: New file.
99810         * modules/csharpcomp: Depend on it.
99811         * modules/javacomp-script: New file.
99812         * modules/javacomp: Depend on it.
99813         Suggested by Simon Josefsson.
99815 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
99817         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
99818         statement, to work around an HP-UX 10.20 compiler bug reported by
99819         Peter O'Gorman.
99821 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
99823         * modules/savedir (Depends-on): Add openat.
99825 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
99827         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
99828         (uintmax_t) [defined uintmax_t]: Do not declare.
99829         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
99830         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
99831         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
99832         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
99833         sake of portability to weird hosts that C allows (though we don't
99834         know of any practical examples).
99836         * lib/savedir.h (fdsavedir): New decl.
99837         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
99838         contains most of the former guts of savedir.
99839         (savedir): Use savedirstream.
99840         Include "openat.h".
99842 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
99844         * modules/obstack (Files): Add m4/ulonglong.m4.
99845         Problem reported by Davide Angelocola.
99847 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
99849         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
99850         coreutils no longer futzes with rounding modes.
99852 2005-11-14  Jim Meyering  <jim@meyering.net>
99854         * lib/mkstemp-safer.c: Include <config.h>, required for possible
99855         replacement of mkstemp.
99857 2005-11-10  Simon Josefsson  <jas@extundo.com>
99859         * lib/readline.c: Remove EOL.
99861 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99863         * modules/gethrxtime (Depends-on): Add gettime.
99865 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99867         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
99868         or gettimeofday; no longer needed.
99870 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99872         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
99873         time business.
99874         (gethrxtime) [! (HAVE_NANOUPTIME
99875         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
99876         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
99877         our own approximation.
99879 2005-11-08  Eric Blake  <ebb9@byu.net>
99881         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
99883 2005-11-08  Eric Blake  <ebb9@byu.net>
99885         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
99887 2005-11-04  Bruno Haible  <bruno@clisp.org>
99889         * gnulib-tool: Implement --update mode.
99891 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
99893         Fix porting problem reported by Theodoros V. Kalamatianos.
99894         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
99895         Don't assume that futimes failing means we must fail.
99897 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
99899         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
99900         variables to suggest the intended function of the PATH_MAX check.
99902 2005-10-30  Kean Johnston  <jkj@sco.com>
99904         Trivial changes to support SCO systems.
99905         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
99906         as PATH_MAX.
99907         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
99908         where __ptr is null when no I/O is pending.
99910 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
99912         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
99913         leave errno alone.  Problem reported by Dmitry V. Levin.
99915 2005-10-28  Simon Josefsson  <jas@extundo.com>
99917         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
99918         Test more.
99920         * tests/test-gc-md2.c, tests/test-md2.c: New files.
99922         * modules/md2, modules/md2-tests: New files.
99924 2005-10-28  Simon Josefsson  <jas@extundo.com>
99926         * m4/inet_ntop.m4: More tests.
99928         * m4/gc-md2.m4, md2.m4: New file.
99930 2005-10-28  Simon Josefsson  <jas@extundo.com>
99932         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
99933         "restrict" keywords, as per POSIX.  Protect the function
99934         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
99935         Don't use K&R prototypes.  Check the sprintf return values.
99936         Re-define EAFNOSUPPORT if not present.  Indent.
99938         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
99939         suggested by Bruno Haible <bruno@clisp.org>.
99941         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
99943         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
99945         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
99946         libgcrypt).
99948         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
99950         * lib/md2.h, lib/md2.c: New files.
99952 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
99954         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
99955         errno alone.  Problem reported by Frederic Jolliton.
99957 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
99959         * modules/verify (License): Change from GPL to LGPL.  This is a
99960         tiny module and there are apparently near-equivalents that are
99961         under the BSD license.
99963 2005-10-24  Simon Josefsson  <jas@extundo.com>
99965         * modules/sha1: Relicense to LGPL.
99967 2005-10-24  Simon Josefsson  <jas@extundo.com>
99969         * lib/md4.h: Shrink buffer size, now that we changed the type.
99971 2005-10-23  Simon Josefsson  <jas@extundo.com>
99973         * gnulib-tool (func_import): Fix --tests-base.
99975 2005-10-22  Simon Josefsson  <jas@extundo.com>
99977         * modules/arcfour (Depends-on): Need stdint.
99979 2005-10-22  Simon Josefsson  <jas@extundo.com>
99981         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
99982         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
99984 2005-10-22  Simon Josefsson  <jas@extundo.com>
99986         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
99987         suggested by Bruno Haible <bruno@clisp.org>.
99989 2005-10-22  Simon Josefsson  <jas@extundo.com>
99991         * lib/crc.h: Include stddef.h, for size_t.
99993 2005-10-22  Simon Josefsson  <jas@extundo.com>
99995         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
99996         arcfour_context struct (simplify test vector testing in GNU
99997         Shishi).
99999 2005-10-21  Simon Josefsson  <jas@extundo.com>
100001         * modules/des, modules/des-tests: New files.
100003         * modules/gc-des, modules/gc-des-tests: New files.
100005         * tests/test-des.c, tests/test-gc-des.c: New file.
100007 2005-10-21  Simon Josefsson  <jas@extundo.com>
100009         * modules/arctwo, modules/arctwo-tests: New files.
100011         * tests/test-arctwo.c: New file.
100013         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
100015         * tests/test-gc-arctwo.c: New file.
100017 2005-10-21  Simon Josefsson  <jas@extundo.com>
100019         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
100020         Bruno Haible <bruno@clisp.org>.
100022         * m4/gc-des.m4: New file.
100024 2005-10-21  Simon Josefsson  <jas@extundo.com>
100026         * m4/arctwo.m4: New file.
100028         * m4/gc-arctwo.m4: New file.
100030 2005-10-21  Simon Josefsson  <jas@extundo.com>
100032         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
100033         block.
100035 2005-10-21  Simon Josefsson  <jas@extundo.com>
100037         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
100038         <bruno@clisp.org>.
100040         * lib/hmac-sha1.c (hmac_sha1): Likewise.
100042         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
100043         Bruno Haible <bruno@clisp.org>.
100045         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
100046         <bruno@clisp.org>.
100048 2005-10-21  Simon Josefsson  <jas@extundo.com>
100050         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
100052 2005-10-21  Simon Josefsson  <jas@extundo.com>
100054         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
100056 2005-10-21  Simon Josefsson  <jas@extundo.com>
100058         * lib/des.h, lib/des.c: New files.
100060         * lib/gc-gnulib.c: Support DES.c
100062 2005-10-21  Simon Josefsson  <jas@extundo.com>
100064         * lib/arctwo.h, lib/arctwo.c: New files.
100066         * lib/gc-gnulib.c: Support ARCTWO.
100068 2005-10-21  Simon Josefsson  <jas@extundo.com>
100070         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
100071         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100073 2005-10-21  Simon Josefsson  <jas@extundo.com>
100075         * gnulib-tool (func_import, func_create_testdir): Define automake
100076         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
100077         Makefile.am snippet),
100078         suggested by Bruno Haible <bruno@clisp.org>.
100080         * modules/gc (Makefile.am): Use it.
100082 2005-10-21  Bruno Haible  <bruno@clisp.org>
100084         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
100085         patch.
100087 2005-10-19  Simon Josefsson  <jas@extundo.com>
100089         * tests/test-gc-rijndael.c: New file.
100091         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
100093 2005-10-19  Simon Josefsson  <jas@extundo.com>
100095         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
100096         interface too.
100098 2005-10-19  Simon Josefsson  <jas@extundo.com>
100100         * tests/test-gc-arcfour.c: New file.
100102         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
100104 2005-10-19  Simon Josefsson  <jas@extundo.com>
100106         * modules/gc-md4, modules/gc-md4-tests: New file.
100108         * tests/test-gc-md4.c: New file.
100110 2005-10-19  Simon Josefsson  <jas@extundo.com>
100112         * m4/gc-md4.m4: New file.
100114 2005-10-19  Simon Josefsson  <jas@extundo.com>
100116         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
100117         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
100118         <kasal@ucw.cz>.
100120 2005-10-19  Simon Josefsson  <jas@extundo.com>
100122         * m4/gc-arcfour.m4: New file.
100124         * m4/gc-rijndael.m4: New file.
100126 2005-10-19  Simon Josefsson  <jas@extundo.com>
100128         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
100130 2005-10-19  Simon Josefsson  <jas@extundo.com>
100132         * lib/gc-gnulib.c: Support ARCFOUR.
100134 2005-10-19  Simon Josefsson  <jas@extundo.com>
100136         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
100137         support.
100139         * lib/gc.h: Add ECB enum type.
100141         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
100143 2005-10-18  Simon Josefsson  <jas@extundo.com>
100145         * tests/test-md5.c: New file.
100147         * modules/md5-tests: New file.
100149 2005-10-18  Simon Josefsson  <jas@extundo.com>
100151         * tests/test-md4.c: New file.
100153         * modules/md4, modules/md4-tests: New files.
100155 2005-10-18  Simon Josefsson  <jas@extundo.com>
100157         * m4/md4.m4: New file.
100159 2005-10-18  Simon Josefsson  <jas@extundo.com>
100161         * lib/md4.h, lib/md4.c: New files, based on md5.?.
100163 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
100165         * gnulib-tool (func_create_testdir): Omit the second check whether
100166         BUILT_SOURCES in nonempty.
100168 2005-10-17  Simon Josefsson  <jas@extundo.com>
100170         * tests/test-rijndael.c: New file.
100172 2005-10-17  Simon Josefsson  <jas@extundo.com>
100174         * modules/sha1: Depend on stdint instead of md5.
100176         * modules/md5: Depend on stdint, remove uint32_t.
100178 2005-10-17  Simon Josefsson  <jas@extundo.com>
100180         * modules/gc-sha1-tests: New file.
100182         * tests/test-gc-sha1.c: New file.
100184 2005-10-17  Simon Josefsson  <jas@extundo.com>
100186         * m4/md5.m4: Remove call to uint32_t.m4.
100188 2005-10-17  Simon Josefsson  <jas@extundo.com>
100190         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
100192         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
100193         md5.h.
100195         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
100197         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
100199 2005-10-17  Simon Josefsson  <jas@extundo.com>
100201         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
100203 2005-10-17  Simon Josefsson  <jas@extundo.com>
100205         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
100207 2005-10-17  Simon Josefsson  <jas@extundo.com>
100209         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
100211         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
100213 2005-10-17  Bruno Haible  <bruno@clisp.org>
100215         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
100216         that it can also be used in a test.
100218 2005-10-16  Bruno Haible  <bruno@clisp.org>
100220         * gnulib-tool (func_emit_tests_Makefile_am): Also define
100221         TESTS_ENVIRONMENT, so that individual tests can augment it.
100223         * gnulib-tool (func_create_testdir): Use an intermediate target for
100224         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
100225         macros, like $(ALLOCA_H), which cannot be passed through the command
100226         line.
100228 2005-10-15  Simon Josefsson  <jas@extundo.com>
100230         * modules/rijndael-tests: New file.
100232         * modules/rijndael: New file.
100234 2005-10-15  Simon Josefsson  <jas@extundo.com>
100236         * m4/rijndael.m4: New file.
100238 2005-10-15  Simon Josefsson  <jas@extundo.com>
100240         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
100242         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
100244 2005-10-14  Simon Josefsson  <jas@extundo.com>
100246         * tests/test-arcfour.c: New file.
100248         * modules/arcfour, modules/arcfour-tests: New files.
100250 2005-10-14  Simon Josefsson  <jas@extundo.com>
100252         * m4/arcfour.m4: New file.
100254 2005-10-14  Simon Josefsson  <jas@extundo.com>
100256         * lib/arcfour.h, lib/arcfour.c: New files.
100258 2005-10-14  Roland McGrath  <roland@redhat.com>
100260         Import from libc.  [BZ #1331]
100261         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
100262         macro argument.
100263         Reported by Matej Vela <vela@debian.org>.
100265 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
100267         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
100268         include <wchar.h>; no longer needed.
100270 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
100272         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
100274 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
100275         and  Ulrich Drepper  <drepper@redhat.com>
100277         Import from libc.
100278         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
100279         instead of inline stream orientation test and two separate
100280         function calls.  Pay no attention to USE_IN_LIBIO.
100282 2005-10-13  Simon Josefsson  <jas@extundo.com>
100284         * modules/gc-hmac-md5-tests: New file.
100286         * tests/test-gc-hmac-sha1.c: New file.
100288         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
100290         * modules/gc-hmac-md5-tests: New file.
100292         * tests/test-gc-md5.c: New file.
100294         * modules/gc-md5-tests: New file.
100296 2005-10-13  Simon Josefsson  <jas@extundo.com>
100298         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
100299         Move memory allocation outside of loop.
100301 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
100303         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
100304         intermediate directory is in a read-only file system.  Problem
100305         reported by Eric Blake.
100307 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
100309         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
100311 2005-10-12  Simon Josefsson  <jas@extundo.com>
100313         * tests/test-hmac-sha1.c: New file.
100315         * modules/hmac-sha1-tests: New file.
100317         * modules/hmac-sha1: New file.
100319 2005-10-12  Simon Josefsson  <jas@extundo.com>
100321         * modules/gc-sha1: New file.
100323 2005-10-12  Simon Josefsson  <jas@extundo.com>
100325         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
100327         * tests/test-gc-pbkdf2-sha1.c: New file.
100329 2005-10-12  Simon Josefsson  <jas@extundo.com>
100331         * modules/gc-md5, modules/gc-hmac-md5: New files.
100333         * modules/gc (Files): Remove md5, memxor and hmac files.
100335 2005-10-12  Simon Josefsson  <jas@extundo.com>
100337         * m4/gc-pbkdf2-sha1.m4: New file.
100339         * m4/gc-hmac-sha1.m4: New file.
100341         * m4/gc-sha1: New file.
100343         * m4/hmac-sha1.m4: New file.
100345 2005-10-12  Simon Josefsson  <jas@extundo.com>
100347         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
100349         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
100351 2005-10-12  Simon Josefsson  <jas@extundo.com>
100353         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
100354         suggested by Bruno Haible <bruno@clisp.org>.
100356 2005-10-12  Simon Josefsson  <jas@extundo.com>
100358         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
100360 2005-10-12  Simon Josefsson  <jas@extundo.com>
100362         * lib/gc-pbkdf2-sha1.c: New file.
100364         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
100366 2005-10-12  Simon Josefsson  <jas@extundo.com>
100368         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
100370         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
100372 2005-10-12  Simon Josefsson  <jas@extundo.com>
100374         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
100375         GC_USE_HMAC_MD5, respectively.
100377         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
100378         (gc_md5): Fix typo.
100380         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
100382         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
100384         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
100386 2005-10-12  Bruno Haible  <bruno@clisp.org>
100388         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
100389         Reported by Stepan Kasal <kasal@ucw.cz>.
100391 2005-10-11  Simon Josefsson  <jas@extundo.com>
100393         * tests/test-crc.c: New file.
100395         * modules/crc, modules/crc-tests: New files.
100397 2005-10-11  Simon Josefsson  <jas@extundo.com>
100399         * m4/crc.m4: New file.
100401 2005-10-11  Simon Josefsson  <jas@extundo.com>
100403         * lib/gc.h: Add gc_hash and gc_hash_buffer.
100405         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
100407         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
100409 2005-10-11  Simon Josefsson  <jas@extundo.com>
100411         * lib/crc.h, lib/crc.c: New files.
100413         * lib/gc.h (gc_hash_buffer): Add doc.
100415 2005-10-11  Bruno Haible  <bruno@clisp.org>
100417         * modules/c-strcasestr: New file.
100418         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
100420 2005-10-11  Bruno Haible  <bruno@clisp.org>
100422         * modules/c-strcase: New file.
100423         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
100425 2005-10-11  Bruno Haible  <bruno@clisp.org>
100427         * lib/strcasecmp.c: Include limits.h.
100428         (strcasecmp): Avoid integer overflow on exotic platforms.
100429         * lib/strncasecmp.c: Include limits.h.
100430         (strncasecmp): Avoid integer overflow on exotic platforms.
100431         Reported by Paul Eggert.
100433 2005-10-11  Bruno Haible  <bruno@clisp.org>
100435         * lib/c-strcasestr.h: New file, from GNU gettext.
100436         * lib/c-strcasestr.c: New file, from GNU gettext.
100438 2005-10-11  Bruno Haible  <bruno@clisp.org>
100440         * lib/c-strcase.h: New file, from GNU gettext.
100441         * lib/c-strcasecmp.c: New file, from GNU gettext.
100442         * lib/c-strncasecmp.c: New file, from GNU gettext.
100444 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
100446         * modules/mempcpy (License): GPL -> LGPL.
100447         * modules/strchrnul (License): Likewise.
100448         * modules/sysexits (License): Likewise.
100450 2005-10-08  Simon Josefsson  <jas@extundo.com>
100452         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
100454 2005-10-07  Simon Josefsson  <jas@extundo.com>
100456         * m4/memxor.m4: Remove gl_C_RESTRICT call.
100458 2005-10-06  Simon Josefsson  <jas@extundo.com>
100460         * tests/test-hmac-md5.c: New file.
100462         * modules/hmac-md5-tests: New file.
100464         * modules/hmac-md5: New file.
100466 2005-10-06  Simon Josefsson  <jas@extundo.com>
100468         * m4/hmac-md5.m4: New file.
100470         * m4/memxor.m4: Require gl_C_RESTRICT.
100472 2005-10-06  Simon Josefsson  <jas@extundo.com>
100474         * lib/memxor.c (memxor): Avoid casts and warnings.
100476 2005-10-06  Simon Josefsson  <jas@extundo.com>
100478         * lib/hmac-md5.c: New file.
100480         * lib/hmac.h: New file.
100482 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
100484         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
100485         promotes to int, not unsigned int, to catch the AIX 5.3
100486         compiler bug.
100488 2005-10-05  Simon Josefsson  <jas@extundo.com>
100490         * modules/memxor: New file.
100492         * modules/iconv (Files): Move config.rpath to havelib, it is used
100493         there.
100495         * modules/havelib (Files): Add config.rpath.
100497 2005-10-05  Simon Josefsson  <jas@extundo.com>
100499         * m4/memxor.m4: New file.
100501 2005-10-05  Simon Josefsson  <jas@extundo.com>
100503         * lib/memxor.c (memxor): Fix compiler error.
100505         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
100506         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
100508         * lib/memxor.h, lib/memxor.c: New files.
100510         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
100511         we assume all systems have it, suggested by Jim Meyering
100512         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
100513         any systems lack sys/socket.h; mingw32 is known to lack it, but we
100514         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
100515         same reasons.
100517 2005-10-05  Simon Josefsson  <jas@extundo.com>
100519         * config/srclist.txt: Add glibc bug 1423 for md5.h.
100521 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
100523         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
100524         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
100525         needed, since the source code now assumes these .h files.
100527 2005-10-05  Derek Price  <derek@ximbiot.com>
100529         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
100531 2005-10-05  Bruno Haible  <bruno@clisp.org>
100533         * modules/stdint (License): Change to LGPL.
100535 2005-10-04  Simon Josefsson  <jas@extundo.com>
100537         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
100538         D. Baushke" <mdb@gnu.org>.
100540 2005-10-04  Bruno Haible  <bruno@clisp.org>
100542         * lib/verify.h (verify_true): Provide alternative definition for C++.
100544 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
100546         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
100547         (SSIZE_MAX): New macro, if not already defined.
100548         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
100549         than 2 GiB.
100551 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
100553         Sync from coreutils.
100554         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
100555         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
100556         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
100557         ULLONG_MAX doesn't work with 2.7.2.1.
100559 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
100561         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
100562         From Ben Pfaff.
100564         * modules/exclude (Depends-on): Depend on verify.
100565         * modules/strtoimax (Depends-on): Likewise.
100566         * modules/utimecmp (Depends-on): Likewise.
100568 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
100570         * lib/exclude.c: Include verify.h.
100571         (verify): Remove.  All callers changed to use verify.h's version.
100572         * lib/strtoimax.c: Likewise.
100573         * lib/utimecmp.c: Likewis.e
100575         Sync from coreutils.
100576         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
100577         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
100578         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
100579         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
100580         bother returning ENOSYS if settimeofday or stime fails; just let
100581         them return whatever errno they want to return.
100582         * lib/utimens.c: Include unistd.h, for dup2.
100583         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
100584         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
100586 2005-10-02  Jim Meyering  <jim@meyering.net>
100588         Sync from coreutils.
100589         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
100590         from glibc-2.2.5 that fails for read-only files.
100592 2005-10-02  Jim Meyering  <jim@meyering.net>
100594         Sync from coreutils.
100595         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
100596         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
100597         `#if HAVE_CONFIG_H'.
100598         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
100599         Remove AT_FDCWD test.
100600         Do not consume the fd unless successful.
100601         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
100602         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
100603         block, so that we don't even try to compile it if settimeofday is
100604         available.  This works around a compilation failure on OSF1 V5.1,
100605         due to stime requiring a `long int*' while tv_sec is `int'.
100607 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
100609         Sync from coreutils.
100610         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
100611         against `yes', rather than just testing for nonempty.
100613 2005-10-01  Simon Josefsson  <jas@extundo.com>
100615         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
100616         and Darwin.
100618         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
100619         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
100620         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
100621         freeaddrinfo and gai_strerror are declared by the POSIX headers.
100622         Check if struct addrinfo is declared.
100624 2005-10-01  Simon Josefsson  <jas@extundo.com>
100626         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
100627         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
100628         AI_* and EAI_* definitions.  Protect function declarations.
100630 2005-10-01  Jim Meyering  <jim@meyering.net>
100632         Sync from coreutils.
100634         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
100635         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
100636         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
100637         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
100638         in the inet and nsl libraries.  Required on Solaris 5.7.
100640 2005-10-01  Jim Meyering  <jim@meyering.net>
100642         Sync from coreutils.
100643         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
100644         in the inet and nsl libraries.  Required on Solaris 5.7.
100646 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
100648         * lib/getdelim.c (getdelim): Remove unused variables.
100650 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
100652         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
100653         so that the code works even with ancient cpp.  Portability problem
100654         with GCC 2.7.2.1 reported by Thomas M.Ott.
100656 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
100658         * modules/regex (Depends-on): Add strcase.
100660         * modules/gethostname (Licence): Change from GPL to LGPL, since
100661         gethostname.c is a trivial implementation of a standard library
100662         function.
100663         * modules/poll (License): Change from GPL to LGPL, since it's
100664         derived from LGPL code.
100666 2005-09-27  Jim Meyering  <jim@meyering.net>
100668         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
100669         HAVE_CONFIG_H.
100671         * lib/intprops.h (signed_type_or_expr__): Define.
100672         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
100673         for unsigned types.
100675 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
100677         * lib/verify.h (verify_expr): Remove, replacing with:
100678         (verify_true): New macro that returns true instead of void.
100679         (verify_type__): Remove.
100680         (verify): Use verify_true rather than verify_type__.
100682 2005-09-26  Bruno Haible  <bruno@clisp.org>
100684         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
100685         is necessary.
100686         (lib_SOURCES): Remove mbchar.c.
100687         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
100688         (Files): Add m4/mbrtowc.m4.
100689         * modules/mbiter: Likewise.
100690         * modules/mbuiter: Likewise.
100692 2005-09-26  Bruno Haible  <bruno@clisp.org>
100694         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
100695         compile mbchar.c if they are not both present.
100696         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
100697         * m4/mbiter.m4 (gl_MBITER): Likewise.
100698         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
100699         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
100700         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
100702 2005-09-25  Jim Meyering  <jim@meyering.net>
100704         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
100705         also uses socklen_t.
100707 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
100709         * lib/utimens.c (ENOSYS): Define if not already defined.
100710         (futimens): Support having a null PATH if the file descriptor
100711         is nonnegative.
100713         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
100714         Remove.
100715         (__attribute): Define to empty unless GCC 3.1 or later.
100716         This works around a core dump on OpenBSD 3.4, which has GCC
100717         2.95.3, which dumps core when given __attribute__(()).  It also
100718         simplifies other tests, since we really don't want to bother with
100719         worrying about which ancient version of GCC supported what.
100720         Original problem reported by Yoann Vandoorselaere, with part of
100721         the fix suggested by Derek Price.
100723 2005-09-24  Jim Meyering  <jim@meyering.net>
100725         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
100726         so we can once again use a positive bitfield width of 1 -- now we
100727         don't have to explain why we were using a bitfield width of 2.
100729 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
100731         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
100732         and similarly for the other external symbols.  Problem reported
100733         by James Gallager.
100735         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
100736         bug reported by Jim Meyering.
100738         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
100739         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
100740         not needed, since socklen is a prerequisite module.
100742 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
100744         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
100745         Problem reported by Eric Blake.
100746         (getaddrinfo): Initialize se so that it's not garbage.
100747         Redo internal storage allocation so that it doesn't make unportable
100748         assumptions about alignment.
100749         Fix a memory leak.
100751         * lib/utimens.c (futimens): Use futimesat if available.
100752         Prefer it to futimes since it doesn't have the futimes bug.
100754         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
100755         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
100756         Instead, declare a function that returns a pointer to an array,
100757         and use verify_type__ to declare the size of the array.
100758         Problem and germ of a solution reported by Bruno Haible.
100759         (verify_type__): Use 2, not 1, for bitfield size, to avoid
100760         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
100762 2005-09-23  Jim Meyering  <jim@meyering.net>
100764         Sync from coreutils.
100765         Correct build failure (socklen_t not defined) on at least
100766         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
100767         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
100769 2005-09-23  Jim Meyering  <jim@meyering.net>
100771         * modules/getaddrinfo (Depends-on): Add socklen.
100773 2005-09-23  Bruno Haible  <bruno@clisp.org>
100775         * tests/test-verify.c: New file.
100777 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100779         Sync from coreutils.
100781         * modules/argmatch (Depends-on): Add verify.
100782         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
100783         unistd-safer.
100784         * modules/save-cwd (Depends-on): Likewise.
100786         * modules/openat (Files): Add lib/openat-die.c.
100787         (Depends-on): Remove error, exitfail.
100788         Add dirname.
100790         * modules/verify: New file.
100791         * MODULES.html.sh (Diagnostics <assert.h>): New section,
100792         with "verify" module.
100794 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100796         Sync from coreutils.
100798         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
100799         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
100800         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
100801         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
100802         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
100803         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
100804         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
100805         Don't bother checking for string.h, stdlib.h, unistd.h.
100806         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
100807         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
100808         module's job.
100809         * m4/jm-macros.m4 (gl_MACROS): Likewise.
100810         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
100812         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
100813         (gl_GETDATE): Use it.
100815         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
100817 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100819         Sync from coreutils.
100821         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
100822         stat-time.h.
100823         * lib/argmatch.h: Include verify.h
100824         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
100825         (ARGMATCH_ASSERT): Remove; unused.
100826         * lib/canonicalize.c: Assume STDC_HEADERS.
100827         * lib/exclude.c: Include "strcase.h".
100828         * lib/regex_internal.h [!defined _LIBC]: Likewise.
100829         * lib/getusershell.c: Include stdio--.h rather than stdio.h
100830         and stdio-safer.h.
100831         (getusershell): Call fopen, not fopen_safer.
100832         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
100833         Do not include unistd-safer.h.
100834         (save_cwd): Don't call fd_safer; no longer needed
100835         now that we include fcntl--.h.
100837         * lib/getdate.y (relative_time): New type.
100838         (RELATIVE_TIME_0): New constant.
100839         (parser_control): Use relative_time instead of doing it ourselves.
100840         (%union): Add new relative_time rel member.
100841         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
100842         Now typeless.
100843         (relunit, relunit_snumber): Now of type rel.
100844         (zone, rel, relunit, get_date): Adjust to above changes.
100846         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
100847         Do not include unistd-safer.h.
100848         (getloadavg): Don't call fd_safer; no longer needed
100849         now that we include fcntl--.h.
100851         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
100852         (make_dir_parents): Treat ENOSYS like EEXIST.
100854         Improve quality of diagnostics on restore_cwd failure.
100855         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
100856         (make_dir_parents): Last arg is now int * (for errno), not bool *.
100857         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
100858         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
100859         each time through the loop.  Do not diagnose restore_cwd failure;
100860         that is the caller's job (and perhaps the caller does not care).
100862         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
100863         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
100864         If the file already exists but is not a directory, don't bother
100865         to try to make its parents.
100866         Close potential file descriptor leak if we can't chdir("/") (!).
100867         Don't always return true if chdir($PWD) fails; return true only
100868         if the requested action was done successfully (except for the
100869         chdir($PWD)).
100870         Don't log final directory unless we actually made it.
100871         Refactor to avoid duplicate code to fix up permissions.
100872         Don't attempt to fix up parent permissions if chdir($PWD) fails.
100874         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
100875         to make it a bit faster and (I hope) clearer.
100876         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
100877         Fix bug in formats like %2N.
100879         * lib/verify.h: New file.
100881 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100883         Sync from coreutils.
100884         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
100886 2005-09-22  Jim Meyering  <jim@meyering.net>
100888         Sync from coreutils.
100890         * m4/lstat.m4 (gl_FUNC_LSTAT):
100891         Use AC_LIBSOURCES to require lstat.c and lstat.h.
100892         Remove obsolete comment.
100893         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
100894         * m4/xstrtod.m4: Likewise.
100896         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
100898 2005-09-22  Jim Meyering  <jim@meyering.net>
100900         Sync from coreutils.
100902         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
100904         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
100905         the .tm_year member, since otherwise gcc-4.0 would now warn about
100906         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
100908         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
100909         order to avoid an unsuppressible warning from gcc on 64-bit systems.
100911         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
100912         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
100913         when run in a time zone for which daylight savings time is in effect
100914         for the starting date.
100916         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
100917         stop us from restricting permissions of just-created absolute-named
100918         directories.
100919         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
100920         to restore initial working directory.
100921         * lib/mkdir-p.c (make_dir_parents): New parameter:
100922         different_working_dir, to tell caller if/when we change the working
100923         directory and are unable to return to the initial one.
100924         * lib/mkdir-p.h (make_dir_parents): Update prototype.
100925         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
100926         `return false'.  This fixes a bug introduced on 2004-07-30.
100928         * lib/openat.c (fdopendir): Be sure to close the supplied
100929         file descriptor before returning.  This makes our replacement
100930         implementation a little closer to Solaris's, where fdopendir
100931         ties the file descriptor to the returned DIR* pointer.
100932         * lib/openat.c (unlinkat): New function.
100933         * lib/openat.h (unlinkat): Add prototype.
100934         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
100935         (openat_restore_fail): Rename from openat_restore_die.
100936         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
100938         Provide an alternative to exiting immediately upon save_cwd or
100939         restore_cwd failure.  Now, an application can arrange e.g.,
100940         to perform a longjump in that case.
100941         * lib/openat.c: Include dirname.h.
100942         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
100943         (rpl_openat, fdopendir, fstatat): Call openat_save_die
100944         and openat_restore_die rather than calling error directly.
100945         Don't include "error.h" or "exitfail.h"; they're no longer needed.
100947         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
100948         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
100949         define.
100951         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
100952         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
100953                             int utc, int nanoseconds);
100954         Background:
100955         date should not have to allocate a megabyte of virtual memory to
100956         handle a format argument like +%1048575T.  When implemented with
100957         strftime, it must allocate such a buffer, use strftime to fill it
100958         in, print it, then free it.
100959         With fprintftime, it simply prints everything and exits.
100960         With no need for memory allocation, that's one fewer way to fail.
100961         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
100962         optional field width, not before, so we accept %9:z, not %:9z.
100963         (my_strftime): Be sure to use L_('x') for literals.
100965         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
100966         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
100967         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
100968         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
100969         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
100970         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
100971         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
100972         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
100973         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
100974         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
100975         * lib/xgethostname.c, lib/xreadlink.c:
100976         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
100978         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
100979         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
100980         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
100981         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
100982         and don't include <sys/file.h>).
100984 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
100986         Sync from coreutils.
100988         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
100989         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
100990         [!LDAV_DONE]: Avoid unused variable warning.
100992 2005-09-21  Bruno Haible  <bruno@clisp.org>
100994         * lib/unicodeio.h (unicode_to_mb): New declaration.
100996 2005-09-20  Derek Price  <derek@ximbiot.com>
100998         * lib/getaddrinfo.c: Don't include <netdb.h> included from
100999         getaddrinfo.h.
101001 2005-09-20  Bruno Haible  <bruno@clisp.org>
101003         * gnulib-tool: Remove trailing slashes from the values specified for
101004         --source-base, --m4-base, --tests-base, --aux-dir.
101005         Suggested by Simon Josefsson <jas@extundo.com>.
101007 2005-09-20  Bruno Haible  <bruno@clisp.org>
101009         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
101010         func_modules_to_filelist, func_import, func_create_testdir): Make all
101011         sorting results locale-independent, so that gnulib-cache.m4 doesn't
101012         change when gnulib-tool is invoked in a different locale.
101014 2005-09-19  Simon Josefsson  <jas@extundo.com>
101016         * m4/socklen.m4: Fix typo.
101018 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101020         Use a consistent style for including <config.h>.
101021         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
101022         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
101023         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
101024         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
101025         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
101026         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
101027         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
101028         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
101029         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
101030         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
101031         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
101032         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
101033         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
101034         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
101035         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
101036         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
101037         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
101038         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
101039         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
101040         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
101041         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
101042         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
101043         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
101044         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
101045         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
101046         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
101047         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
101048         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
101049         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
101050         lib/xstrtoumax.c, lib/yesno.c:
101051         Standardize inclusion of config.h.
101052         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
101053         lib/inttostr.h:  Removed inclusion of config.h from header files.
101054         * lib/inttostr.c:  Adjusted in-tree users.
101055         * lib/timespec.h: Remove superfluous warning to include config.h.
101056         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
101057         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
101058         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
101059         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
101060         config.h with HAVE_CONFIG_H.
101062 2005-09-19  Jim Meyering  <jim@meyering.net>
101064         * modules/pathmax (License): Change to LGPL.
101066 2005-09-19  Derek Price  <derek@ximbiot.com>
101068         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
101070 2005-09-19  Bruno Haible  <bruno@clisp.org>
101072         * gnulib-tool (import): Provide default for --tests-base.
101074 2005-09-19  Bruno Haible  <bruno@clisp.org>
101076         * doc/quote.texi: New file, extracted from gnulib.texi.
101077         * doc/ctime.texi: New file, extracted from gnulib.texi.
101078         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
101079         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
101080         * doc/gnulib.texi: Include them.
101082 2005-09-18  Bruno Haible  <bruno@clisp.org>
101084         Portability fix.
101085         * gnulib-tool (func_readlink): New function.
101086         (func_ln_if_changed): Use it.
101088 2005-09-18  Bruno Haible  <bruno@clisp.org>
101090         * gnulib-tool: Support --with-tests also with --import.
101091         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
101092         (func_import): Use variables $testsbase and $inctests. Emit a
101093         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
101094         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
101095         SUBDIRS += $testsdir.
101096         (func_create_testdir): Update.
101098 2005-09-18  Bruno Haible  <bruno@clisp.org>
101100         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
101101         instead of $dry_run.
101102         (func_cp_if_changed, func_mv_if_changed): Remove functions.
101103         (func_ln_if_changed): Don't handle dry-run here.
101104         (func_import): In dry-run mode, detect more precisely which actions
101105         would be performed, and don't use "...ing" verbs.
101107 2005-09-18  Bruno Haible  <bruno@clisp.org>
101109         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
101110         (func_import): Use join on two temporary files instead of three nested
101111         loops, in order to determine which files are new or old.
101113 2005-09-18  Bruno Haible  <bruno@clisp.org>
101115         * gnulib-tool (func_import): Comment out code that spits out the
101116         new files with --dry-run.
101118 2005-09-18  Bruno Haible  <bruno@clisp.org>
101120         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
101122 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101124         * lib/stat-time.h: New file.
101125         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
101126         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
101127         in a different way.
101128         (timespec_cmp): New function.
101129         * lib/utimecmp.c: Include stat-time.h.
101130         (SYSCALL_RESOLUTION): Depend on whether various struct stat
101131         members exist, not on the obsolescent ST_MTIM_NSEC.
101132         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
101134 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101136         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
101138 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101140         * MODULES.html.sh (File system functions): Add stat-time.
101141         * modules/stat-time: New file.
101142         * modules/timespec (Files): Remove m4/st_mtim.m4; this
101143         is now done in a different way, by the stat-time module.
101144         * modules/utimecmp (Depends-on): Add stat-time.
101146 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
101148         * m4/st_mtim.m4: Remove.  Superseded by...
101149         * m4/stat-time.m4: New file.
101150         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
101151         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
101153 2005-09-15  Derek Price  <derek@ximbiot.com>
101155         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
101157 2005-09-15  Derek Price  <derek@ximbiot.com>
101159         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
101160         * lib/regex_internal.c: Ditto, using this...
101161         (__GNUC_PREREQ): ...new macro.
101162         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
101163         using...
101164         (__GNUC_PREREQ): ...this new macro.
101166         * lib/strstr.h: Include string.h. Define strstr as a macro here.
101168 2005-09-15  Derek Price  <derek@ximbiot.com>
101169             Paul Eggert  <eggert@cs.ucla.edu>
101171         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
101172         changes, consolidating in...
101173         * lib/regex_internal.h: ...this file.
101175 2005-09-13  Jim Meyering  <jim@meyering.net>
101177         * lib/canon-host.c: Filter through gnu indent and reword comments
101178         slightly.
101179         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
101181 2005-09-13  Derek Price  <derek@ximbiot.com>
101183         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
101184         failure.
101185         Reported by Jim Meyering  <jim@meyering.net>.
101187 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101189         * lib/base64.c: Typo.
101190         (base64_encode): Put b64str in initialized data section.
101192 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
101194         Merge glibc and coreutils changes into gnulib, plus a few
101195         extra fixes.
101196         * lib/md5.c: Use #error rather than a string.
101197         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
101198         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
101199         (__attribute__): Define to empty for non recent-GCC.
101200         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
101201         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
101202         Renamed from their non-__ counterparts, with new macros replacing
101203         them if not _LIBC.  Add __THROW attribute.
101204         (rol): Remove.
101205         (struct md5_ctx): Align buffer if using GCC.
101206         * lib/sha1.h (struct sha1_ctx): Likewise.
101207         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
101208         The old name was backwards.
101209         (NOTSWAP): Remove; not used.
101210         (rol): New macro, moved here from md5.h.
101211         (sha1_process_block): Remove a FIXME that doesn't make sense.
101213 2005-09-12  Derek Price  <derek@ximbiot.com>
101215         Return usable errors from canon-host.
101216         * lib/canon-host.h: New file.
101217         * lib/canon-host.c (canon_host): Wrap...
101218         (canon_host_r): ...this new function, which now relies exclusively on
101219         getaddrinfo.
101220         (ch_strerror): New function.
101221         (last_cherror): New global.
101222         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
101223         interface.
101224         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
101225         void *.
101226         (freeaddrinfo): Free ai->ai_canonname when set.
101228 2005-09-12  Derek Price  <derek@ximbiot.com>
101230         Make canon-host require getaddrinfo.
101231         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
101232         AC_LIBSOURCE canon-host.h.  Call...
101233         (gl_PREREQ_CANON_HOST): ...this new function, which requires
101234         gl_GETADDRINFO.
101235         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
101237 2005-09-12  Derek Price  <derek@ximbiot.com>
101239         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
101240         LGPL.
101241         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
101243 2005-09-12  Derek Price  <derek@ximbiot.com>
101245         * lib/gai_strerror.c: Include config.h when available.  Include
101246         getaddrinfo.h before other headers to test interface.
101247         Reported by Larry Jones <lawrence.jones@ugs.com>.
101249 2005-09-12  Derek Price  <derek@ximbiot.com>
101250             Paul Eggert  <eggert@cs.ucla.edu>
101252         * modules/glob (Files): Add glob-libc.h.
101254 2005-09-12  Derek Price  <derek@ximbiot.com>
101255             Paul Eggert  <eggert@cs.ucla.edu>
101257         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
101258         glob_.h, glob-libc.h.
101259         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
101261 2005-09-12  Derek Price  <derek@ximbiot.com>
101262             Paul Eggert  <eggert@cs.ucla.edu>
101264         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
101265         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
101266         protecting things that should be done only in gnulib contexts.
101267         * lib/glob_.h: New file, containing only the glob things needed for
101268         gnulib.
101269         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
101270         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
101271         (glob, globfree, glob_pattern_p): Now defined simply in terms of
101272         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
101273         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
101274         and to respect the namespace rules better.
101276 2005-09-08  Simon Josefsson  <jas@extundo.com>
101278         * modules/socklen: New file.
101280 2005-09-08  Simon Josefsson  <jas@extundo.com>
101282         * m4/socklen.m4: New file.
101284 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101286         * modules/utimens (Files): Add m4/utimbuf.m4, since
101287         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
101288         Reported by Sergey Poznyakoff.
101290 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101292         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
101293         definitions, since that's the preferred style in glibc.
101294         Fix a minor spacing issue, and update copyright notice to match
101295         glibc's.
101297 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101299         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
101301 2005-09-06  Simon Josefsson  <jas@extundo.com>
101303         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
101304         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
101306 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101308         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
101309         warning.
101311 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101313         * config/srclist.txt: Add glibc bug 1302.
101315 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
101317         Change bitset word type from unsigned int to unsigned long int,
101318         as this has better performance on typical 64-bit hosts.
101319         Port bitset code to hosts with unusual word sizes.
101320         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
101321         (build_collating_symbol):
101322         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
101323         argument is a bitset.  This is merely a style issue, but it makes
101324         it clearer that an entire array is expected.
101325         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
101326         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
101327         Port to the case where bitset_word is not the same as unsigned int.
101328         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
101329         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
101330         Likewise.
101331         * lib/regexec.c (check_dst_limits_calc_pos_1,
101332         check_subexp_matching_top):
101333         (build_trtable, group_nodes_into_DFAstates):
101334         Likewise.
101335         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
101336         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
101337         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
101338         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
101339         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
101340         * lib/regcomp.c (optimize_subexps, lower_subexp):
101341         Work even if bitset_word has holes in its bitwise representation.
101342         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
101343         * lib/regexec.c (check_dst_limits_calc_pos_1,
101344         check_subexp_matching_top):
101345         Likewise.
101346         * lib/regex_internal.c (re_string_reconstruct):
101347         Don't assume UCHAR_MAX == 255.
101348         * lib/regex_internal.h (bitset_set_all): Likewise.
101349         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
101350         All uses changed.
101351         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
101352         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
101353         All uses changed.
101354         (BITSET_WORD_MAX): New macro.
101355         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
101356         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
101357         (bitset_empty, bitset_copy):
101358         Prefer sizeof (bitset) to multiplying it out ourselves.
101359         (bitset_not_merge): Remove; unused.
101360         (bitset_contain): Return bool, not unsigned int with one bit on.
101361         All callers changed.
101362         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
101363         alignment than re_node_set; do this by defining a new internal
101364         type struct dests_alloc and using it to allocate memory.
101366 2005-09-05  Bruno Haible  <bruno@clisp.org>
101368         * gnulib-tool (func_import): Fix comparison in handling of symbolic
101369         links.
101371 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
101373         * modules/size_max (Makefile.am): Add size_max.h
101375 2005-09-04  Derek Price  <derek@ximbiot.com>
101377         * gnulib-tool (func_import): Fix reversed $symbolic logic.
101379 2005-09-03  Simon Josefsson  <jas@extundo.com>
101381         * gnulib-tool: Fix typo.
101383 2005-09-03  Simon Josefsson  <jas@extundo.com>
101385         * config/srclist.txt: Add glibc bug 1293.
101387 2005-09-03  Derek Price  <derek@ximbiot.com>
101389         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
101390         From Larry Jones <lawrence.jones@ugs.com>.
101392 2005-09-02  Simon Josefsson  <jas@extundo.com>
101394         * modules/socklen: New file.
101396 2005-09-02  Simon Josefsson  <jas@extundo.com>
101398         * modules/havelib: New module.
101400         * modules/gettext, modules/iconv, modules/lock, modules/readline:
101401         Use havelib.
101403 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
101405         Check for arithmetic overflow when calculating sizes, to prevent
101406         some buffer-overflow issues.  These patches are conservative, in the
101407         sense that when I couldn't determine whether an overflow was possible,
101408         I inserted a run-time check.
101409         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
101410         macros.
101411         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
101412         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
101413         (re_xnrealloc, re_x2nrealloc): New inline functions.
101414         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
101415         parse_bracket_exp):
101416         (build_equiv_class, build_charclass): Check for arithmetic overflow
101417         in size expression calculations.
101418         * lib/regex_internal.c (re_string_realloc_buffers):
101419         (build_wcs_upper_buffer, re_node_set_add_intersect):
101420         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
101421         (re_dfa_add_node, register_state): Likewise.
101422         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
101423         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
101424         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
101425         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
101427 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
101429         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
101430         m4/ulonglong.m4.  Problem reported by Martin Lambers.
101432 2005-09-02  Bruno Haible  <bruno@clisp.org>
101434         Support for lib vs. lib64 distinction on biarch platforms.
101435         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
101436         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
101437         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
101439 2005-09-02  Bruno Haible  <bruno@clisp.org>
101441         * gnulib-tool (import): In the other first-use case, provide defaults
101442         as well.
101444 2005-09-02  Bruno Haible  <bruno@clisp.org>
101446         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
101447         patches not yet found in the latest gettext release.
101449 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
101451         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
101452         to avoid a collision with bits/local_lim.h in glibc.
101453         All uses changed.  Problem reported by Dmitry V. Levin in
101454         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
101456         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
101457         bugs in int versus size_t comparisons.
101458         (re_string_context_at): Fix bug where the code assumed that
101459         Idx is signed.
101461         Use bool where appropriate.
101462         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
101463         All callers changed.
101464         (calc_eclosure_iter): Likewise, for ROOT arg.
101465         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
101466         (build_charclass_op): Likewise, for NON_MATCH arg.
101467         * lib/regex_internal.c (re_string_allocate, re_string_construct):
101468         (re_string_construct_common): Likewise, for ICASE arg.
101469         * lib/regexec.c (re_search_2_stub, re_search_stub):
101470         Likewise, for RET_LEN arg.
101471         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
101472         (set_regs): Likewise, for FL_BACKTRACK arg.
101473         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
101474         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
101475         (calc_eclosure_iter, parse_bracket_exp):
101476         Use bool for internal variables that are booleans.
101477         * lib/regexec.c (re_search_internal, check_matching,
101478         proceed_next_node):
101479         (set_regs, build_sifted_states, sift_states_bkref):
101480         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
101481         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
101482         (find_collation_sequence_value):
101483         Likewise.
101484         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
101485         (re_node_set_compare):
101486         Return bool, not int. All callers changed.
101487         * lib/regexec.c (check_halt_node_context, check_dst_limits):
101488         (build_trtable, check_node_accept): Likewise.
101489         * lib/regex_internal.h: Include stdbool.h.
101491         Fix bugs uncovered when converting to bool.
101492         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
101493         failure instead of charging ahead blindly.
101494         * lib/regex_internal.c (register_state): Likewise.
101495         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
101496         for freeing internal storage.
101497         (group_nodes_into_DFA_states): Use unsigned int, not int, for
101498         bitset pieces used as boolean, to avoid undefined behavior
101499         on hosts that do int overflow checking.
101501 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
101503         * config/srclist.txt: Add glibc bugs 1285-1287.
101505 2005-09-01  Jim Meyering  <jim@meyering.net>
101507         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
101508         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
101509         Require gl_STAT_MACROS, too.
101511 2005-09-01  Bruno Haible  <bruno@clisp.org>
101513         * gnulib-tool (import): In the first-use case, provide defaults.
101515 2005-09-01  Bruno Haible  <bruno@clisp.org>
101517         * gnulib-tool (func_import): Remove the .tmp files.
101519 2005-09-01  Bruno Haible  <bruno@clisp.org>
101521         * gnulib-tool (func_import): Fix handling of symbolic links.
101523 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101525         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
101526         old glibc regex code mishandles strings longer than 2**31 bytes.
101527         This patch fixes this when the regex code is used in gnulib
101528         (i.e., outside glibc).
101530         This patch should not affect the use of the regex code inside
101531         glibc.  No doubt this problem also needs to be handled for glibc
101532         as well, but the result will be an incompatible change to the
101533         glibc ABI, and the old ABI will have to be supported too.  That
101534         can be the subject for another patch.
101536         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
101537         governing whether the rest of this patch is active.  By default,
101538         the macro is disabled and the patch has no effect.
101539         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
101540         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
101541         (struct re_pattern_buffer, re_search, re_search_2, re_match):
101542         (re_match_2, re_set_registers): Use the new types.
101543         * lib/regex_internal.h (Idx, re_hashval_t): New types.
101544         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
101545         New macros.
101546         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
101547         (re_string_context_at, bin_tree_t, re_dfastate_t):
101548         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
101549         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
101550         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
101551         (re_string_char_size_at, re_string_wchar_at):
101552         (re_string_elem_size_at):
101553         Use the new types and macros to port to 64-bit hosts.
101554         Use unsigned types for internal values, so that the code
101555         mostly works even for arrays larger than SSIZE_MAX.
101556         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
101557         (search_duplicated_node, calc_eclosure_iter, fetch_number):
101558         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
101559         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
101560         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
101561         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
101562         (calc_inveclosure, parse_dup_op, build_range_exp):
101563         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
101564         (fetch_number, create_token_tree, mark_opt_subexp):
101565         Likewise.
101566         * lib/regex_internal.c (re_string_construct_common,
101567         create_ci_newstate):
101568         (create_cd_newstate, re_string_allocate, re_string_construct):
101569         (re_string_realloc_buffers, build_wcs_upper_buffer):
101570         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
101571         (re_string_reconstruct, re_string_peek_byte_case):
101572         (re_string_fetch_byte_case, re_string_context_at):
101573         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
101574         (re_node_set_init_copy, re_node_set_add_intersect):
101575         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
101576         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
101577         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
101578         (re_acquire_state, re_acquire_state_context, register_state):
101579         Likewise.
101580         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
101581         search_cur_bkref_entry):
101582         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
101583         (re_search_internal, re_search_2_stub, re_search_stub)
101584         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
101585         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
101586         (update_cur_sifted_state, check_dst_limits):
101587         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
101588         (check_subexp_limits, sift_states_bkref, merge_state_array):
101589         (check_subexp_matching_top, get_subexp, get_subexp_sub):
101590         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
101591         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
101592         (expand_bkref_cache, check_node_accept_bytes):
101593         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
101594         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
101595         (acquire_init_state_context, check_halt_node_context):
101596         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
101597         (sift_states_backward, clean_state_log_if_needed):
101598         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
101599         (find_recover_state, transit_state_sb, transit_state_mb):
101600         (transit_state_bkref, build_trtable, match_ctx_clean):
101601         Likewise.
101602         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
101603         to work around an assumption that REG_MISSING is negative.
101605         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
101606         (seek_collating_symbol_entry) [defined _LIBC]:
101607         (lookup_collation_sequence_value) [defined _LIBC]:
101608         (build_range_exp, build_collating_symbol) [defined _LIBC]:
101609         Use prototypes rather than old-style function definitions.
101610         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
101611         (transit_state_sb) [0]:
101612         (find_collation_sequence_value) [defined _LIBC]: Likewise.
101614         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
101615         rm_eo.
101617         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
101618         (optimize_subexps, lower_subexp):
101619         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
101620         since the signed shift might overflow.  Use 1u<<31 instead.
101621         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
101622         Likewise.
101623         * lib/regexec.c (check_dst_limits_calc_pos_1,
101624         check_subexp_matching_top): Likewise.
101626         * lib/regcomp.c (optimize_subexps, lower_subexp):
101627         Use CHAR_BIT rather than 8, for clarity.
101628         * lib/regexec.c (check_dst_limits_calc_pos_1):
101629         (check_subexp_matching_top): Likewise.
101630         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
101631         have to worry about portability issues when shifting it left.
101632         Remove no-longer-needed test for table_size > 0.
101633         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
101634         in a word, as the resulting behavior is undefined.
101635         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
101636         in one case, a <= should have been an <, and in another case the
101637         whole test was missing.
101638         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
101639         the standard name CHAR_BIT.
101640         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
101641         this is not true on one's complement and signed-magnitude hosts.
101643         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
101644         next_last_offset.
101645         (struct re_dfa_t): Remove unused member states_alloc.
101646         * lib/regcomp.c (init_dfa): Don't initialize unused members.
101648 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101650         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
101651         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
101652         and large-file glibc and in 32-bit large-file Solaris.
101654 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101656         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
101657         lengths fit in regoff_t; this isn't true if regoff_t is the same
101658         width as size_t.
101659         * lib/regex.c (re_search_internal): 5th arg is LAST_START
101660         (= START + RANGE) instead of RANGE.  This avoids overflow
101661         problems when regoff_t is the same width as size_t.
101662         All callers changed.
101663         (re_search_2_stub): Check for overflow when adding the
101664         sizes of the two strings.
101665         (re_search_stub): Check for overflow when adding START
101666         to RANGE; if it occurs, substitute the extreme value.
101668 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101670         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
101672 2005-08-31  Jim Meyering  <jim@meyering.net>
101674         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
101675         a pointer-to-const.
101676         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
101677         (register_state): Likewise.
101678         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
101679         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
101680         (group_nodes_into_DFAstates): Likewise.
101682 2005-08-31  Jim Meyering  <jim@meyering.net>
101684         * check-module: Add a FIXME comment.
101686 2005-08-31  Eric Blake  <ebb9@byu.net>
101688         * modules/unistd-safer (Files): Add unistd--.h.
101689         * modules/stdio-safer (Files): Add stdio--.h.
101691 2005-08-31  Derek Price  <derek@ximbiot.com>
101693         * lib/getdelim.c (getdelim): Return EOF on EOF.
101694         Reported by Larry Jones <lawrence.jones@ugs.com>.
101696 2005-08-31  Bruno Haible  <bruno@clisp.org>
101698         Avoid unnecessary diffs in the generated lib/Makefile.am.
101699         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
101700         the generated files.
101701         (func_import): Don't set cmd.
101703 2005-08-31  Bruno Haible  <bruno@clisp.org>
101705         * lib/strstr.c: Include <stddef.h>, for NULL.
101706         * lib/strcasestr.c: Likewise.
101707         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
101709 2005-08-31  Bruno Haible  <bruno@clisp.org>
101711         * gnulib-tool: New option --macro-prefix.
101712         (func_import): Use macro_prefix.
101713         (import): Handle option --macro-prefix.
101715 2005-08-31  Bruno Haible  <bruno@clisp.org>
101717         * gnulib-tool (import): Rename most ac_* variables to cached_*.
101718         Also use new variables cached_lgpl, cached_libtool.
101720 2005-08-31  Bruno Haible  <bruno@clisp.org>
101722         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
101723         always instantiating them.
101725 2005-08-31  Bruno Haible  <bruno@clisp.org>
101727         * gnulib-tool (func_import): Read the previous cached settings
101728         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
101729         earlier added by gnulib but are now dropped. Warn when a gnulib file
101730         overwrites a non-gnulib file.
101732 2005-08-31  Bruno Haible  <bruno@clisp.org>
101734         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
101735         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
101736         projects that don't keep autogenerated files in CVS. Put into
101737         actioncmd only the specified modules, not the transitive closure.
101739 2005-08-31  Bruno Haible  <bruno@clisp.org>
101741         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
101742         Create directories that shall be filled.
101743         (import): Don't look for gl_* macros in configure.ac. Recurse across
101744         all directories containing a gnulib-cache.m4 files, if meaningful.
101746 2005-08-31  Bruno Haible  <bruno@clisp.org>
101748         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
101749         (import): Set seen_libtool when we see gl_LIBTOOL.
101751 2005-08-31  Bruno Haible  <bruno@clisp.org>
101753         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
101754         declaration macro definitions from generated gnulib.m4.
101756 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
101758         * lib/iconvme.h: Add prototype for iconv_alloc.
101760 2005-08-29  Simon Josefsson  <jas@extundo.com>
101762         * lib/iconvme.c: Fix errno.
101764 2005-08-29  Bruno Haible  <bruno@clisp.org>
101766         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
101767         that it works when the directory contains spaces.
101769 2005-08-29  Bruno Haible  <bruno@clisp.org>
101771         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
101773 2005-08-29  Bruno Haible  <bruno@clisp.org>
101775         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
101776         Emit more advice.
101778 2005-08-29  Bruno Haible  <bruno@clisp.org>
101779         and Stepan Kasal  <kasal@ucw.cz>
101781         * check-module: If more parameters are given, check each of them
101782         separately; add more exceptions, as noted by Jim Meyering.
101783         (check_module): New procedure.
101784         (%exempt_header): Now contains all exceptions.
101786 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
101788         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
101790 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
101792         * lib/iconvme.c: Split iconv_string into iconv_alloc.
101794 2005-08-28  Bruno Haible  <bruno@clisp.org>
101796         * m4/gnulib-tool.m4: New file.
101798 2005-08-27  Jim Meyering  <jim@meyering.net>
101800         * modules/unistd-safer (Files): Add pipe-safer.c.
101801         * modules/fcntl-safer (Files): Add creat-safer.c.
101803 2005-08-27  Jim Meyering  <jim@meyering.net>
101805         * m4/stdlib-safer.m4: New file.  From coreutils.
101806         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
101807         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
101808         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
101809         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
101810         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
101812 2005-08-27  Jim Meyering  <jim@meyering.net>
101814         * lib/fopen-safer.c: Merge minor changes from coreutils.
101815         * lib/dup-safer.c: Likewise.
101816         * lib/fd-safer.c: Likewise.
101818         Merge from coreutils.
101819         * lib/stdio--.h: New file.
101820         * lib/stdlib--.h: New file.
101821         * lib/mkstemp-safer.c: New file.
101823         GNU tar needs these.
101824         * lib/pipe-safer.c: New file.
101825         * lib/creat-safer.c: New file.
101826         * lib/fcntl--.h (creat): Define to creat_safer.
101827         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
101828         * lib/unistd--.h (pipe): Define to pipe_safer.
101829         * lib/unistd-safer.h: Declare pipe_safer.
101831 2005-08-26  Simon Josefsson  <jas@extundo.com>
101833         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
101834         Haible <bruno@clisp.org>.
101836 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
101838         * lib/regex_internal.h: Remove all references to
101839         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
101840         or better.
101841         (bitset_not, bitset_merge, bitset_not_merge):
101842         (bitset_mask, re_string_allocate, re_string_construct):
101843         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
101844         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
101845         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
101846         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
101847         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
101848         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
101849         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
101850         (re_acquire_state_context):
101851         Remove unnecessary forward decls.
101852         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
101853         Put __attribute at function definition,
101854         now that the function decl has been removed.
101855         * lib/regex_internal.c (re_string_peek_byte_case):
101856         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
101857         Likewise.
101859 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
101861         * m4/regex.m4: Add AC_PREREQ(2.50).
101862         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
101864 2005-08-25  Simon Josefsson  <jas@extundo.com>
101866         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
101867         __fsetlocking.
101869 2005-08-25  Simon Josefsson  <jas@extundo.com>
101871         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
101872         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
101873         GLIBC specific code.
101875 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101877         Make regex safe for g++.  This fixes one real bug (an "err"
101878         that should have been "*err").  g++ problem reported by
101879         Sam Steingold.
101880         * lib/regex_internal.h (re_calloc): New macro, consistent with
101881         re_malloc etc.  All callers of calloc changed to use re_calloc.
101882         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
101883         not int.  All callers changed.
101884         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
101885         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
101886         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
101887         (find_recover_state): Change "err" to "*err"; this fixes what
101888         appears to be a real bug.
101889         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
101890         versus int.
101892 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101894         * modules/regex (Depends-on): Add malloc, since the code
101895         assumes that !malloc(0) means failure.
101897 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101899         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
101901         alloca modernization/simplification for regex.
101902         * lib/regex.c: Remove portability cruft for alloca.  This no longer
101903         needs to be at the start of the file, and can be moved into
101904         regex_internal.h and simplified.
101905         * lib/regex_internal.h: Include <alloca.h>.
101906         (__libc_use_alloca) [!defined _LIBC]: New macro.
101907         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
101908         now works outside glibc.
101910 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101912         * config/srclist.txt: Add glibc bugs 1241, 1245.
101914 2005-08-25  Jim Meyering  <jim@meyering.net>
101916         * lib/open-safer.c: Include <config.h>.
101917         Otherwise, we'd lose LARGEFILE support in any file using
101918         e.g. "fcntl--.h"
101920 2005-08-25  Bruno Haible  <bruno@clisp.org>
101922         * m4/minmax.m4: Require autoconf 2.52.
101923         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
101924         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
101925         alternatives of translit over the alphabet.
101926         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
101928 2005-08-24  Simon Josefsson  <jas@extundo.com>
101930         * tests/test-getpass.c: New file.
101932 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
101934         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
101935         for GNU regex features.
101937 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
101939         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
101940         * lib/regex.h (regerror): Likewise.
101942         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
101943         requires this.  (The code never needed it.)
101945         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
101946         All uses of recently-renamed identifiers changed to use the new,
101947         POSIX-compliant names.  The code will build and run just fine
101948         without these changes, but it's better to eat our own dog food
101949         and use the standard-conforming names.
101951         * lib/regex.h: Fix a multitude of POSIX name space violations.
101952         These changes have an effect only for programs that define
101953         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
101954         do not change anything for programs compiled in the normal way.
101955         Also, there is no effect on the ABI.
101957         (_REGEX_SOURCE): New macro.
101958         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
101959         defined and _GNU_SOURCE is not; this fixes a name space violation.
101961         Rename the following macros to obey POSIX requirements.
101962         The old names are still visible as macros if _REGEX_SOURCE is defined.
101963         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
101964         RE_BACKSLASH_ESCAPE_IN_LISTS.
101965         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
101966         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
101967         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
101968         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
101969         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
101970         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
101971         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
101972         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
101973         (REG_INTERVALS): renamed from RE_INTERVALS.
101974         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
101975         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
101976         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
101977         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
101978         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
101979         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
101980         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
101981         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
101982         RE_UNMATCHED_RIGHT_PAREN_ORD.
101983         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
101984         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
101985         (REG_DEBUG): renamed from RE_DEBUG.
101986         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
101987         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
101988         unusual, since we can't clash with the POSIX REG_ICASE.
101989         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
101990         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
101991         (REG_NO_SUB): renamed from RE_NO_SUB.
101992         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
101993         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
101994         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
101995         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
101996         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
101997         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
101998         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
101999         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
102000         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
102001         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
102002         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
102003         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
102004         RE_SYNTAX_POSIX_MINIMAL_BASIC.
102005         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
102006         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
102007         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
102008         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
102009         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
102010         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
102011         (REG_FIXED): Renamed from REGS_FIXED.
102012         (REG_NREGS): Renamed from RE_NREGS.
102014         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
102015         of other REG_* macros, since POSIX says the user is allowed to
102016         #undef these macros selectively.
102018         (reg_errcode_t): Update comment stating what other tables need
102019         to be consistent.
102021         Rename the following enum values to obey POSIX requirements.
102022         The old names are still visible as macros.
102023         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
102024         is not defined, since GNU is supposed to be a superset of POSIX as
102025         much as possible, and since we want reg_errcode_t to be a signed
102026         type for implementation consistency.
102027         (_REG_NOERROR): Renamed from REG_NOERROR.
102028         (_REG_NOMATCH): Renamed from REG_NOMATCH.
102029         (_REG_BADPAT): Renamed from REG_BADPAT.
102030         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
102031         (_REG_ECTYPE): Renamed from REG_ECTYPE.
102032         (_REG_EESCAPE): Renamed from REG_EESCAPE.
102033         (_REG_ESUBREG): Renamed from REG_ESUBREG.
102034         (_REG_EBRACK): Renamed from REG_EBRACK.
102035         (_REG_EPAREN): Renamed from REG_EPAREN.
102036         (_REG_EBRACE): Renamed from REG_EBRACE.
102037         (_REG_BADBR): Renamed from REG_BADBR.
102038         (_REG_ERANGE): Renamed from REG_ERANGE.
102039         (_REG_ESPACE): Renamed from REG_ESPACE.
102040         (_REG_BADRPT): Renamed from REG_BADRPT.
102041         (_REG_EEND): Renamed from REG_EEND.
102042         (_REG_ESIZE): Renamed from REG_ESIZE.
102043         (_REG_ERPAREN): Renamed from REG_ERPAREN.
102044         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
102045         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
102046         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
102047         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
102049         (_REG_RE_NAME, _REG_RM_NAME): New macros.
102050         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
102051         changed.  But support the old name if the new one is not defined
102052         and if _REGEX_SOURCE.
102054         Change the following member names in struct re_pattern_buffer.
102055         The old names are still supported if !_REGEX_SOURCE.
102056         The new names are always supported, regardless of _REGEX_SOURCE.
102057         (re_buffer): Renamed from buffer.
102058         (re_allocated): Renamed from allocated.
102059         (re_used): Renamed from used.
102060         (re_syntax): Renamed from syntax.
102061         (re_fastmap): Renamed from fastmap.
102062         (re_translate): Renamed from translate.
102063         (re_can_be_null): Renamed from can_be_null.
102064         (re_regs_allocated): Renamed from regs_allocated.
102065         (re_fastmap_accurate): Renamed from fastmap_accurate.
102066         (re_no_sub): Renamed from no_sub.
102067         (re_not_bol): Renamed from not_bol.
102068         (re_not_eol): Renamed from not_eol.
102069         (re_newline_anchor): Renamed from newline_anchor.
102071         Change the following member names in struct re_registers.
102072         The old names are still supported if !_REGEX_SOURCE.
102073         The new names are always supported, regardless of _REGEX_SOURCE.
102074         (rm_num_regs): Renamed from num_regs.
102075         (rm_start): Renamed from start.
102076         (rm_end): Renamed from end.
102078         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
102079         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
102080         Prepend __ to parameter names.
102082         Undo yesterday's changes.
102084 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102086         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
102087         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
102088         lib/regex.c.
102090 2005-08-24  Jim Meyering  <jim@meyering.net>
102092         Sync from coreutils.
102093         * m4/fcntl-safer.m4: New file.
102095         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
102096         and object files for this module.
102098 2005-08-24  Jim Meyering  <jim@meyering.net>
102100         Sync from coreutils.
102101         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
102103 2005-08-24  Jim Meyering  <jim@meyering.net>
102105         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
102106         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
102108 2005-08-24  Jim Meyering  <jim@meyering.net>
102110         * modules/fcntl-safer: New module.
102111         * modules/fts (Depends-on): Add fcntl-safer.
102112         * MODULES.html.sh (File descriptor based Input/Output):
102113         Add fcntl-safer.
102115 2005-08-24  Bruno Haible  <bruno@clisp.org>
102117         Support for unit test modules.
102118         * modules/README: Mention tests modules.
102119         * modules/TEMPLATE-TESTS: New file.
102120         * gnulib-tool: New options --extract-tests-module, --with-tests and
102121         --tests-base (unused for the moment).
102122         (testsbase, inctests): New variables.
102123         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
102124         (func_verify_module): Exclude TEMPLATE-TESTS.
102125         (func_verify_nontests_module, func_verify_tests_module): New functions.
102126         (func_get_dependencies): Add implicit dependency for tests modules.
102127         (func_get_tests_module): New function.
102128         (func_modules_transitive_closure): When --with-tests was specified,
102129         include the unit tests as well, unless explicitly avoided.
102130         (func_emit_lib_Makefile_am): Ignore the tests modules here.
102131         (func_emit_tests_Makefile_am): New function.
102132         (func_create_testdir): When --with-tests was specified, emit a
102133         tests/ directory.
102134         * MODULES.html.sh (Future developments): Update.
102136 2005-08-24  Bruno Haible  <bruno@clisp.org>
102138         * modules/tls-tests: New file.
102139         * tests/test-tls.c: New file, from GNU gettext.
102141 2005-08-24  Bruno Haible  <bruno@clisp.org>
102143         * modules/lock-tests: New file.
102144         * tests/test-lock.c: New file, from GNU gettext.
102146 2005-08-24  Bruno Haible  <bruno@clisp.org>
102148         * lib/lock.h: Add multiple inclusion guard.
102149         * lib/tls.h: Add multiple inclusion guard.
102151 2005-08-24  Bruno Haible  <bruno@clisp.org>
102153         * gnulib-tool: Add support for the --aux-dir option to
102154         --create-testdir, --create-megatestdir, --test, --megatest.
102155         (func_create_testdir, func_create_megatestdir): Optionally emit a
102156         AC_CONFIG_AUX_DIR directive.
102157         (create-testdir, create-megatestdir, test, megatest): Provide a
102158         default value for $auxdir.
102160 2005-08-24  Bruno Haible  <bruno@clisp.org>
102162         * gnulib-tool (import): Use compound statement instead of subshell
102163         where possible.
102165 2005-08-24  Bruno Haible  <bruno@clisp.org>
102167         * gnulib-tool (import): Change --aux-dir default to "build-aux".
102169 2005-08-24  Bruno Haible  <bruno@clisp.org>
102171         * gnulib-tool (func_version): Update.
102173 2005-08-24  Bruno Haible  <bruno@clisp.org>
102175         * gnulib-tool (func_import, func_create_testdir,
102176         func_create_megatestdir): Quote all autoconf macro arguments.
102178 2005-08-24  Bruno Haible  <bruno@clisp.org>
102180         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
102181         option --force, because --force causes the aclocal.m4 of each
102182         subdirectory to be newer than the corresponding config.h.in.
102184 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102186         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
102187         All contents moved to gl_REGEX.
102188         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
102189         assume that it does.
102191 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102193         * lib/regex.h (REG_NOSYS)
102194         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
102195         Define, since POSIX requires it as of 2001.
102196         (_REG_ENOSYS)
102197         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
102198         New private symbol, used to keep the enum signed in all cases.
102199         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
102200         Youngman in
102201         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
102203         * lib/regex_internal.c (re_string_skip_chars, register_state):
102204         (calc_state_hash):
102205         Remove forward decls; no longer needed now that we use prototypes.
102206         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
102207         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
102208         (clean_state_log_if_needed): Likewise.
102210 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102212         * config/srclist.txt: Add glibc bugs 1231-1233.
102214 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102216         Fix problems reported by Sam Steingold in
102217         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
102218         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
102219         assumed that reg_errcode_t is a signed type, which is not
102220         necessarily true if _XOPEN_SOURCE is not defined.
102221         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
102222         since some compilers warn about it otherwise.
102224 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102226         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
102227         (init_word_char, create_initial_state, duplicate_node_closure):
102228         (fetch_token, peek_token_bracket, build_range_exp):
102229         (build_collating_symbol): Remove forward decls; no longer needed
102230         now that we use prototypes.
102232         * lib/regcomp.c:
102233         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
102234         (re_compile_fastmap_iter, regcomp, regerror, regfree):
102235         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
102236         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
102237         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
102238         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
102239         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
102240         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
102241         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
102242         (build_range_exp, build_collating_symbol, parse_bracket_exp):
102243         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
102244         (build_charclass, build_charclass_op, fetch_number, create_tree):
102245         (create_token_tree, mark_opt_subexp, duplicate_tree):
102246         Use prototypes rather than old-style definitions.
102248         * lib/regex_internal.c:
102249         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
102250         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
102251         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
102252         (re_string_reconstruct, re_string_peek_byte_case):
102253         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
102254         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
102255         (re_node_set_init_copy, re_node_set_add_intersect):
102256         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
102257         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
102258         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
102259         (re_acquire_state, re_acquire_state_context, register_state):
102260         (create_ci_newstate, create_cd_newstate, free_state):
102261         Likewise.
102262         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
102263         re_search_2):
102264         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
102265         (re_search_internal, prune_impossible_nodes):
102266         (acquire_init_state_context, check_matching, static):
102267         (check_halt_node_context, check_halt_state_context, proceed_next_node):
102268         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
102269         (update_regs, sift_states_backward, build_sifted_states):
102270         (clean_state_log_if_needed, merge_state_array):
102271         (update_cur_sifted_state, add_epsilon_src_nodes):
102272         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
102273         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
102274         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
102275         (find_recover_state, check_subexp_matching_top, transit_state_mb):
102276         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
102277         (check_arrival, check_arrival_add_next_nodes):
102278         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
102279         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
102280         (check_node_accept_bytes, check_node_accept, extend_buffers):
102281         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
102282         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
102283         (sift_ctx_init):
102284         Likewise.
102286         * lib/regex_internal.h:
102287         (re_string_allocate, re_string_construct, re_string_reconstruct):
102288         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
102289         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
102290         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
102291         (re_string_context_at, re_string_peek_byte_case):
102292         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
102293         is defined, since we now use prototypes always.
102295         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
102296         C89 or better.  All uses removed.
102298 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102300         * config/srclist.txt: Add glibc bugs 1220-1227.
102302 2005-08-20  Jim Meyering  <jim@meyering.net>
102304         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
102305         of unused local, dfa.
102307 2005-08-20  Bruno Haible  <bruno@clisp.org>
102309         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
102311 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102313         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
102314         (re_node_set_insert_last, re_dfa_add_node):
102315         Rename local variables to avoid GCC shadowing warnings.
102317 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102319         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
102320         [defined lint]: Suppress bogus uninitialized-variable warnings.
102322         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
102323         and let the caller return REG_ESPACE if out of space.  This
102324         removes an uninitialied-variable warning with GCC 4.0.1, and also
102325         avoids taking the address of a local variable.  All callers
102326         changed.
102328 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102330         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
102331         $LIBCSRC/posix/regexec.c.
102332         Add glibc bug 1217 for regcomp.c.
102334 2005-08-19  Jim Meyering  <jim@meyering.net>
102336         * lib/regexec.c (proceed_next_node): Redo local variables to
102337         avoid GCC shadowing warnings.
102339 2005-08-18  Bruno Haible  <bruno@clisp.org>
102341         * lib/strstr.c (strstr): Fix return value in multibyte case.
102342         * lib/strcasestr.c (strcasestr): Likewise.
102344 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
102346         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
102348 2005-08-17  Jim Meyering  <jim@meyering.net>
102350         Make the %s format (seconds since the epoch) work for a negative
102351         number and when used with a zero-padded field width, e.g. %015s.
102353         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
102354         label so that it precedes the code to set `digits'.  Otherwise,
102355         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
102356         print `00-22'.  Now, it prints `-0022', as it should.
102358 2005-08-17  Bruno Haible  <bruno@clisp.org>
102360         * modules/strstr (Files): Add m4/mbrtowc.m4.
102361         (Depends-on): Add mbuiter.
102363 2005-08-17  Bruno Haible  <bruno@clisp.org>
102365         * modules/strcasestr: New file.
102366         * MODULES.html.sh (String handling, based on ANSI C 89): Add
102367         strcasestr.
102369 2005-08-17  Bruno Haible  <bruno@clisp.org>
102371         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
102373 2005-08-17  Bruno Haible  <bruno@clisp.org>
102375         * modules/mbuiter: New file.
102376         * MODULES.html.sh (Extended multibyte and wide character utilities):
102377         Add mbuiter.
102379 2005-08-17  Bruno Haible  <bruno@clisp.org>
102381         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
102382         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
102384 2005-08-17  Bruno Haible  <bruno@clisp.org>
102386         * m4/strcasestr.m4: New file.
102388 2005-08-17  Bruno Haible  <bruno@clisp.org>
102390         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
102391         * lib/strstr.c: Completely rewritten, with multibyte locale support.
102393 2005-08-17  Bruno Haible  <bruno@clisp.org>
102395         * lib/strcasestr.h: New file.
102396         * lib/strcasestr.c: New file.
102398 2005-08-17  Bruno Haible  <bruno@clisp.org>
102400         * lib/strcasecmp.c: Use mbuiter.h.
102402 2005-08-17  Bruno Haible  <bruno@clisp.org>
102404         * lib/mbuiter.h: New file.
102406 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
102408         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
102409         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
102410         and gl_GETOPT are both invoked via different paths (as happens
102411         with GNU tar CVS because it uses both argp and getopt), the former
102412         wins.
102414 2005-08-16  Bruno Haible  <bruno@clisp.org>
102416         * modules/tls: New file.
102417         * MODULES.html.sh (Multithreading): Add tls.
102419 2005-08-16  Bruno Haible  <bruno@clisp.org>
102421         * modules/strnlen1: New file.
102422         * MODULES.html.sh (String handling): Add strnlen1.
102424 2005-08-16  Bruno Haible  <bruno@clisp.org>
102426         * modules/strcase (Files): Add m4/mbrtowc.m4.
102427         (Depends-on): Add strnlen1, mbchar.
102429 2005-08-16  Bruno Haible  <bruno@clisp.org>
102431         * modules/mbiter: New file.
102432         * MODULES.html.sh (Extended multibyte and wide character utilities):
102433         Add mbiter.
102435 2005-08-16  Bruno Haible  <bruno@clisp.org>
102437         * modules/mbfile: New file.
102438         * MODULES.html.sh (Extended multibyte and wide character utilities):
102439         Add mbfile.
102441 2005-08-16  Bruno Haible  <bruno@clisp.org>
102443         * modules/mbchar: New file.
102444         * MODULES.html.sh (Extended multibyte and wide character utilities):
102445         New section.
102447 2005-08-16  Bruno Haible  <bruno@clisp.org>
102449         * m4/tls.m4: New file, from GNU gettext.
102451 2005-08-16  Bruno Haible  <bruno@clisp.org>
102453         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
102454         always.
102455         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
102457 2005-08-16  Bruno Haible  <bruno@clisp.org>
102459         * m4/mbiter.m4: New file.
102461 2005-08-16  Bruno Haible  <bruno@clisp.org>
102463         * m4/mbfile.m4: New file.
102465 2005-08-16  Bruno Haible  <bruno@clisp.org>
102467         * m4/mbchar.m4: New file.
102469 2005-08-16  Bruno Haible  <bruno@clisp.org>
102471         * lib/tls.h: New file, from GNU gettext.
102472         * lib/tls.c: New file, from GNU gettext.
102474 2005-08-16  Bruno Haible  <bruno@clisp.org>
102476         * lib/strnlen1.h: New file.
102477         * lib/strnlen1.c: New file.
102479 2005-08-16  Bruno Haible  <bruno@clisp.org>
102481         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
102482         (mbi_init): Update.
102483         (mbi_avail, mbi_advance): Let the iteration end before the terminating
102484         NUL byte, not after it.
102486 2005-08-16  Bruno Haible  <bruno@clisp.org>
102488         * lib/strcase.h (strcasecmp): Add note in comments.
102489         * lib/strncasecmp.c: Use code from strcasecmp.c.
102490         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
102491         (strcasecmp): Work correctly in multibyte locales.
102493 2005-08-16  Bruno Haible  <bruno@clisp.org>
102495         * lib/mbiter.h: New file.
102497 2005-08-16  Bruno Haible  <bruno@clisp.org>
102499         * lib/mbfile.h: New file.
102501 2005-08-16  Bruno Haible  <bruno@clisp.org>
102503         * lib/mbchar.h: New file.
102504         * lib/mbchar.c: New file.
102506 2005-08-16  Bruno Haible  <bruno@clisp.org>
102508         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
102509         the valid ones. Makes the comparison operations transitive:
102510         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
102511         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
102513 2005-08-15  Simon Josefsson  <jas@extundo.com>
102515         * modules/ssize_t (License): Change to 'unlimited'.
102517         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
102519 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
102521         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
102522         Add comments for each pending glibc patch.
102524 2005-08-15  Bruno Haible  <bruno@clisp.org>
102526         * lib/regex.h (__restrict_arr): Don't define to __restrict if
102527         __cplusplus is defined.
102529 2005-08-14  Jim Meyering  <jim@meyering.net>
102531         Sync from coreutils.
102533         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
102534         Use the hash-table-based cycle-detection code not just when
102535         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
102536         Reported by James Youngman in
102537         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
102538         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
102539         FTS_TIGHT_CYCLE_CHECK.
102540         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
102541         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
102542         once again.
102543         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
102544         * lib/fts.c (fd_safer): Remove decl.
102545         Include fcntl--.h rather than unistd-safer.h
102546         (fts_safe_changedir): Don't call fd_safer; no longer needed
102547         now that we include fcntl--.h.
102549 2005-08-12  Simon Josefsson  <jas@extundo.com>
102551         * modules/getndelim2: Use ssize_t module.
102552         * modules/getnline: Likewise.
102553         * modules/safe-read: Likewise.
102554         * modules/xreadlink: Likewise.
102556         * modules/ssize_t: New file.
102558 2005-08-12  Simon Josefsson  <jas@extundo.com>
102560         * m4/readline.m4: Look for termcap, curses or ncurses if required.
102562 2005-08-12  Simon Josefsson  <jas@extundo.com>
102564         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102565         ssize_t.
102567 2005-08-12  Simon Josefsson  <jas@extundo.com>
102569         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
102570         readline, getdelim and check_version.
102571         (Support for systems lacking ISO C 99: Sizes of integer types):
102572         Add size_max.
102574 2005-08-12  Bruno Haible  <bruno@clisp.org>
102576         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
102578 2005-08-11  Simon Josefsson  <jas@extundo.com>
102580         * modules/readline: New file.
102582         * modules/strnlen (Files): Add strnlen.h.
102584 2005-08-11  Simon Josefsson  <jas@extundo.com>
102586         * m4/readline.m4: New file.
102588 2005-08-11  Simon Josefsson  <jas@extundo.com>
102590         * lib/readline.h, readline.c: New file.
102592 2005-08-11  Simon Josefsson  <jas@extundo.com>
102594         * doc/gnulib.texi (Initial import, Finishing touches): Mention
102595         gl_AVOID.
102597 2005-08-11  Bruno Haible  <bruno@clisp.org>
102599         * lib/strnlen.h (strnlen): Change parameter name to match comment.
102601 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
102603         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
102605 2005-08-10  Simon Josefsson  <jas@extundo.com>
102607         * tests/test-iconvme.c: New file.
102609 2005-08-10  Simon Josefsson  <jas@extundo.com>
102611         * m4/strnlen.m4: New file.
102613         * m4/strndup.m4: Don't check for strnlen declaration, done in
102614         strnlen.m4.
102616 2005-08-10  Simon Josefsson  <jas@extundo.com>
102618         * lib/strndup.c: Use strnlen.h.
102620         * lib/strnlen.h: New file.
102622 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
102624         * README: Typos.
102626 2005-08-02  Simon Josefsson  <jas@extundo.com>
102628         * modules/readline: New file.
102630 2005-08-02  Simon Josefsson  <jas@extundo.com>
102632         * modules/getdelim: New file.
102634         * modules/getline: Rewrite, don't use getndelim2.
102636 2005-08-02  Simon Josefsson  <jas@extundo.com>
102638         * m4/getline.m4: Separate out getdelim stuff into separate module.
102640         * m4/getdelim.m4: New file.
102642 2005-08-02  Simon Josefsson  <jas@extundo.com>
102644         * lib/getline.h, getline.c: Rewrite.
102646         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
102648 2005-07-31  Bruno Haible  <bruno@clisp.org>
102650         * lib/lock.h (gl_lock_initializer): New macro.
102651         (gl_lock_define_initialized): Use it.
102652         (gl_rwlock_initializer): New macro.
102653         (gl_rwlock_define_initialized): Use it.
102654         (gl_recursive_lock_initializer): New macro.
102655         (gl_recursive_lock_define_initialized): Use it.
102657 2005-07-30  Karl Berry  <karl@gnu.org>
102659         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
102660         Report from Ben Pfaff, regarding getopt.
102662 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
102664         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
102665         normal way.
102666         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
102667         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
102668         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
102669         (gl_GETOPT): Use the new macros.  Most of the implementation
102670         is moved to the new macros.  This is for programs like Emacs
102671         that don't want all the functionality of gl_GETOPT.
102673 2005-07-26  Bruno Haible  <bruno@clisp.org>
102675         * m4/lock.m4: Update from GNU gettext.
102677 2005-07-26  Bruno Haible  <bruno@clisp.org>
102679         * lib/lock.h: Update from GNU gettext.
102680         * lib/lock.c: Update from GNU gettext.
102682 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
102684         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
102685         obsolescent AC_TRY_RUN.  Include the default includes files, for
102686         'exit'.
102688 2005-07-24  Bruno Haible  <bruno@clisp.org>
102690         * modules/visibility: New file.
102691         * MODULES.html.sh (Misc): Add visibility.
102693 2005-07-24  Bruno Haible  <bruno@clisp.org>
102695         * m4/visibility.m4: New file.
102697 2005-07-24  Bruno Haible  <bruno@clisp.org>
102699         * doc/visibility.texi: New file.
102701 2005-07-22  Bruno Haible  <bruno@clisp.org>
102703         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
102704         $(ALLOCA_H), redundant through BUILT_SOURCES.
102705         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
102706         redundant through BUILT_SOURCES.
102707         * modules/byteswap (Makefile.am): Remove explicit dependency on
102708         $(BYTESWAP_H), redundant through BUILT_SOURCES.
102709         * modules/fnmatch (Makefile.am): Remove explicit dependency on
102710         $(FNMATCH_H), redundant through BUILT_SOURCES.
102711         * modules/getopt (Makefile.am): Remove explicit dependency on
102712         $(GETOPT_H), redundant through BUILT_SOURCES.
102713         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
102714         redundant through BUILT_SOURCES.
102715         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
102716         redundant through BUILT_SOURCES.
102717         * modules/stdbool (Makefile.am): Remove explicit dependency on
102718         $(STDBOOL_H), redundant through BUILT_SOURCES.
102719         * modules/stdint (Makefile.am): Remove explicit dependency on
102720         $(STDINT_H), redundant through BUILT_SOURCES.
102721         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
102722         Remove explicit dependency on $(SYSEXITS_H).
102723         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
102725 2005-07-18  Simon Josefsson  <jas@extundo.com>
102727         * lib/check-version.c (check_version): Accept identical versions too.
102729 2005-07-18  Bruno Haible  <bruno@clisp.org>
102731         * modules/lock: New file.
102732         * MODULES.html.sh (Multithreading): New section.
102734 2005-07-18  Bruno Haible  <bruno@clisp.org>
102736         * m4/lock.m4: New file, from GNU gettext.
102738 2005-07-18  Bruno Haible  <bruno@clisp.org>
102740         * lib/lock.h: New file, from GNU gettext.
102741         * lib/lock.c: New file, from GNU gettext.
102743 2005-07-18  Bruno Haible  <bruno@clisp.org>
102745         * lib/lock.h (gl_once_t): New type.
102746         (gl_once_define, gl_once): New macros.
102747         * lib/lock.c (fresh_once): New variable.
102748         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
102749         functions.
102751 2005-07-16  Simon Josefsson  <jas@extundo.com>
102753         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
102754         workaround, suggested by Bruno.
102756 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
102758         * modules/xalloc (Depends-on): Add xalloc-die.
102759         * modules/xvasprintf (Depends-on): Add xalloc-die.
102761 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
102763         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
102764         with a minor change.
102766 2005-07-15  Bruno Haible  <bruno@clisp.org>
102768         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
102769         When using lib/poll.c, define poll as rpl_poll.
102771 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
102773         * modules/argp (Depends-on): Remove unlocked-io.
102775 2005-07-14  Derek Price  <derek@ximbiot.com>
102777         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
102778         for glob symlink bug.
102780 2005-07-14  Bruno Haible  <bruno@clisp.org>
102782         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
102783         Instead, test for *_unlocked function declarations directly.
102785 2005-07-11  Simon Josefsson  <jas@extundo.com>
102787         * modules/size_max: New file.
102789         * modules/xsize: Depend on size_max module for size_max.m4.
102791 2005-07-11  Simon Josefsson  <jas@extundo.com>
102793         * lib/size_max.h: New file.
102795 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
102797         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
102798         copyright symbol and the year.
102799         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
102800         (version_etc_va): Use parameterized copyright notice.
102801         Reword to conform to the current GNU coding standards.
102803 2005-07-11  Karl Berry  <karl@gnu.org>
102805         * doc/gnulib.texi (Quoting): new node.
102806         (Initial import): more info, from Patrice.
102808 2005-07-11  Bruno Haible  <bruno@clisp.org>
102810         * gnulib-tool (func_usage): Document option --avoid.
102811         (Command line options): Handle --avoid.
102812         (func_acceptable): New function.
102813         (func_modules_transitive_closure): Use it.
102815 2005-07-11  Bruno Haible  <bruno@clisp.org>
102817         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
102818         Reported by Jim Meyering.
102820 2005-07-10  Bruno Haible  <bruno@clisp.org>
102822         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
102823         Needed when size_t is smaller than 'unsigned int'.
102824         Reported by Paul Eggert.
102826 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102828         * modules/argp (Depends-on): Add unlocked-io
102830 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102832         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
102833         block of defines.
102835 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
102837         * config/srclist.txt: Comment out regcomp.c, since we have a porting
102838         fix now.
102840 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
102841         and Paul Eggert  <eggert@cs.ucla.edu>
102843         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
102844         in wint_t, not wchar_t.  Remove now-unnecessary cast.
102846 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102848         * modules/regex (Files): Add lib/regex_internal.c,
102849         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
102850         (Depends-on): Add extensions.
102851         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
102853 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102855         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
102856         pathconf.
102857         * m4/same.m4 (gl_SAME): Likewise.
102858         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
102860         * m4/regex.m4: Adjust to new libc regex implementation.
102861         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
102862         all the .c and .h parts of (the new) regex.
102863         Quote the m4 stuff better.
102864         Check for RE_ICASE bug of old gnulib.
102865         Check for REG_STARTEND of recent libc.
102866         Rename local variables from jm_* to gl_*.
102867         Quote operand of "test -f".
102868         Say "recent enough" version of libc, not "version 2".
102869         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
102870         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
102871         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
102872         Remove check for btowc, isascii.
102873         Require AM_LANGINFO_CODESET.
102875 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102877         * lib/regex.c, regex.h: Sync from libc.
102878         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
102879         * lib/regexec.c:
102880         New files, synced from libc, except that regex_internal.h
102881         currently has a small porting fix.
102883 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102885         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
102886         regex_internal.c, regexec.c.
102887         Add regex_internal.h too, but as a comment, since the libc version
102888         is currently broken in gnulib mode.
102890 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
102892         Support programs like Emacs that use gnulib but not gettext.
102893         * MODULES.html.sh (Internationalization functions): Add gettext-h.
102894         * modules/gettext-h: New file.
102895         * modules/gettext (Files): Remove lib/gettext.h.
102896         (Depends-on): Add gettext-h.
102897         (Makefile.am): Remove lib_SOURCES.
102898         * modules/argmatch, modules/c-stack, modules/closeout:
102899         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
102900         * modules/execute, modules/file-type, modules/getaddrinfo:
102901         * modules/getopt, modules/human, modules/javacomp:
102902         * modules/javaexec, modules/mkdir-p, modules/obstack:
102903         * modules/openat, modules/pagealign_alloc, modules/pipe:
102904         * modules/quotearg, modules/regex, modules/rpmatch:
102905         * modules/unicodeio, modules/userspec, modules/version-etc:
102906         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
102907         * modules/xsetenv:
102908         Depend on gettext-h, not gettext.
102910 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
102912         * gnulib-tool (func_import): Add support for 'public domain' license.
102913         * modules/alloca, modules/atexit, modules/memmove:
102914         Now public domain, not GPL.
102915         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
102916         * modules/realloc, modules/strerror, modules/strtod:
102917         Now LGPL, not GPL.
102919 2005-07-05  Bruno Haible  <bruno@clisp.org>
102921         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
102922         autoconf CVS. Needed for mingw.
102924 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102926         Remove the dependency of the strftime module on the tzset module.
102927         * modules/strftime (Depends-on): Remove dependency on tzset.
102929 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102931         Remove the dependency of the strftime module on the tzset module.
102932         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
102933         gl_FUNC_TZSET_CLOBBER.
102935 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102937         Remove the dependency of the strftime module on the tzset module.
102938         * lib/strftime.c (my_strftime)
102939         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
102940         Copy the input structure, to work around some of the bug with
102941         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
102942         Solaris releases, you should also use the tzset module, but we won't
102943         require it as a dependency any more since we don't want LGPLed code
102944         to depend on GPLed code.
102946 2005-07-02  Jim Meyering  <jim@meyering.net>
102948         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
102949         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
102950         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
102951         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
102953 2005-07-02  Jim Meyering  <jim@meyering.net>
102955         * lib/backupfile.c (backup_args): Change a `0' to NULL.
102957 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
102959         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
102960         declares only 'struct timespec;' (!).
102962 2005-07-01  Jim Meyering  <jim@meyering.net>
102964         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
102965         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
102966         * lib/save-cwd.c, tempname.c:
102967         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
102968         and don't include <sys/file.h>).
102970 2005-06-29  Jim Meyering  <jim@meyering.net>
102972         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
102973         type name.  Use the variable name instead.
102974         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
102975         Likewise.
102977 2005-06-28  Simon Josefsson  <jas@extundo.com>
102979         * modules/check-version (Files): Add check-version.m4.
102981 2005-06-28  Simon Josefsson  <jas@extundo.com>
102983         * m4/check-version.m4: New file, suggested by Jim Meyering
102984         <jim@meyering.net>.
102986 2005-06-28  Simon Josefsson  <jas@extundo.com>
102988         * lib/check-version.h, lib/check-version.c: New files.
102990 2005-06-28  Simon Josefsson  <jas@extundo.com>
102992         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
102993         collision with global variable.  Better indentation.  Don't
102994         increment buffer pointer beyond buffer end.  Based on comments
102995         from Paul Eggert <eggert@cs.ucla.edu>.
102997         * lib/base64.h: Indent.
102999 2005-06-28  Simon Josefsson  <jas@extundo.com>
103001         * doc/gnulib.texi (Library version handling): New section.
103003 2005-06-28  Jim Meyering  <jim@meyering.net>
103005         * check-module (find_included_lib_files): Hard-code another
103006         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
103007         but modules/fts-lgpl (correctly) does not list those files.
103009         * modules/canonicalize (Files): Add lib/pathmax.h.
103011 2005-06-25  Simon Josefsson  <jas@extundo.com>
103013         * modules/check-version: New file.
103015 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
103017         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
103018         initializer of struct addrinfo, as an indication that we don't
103019         care how many members the structure has.
103021 2005-06-24  Derek Price  <derek@ximbiot.com>
103022         and Bruno Haible  <bruno@clisp.org>
103024         Remove stat module & update lstat.
103025         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
103026         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
103027         * m4/stat.m4: Remove this file.
103029 2005-06-24  Derek Price  <derek@ximbiot.com>
103030         and Bruno Haible  <bruno@clisp.org>
103032         Remove stat module & update lstat.
103033         * lib/stat.c: Remove this file...
103034         (slash_aware_lstat): ...moving this content and its support...
103035         * lib/lstat.c (rpl_lstat): ...into here.
103036         * lib/lstat.h: New file.
103038 2005-06-24  Derek Price  <derek@ximbiot.com>
103039         and Bruno Haible  <bruno@clisp.org>
103041         Remove stat module & update lstat.
103042         * config/srclist.txt (libc sources): Remove stat.
103044 2005-06-24  Derek Price  <derek@ximbiot.com>
103045         and Bruno Haible  <bruno@clisp.org>
103047         Remove stat module & update lstat.
103048         * MODULES.html.sh (stat): Remove.
103049         * MODULES.html: Regenerated.
103050         * modules/lstat (Description): Correct function name.
103051         (Files): Add "lstat.h".
103052         (Depends-on): Remove stat, add xalloc, stat-macros.
103053         * modules/stat: Remove this file.
103054         (Include): Add "lstat.h", remove <sys/stat.h>.
103056 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103058         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
103059         (ranged_convert): Don't save conversion in a temporary struct.
103060         This causes a warning with GCC 4.0.0, and anyway in the typical
103061         case it's not worth the extra 100 bytes or so of code.
103062         (ranged_convert, __mktime_internal): When calling a function via a
103063         pointer P, use P () rather than (*P) (), as we now assume C89 or
103064         better.
103066 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103068         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
103069         "who -r" failed to give output.  Problem reported by Tim Waugh.
103071         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
103072         (xcalloc): Use it to avoid needless tests.
103073         Problem reported by Jim Meyering.
103075 2005-06-20  Derek Price  <derek@ximbiot.com>
103077         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
103078         unnecessary for Autoconfs > 2.59c.
103080 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103082         * lib/argp.h (__option_is_short): Check upper limit of
103083         __key. Isprint() requires its argument to have the value
103084         of an unsigned char or EOF.
103086 2005-06-16  Jim Meyering  <jim@meyering.net>
103088         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
103089         when either N or S is zero.
103091 2005-06-16  Derek Price  <derek@ximbiot.com>
103093         * m4/bison.m4: Declare YACC & YFLAGS precious.
103095 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
103097         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
103098         multibyte string or pattern, fall back on unibyte matching.
103099         Problem reported by James Youngman.
103101 2005-06-08  Bruno Haible  <bruno@clisp.org>
103103         * modules/csharpcomp: New file.
103104         * MODULES.html.sh (C#): Add csharpcomp.
103106 2005-06-08  Bruno Haible  <bruno@clisp.org>
103108         * m4/csharpcomp.m4: New file, from GNU gettext.
103110 2005-06-08  Bruno Haible  <bruno@clisp.org>
103112         * lib/csharpcomp.h: New file, from GNU gettext.
103113         * lib/csharpcomp.c: New file, from GNU gettext.
103114         * lib/csharpcomp.sh.in: New file, from GNU gettext.
103116 2005-06-08  Bruno Haible  <bruno@clisp.org>
103118         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
103119         warning on mingw.
103121 2005-06-07  Derek Price  <derek@ximbiot.com>
103123         Sync from CVS.
103124         * lib/glob_.h: Indent nested #ifdef.
103126 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103128         Sync from coreutils.
103129         Use "file name" when talking about file names, instead of "filename"
103130         or "path", as per the GNU coding standards.
103131         * lib/mkdir-p.c: Renamed from makepath.c.
103132         (make_dir_parents): Renamed from make_path.  All callers changed.
103133         * lib/mkdir-p.h: Likewise.  All includers changed.
103134         * lib/filenamecat.c: Renamed from path-concat.c.
103135         (file_name_concat): Renamed from path_concat.  All callers changed.
103136         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
103137         * lib/filenamecat.h: Likewise.  All includers changed.
103138         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
103139         in comments or local variable names.
103140         * lib/basename.c: Likewise.
103141         * lib/canonicalize.c, canonicalize.h: Likewise.
103142         * lib/dirname.c, dirname.h: Likewise.
103143         * lib/euidaccess.c: Likewise.
103144         * lib/exclude.c: Likewise
103145         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
103146         * lib/fsusage.c, fsuage.h: Likewise.
103147         * lib/fts.c, fts_.h: Likewise.
103148         * lib/getcwd.c: Likewise.
103149         * lib/getloadavg.c: Likewise.
103150         * lib/mkstemp.c: Likewise.
103151         * lib/mountlist.c, mountlist.h: Likewise.
103152         * lib/openat.c, openat.h: Likewise.
103153         * lib/readlink-stub.c: Likewise.
103154         * lib/readutmp.c, readutmp.h: Likewise.
103155         * lib/rename.c: Likewise.
103156         * lib/rmdir.c: Likewise.
103157         * lib/same.c: Likewise.
103158         * lib/savedir.c: Likewise.
103159         * lib/stripslash.c: Likewise.
103160         * lib/tempname.c: Likewise.
103161         * lib/xreadlink.c: Likewise.
103162         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
103163         All uses changed.
103164         * lib/exclude.h: Likewise.
103166         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
103167         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103168         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
103169         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103170         * lib/pathmax.h: Include <limits.h> unconditionally, since other
103171         files have been getting away with it for years (MORE/BSD 4.3
103172         is extinct now).
103173         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
103174         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103176         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
103177         Define to 256, not 255, as per modern POSIX.
103179 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103181         Sync from coreutils.
103182         Use "file name" when talking about file names, instead of "filename"
103183         or "path", as per the GNU coding standards.
103184         * MODULES.html.sh: mkdir-p renamed from makepath.
103185         filenamecat renamed from path-concat.
103186         * modules/filenamecat: Renamed from modules/path-concat.
103187         (Files): filenamecat.h and filenamecat.c renamed from
103188         path-concat.h and path-concat.c.
103189         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
103190         (Include): filenamecat.h, not path-concat.h.
103191         * modules/mkdir-p: Renamed from modules/makepath.
103192         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
103193         makepath.c.
103194         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
103195         (Include): mkdir-p.h, not makepath.h.
103197 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103199         Sync from coreutils.
103200         * m4/mkdir-p.m4: Renamed from makepath.m4.
103201         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
103202         Rename files from makepath.c to mkdir-p.c, and from
103203         makepath.h to mkdir-p.h.
103204         * m4/filenamecat.m4: Renamed from path-concat.m4.
103205         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
103206         Rename files from path-concat.c to filenamecat.c,
103207         and from path-concat.h to filenamecat.h.
103208         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
103209         "file name" in local variables or comments.
103210         * m4/rename.m4: Likewise.
103212 2005-06-01  Bruno Haible  <bruno@clisp.org>
103214         * modules/csharpexec: New file.
103215         * MODULES.html.sh (C#): New section.
103217 2005-06-01  Bruno Haible  <bruno@clisp.org>
103219         * m4/csharp.m4: New file, from GNU gettext.
103220         * m4/csharpexec.m4: New file, from GNU gettext.
103222 2005-06-01  Bruno Haible  <bruno@clisp.org>
103224         * lib/csharpexec.h: New file, from GNU gettext.
103225         * lib/csharpexec.c: New file, from GNU gettext.
103226         * lib/csharpexec.sh.in: New file, from GNU gettext.
103228 2005-05-31  Derek Price  <derek@ximbiot.com>
103229             Paul Eggert  <eggert@cs.ucla.edu>
103231         Sync from cvs.
103232         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
103234 2005-05-31  Derek Price  <derek@ximbiot.com>
103235             Paul Eggert  <eggert@cs.ucla.edu>
103237         Sync from cvs.
103238         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
103240 2005-05-29  Derek Price  <derek@ximbiot.com>
103242         * config/srclist.txt (glob_.h, glob.c): Add these files.
103244 2005-05-29  Derek Price  <derek@ximbiot.com>
103246         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
103247         * modules/glob: New file.
103248         * modules/getlogin_r: Add link to POSIX spec in description.
103250 2005-05-29  Derek Price  <derek@ximbiot.com>
103251             Paul Eggert  <eggert@cs.ucla.edu>
103253         * m4/glob.m4: New file.
103255 2005-05-29  Derek Price  <derek@ximbiot.com>
103256             Paul Eggert  <eggert@cs.ucla.edu>
103258         * lib/glob_.h, lib/glob.c: New files.
103260 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103262         * modules/fts (Files): Remove m4/inttypes-pri.m4.
103263         * modules/fts-lgpl (Depends-on): Remove gettext.
103265 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103267         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
103268         and don't require gt_INTTYPES_PRI.
103270 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103272         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
103274         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
103275         the configuration hassle isn't worth it.
103276         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
103277         (LONGEST_MODIFIER, PRIuMAX): Remove.
103279 2005-05-27  Bruno Haible  <bruno@clisp.org>
103281         * lib/getlogin_r.h: Remove second include of <stddef.h>.
103283 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
103285         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
103286         _POSIX_PTHREAD_SEMANTICS for Solaris.
103288 2005-05-25  Derek Price  <derek@ximbiot.com>
103290         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
103292 2005-05-25  Derek Price  <derek@ximbiot.com>
103293             Paul Eggert  <eggert@cs.ucla.edu>
103295         * modules/getlogin_r, m4/getlogin_r.m4: New files.
103296         * lib/getlogin_r.c, getlogin_r.h: New files.
103298 2005-05-25  Bruno Haible  <bruno@clisp.org>
103299             Derek Price  <derek@ximbiot.com>
103301         * lib/getlogin_r.h: Simplify API documentation.
103303 2005-05-23  Derek Price  <derek@ximbiot.com>
103305         * modules/minmax (Files): Add m4/minmax.m4.
103306         (configure.ac): Add gl_MINMAX.
103308 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
103310         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
103311         so that unistd-safer.h (GPL'ed code) need not be included.
103313 2005-05-22  Bruno Haible  <bruno@clisp.org>
103315         * m4/minmax.m4: New file.
103316         Based on a patch by Derek Price <derek@ximbiot.com>.
103318 2005-05-22  Bruno Haible  <bruno@clisp.org>
103320         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
103321         (INT64_MIN): Fix definition.
103322         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
103324         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
103325         NEED_SIGNED_INT_TYPES.
103327         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
103328         HAVE_SYSTEM_INTTYPES.
103330 2005-05-22  Bruno Haible  <bruno@clisp.org>
103332         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
103333         Also include <sys/param.h> if it defines MIN, MAX.
103334         Based on a patch by Derek Price <derek@ximbiot.com>.
103336 2005-05-21  Jim Meyering  <jim@meyering.net>
103338         * modules/fts (Files): Add m4/inttypes-pri.m4.
103339         (Depends-on): Add lstat and remove gettext.  Alphabetize.
103341 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103343         New fts module.
103344         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
103345         (setup_dir, free_dir): New functions.
103346         (enter_dir, leave_dir): Define trivial
103347         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
103348         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
103349         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
103350         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
103351         Move to fts-cycle.c.
103352         (fts_open): Use setup_dir.
103353         (fts_close): Use free_dir.
103354         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
103355         This adds a label and some gotos, but the alternatives were messier.
103356         Check for memory allocation failure when entering a dir.
103357         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
103358         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
103359         (FTS): New member fts_cycle, that is a union that contains the
103360         old active_dir_ht and cycle_state.  All uses changed to mention
103361         fts_cycle.ht and fts_cycle.state.
103362         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
103363         fts.c, with the following changes:
103364         (setup_dir, free_dir): New functions.
103365         (enter_dir): Now returns bool.  Return true if successful, false
103366         if memory exhausted.  All callers changed.
103367         Do not bother partly cleaning up on
103368         memory allocation failure; that is free_dir's job.
103369         However, free ad if hash_insert fails, to avoid memory leak.
103370         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
103371         fts->fts_options to see which union member to use.
103373 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103375         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
103376         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
103378 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103380         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
103382 2005-05-20  Jim Meyering  <jim@meyering.net>
103384         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
103385         Now a macro, to pacify GCC.
103387 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
103389         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
103390         of -1.
103392 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
103394         * lib/chown.c (rpl_chown): Return -1 on failure.
103396 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
103398         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
103399         Don't check for stddef.h.
103400         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
103401         don't use its results.
103402         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
103403         since we include them unconditionally.  Don't require
103404         AM_STDBOOL_H, since stdbool is a prerequisite.
103405         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
103406         since we assume C89 or better.
103407         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
103408         as we don't use their results.
103409         Don't check for fchdir, memmove, memset, strrchr, as we use
103410         them unconditionally.
103411         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
103412         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
103414 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
103416         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
103417         Include <stddef.h> unconditionally, since we assume C89 now.
103418         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
103419         * lib/fts.c: Include fts_.h first, to check interface.
103420         Do not include intprops.h; no longer needed.
103421         Include cycle-check.h and hash.h, since fts_.h no longer does.
103422         Remove unnecessary casts of closedir to void.
103423         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
103424         decide whether to decrement nlinks.
103425         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
103426         (FTS): Use struct hash_table * instead of Hash_table, so that
103427         we no longer need to include hash.h here.
103429 2005-05-18  Jim Meyering  <jim@meyering.net>
103431         * modules/dirfd (License): Change to LGPL.  Most of the code
103432         is already in the public domain.
103434 2005-05-18  Jim Meyering  <jim@meyering.net>
103436         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
103437         Reported by Yoann Vandoorselaere.
103439 2005-05-17  Jim Meyering  <jim@meyering.net>
103441         * m4/fts.m4: New file, from coreutils.
103443 2005-05-17  Jim Meyering  <jim@meyering.net>
103445         * lib/fts.c, lib/fts_.h: New files, from coreutils.
103447 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103449         Sync from coreutils.
103450         * m4/unlinkdir.m4: New file.
103452 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103454         Sync from coreutils.
103455         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
103456         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
103457         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
103458         White space changes only.
103459         * lib/makepath.c (make_path): Port to hosts where leading "//" is
103460         special.
103461         * lib/yesno.c: Include getline.h, not ctype.h.
103462         (yesno): Don't remove leading white space; POSIX doesn't allow it.
103463         Use getline to remove arbitrary restriction on response length.
103465 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103467         * config/srclist-update: Spell out "Street" in FSF postal
103468         mail address; this is the style the FSF seems to prefer.
103470         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
103471         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
103472         this updates FSF postal mail address.
103474         Sync from coreutils.
103475         * modules/unlinkdir: New file.
103476         * modules/yesno (Depends-on): Add getline.
103477         * MODULES.html.sh (File system functions): Add unlinkdir.
103479 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
103481         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
103482         lib/strsep.h:
103483         Change the initial comment to refer to GPL, not LGPL.
103484         gnulib-tool will change it to LGPL as needed.
103486         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
103487         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
103488         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
103489         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
103490         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
103491         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
103492         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
103493         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
103494         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
103495         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
103496         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
103497         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
103498         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
103499         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
103500         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
103501         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
103502         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
103503         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
103504         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
103505         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
103506         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
103507         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
103508         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
103509         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
103510         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
103511         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
103512         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
103513         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
103514         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
103515         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
103516         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
103517         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
103518         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
103519         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
103520         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
103521         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
103522         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
103523         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
103524         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
103525         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
103526         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
103527         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
103528         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
103529         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
103530         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
103531         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
103532         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
103533         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
103534         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
103535         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
103536         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
103537         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
103538         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
103539         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
103540         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
103541         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
103542         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
103543         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
103544         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
103545         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
103546         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
103547         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
103548         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
103549         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
103550         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
103551         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
103552         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
103553         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
103554         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
103555         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
103556         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
103557         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
103558         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
103559         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
103560         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
103561         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
103562         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
103563         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
103564         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
103565         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
103566         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
103567         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
103568         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
103569         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
103570         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
103571         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
103572         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
103573         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
103574         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
103575         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
103576         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
103577         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
103578         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
103579         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
103580         lib/yesno.c, lib/yesno.h:
103581         Update FSF postal mail address.
103583 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
103585         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
103586         tests/test-memmem.c, tests/test-stpncpy.c:
103587         Update FSF postal mail address.
103589 2005-05-13  Bruno Haible  <bruno@clisp.org>
103591         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
103592         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
103593         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
103594         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
103595         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
103596         Add support for 64-bit integers in the MSVC compiler.
103598 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103600         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
103602 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
103604         * gnulib-tool (func_import): Sort and uniquify recommended includes.
103606 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
103608         * doc/getdate.texi (General date syntax): Don't say that date
103609         date --iso-8601=ns generates acceptable dates; it doesn't yet.
103610         Problem reported by Nic Ferrier.
103612 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103614         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
103615         specified in ai_socktype. Fix invalid ai_protocol
103616         check. ai_protocol is usually set to 0 or depending on
103617         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
103618         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
103619         ai_socktype / ai_protocol in the returned addrinfo structure.
103621 2005-05-10  Simon Josefsson  <jas@extundo.com>
103623         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
103624         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
103626 2005-05-10  Karl Berry  <karl@gnu.org>
103628         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
103629         (from http://www.gnu.org/licenses).
103630         * doc/COPYING.LIB: also rename to COPYING.LESSER.
103631         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
103632         fdl.texi suffices.
103634 2005-05-10  Karl Berry  <karl@gnu.org>
103636         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
103637         (COPYING.DOC): remove.
103639         * config/srclist-update: new FSF address.
103641 2005-05-10  Derek Price  <derek@ximbiot.com>
103643         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
103644         possible.
103646 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103647             Bruno Haible  <bruno@clisp.org>
103649         * modules/inet_ntop: New file.
103650         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103651         inet_ntop.
103653 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103654             Bruno Haible  <bruno@clisp.org>
103656         * m4/inet_ntop.m4: New file.
103658 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103659             Bruno Haible  <bruno@clisp.org>
103661         * lib/inet_ntop.h: New file.
103662         * lib/inet_ntop.c: New file, from glibc with modifications.
103664 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
103666         * modules/time_r (License): Change to LGPL.
103667         * modules/extensions (License): Change to LGPL.  Actually,
103668         the license is more permissive than that, but currently gnulib-tool
103669         doesn't know how to handle more-permissive licenses.
103671         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
103672         Problem reported by Dave Love.
103674 2005-05-08  Jim Meyering  <jim@meyering.net>
103676         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
103677         blank.
103679 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
103681         * modules/argmatch (Depends-on): Add stdbool.
103682         * modules/backupfile (Depends-on): Likewise.
103683         * modules/chdir-long (Depends-on): Likewise.
103684         * modules/closeout (Depends-on): Likewise.
103685         * modules/cycle-check (Depends-on): Likewise.
103686         * modules/dirname (Depends-on): Likewise.
103687         * modules/fnmatch (Depends-on): Likewise.
103688         * modules/fsusage (Depends-on): Likewise.
103689         * modules/fwriteerror (Depends-on): Likewise.
103690         * modules/getcwd (Depends-on): Likewise.
103691         * modules/getloadavg (Depends-on): Likewise.
103692         * modules/hard-locale (Depends-on): Likewise.
103693         * modules/makepath (Depends-on): Likewise.
103694         * modules/mountlist (Depends-on): Likewise.
103695         * modules/nanosleep (Depends-on): Likewise.
103696         * modules/posixtm (Depends-on): Likewise.
103697         * modules/quotearg (Depends-on): Likewise.
103698         * modules/readtokens (Depends-on): Likewise.
103699         * modules/readtokens0 (Depends-on): Likewise.
103700         * modules/readutmp (Depends-on): Likewise.
103701         * modules/save-cwd (Depends-on): Likewise.
103702         * modules/strftime (Depends-on): Likewise.
103703         * modules/userspec (Depends-on): Likewise.
103704         * modules/utimecmp (Depends-on): Likewise.
103705         * modules/xgetcwd (Depends-on): Likewise.
103706         * modules/xnanosleep (Depends-on): Likewise.
103707         * modules/xstrtod (Depends-on): Likewise.
103708         * modules/yesno (Depends-on): Likewise.
103710 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
103712         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
103713         needless checks.
103715 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103717         Merge from coreutils.  Among other things,
103718         add bulletproofing for cases where stdin, stdout, or stderr are closed.
103719         * lib/fd-safer.c: New file.
103720         * lib/fcntl-safer.h, open-safer.c: Remove.
103721         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
103722         * lib/dup-safer.c: Include unistd-safer.h first.
103723         Don't include errno.h.
103724         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
103725         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
103726         * lib/file-type.c: Rely on file-type.h change.
103727         * lib/getloadavg.c: Include unistd-safer.h.
103728         (getloadavg): Use safer open.
103729         * lib/getusershell.c: Include "stdio-safer.h".
103730         (getusershell): Use safer fopen.
103731         * lib/long-options.c (long_options): Use NULL rather than 0.
103732         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
103733         'free'.
103734         * lib/modechange.c: Likewise.
103735         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
103736         (MODE_DONE): New constant.
103737         (struct mode_change): Remove 'next' member.
103738         (make_node_op_equals): New function; like the old one of the
103739         same name, except it allocates an array.
103740         (mode_compile, mode_create_from_ref): Use it.
103741         (mode_compile): Allocate result as an array, not a linked list.
103742         Parse octal string ourself, so that we catch mistakes like "+0".
103743         (mode_adjust): Arg is an array, not a linked list.
103744         * lib/modechange.c: Include stat-macros.h, xalloc.h.
103745         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
103746         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
103747         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
103748         Remove.  This is now stat-macros.h's job.
103749         (talloc): Remove.  All callers replaced by xalloc, so that
103750         our invokers don't have to worry about reporting memory failures.
103751         (make_node_op_equals): Remove.
103752         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
103753         New constants.
103754         (struct mode_change): Moved here from modechange.h.
103755         (mode_append_entry): Remove.
103756         (mode_compile): Remove MASKED_OPS arg, since it encouraged
103757         apps to have incorrect behavior.  Use simpler algorithm for head
103758         and tail.  Don't futz with umask; that's now the job of mode_adjust.
103759         Detect more invalid usages rather than having somewhat-random behavior.
103760         Don't insert an "a=" action, as that leads to incorrect behavior.
103761         (mode_compile, mode_create_from_ref): Return NULL on error instead
103762         of an enum, since now there's only one way to have an error.  All
103763         callers changed.
103764         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
103765         at the correct time.  Simplify calculation of "+u" and its ilk.
103766         Don't mishandle "+X".
103767         (mode_free): Remove "register" and localize decls.
103768         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
103769         (struct mode_change): Move to modechange.c; callers don't
103770         need to see this stuff.
103771         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
103772         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
103773         (mode_change, mode_adjust): Reflect the new signatures noted above.
103774         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
103775         that might redefine system include files.
103776         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
103777         (my_usleep): Use NULL rather than (void *) 0.
103778         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
103779         Use siginterrupt to specify that system calls should be interrupted.
103780         (rpl_nanosleep): Move initialization of suspended closer to call of
103781         my_usleep.
103782         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
103783         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
103784         (desirable_utmp_entry): New function.
103785         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
103786         using x2nrealloc, to simplify logic.
103787         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
103788         size calculation.  Do not assume utmp file is a regular file.
103789         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
103790         (READ_UTMP_CHECK_PIDS): New constant.
103791         * lib/save-cwd.c: Include unistd-safer.h.
103792         (save_cwd): Use fd_safer.
103793         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
103794         [!_LIBC] Include "stat-macros.h" instead.
103795         * lib/unistd-safer.h (fd_safer): New decl.
103797 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103799         * modules/getloadavg (Depends-on): Add unistd-safer.
103800         * modules/getusershell (Depends-on): Add stdio-safer.
103801         * modules/lstat (Depends-on): Remove xalloc.
103802         * modules/mkstemp (Depends-on): Add stat-macros.
103803         * modules/modechange (Depends-on): Remove xstrtol.
103804         Add stat-macros, xalloc.
103805         * modules/save-cwd (Depends-on): Add unistd-safer.
103806         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
103807         * modules/unistd-safer (Files): Add lib/fd-safer.c
103808         (Makefile.am): Remove lib_SOURCES.
103810         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
103811         Remove fcntl-safer; unistd-safer supersedes it.
103813 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103815         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
103816         AC_HEADER_STAT.
103817         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
103818         (gl_PREREQ_CHOWN): Remove.
103819         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
103820         it.  Don't require AC_HEADER_STAT.
103821         (gl_PREREQ_LSTAT): Remove.
103822         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
103823         Don't require AC_HEADER_STAT.
103824         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
103825         (gl_PREREQ_RMDIR): Remove.
103826         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
103827         mention stat-macros.h or AC_HEADER_STAT, since we'll make
103828         the stat-macros module a prerequisite.
103829         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
103830         * m4/filemode.m4 (gl_FILEMODE): Likewise.
103831         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
103832         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
103833         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
103834         variable names.
103835         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
103836         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
103837         variable prefixes.
103838         * m4/fcntl-safer.m4: Remove.
103839         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
103840         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
103841         Invoke gl_PREREQ_FD_SAFER.
103842         (gl_PREREQ_FD_SAFER): New macro.
103843         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
103844         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
103845         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
103846         Remove duplicate call to AC_LIBOBJ(readutmp).
103847         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
103849         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
103850         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
103852 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103854         * MODULES.html.sh (Misc): Add byteswap.
103856 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103858         * modules/getcwd (Depends-on): Add extensions.
103859         * modules/openat (Depends-on): Likewise.
103861 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103863         * modules/byteswap: New file.
103865 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103867         * m4/byteswap.m4: New file.
103869 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103871         * lib/byteswap_.h: New file.
103873 2005-04-25  Karl Berry  <karl@gnu.org>
103875         * m4/gettext.m4: Update from GNU gettext 0.14.4.
103877 2005-04-25  Albert Chin  <china@thewrittenword.com>
103879         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
103880         Toolkit C bug.
103882 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
103884         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
103885         (func_ln_if_changed): Remove forcibly for no error message
103886         in case file does not exist.
103888 2005-04-19  Simon Josefsson  <jas@extundo.com>
103890         * gnulib-tool (Options): Make --symlink mean --symbolic.
103892 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
103894         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
103896 2005-04-16  Simon Josefsson  <jas@extundo.com>
103898         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
103900 2005-04-15  Simon Josefsson  <jas@extundo.com>
103902         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
103904 2005-04-15  Simon Josefsson  <jas@extundo.com>
103906         * gnulib-tool: Rename --symlink to --symbolic.
103908 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
103910         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
103911         symbolic links to files instead of copying/moving.  Add --aux-dir,
103912         specifying directory relative --dir where auxiliary build tools
103913         are placed.
103915 2005-04-14  Bruno Haible  <bruno@clisp.org>
103917         * modules/allocsa (License): Change to LGPL.
103918         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
103920 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
103922         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
103923         that "UTC +1 second" continues to work.  Problem reported
103924         by Dmitry V. Levin.
103925         (relunit_snumber): New rule.
103926         (relunit): Use it.
103928 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
103930         * lib/getdate.y (universal_time_zone_table): New constant.
103931         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
103932         universal_time_zone_table.
103933         (lookup_zone): Prefer universal_time_zone_table to
103934         local_time_zone_table, so that "GMT" time stamps are allowed in
103935         London during the summer.  Problem reported by Ian Abbott.
103937 2005-04-12  Jim Meyering  <jim@meyering.net>
103939         * lib/human.c (humblock): Set *options even when returning due to
103940         xstrtoumax conversion failure.  Thanks to a used-uninitialized
103941         warning from gcc-4.
103943 2005-04-09  Jim Meyering  <jim@meyering.net>
103945         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
103946         -Wuninitialized: initialize tm0.tm_year.
103948 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
103950         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
103951         count, since there's no maximum.  All uses changed.
103952         Add member dsts_seen.
103953         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
103954         not being INT_MAX.
103955         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
103956         Use pc_rels_seen to decide whether a date is absolute.
103958         * lib/getdate.y (number): Don't overwrite year.
103959         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
103960         check.
103962 2005-04-02  Simon Josefsson  <jas@extundo.com>
103964         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
103965         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
103967 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
103969         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
103970         where no absolute path name can be longer than PATH_MAX.
103972 2005-03-27  Jim Meyering  <jim@meyering.net>
103974         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
103976 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
103978         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
103979         "one's complement" -> "ones' complement" in comment, as per Knuth.
103980         "value of type" -> "type or expression" in comment.
103981         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
103983 2005-03-26  Jim Meyering  <jim@meyering.net>
103985         Comment nits.
103986         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
103987         Correct typos: s/or/of/.
103989 2005-03-26  Jim Meyering  <jim@meyering.net>
103991         * modules/check-include-files: Move to ../ and rename to...
103992         * check-module: ...this.
103994 2005-03-25  Jim Meyering  <jim@meyering.net>
103996         * modules/xvasprintf (Files): Add xalloc.h.
103998 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
104000         * modules/gettext (Files): config/config.rpath ->
104001         build-aux/config.rpath
104002         * modules/iconv (Files): Likewise.
104003         Problem reported by Oskar Liljeblad.
104005 2005-03-23  Jim Meyering  <jim@meyering.net>
104007         * modules/check-include-files: New script to check for
104008         missing dependencies, multiple includes, etc.
104010         * modules/c-strtold (Depends-on): Add xalloc.
104011         * modules/c-strtod (Depends-on): Add xalloc.
104012         * modules/hash (Depends-on): Add xalloc.
104013         (Files): Remove lib/xalloc.h.
104015         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
104016         * modules/userspec (Files): Add lib/inttostr.h.
104018 2005-03-23  Jim Meyering  <jim@meyering.net>
104020         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
104022 2005-03-22  Jim Meyering  <jim@meyering.net>
104024         * modules/stat-macros: New module.
104025         * modules/canonicalize, modules/euidaccess, modules/file-type,
104026         * modules/filemode, modules/lchown, modules/makepath,
104027         * modules/rmdir, modules/stat: Depend on new stat-macros module
104028         rather than listing lib/stat-macros.h manually.
104029         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
104031 2005-03-22  Jim Meyering  <jim@meyering.net>
104033         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
104035 2005-03-22  Bruno Haible  <bruno@clisp.org>
104037         * config/srclist.txt: Replace target directory 'config' with
104038         'build-aux'.
104039         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
104040         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
104041         ../build-aux/.
104043 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
104045         * modules/chdir-long (Depends-on): Add mempcpy.
104047         * modules/acl, modules/backupfile, modules/c-strtod,
104048         modules/c-strtold, modules/canon-host, modules/canonicalize,
104049         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
104050         modules/exclude, modules/exitfail, modules/file-type,
104051         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
104052         modules/getdate, modules/getline, modules/getpagesize,
104053         modules/getpass, modules/getugroups, modules/group-member,
104054         modules/hard-locale, modules/hash, modules/human, modules/idcache,
104055         modules/inttostr, modules/long-options, modules/makepath,
104056         modules/md5, modules/memcasecmp, modules/memcoll,
104057         modules/modechange, modules/mountlist, modules/path-concat,
104058         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
104059         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
104060         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
104061         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
104062         modules/strftime, modules/strndup, modules/strverscmp,
104063         modules/timespec, modules/unlocked-io, modules/userspec,
104064         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
104065         modules/yesno:
104066         Remove lib_SOURCES line from Makefile.am section, as this is now
104067         done automatically by the corresponding Autoconf macro.
104069 2005-03-21  Jim Meyering  <jim@meyering.net>
104071         Changes imported from coreutils.
104073         * lib/cycle-check.c: Don't include xalloc.h.
104075         * lib/path-concat.c: Don't include assert.h.
104076         (path_concat): Remove assertion that would have triggered
104077         for ABASE starting with more than one slash.
104078         Reported by Andreas Schwab.
104080         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
104081         properly when ABASE is an absolute file name.
104082         Correct the description of this function.
104083         Include <assert.h>.
104084         Add an assertion and a test driver.
104085         This fixes a bug introduced on 2004-07-02.
104086         Andreas Schwab reported the resulting failure of cp --parents:
104087         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
104089 2005-03-21  Jim Meyering  <jim@meyering.net>
104091         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
104092         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
104094 2005-03-21  Jim Meyering  <jim@meyering.net>
104095         and  Paul Eggert  <eggert@cs.ucla.edu>
104097         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
104098         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
104099         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
104100         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
104101         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
104102         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
104103         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
104104         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
104105         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
104106         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
104107         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
104108         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
104109         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
104110         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
104111         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
104112         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
104113         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
104114         for these modules.
104116 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
104118         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
104119         (which shouldn't happen), generate nothing instead of returning 0
104120         immediately, so that nstrftime (NULL, ...) doesn't return 0.
104122 2005-03-16  Bruno Haible  <bruno@clisp.org>
104124         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
104125         HAVE_LONGLONG_64BIT.
104127 2005-03-16  Bruno Haible  <bruno@clisp.org>
104129         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
104130         HAVE_LONGLONG_64BIT.
104132 2005-03-16  Bruno Haible  <bruno@clisp.org>
104134         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
104135         HAVE_LONGLONG_64BIT.
104137 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
104139         * lib/strftime.c (my_strftime): Prepend space to format so that we can
104140         reliably distinguish strftime failure from empty output on POSIX
104141         hosts.
104143 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
104145         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
104146         (iconv_string): Don't guess a size-zero buffer, as that might cause
104147         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
104148         result would be 'too large', where 'too large' is (heuristically)
104149         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
104150         overflow concerns.  This will prevent some unwanted malloc failures
104151         when the inputs are very large.
104153 2005-03-15  Karl Berry  <karl@gnu.org>
104155         * config/srclist.txt (config.rpath): from gettext.
104156         * config/config.rpath: update.
104158 2005-03-15  Bruno Haible  <bruno@clisp.org>
104160         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
104161         to 'negate'.
104163         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
104164         variable.
104166         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
104167         results.
104169 2005-03-14  Simon Josefsson  <jas@extundo.com>
104171         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
104172         <fx@gnu.org>.
104174 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
104176         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
104177         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
104178         intprops.h.
104179         * lib/strtol.c: Likewise.
104181 2005-03-14  Jim Meyering  <jim@meyering.net>
104183         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
104184         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
104185         to be nonzero so that we (and caller) can detect the difference
104186         between a valid zero-length expansion and an error return, even
104187         when the underlying strftime fails before writing anything into
104188         that location.
104190 2005-03-14  Bruno Haible  <bruno@clisp.org>
104192         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
104193         Update from GNU gettext 0.14.3.
104195 2005-03-10  Jim Meyering  <jim@meyering.net>
104197         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
104199 2005-03-10  Jim Meyering  <jim@meyering.net>
104201         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
104202         so that this module works on systems without fchdir.
104204 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
104206         Factor int-properties macros into a single file, except for
104207         glibc-related files.
104208         * lib/intprops.h: New file.
104209         * lib/getloadavg.c: Include it instead of limits.h.
104210         (INT_STRLEN_BOUND): Remove.
104211         * lib/human.c: Include intprops.h.
104212         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
104213         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
104214         302/1000.
104215         * lib/inttostr.h: Include intprops.h instead of limits.h.
104216         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
104217         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
104218         for consistency with intprops.h.
104219         (time_t_is_integer, twos_complement_arithmetic): Use them.
104220         * lib/sig2str.h: Include <signal.h>, intprops.h.
104221         (INT_STRLEN_BOUND): Remove.
104222         * lib/strftime.c (TYPE_SIGNED): Remove.
104223         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
104224         * lib/strtol.c: Adjust comments to match intprops.h.
104225         * lib/userspec.c: Include intprops.h.
104226         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
104227         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
104228         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
104229         instead of rolling our own expressions.
104230         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
104232         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
104233         instead of int.
104234         (my_strftime): Do not mishandle years close to INT_MAX, by doing
104235         the right thing even if adding 1900 would overflow.  Similarly
104236         for tm_mon + 1 and tm_yday + 1.
104237         Make %Y always equivalent to %C%y, and similarly for %G and %g.
104238         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
104239         (DO_SIGNED_NUMBER): New macro.
104240         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
104242 2005-03-07  Bruno Haible  <bruno@clisp.org>
104244         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
104246 2005-03-07  Bruno Haible  <bruno@clisp.org>
104248         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
104250 2005-03-04  Derek R. Price  <derek@ximbiot.com>
104252         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
104253         (func_import): Only replace files via --import when they have actually
104254         changed.
104256 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104258         * m4/mmap-anon.m4: New file.
104259         * m4/pagealign_alloc.m4: New file.
104261 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104262             Bruno Haible  <bruno@clisp.org>
104264         * modules/pagealign_alloc: New file.
104265         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
104267 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104268             Bruno Haible  <bruno@clisp.org>
104270         * lib/pagealign_alloc.h: New file.
104271         * lib/pagealign_alloc.c: New file.
104273 2005-03-03  Bruno Haible  <bruno@clisp.org>
104275         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
104276         Use an all-permissive copyright notice, recommended by RMS.
104278 2005-03-02  Bruno Haible  <bruno@clisp.org>
104280         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
104281         of AIX, the replacement has to be done only after <string.h> is
104282         included, therefore not in config.h. stpncpy.h does the replacement,
104283         and stpncpy.c uses it.
104285 2005-03-02  Bruno Haible  <bruno@clisp.org>
104287         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
104288         stpncpy.c uses it.
104290 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104292         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
104293         The workaround isn't strictly needed for POSIX conformance, and
104294         it's too much of a pain to configure and maintain.  We'll ask
104295         people to fix their kernels instead.
104296         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
104297         (NANOSLEEP_BUG_WORKAROUND): Remove.
104298         (xnanosleep): Remove the workaround.
104300 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104302         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
104303         Reported by Derek Price.
104304         (Include): Add "timespec.h".
104306         * modules/xnanosleep (Depends-on): Remove gethrxtime.
104308 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104310         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
104311         to detect nanosleep bug.
104313 2005-03-01  Bruno Haible  <bruno@clisp.org>
104315         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
104317 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
104319         * modules/gethrxtime: New file.
104320         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
104321         (Depends-on): Add gethrxtime.
104322         (configure.ac): Add gl_XNANOSLEEP.
104323         (Makefile.am): Remove lib_SOURCES line.
104325 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104327         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
104328         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
104330 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104332         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
104333         * lib/timespec.h (gettime): Return void, since it always
104334         succeeds now.  All uses changed.
104335         * lib/gettime.c (gettime): Likewise.
104336         [HAVE_NANOTIME]: Prefer nanotime.
104337         Assume gettimeofday succeeds, as POSIX requires.
104338         Assime time () succeeds, since other code already does.
104339         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
104340         (timespec_subtract): Remove.
104341         (NANOSLEEP_BUG_WORKAROUND): New constant.
104342         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
104343         things considerably.  Use it only on GNU/Linux hosts, since the
104344         workaround shouldn't be needed elsewhere.
104346 2005-02-24  Bruno Haible  <bruno@clisp.org>
104348         * modules/gettext (Files): Add m4/glibc2.m4.
104350 2005-02-24  Bruno Haible  <bruno@clisp.org>
104352         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
104353         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
104354         * m4/progtest.m4:
104355         Update from GNU gettext 0.14.2.
104356         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
104358 2005-02-24  Bruno Haible  <bruno@clisp.org>
104360         * lib/localcharset.c: Update from GNU gettext 0.14.2.
104361         * lib/config.charset: Update from GNU gettext 0.14.2.
104363 2005-02-24  Bruno Haible  <bruno@clisp.org>
104365         * lib/gettext.h: Update from GNU gettext 0.14.2.
104367 2005-02-23  Simon Josefsson  <jas@extundo.com>
104369         * m4/iconvme.m4: New file.
104371 2005-02-23  Jim Meyering  <jim@meyering.net>
104373         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
104374         change.
104375         Thanks to Bruno Haible for catching it.
104377 2005-02-22  Simon Josefsson  <jas@extundo.com>
104379         * modules/iconvme: New file.
104381         * MODULES.html.sh: Add iconvme.
104383 2005-02-22  Simon Josefsson  <jas@extundo.com>
104385         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
104387 2005-02-22  Simon Josefsson  <jas@extundo.com>
104389         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
104391 2005-02-22  Jim Meyering  <jim@meyering.net>
104393         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
104394         s/ifndef/ifdef/.
104396 2005-02-20  Neil Conway  <neilc@samurai.com>
104398         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
104399         returned by OSX/Darwin if the specified buffer is not large
104400         enough for the hostname.
104402 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104404         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
104405         pass it to _help, otherwise the latter coredumps trying to
104406         dereference state.root_argp.
104408 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104410         * modules/chdir-long (Depends-on): Add memrchr.
104411         * modules/memrchr (Files): Add lib/memrchr.h.
104412         (Include): "memrchr.h".
104414 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104416         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
104418 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104420         * lib/memrchr.h: New file.
104421         * lib/chdir-long.c: Include it.
104422         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
104423         Don't bother including stddef.h.
104425 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
104427         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
104428         inclusion.
104429         Include <sys/types.h>, for dev_t.
104430         (ME_DUMMY, ME_REMOTE): Move from here....
104431         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
104432         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
104433         Dmitry V. Levin.
104434         Include mountlist.h first, to test the interface.
104436 2005-01-29  Bruno Haible  <bruno@clisp.org>
104438         * lib/progname.c (program_name): Initialize.
104439         Needed when linking statically on MacOS X.
104441 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104443         Sync from coreutils.
104444         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
104445         (Depends-on): Add c-strtod.
104446         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
104448 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104450         Sync from coreutils.
104451         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
104453         Remove files that are specific to coreutils.
104454         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
104456 2005-01-28  Bruno Haible  <bruno@clisp.org>
104458         * modules/javacomp: New file.
104459         * MODULES.html.sh (Java): Add javacomp.
104461 2005-01-28  Bruno Haible  <bruno@clisp.org>
104463         * m4/javacomp.m4: New file, from GNU gettext.
104465 2005-01-28  Bruno Haible  <bruno@clisp.org>
104467         * lib/javacomp.sh.in: New file, from GNU gettext.
104468         * lib/javacomp.h: New file, from GNU gettext.
104469         * lib/javacomp.c: New file, from GNU gettext.
104471 2005-01-26  Simon Josefsson  <jas@extundo.com>
104473         * lib/gai_strerror.c: Use GPL in header.
104475 2005-01-26  Bruno Haible  <bruno@clisp.org>
104477         * modules/javaexec: New file.
104478         * MODULES.html.sh (Java): Add javaexec.
104480 2005-01-26  Bruno Haible  <bruno@clisp.org>
104482         * m4/javaexec.m4: New file, from GNU gettext.
104484 2005-01-26  Bruno Haible  <bruno@clisp.org>
104486         * lib/javaexec.sh.in: New file, from GNU gettext.
104487         * lib/javaexec.h: New file, from GNU gettext.
104488         * lib/javaexec.c: New file, from GNU gettext.
104490 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104492         * modules/lchown (Depends-on): Remove lchown.h
104494 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104496         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
104497         must be defined if the header file was not found, in order
104498         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
104500 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104502         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
104503         initializers for struct pentry_state.
104504         (__argp_error): Check return value of __asprintf
104505         (__argp_failure): Translate error message
104507         * lib/argp-parse.c: Removed braces around the expansion of N_()
104509 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
104511         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
104512         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
104513         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
104514         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
104515         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
104516         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
104517         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
104518         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
104519         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
104520         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
104521         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
104522         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
104523         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
104524         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
104525         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
104526         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
104527         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
104528         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
104529         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
104530         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
104531         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
104532         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
104533         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
104534         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
104535         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
104536         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
104537         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
104538         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
104539         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
104540         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
104541         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
104542         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
104543         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
104544         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
104545         xstrtol.m4, xstrtoumax.m4, yesno.m4:
104546         Use an all-permissive copyright notice, recommended by RMS.
104548 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
104550         * modules/chdir-long (Depends-on): Remove mempcpy.
104552 2005-01-21  Jim Meyering  <jim@meyering.net>
104554         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
104555         same value as for Solaris 9.
104557         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
104558         component length.  This included changing the parameter to be
104559         of type `char *' rather than `char const *'.
104560         * lib/chdir-long.h (chdir_long): Update prototype.
104562         * lib/openat.c (fdopendir, fstatat): New functions.
104563         * lib/openat.h: Include headers required for use of DIR and struct
104564         stat.
104565         [AT_SYMLINK_NOFOLLOW]: Define.
104566         (fdopendir, fstatat): Add prototypes.
104568 2005-01-21  Bruno Haible  <bruno@clisp.org>
104570         * modules/classpath: New file.
104571         * MODULES.html.sh (Java): Add classpath.
104573 2005-01-21  Bruno Haible  <bruno@clisp.org>
104575         * lib/classpath.h: New file, from GNU gettext.
104576         * lib/classpath.c: New file, from GNU gettext.
104578 2005-01-20  Simon Josefsson  <jas@extundo.com>
104580         * modules/version-etc-fsf: New file.
104582 2005-01-20  Simon Josefsson  <jas@extundo.com>
104584         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
104585         * lib/version-etc.c: Remove version_etc_copyright.
104586         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
104587         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
104589 2005-01-20  Simon Josefsson  <jas@extundo.com>
104591         * lib/base64.h (isbase64): Add.
104593         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
104594         using a unsigned prototype, don't inline.
104595         (base64_decode): Use it.
104597 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
104599         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
104600         it.
104602 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
104604         * lib/save-cwd.c (save_cwd): Remove code to support the case
104605         where fchdir is missing or flaky.
104607 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
104609         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
104611 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
104613         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
104614         AC_LIBSOURCES now does this.
104615         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
104616         with new ullong_max module.
104618 2005-01-19  Bruno Haible  <bruno@clisp.org>
104620         * modules/sh-quote: New file.
104621         * MODULES.html.sh (Executing programs): Add sh-quote.
104623 2005-01-19  Bruno Haible  <bruno@clisp.org>
104625         * lib/sh-quote.h: New file, from GNU gettext.
104626         * lib/sh-quote.c: New file, from GNU gettext.
104628 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
104630         Merge from coreutils.
104631         * m4/ullong_max.m4: New file.
104632         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
104633         (gl_MACROS): Assume localeconv exists.
104635 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
104637         Merge changes from coreutils, as described below in several
104638         changelogs dated today.
104640         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
104641         (O_DIRECTORY): Remove; not needed here, since "." must be
104642         a directory.  All uses removed.
104643         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
104644         universal on Suns, and we also need to test for IRIX.
104645         Revamp code to use 'if' rather than '#if'.
104646         Avoid unnecessary comparison of cwd->desc to 0.
104648         * lib/utimens.c (futimens): Robustify the previous patch, by checking
104649         for known valid error numbers rather than observed invalid ones.
104651 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
104653         * modules/ullong_max: New file.
104655         * modules/chdir-long, modules/openat: New files.
104656         * modules/save-cwd (Depends-on): Depend on chdir-long.
104657         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
104659 2005-01-18  Jim Meyering  <jim@meyering.net>
104661         Merge from coreutils.
104662         * m4/chdir-long.m4, m4/openat.m4: New files.
104663         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
104664         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
104665         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
104666         is sane and DOES follow symlinks.  Besides, testing 20 different
104667         systems found no broken chown implementations.
104668         Prompted by a change in rsync's copy of this macro.
104669         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
104671         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
104673         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
104674         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
104675         NULL-means-set-to-current-time semantics.
104676         Remove temporary file immediately, rather than waiting
104677         for configure's at-exit trap code to do it.
104679 2005-01-18  Jim Meyering  <jim@meyering.net>
104681         * lib/version-etc.c (version_etc_copyright): Update copyright date.
104683         * lib/utimens.c (futimens): Account for the fact that futimes
104684         can also fail with errno == ENOSYS or errno == ENOENT.
104685         Patch from Dmitry V. Levin.
104687         Change the name of the robust chdir function from chdir to chdir_long.
104688         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
104689         (restore_cwd): Use chdir_long, not chdir.
104690         * lib/chdir-long.c: Renamed from chdir.c.
104691         * lib/chdir-long.h: Renamed from chdir.h.
104692         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
104693         Hurd.
104695 2005-01-18  Bruno Haible  <bruno@clisp.org>
104697         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
104698         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
104699         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
104700         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
104701         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
104702         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
104703         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
104704         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
104705         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
104706         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
104707         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
104708         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
104709         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
104710         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
104711         Use an all-permissive copyright notice, recommended by RMS.
104713 2005-01-18  Bob Proulx  <bob@proulx.com>
104715         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
104716         simplify offsetof() macro construct to avoid compile failure with
104717         native HP-UX 11.0 ANSI C compiler.
104719 2005-01-17  Bruno Haible  <bruno@clisp.org>
104721         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
104722         redundant because stpncpy.m4 takes care of it.
104724 2005-01-17  Bruno Haible  <bruno@clisp.org>
104726         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
104728 2005-01-17  Bruno Haible  <bruno@clisp.org>
104730         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
104731         used.
104733 2005-01-17  Bruno Haible  <bruno@clisp.org>
104735         * lib/fwriteerror.h (fwriteerror): Change specification to include
104736         fclose.
104737         * lib/fwriteerror.c: Include <stdbool.h>.
104738         (fwriteerror): At the end, close the file stream. Record whether
104739         stdout was already closed.
104741 2005-01-17  Bruno Haible  <bruno@clisp.org>
104743         * lib/execute.c (environ): Declare if needed.
104744         * lib/pipe.c (environ): Likewise.
104745         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
104747 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104749         * modules/argp: Depend on vsnprintf
104751 2005-01-10  Jim Meyering  <jim@meyering.net>
104753         * modules/closeout (Depends-on): Add atexit.
104755 2005-01-06  Bruno Haible  <bruno@clisp.org>
104757         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
104759 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
104761         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
104762         definitions to be after all include files, to avoid collisions.
104763         Problem reported by Bob Proulx.
104765 2005-01-04  Jim Meyering  <jim@meyering.net>
104767         Changes imported from coreutils.
104768         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
104769         as the mkstemp template, use a temporary directory and an
104770         8.3-friendly template to avoid trouble on systems like DJGPP.
104771         Reported by Juan M. Guerrero via Stepan Kasal.
104772         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
104773         close. Remove the temporary directory right away, rather than waiting
104774         for configure's at-exit trap code to do it.
104775         Suggestion from Stepan Kasal.
104777 2005-01-01  Simon Josefsson  <jas@extundo.com>
104779         * gnulib-tool: Print #include directives when --import'ing.
104781 2004-12-28  Simon Josefsson  <jas@extundo.com>
104783         * tests/test-base64.c: Include required header files.  Remove
104784         unused variables.
104786 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
104788         * modules/error (Depends-on): Remove gettext.
104790 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
104792         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
104793         not needed.  This removes a dependency on the gettext module.
104794         [defined _LIBC]: Do not include <libintl.h>; not needed.
104796 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
104798         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
104799         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
104801 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
104803         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
104804         HAVE_DECL_STRTOLD.
104806 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
104808         * modules/getdate (Depends-on): Remove alloca-opt.
104810 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
104812         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
104814 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
104816         * lib/argp-parse.c: Include <stddef.h>.
104817         (alignof, alignto): New macros.
104818         (parser_init): Don't assume that void * is aligned sufficiently
104819         for struct option.
104821         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
104822         need to extend the stack.
104823         (YYINITDEPTH): New macro, so that the initial stack isn't overly
104824         large.
104826 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104828         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
104830 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
104832         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
104833         (2004-10-24) change.  Apparently this was a false alarm.
104835         * modules/getdate: Depend on alloca-opt, not alloca.
104837 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
104839         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
104840         Remove now-obsolete comment about AIX.
104841         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
104842         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
104843         (YYMAXDEPTH): New macro.
104845 2004-12-18  Simon Josefsson  <jas@extundo.com>
104847         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
104849 2004-12-18  Bruno Haible  <bruno@clisp.org>
104851         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
104853 2004-12-18  Bruno Haible  <bruno@clisp.org>
104855         * lib/fatal-signal.c (fatal_signals): Make non-const.
104856         (init_fatal_signals): New function.
104857         (uninstall_handlers, install_handlers): Ignore signals that were set to
104858         SIG_IGN.
104859         (at_fatal_signal): Call init_fatal_signals.
104860         (init_fatal_signal_set): Likewise. Ignore signals that were set to
104861         SIG_IGN.
104862         Reported by Paul Eggert.
104864 2004-12-18  Bruno Haible  <bruno@clisp.org>
104866         * doc/alloca.texi: New file.
104867         * doc/alloca-opt.texi: New file.
104869 2004-12-17  Jim Meyering  <jim@meyering.net>
104871         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
104872         Otherwise, install-sh could exit with improper exit status when
104873         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
104875 2004-12-16  Simon Josefsson  <jas@extundo.com>
104877         * tests/test-base64.c: Add license.
104879 2004-12-15  Stepan Kasal  <address@hidden>
104881         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
104883 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
104885         * modules/getcwd (Files): Add m4/d-ino.m4.
104886         Suggested by Mark D. Baushke.
104888 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
104890         * lib/getdate.y (textint): New member "negative".
104891         (time_zone_hhmm): New function.
104892         Expect 14 shift-reduce conflicts, not 13.
104893         (o_colon_minutes): New rule.
104894         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
104895         (yylex): Set the "negative" member of signed numbers.
104897 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
104899         * doc/getdate.texi (Time of day items, Time zone items):
104900         Describe new formats +00:00, UTC+00:00.
104902 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
104904         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
104905         spurious "-l"s.  Problem reported by Stepan Kasal.
104907 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
104909         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
104910         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
104912 2004-12-04  Simon Josefsson  <jas@extundo.com>
104914         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
104915         Vandoorselaere <yoann@prelude-ids.org>.
104917 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104919         Changes imported from coreutils.
104920         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
104921         exist.
104922         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
104924 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104926         Changes imported from coreutils.
104927         * lib/hard-locale.c: Assume <locale.h> exists.
104928         Include "strdup.h".
104929         (GLIBC_VERSION): New macro.
104930         (hard_locale): Assume setlocale exists.
104931         Rewrite to avoid #ifdef.
104932         Use strdup rather than malloc + strcpy.
104933         * lib/human.c: Assume <locale.h> exists.
104934         (human_readable): Assume localeconv exists.
104936 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104938         * modules/hard-locale (Depends-on): Add strdup.
104940 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
104942         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
104943         convert T2, not T.  (Imported from libc.)
104945 2004-11-30  Simon Josefsson  <jas@extundo.com>
104947         * modules/restrict (License): Change to LGPL.
104949 2004-11-30  Simon Josefsson  <jas@extundo.com>
104951         * m4/restrict.m4: Add copyright and copying conditions.
104953 2004-11-30  Simon Josefsson  <jas@extundo.com>
104955         * m4/base64.m4: New file.
104957 2004-11-30  Simon Josefsson  <jas@extundo.com>
104959         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
104960         base64.
104962         * tests/test-base64.c: New file.
104964         * modules/base64: New file.
104966 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
104968         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
104969         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
104971         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
104973 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
104975         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
104976         (__getcwd.c): Don't restore errno; glibc doesn't.
104977         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
104978         first, falling back to our code only if its results look suspicious.
104979         Ensure that the resulting buffer is only as large as necessary.
104981         * lib/readutmp.c: Include readutmp.h first.
104982         Include <errno.h>, since readutmp.h no longer does that.
104983         * lib/readutmp.h: Don't include <errno.h>,
104984         <sys/param.h>, <time.h>; not needed to establish interface.
104985         (errno): Remove decl.
104986         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
104987         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
104988         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
104990 2004-11-28  Simon Josefsson  <jas@extundo.com>
104992         * lib/base64.h, base64.c: New file.
104994 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
104996         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
104998 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
105000         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
105001         (Depends-on): Remove pathmax, same.  Add mempcpy.
105002         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
105003         (Makefile.am): Append getcwd.h to lib_SOURCES.
105004         (Include): Add getcwd.h.
105005         (Maintainer): Change from Jim Meyering to "all, glibc",
105006         since getdate now uses intended-for-glibc code.
105007         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
105008         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
105010 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
105012         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
105013         HP's ANSI C compiler.
105014         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
105015         Declaring int functions causes warnings on some modern systems and
105016         shouldn't be needed to compile on ancient ones.
105017         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
105018         defined.
105020         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
105021         with the following changes.
105022         (__set_errno): Parenthesize properly.
105023         Include <stdbool.h>.
105024         (MIN, MAX, MATCHING_INO): New macros.
105025         (__getcwd): Define with prototype, not K&R form.
105026         Use heuristics to allocate default buffer on stack if possible.
105027         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
105028         behavior, and to avoid the PATH_MAX limit when computing
105029         ../../../../...
105030         Use MATCHING_INO to compare inode number to file.
105031         Check for arithmetic overflow in size calculations.
105032         Fix bug in reallocation of dot array that caused getcwd to fail
105033         on directories nested deeper than 75.
105034         Be more careful about saving errno on error.
105035         Do not use realloc; use only free+malloc, as this is a bit
105036         more flexible and avoids a needless copy operation.
105037         Do not inspect st_dev and st_ino for symbolic links; POSIX
105038         doesn't specify the latter.
105039         Check for closedir errors.
105040         Avoid needless casts.
105041         Use "#ifdef weak_alias" around weak_alias, to be like other
105042         glibc code.
105043         The following changes to getcwd.c have effect only when used in
105044         gnulib; they have no effect inside glibc proper.
105045         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
105046         as alloca isn't used.
105047         (alloca, __alloca): Likewise.
105048         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
105049         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
105050         unconditionally, as gnulib assumes C89 or better.
105051         Do not include <sys/param.h>.
105052         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
105053         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
105054         better.
105055         (NULL) [!defined NULL]: Remove; we assume C89 or better.
105056         Include <dirent.h> in a way that is compatible with modern Autoconf.
105057         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
105058         New macros, if not already defined.
105059         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
105060         Use "_LIBC", not "defined _LIBC", for consistency.
105061         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
105062         a mempcpy module.
105063         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
105064         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
105065         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
105066         credit only to Jim Meyering and adjust the copyright dates.
105067         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
105068         <stdlib.h>, <unistd.h>, "pathmax.h".
105069         Instead, include "xgetcwd.h" (first) and "getcwd.h".
105070         (INITIAL_BUFFER_SIZE): Remove.
105071         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
105073 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
105075         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
105076         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
105077         Use the _ONCE methods, for efficiency.
105078         Check for fcntl.h.  In test program, include <errno.h>
105079         and <fcntl.h> if available.  Remove old K&R cruft from
105080         test program.  Check for common errors in GNU/Linux,
105081         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
105082         don't do AC_LIBOBJ, as that's getcwd.m4's job.
105083         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
105084         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
105085         name accordingly.
105086         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
105087         accommodate new getcwd.c.
105088         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
105089         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
105090         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
105091         that's all we need now.
105093 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105095         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
105096         argp-parse.c depends on getopt internals, that means we should
105097         always use our getopt, to be on the safe side.
105098         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
105099         order not to spoil the result of an eventual previous invocation
105100         of gl_GETOPT_SUBSTITUTE.
105102 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105104         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
105105         redefinition warnings. To avoid them, include the defines
105106         in `#if !defined __need_getopt ... #endif'. The only place
105107         where __getopt_argv_const is used is in definitions
105108         of getopt_long and getopt_long_only below, which are as well
105109         protected by `#ifndef __need_getopt'.
105110         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
105111         __need_getopt after including <stdio.h> and <unistd.h> These
105112         headers might have defined it.
105114 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
105116         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
105118 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
105120         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
105121         (futimens): New function, which uses futimes if available.
105122         (futimens, utimens): Support timespec==NULL, with same semantics
105123         as utime and utimens.
105124         * lib/utimens.h (futimens): New decl.
105126 2004-11-23  Jim Meyering  <jim@meyering.net>
105128         * lib/getopt_.h: Remove trailing blanks.
105130 2004-11-23  Jim Meyering  <jim@meyering.net>
105132         * lib/__fpending.c: Add comment.
105134 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
105136         * modules/canonicalize (Depends-on): Add xreadlink.
105137         Problem reported by James Youngman.
105139 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
105141         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
105142         New macros.
105143         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
105144         optopt): Use them instead of invoking ## directly; otherwise, the
105145         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
105147 2004-11-19  Bruno Haible  <bruno@clisp.org>
105149         * lib/strtok_r.c: Move comments from here...
105150         * lib/strtok_r.h: ... to here.
105152 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
105154         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
105155         implementations that mishandle size_t overflow.
105157 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
105159         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
105160         might fail.  Problem reported by Yoann Vandoorselaere.
105161         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
105162         implementations that mishandle size_t overflow.
105164 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105166         * modules/canon-host (Depends-on): Add strdup.
105168 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105170         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
105172 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105174         * lib/canon-host.c: Include "strdup.h".
105175         (canon_host): Use getaddrinfo if available, so that IPv6 works.
105176         Use strdup instead of malloc/strcpy to duplicate strings.
105178         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
105179         (human_space_before_unit): New constant.
105180         * lib/human.c (human_readable): Support it.
105182         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
105183         (xgetcwd): Set errno correctly when failing.
105184         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
105185         the failure is actually due to a PATH_MAX problem.
105187         Further getopt changes to make it more likely that glibc will
105188         buy the changes back.
105189         * lib/getopt.c (POSIXLY_CORRECT): New constant.
105190         (getopt): Use it, so to preserve glibc semantic
105191         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
105192         when compiling for libc.
105193         * lib/getopt_.h (__getopt_argv_const): Bring it back.
105194         (getopt_long, getopt_long_only): Use it.
105196         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
105197         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
105198         (getopt): Argv is now char * const *, as per standard.
105199         (_getopt_internal_r, _getopt_internal): Argv is now char **,
105200         not char *__getopt_argv_const *.
105201         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
105202         _getopt_long_only_r): Likewise.
105203         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
105204         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
105205         _getopt_long_r, _getopt_long_only_r): Likewise.
105206         * lib/getopt_.h (__getopt_argv_const): Remove.
105207         (getopt): Argv is now char * const *, as per standard.
105209         * lib/getdate.y (tORDINAL): New token.
105210         (day, relunit): Allow it for relative times.
105211         (relative_time_table): Use tORDINAL for ordinals.
105213 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105215         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
105216         Document that "second" isn't allowed as an ordinal number.
105218 2004-11-16  Jim Meyering  <jim@meyering.net>
105220         * modules/closeout (Depends-on): Add fpending.
105222 2004-11-15  Jim Meyering  <jim@meyering.net>
105224         * lib/closeout.c: Include "__fpending.h" once again.
105225         Include <stdbool.h>.
105226         (close_stdout): Don't fail just because stdout was closed initially,
105227         since some programs don't write to stdout in the normal course of
105228         operation (other than --version and --help), and we don't want this
105229         function to make e.g. `touch file >&-' fail.
105230         But do fail if it was closed and someone has tried to write to it.
105231         E.g., `printf foo >&-' must fail.
105233 2004-11-13  Jim Meyering  <jim@meyering.net>
105235         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
105237 2004-11-12  Simon Josefsson  <jas@extundo.com>
105239         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
105240         small doc fix is still pending.
105242 2004-11-11  Simon Josefsson  <jas@extundo.com>
105244         * modules/strtok_r: New file.
105246         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105247         strtok_r.
105249 2004-11-11  Simon Josefsson  <jas@extundo.com>
105251         * m4/strtok_r.m4: New file.
105253         * m4/getopt.m4: Replace opterr.
105255 2004-11-11  Simon Josefsson  <jas@extundo.com>
105257         * lib/strtok_r.h, strtok_r.c: New file.
105259 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
105261         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
105262         of replacing opterr, getopt, etc.  This should handle the
105263         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
105265 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
105267         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
105268         we can stop lying to compilers about the constness of argv when we
105269         are compiled outside glibc.
105270         (getopt, getopt_long, getopt_long_only): Use it.
105271         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
105272         _getopt_internal, getopt): Likewise.
105273         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
105274         _getopt_long_only_r): Likewise.
105275         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
105276         _getopt_long_r, _getopt_long_only_r): Likewise.
105278         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
105279         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
105280         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
105281         the other external symbols.
105282         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
105283         declaration, since the above renaming now works around collisions.
105285 2004-11-11  Jim Meyering  <jim@meyering.net>
105287         * lib/linebreak.c: Remove trailing blanks.
105288         * lib/alloca_.h: Likewise.
105289         * lib/acosl.c: Likewise.
105290         * lib/euidaccess.c: Likewise.
105291         * lib/allocsa.h: Likewise.
105293 2004-11-10  Simon Josefsson  <jas@extundo.com>
105295         * m4/getaddrinfo.m4: New file.
105297 2004-11-10  Simon Josefsson  <jas@extundo.com>
105299         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
105301 2004-11-10  Simon Josefsson  <jas@extundo.com>
105303         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105304         getaddrinfo.
105306         * modules/getaddrinfo: New file.
105308 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
105310         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
105312 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
105314         * lib/mktime.c (SHR): New macro, which is a portable
105315         substitute for >> that should work even on Crays.
105316         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
105317         Problem reported by Mark D. Baushke in
105318         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
105319         * lib/getdate.y (SHR): Likewise.
105320         (tm_diff): Use it.
105321         * lib/strftime.c (SHR): Likewise.
105322         (tm_diff): Use it.
105323         * lib/quotearg.c (struct quoting_options): Use unsigned int for
105324         quote_these_too, so that right shifts are well defined.  All uses
105325         changed.
105327 2004-11-10  Jim Meyering  <jim@meyering.net>
105329         Ensure that no close failure goes unreported.
105330         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
105331         return early when it seems there's nothing to flush.
105332         Don't include __fpending.h.
105334 2004-11-10  Jim Meyering  <jim@meyering.net>
105336         * modules/closeout (Depends-on): Remove fpending.
105338 2004-11-10  Jim Meyering  <jim@meyering.net>
105340         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
105342 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105344         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
105345         gl_FUNC_STRFTIME.
105346         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
105347         and AC_REQUIRE when possible, to avoid duplicate checks.
105348         Check for <wchar.h>.
105350 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105352         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
105354 2004-11-09  Bruno Haible  <bruno@clisp.org>
105356         * m4/sockpfaf.m4: New file.
105358 2004-11-05  Bruno Haible  <bruno@clisp.org>
105360         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
105361         Reported by Mark D. Baushke <mdb@cvshome.org>.
105363 2004-11-04  Bruno Haible  <bruno@clisp.org>
105365         2004-09-11  Bruno Haible  <bruno@clisp.org>
105366                 * allocsa.valgrind: New file.
105367         2004-02-06  Bruno Haible  <bruno@clisp.org>
105368                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
105369                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
105370                 Reported by Christopher Seip <chris.seip@hp.com>.
105372 2004-11-04  Bruno Haible  <bruno@clisp.org>
105374         * modules/allocsa (Files): Add lib/allocsa.valgrind.
105375         (Makefile.am): Distribute it.
105377 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
105379         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
105380         with errno == ERANGE if the buffer is too small.
105381         Problem reported by Mark D. Baushke.
105383 2004-11-03  Albert Chin  <china@thewrittenword.com>
105384             Paul Eggert  <eggert@cs.ucla.edu>
105386         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
105387         equivalent, substitute $ac_type for equivalent type rather than
105388         blindly using uint32_t *always* which won't work if uint32_t is not
105389         available.  Define _UINT32_T to work around typedef of uint32_t if
105390         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
105391         2.5.1.
105393 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105395         * m4/jm-macros.m4: Sync from coreutils.
105396         (gl_MACROS): Check for mbrlen, for pathchk.
105397         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
105399 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105401         * lib/xreadlink.c (MAXSIZE): New macro.
105402         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
105403         size does not exceed MAXSIZE.  Avoid cast.
105404         As suggested by Mark D. Baushke in
105405         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
105406         if readlink fails with buffer size just under MAXSIZE, try again
105407         with MAXSIZE.
105409 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105411         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
105413 2004-11-02  Derek R. Price  <derek@ximbiot.com>
105414         and  Paul Eggert  <eggert@cs.ucla.edu>
105416         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
105417         (get_date): Overparenthesize to avoid GCC warning.
105419 2004-11-02  Bruno Haible  <bruno@clisp.org>
105421         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
105422         returns void.
105424 2004-11-02  Bruno Haible  <bruno@clisp.org>
105426         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
105427         function returns void.
105429 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
105431         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
105432         fflush_unlocked, flockfile, funlockfile, funlockfile,
105433         fputs_unlocked, putc_unlocked.
105435 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
105437         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
105438         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
105439         already declared.
105441 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105443         * modules/getdate (Files): Add doc/getdate.texi.
105444         (Depends-on): Add setenv, xalloc.
105446 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105448         * lib/getdate.y: Add support for TZ="foo" within a date string.
105449         Fix some bugs near time_t boundaries.  Reject dates with
105450         out-of-range components, e.g., "Sept 31".
105451         Include <stdlib.h>, "setenv.h", "xalloc.h".
105452         (ISDIGIT_LOCALE): Remove; unused.
105453         Note that the TZ and time functions used here are not reentrant.
105454         (mktime_ok, get_tz): New functions.
105455         (TZBUFSIZE): New constant.
105456         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
105457         This requires that we sometimes generate our own TZ="XXX..." setting.
105459 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105461         * doc/getdate.texi: New file, from coreutils with modifications for
105462         the new TZ parsing.
105464 2004-10-27  Derek R. Price  <derek@ximbiot.com>
105466         * lib/mktime.c (not_equal_tm): Remove redundant check.
105468 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
105470         * modules/regex (lib_SOURCES): Add regex.c.
105471         Reported by James Youngman in
105472         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
105474 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
105476         * lib/getdate.y: Use Bison 1.875 features, and some minor
105477         code cleanups.  This change does not affect semantics.
105478         Don't include <stdlib.h>; no longer needed.
105479         Don't include unlocked-io.h; only the "#if TEST" code uses
105480         stdio, and performance isn't crucial there.
105481         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
105482         Bison 1.875 features as described below.
105483         All uses of "PC." replaced by "pc->".
105484         (YYSTYPE): Add a forward declaration.
105485         (yylex, yyerror): Use full prototypes in forward decls.
105486         Use "%pure-parser" rather than obsolescent "%pure_parser".
105487         Use %parse-param and %lex-param instead of obsolescent
105488         YYPARSE_PARAM and YYLEX_PARAM.
105489         (meridian_table, month_and_day_table, time_units_table,
105490         relative_time_table, time_zone_table, military_table,
105491         lookup_zone, lookup_word, get_date):
105492         Use NULL instead of 0 where appropriate.
105493         (to_hour): Avoid abort (), to avoid a dependency on
105494         stdlib.h.
105495         (yyerror, yylex): Now accepts parser_control * arg.
105496         (main) [TEST]: Use '\0' rather than 0 for char.
105498 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
105500         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
105502 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
105504         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
105505         It's now the caller's responsibility to handle the case where
105506         !HAVE_GETPAGESIZE && !defined getpagesize.
105508         * lib/mktime.c (leapyear): Arg is long int, not int.
105510 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
105512         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
105514 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
105516         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
105517         missing.  Problem reported by James Youngman.
105519 2004-10-16  Simon Josefsson  <jas@extundo.com>
105521         * gnulib-tool: Fix comments.  Fix parse problem.
105522         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
105524 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
105526         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
105527         implementation of getopt_long.  Problem reported by Alexander Taler in:
105528         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
105530 2004-10-15  Bruno Haible  <bruno@clisp.org>
105532         * gnulib-tool: Untabify. Initialize supplied_libname.
105533         (func_usage): More homogenous output.
105534         (func_modules_transitive_closure, func_modules_to_filelist,
105535         func_emit_lib_Makefile_am): New functions.
105536         (func_import): New function, extracted from big case statement. Use
105537         func_get_license, func_modules_transitive_closure,
105538         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
105539         opt_lgpl. Don't use test -a, as it's not portable.
105540         (func_create_testdir): Use func_modules_transitive_closure,
105541         func_modules_to_filelist, func_emit_lib_Makefile_am.
105543 2004-10-15  Bruno Haible  <bruno@clisp.org>
105545         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
105547 2004-10-15  Bruno Haible  <bruno@clisp.org>
105549         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
105550         the portions belonging to each module.
105551         Suggested by Derek Robert Price <derek@ximbiot.com>.
105553 2004-10-12  Simon Josefsson  <jas@extundo.com>
105555         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
105556         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
105557         to real functions.
105559 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105561         * modules/vsnprintf: New file.
105563 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105565         * m4/vsnprintf.m4: New file.
105567 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105569         * lib/vsnprintf.h: New file.
105570         * lib/vsnprintf.c: New file.
105572 2004-10-11  Bruno Haible  <bruno@clisp.org>
105574         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
105575         vsnprintf.
105577 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
105579         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
105581 2004-10-07  Bruno Haible  <bruno@clisp.org>
105583         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
105584         fits into the provided buffer.
105586 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
105588         * lib/diacrit.c, diacrit.h: Add GPL notice.
105590         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
105591         notice.
105592         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
105593         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
105594         This avoids a potential constant-folding bug.
105596 2004-10-05  Bruno Haible  <bruno@clisp.org>
105598         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
105599         for the declaration of strsep.
105601 2004-10-05  Bruno Haible  <bruno@clisp.org>
105603         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
105605 2004-10-04  Simon Josefsson  <jas@extundo.com>
105607         * modules/memmem: New file.
105608         * tests/test-memmem.c: New file.
105609         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
105611 2004-10-04  Simon Josefsson  <jas@extundo.com>
105613         * m4/memmem.m4: New file.
105615 2004-10-04  Simon Josefsson  <jas@extundo.com>
105617         * lib/memmem.h: New file.
105618         * lib/memmem.c: New file, taken from glibc.
105620 2004-10-04  Simon Josefsson  <jas@extundo.com>
105622         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
105623         '#ifdef USE_UNLOCKED_IO'.
105625 2004-10-04  Simon Josefsson  <jas@extundo.com>
105627         * config/srclist.txt: Add memmem from glibc.
105629 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105631         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
105633         * modules/argmatch, modules/argp, modules/closeout, modules/error,
105634         modules/exclude, modules/getdate, modules/getline,
105635         modules/getndelim2, modules/getpass, modules/getpass-gnu,
105636         modules/getusershell, modules/linebuffer, modules/md5,
105637         modules/mountlist, modules/posixtm, modules/readtokens,
105638         modules/readutmp, modules/regex, modules/sha1,
105639         modules/version-etc, modules/yesno:
105640         Remove dependency on unlocked-io.
105642 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105644         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
105646         * m4/unlocked-io.m4: Add copyright notice.
105647         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
105649 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105651         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
105652         * lib/xmalloc.c (xmemdup): Likewise.
105653         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
105654         XFREE): Remove these long-obsolescent macros.
105655         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
105656         * lib/xstrdup.c: Remove.
105658         * lib/regex.c (re_comp): Cast gettext return value to char *,
105659         Problem reported by Martin Neitzel via Mark D. Baushke.
105661 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105663         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
105664         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
105665         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
105666         regex.c, sha1.c, version-etc.c, yesno.c:
105667         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
105668         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
105669         the includer's responsibility.
105671         Sync from coreutils.
105673         * lib/modechange.c (mode_compile): Don't decrement a pointer that
105674         points to the start of a string, as the C Standard says the
105675         resulting behavior is undefined.
105677         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
105678         simple -> simple_backups, numbered_existing ->
105679         numbered_existing_backups, numbered -> numbered_backups
105680         to avoid shadowing problems.  All uses changed.
105681         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
105682         * lib/backupfile.c (check_extension, numbered_backup):
105683         Rename locals to avoid shadowing 'basename'.
105684         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
105685         once.
105687         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
105688         * lib/.cvsignore: Add getopt.h.
105690 2004-10-04  Bruno Haible  <bruno@clisp.org>
105692         * modules/README: New file.
105693         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
105694         not a module.
105696 2004-10-02  Jim Meyering  <jim@meyering.net>
105698         * lib/dirfd.h, getpagesize.h: Add copyright notice.
105700 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105702         * modules/strsep: New file.
105704 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105706         * m4/strsep.m4: New file.
105708 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105710         * lib/strsep.h: New file.
105711         * lib/strsep.c: New file.
105713 2004-10-01  Simon Josefsson  <jas@extundo.com>
105715         * lib/snprintf.c (snprintf): Handle size==0.
105717 2004-10-01  Simon Josefsson  <jas@extundo.com>
105718             Bruno Haible  <bruno@clisp.org>
105720         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
105721         (snprintf): Declare 'args'.
105723 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
105725         * lib/snprintf.c: Remove comments as to why each header is needed.
105727 2004-10-01  Bruno Haible  <bruno@clisp.org>
105729         * MODULES.html.sh: Add strsep.
105731 2004-09-30  Simon Josefsson  <jas@extundo.com>
105733         * modules/snprintf: New file.
105735 2004-09-30  Simon Josefsson  <jas@extundo.com>
105737         * m4/snprintf.m4: New file.
105739 2004-09-30  Simon Josefsson  <jas@extundo.com>
105741         * lib/snprintf.h, lib/snprintf.c: New files.
105743 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105745         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
105746         (hol_entry_help): Never translate an empty string.
105747         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
105748         * lib/argp.h (OPTION_NO_TRANS): New option.
105750 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
105752         * modules/argp (Maintainer): Replace Simon Josefsson
105753         by Sergey Poznyakoff.
105755 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
105757         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
105758         changes merged back into glibc.
105760 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
105762         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
105764 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
105766         * lib/xvasprintf.c: Include xalloc.h.
105767         (xvasprintf): Use xalloc_die, not xmalloc_die.
105769 2004-09-29  Bruno Haible  <bruno@clisp.org>
105771         * modules/alloca-opt: New file, derived from modules/alloca.
105772         * modules/allocsa: Depend on alloca-opt instead of alloca.
105773         * modules/setenv: Likewise.
105774         * modules/vasnprintf: Likewise.
105775         * MODULES.html.sh: Add alloca-opt.
105777 2004-09-28  Simon Josefsson  <jas@extundo.com>
105779         * gnulib-tool: New parameter --lgpl, to asseert that modules are
105780         LGPL, and to replace license template from GPL to LGPL.
105782 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
105784         * modules/dummy: Change license to LGPL.
105786 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
105788         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
105790 2004-09-24  Simon Josefsson  <jas@extundo.com>
105792         * modules/minmax (License): Change from GPL to LGPL.
105794 2004-09-23  Simon Josefsson  <jas@extundo.com>
105796         * gnulib-tool (--import): Typo.
105798 2004-09-23  Simon Josefsson  <jas@extundo.com>
105800         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
105802 2004-09-22  Bruno Haible  <bruno@clisp.org>
105804         * modules/*: Add 'License' field.
105805         * gnulib-tool: Accept --extract-license option.
105806         (func_get_license): New function.
105808 2004-09-21  Bruno Haible  <bruno@clisp.org>
105810         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
105811         Reported by Simon Josefsson.
105813 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
105815         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
105816         gl_AC_TYPE_LONG_LONG.
105818 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
105820         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
105822 2004-09-18  Simon Josefsson  <jas@extundo.com>
105823         and  Paul Eggert  <eggert@cs.ucla.edu>
105825         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
105826         calls with autoreconf.  Define GL_LIB.
105828 2004-09-14  Karl Berry  <karl@gnu.org>
105830         * config/srclist.txt: unsync setenv.c, sigh.
105832 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
105834         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
105835         Problem reported by Bruno Haible in:
105836         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
105838 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
105840         * config/srclist.txt: Comment out argp-pvh.c.
105842 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
105844         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
105845         in case some system header has #define'd it.  Problem reported by
105846         Soeren D. Schulze in
105847         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
105849 2004-09-09  Karl Berry  <karl@gnu.org>
105851         * regex.[ch]: delete from the root.  These were supposed to be
105852                 synced with emacs cvs, but this has not happened for about
105853                 a year, and anyway nothing else uses emacs regex.[ch].
105854                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
105855                 lib/regex[.ch] is untouched.
105857 2004-09-09  Bruno Haible  <bruno@clisp.org>
105859         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
105861 2004-09-09  Bruno Haible  <bruno@clisp.org>
105863         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
105864         modifications.
105865         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
105867 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
105869         * modules/xvasprintf: New file.
105870         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
105872 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
105874         * lib/xvasprintf.h: New file.
105875         * lib/xvasprintf.c: New file.
105876         * lib/xasprintf.c: New file.
105878 2004-09-08  Bruno Haible  <bruno@clisp.org>
105880         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
105882 2004-09-08  Bruno Haible  <bruno@clisp.org>
105884         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
105885         length is > INT_MAX.
105886         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
105887         more.
105889 2004-09-08  Bruno Haible  <bruno@clisp.org>
105891         * lib/stdint_.h: New file, taken from GNU clisp.
105893 2004-09-08  Bruno Haible  <bruno@clisp.org>
105894             Oskar Liljeblad  <oskar@osk.mine.nu>
105896         * modules/stdint: New file.
105897         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
105899 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105901         Import from coreutils.
105902         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
105903         strings on unbounded length.  alloca's performance benefits aren't
105904         that important here.
105905         (V_STRDUP): Remove.
105906         (parse_with_separator): New function, with most of the internals
105907         of the old parse_user_spec.  Allow user to omit both user and group,
105908         for compatibility with FreeBSD.
105909         Clone only the user name, not the entire spec.
105910         Do not set *uid, *gid unless entirely successful.
105911         Avoid memory leak in some failing cases.
105912         Fix regression for USER.GROUP reported by Dmitry V. Levin in
105913         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
105914         (parse_user_spec): Rewrite to use parse_with_separator.
105916 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105918         * modules/userspec: Don't depend on alloca.
105920 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105922         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
105924 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
105926         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
105927         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
105928         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
105930 2004-08-16  Simon Josefsson  <jas@extundo.com>
105932         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
105933         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
105934         Add --dry-run for --import.
105935         Let user provided command line parameters override configure.ac
105936         settings.
105938 2004-08-12  Simon Josefsson  <jas@extundo.com>
105940         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
105941         as discussed with Paul Eggert in threads rooted at
105942         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
105943         and
105944         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
105945         Before, the test was empty, and relied on ELIDE_CODE in source
105946         code.)
105947         (gl_PREREQ_GETOPT): New macro.
105948         (gl_GETOPT): Use them.
105950 2004-08-12  Simon Josefsson  <jas@extundo.com>
105952         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
105953         * lib/getopt_.h: Renamed from getopt.h.
105955 2004-08-12  Simon Josefsson  <jas@extundo.com>
105957         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
105958         Change default library name from libfoo to libgnu.
105959         Now, if you have a configure.ac that says:
105960                 gl_SOURCE_BASE(gl)
105961                 gl_M4_BASE(gl/m4)
105962                 gl_MODULES(error getopt etcetera)
105963                 gl_INIT
105964         you can import all you need by running:
105965                 ../gnulib/gnulib-tool --import
105967         * modules/getopt (Files): Rename getopt.h to getopt_.h.
105968         (Makefile.am): Rewrite, use logic from argz.
105969         (Include): Use <getopt.h> instead of "getopt.h".
105971 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105973         * modules/argp (Files): Add m4/unlocked-io.m4.
105974         (Depends-on): Add extensions.
105976 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105978         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
105979         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
105980         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
105981         Check for program_invocation_name, program_invocation_short_name,
105982         flockfile, funlockfile, features.h, _getopt_long_only_r.
105984 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105986         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
105987         its complicated substitute.
105988         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
105989         and program_invocation_name.
105990         (__argp_basename) [!_LIBC]: Remove; the only use was
105991         replaced by its body.
105992         (__argp_short_program_name): Change condition from
105993         !defined __argp_short_program_name to
105994         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
105995         to match argp-namefrob.h.
105996         (__argp_failure): Don't assume strerror_r returns char *.
105997         * lib/argp-parse.c (N_): Define unconditionally.
105998         (argp_default_options): Fill out initializers with 0 to avoid
105999         gcc warnings.
106001 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106003         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
106004         getopt1.c.
106006 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106008         Merge from coreutils.
106010         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
106012         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
106013         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
106015 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106017         Merge from coreutils.
106019         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
106020         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
106021         for Reliant Unix 5.43.
106023         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
106024         (union fooround): Use uintmax_t, not long int.
106025         The rest is a merge from libc:
106026         [defined _LIBC]: Include <shlib-compat.h>.
106027         (_obstack) [defined _LIBC]: Remove after 2.3.4.
106029         * lib/settime.c (settime): Recode to avoid warning with
106030         Sun Forte C 6U2.
106032         * lib/strverscmp.c: Convert to UTF-8.
106034 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106036         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
106037         m4/uintmax_t.m4.
106039 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106041         * modules/xalloc-die: New file.
106042         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
106044         * modules/md5 (Files): Add m4/uint32_t.m4.
106045         * modules/sha1: Renamed from modules/sha.
106046         (Files):
106047         Rename lib/sha.h to lib/sha1.h.
106048         Rename lib/sha.c to lib/sha1.c.
106049         Rename m4/sha.m4 to m4/sha1.m4.
106050         (lib_SOURCES): Likewise.
106051         (configure.ac): Rename gl_SHA to gl_SHA1.
106052         (Include): sha.h -> sha1.h.
106054 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106056         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
106057         * m4/sha1.m4: Renamed from sha.m4.
106058         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
106060 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106062         * lib/obstack.h (obstack_empty_p):
106063         Don't assume that chunk->contents is suitably aligned.
106064         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
106065         Likewise. Problem reported by Benno in
106066         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
106068         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
106069         readable.  This could be improved further but it'd take some work.
106071 2004-08-08  Simon Josefsson  <jas@extundo.com>
106073         * modules/xgethostname (Depends-on): Remove exit and error (not
106074         used).
106076         * modules/getpass-gnu: Add getpass.h.
106077         (Depends-on): Add stdbool.
106078         * modules/getpass: Add getpass.h.
106080 2004-08-08  Simon Josefsson  <jas@extundo.com>
106082         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
106083         Check getpass declaration.
106085 2004-08-08  Simon Josefsson  <jas@extundo.com>
106087         * lib/xgethostname.c: Don't include error.h (not used).
106089         * lib/getpass.h: Add.
106090         * lib/getpass.c: Include getpass.h first.
106092 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
106094         * lib/xalloc-die.c: New file.
106095         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
106096         All uses removed.
106097         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
106098         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
106099         xalloc-die.c.
106100         (_, N_, xalloc_die): Move to xalloc-die.c.
106101         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
106102         so that we needn't mess with xalloc_msg_memory_exhausted.
106104         * lib/sha1.h: Renamed from sha.h.
106105         (SHA1_H): Renamed from _SHA_H.
106106         (sha1_ctx): Renamed from sha_ctx.
106107         (sha1_init_ctx): Renamed from sha_init_ctx.
106108         (sha1_process_block): Renamed from sha_process_block.
106109         (sha1_process_bytes): Renamed from sha_process_bytes.
106110         (sha1_finish_ctx): Renamed from sha_finish_ctx.
106111         (sha1_read_ctx): Renamed from sha_read_ctx.
106112         (sha1_stream): Renamed from sha_stream.
106113         (sha1_buffer): Renamed from sha_buffer.
106114         * lib/sha1.c: Likewise; renamed from sha.c.
106115         Do not include <sys/types.h>.
106116         Include <stddef.h> rather than <stdlib.h>.
106118 2004-08-08  Bruno Haible  <bruno@clisp.org>
106120         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
106121         FILESYSTEM_PREFIX_LEN.
106122         * lib/progreloc.c: Likewise.
106123         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
106125 2004-08-06  Simon Josefsson  <jas@extundo.com>
106127         * modules/progname (Depends-on): Don't depend on stdbool.
106129 2004-08-06  Simon Josefsson  <jas@extundo.com>
106131         * modules/getsubopt: New file.
106132         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106133         getsubopt.
106135 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106137         More merge from coreutils.
106139         * m4/utimens.m4, m4/utimecmp.m4: New files.
106140         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
106141         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
106142         prereq.m4, sha.m4: Import changes from coreutils.
106144 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106146         More merge from coreutils.
106147         * modules/raise, modules/readtokens0, modules/utimens:
106148         * modules/utimecmp, module/xnanosleep: New files.
106149         * modules/strftime: Add lib/strftime.h.
106150         Change include from <time.h> to "strftime.h".
106151         * modules/yesno: Add lib/yesno.h.
106152         * modules/backupfile: Remove lib/addext.c.
106153         * modules/euidaccess: Add stat-macros.h.
106154         * modules/canonicalize, modules/euidaccess,
106155         modules/filemode, modules/lchown, modules/makepath,
106156         modules/rmdir, modules/stat: Likewise.
106158 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106160         Merge from tar.
106161         * lib/argp-help.c (make_hol, hol_append): Don't assume that
106162         SIZE_MAX is a valid preprocessor constant.
106163         (__argp_basename): Change from "#ifndef _LIBC"
106164         to "#ifndef __argp_short_program_name", so that
106165         we don't compile these functions for tar.
106167         More merges from coreutils.
106168         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
106169         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
106170         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
106171         * lib/addext.c: Remove; no longer needed.
106172         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
106173         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
106174         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
106175         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
106176         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
106177         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
106178         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
106179         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
106180         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
106181         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
106182         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
106183         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
106184         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
106185         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
106186         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
106187         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
106188         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
106189         Import changes from coreutils.
106191 2004-08-05  Simon Josefsson  <jas@extundo.com>
106193         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
106195 2004-08-05  Simon Josefsson  <jas@extundo.com>
106197         * m4/getsubopt.m4: New file.
106199 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106201         Merge from coreutils.
106203         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
106204         * m4/getcwd-path-max.m4: New files.
106206         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
106207         FILESYSTEM_PREFIX_LEN ->
106208         FILE_SYSTEM_PREFIX_LEN.
106209         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
106210         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
106211         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
106212         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
106214         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
106215         prerequisite modules now handle the DOS stuff.
106216         Don't check for unistd.h.
106218 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106220         Merge from coreutils.
106222         * lib/.gdb-history: Remove; this doesn't belong here.
106224         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
106225         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
106226         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
106227         * lib/getcwd.c: New files.
106229         * lib/dirname.h: Include <stdbool.h>.
106230         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
106231         for consistency with POSIX terminology.  All uses changed.
106232         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
106233         (strip_trailing_slashes): Use bool for booleans.
106234         * lib/stripslash.c (strip_trailing_slashes): Likewise.
106236         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
106237         sometimes returns a positive errno value even when it succeeds.
106238         (print_errno_message) [!LIBC]: Fall back on strerror if
106239         __strerror_r fails.
106241         * lib/path-concat.c (mempcpy): Don't define if a system header defines
106242         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
106243         (longest_relative_suffix): New function.
106244         (path_concat): Use it.  Assume first argument is not NULL.
106245         Port to DOS.  Omit redundant separators.
106246         Report an error instead of returning NULL.
106247         Use mempcpy instead of memcpy.
106248         (xpath_concat): Remove: not declared or used.
106250         * lib/same.h: Include <stdbool.h>
106251         (same_name): Return bool, not int.
106252         * lib/same.c (same_name): Likewise.
106253         (errno): Don't declare; we assume C89 or better now.
106255         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
106256         if not already defined.
106258         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
106259         * lib/dup-safer.c (errno): Likewise.
106261 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106263         Merge from coreutils.
106264         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
106265         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
106266         * modules/path-concat: Don't depend on strdup.
106268 2004-08-03  Simon Josefsson  <jas@extundo.com>
106270         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
106271         * lib/progname.h: Don't include stdbool.h.
106273 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106275         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
106276         * MODULES.html.sh (func_all_modules): Remove fatal.
106278 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106280         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
106282 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106284         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
106285         working.
106287 2004-08-02  Simon Josefsson  <jas@extundo.com>
106289         * lib/getsubopt.h: New file, with comments from Bruno Haible.
106290         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
106291         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
106293 2004-08-01  Simon Josefsson  <jas@extundo.com>
106295         * lib/xgetdomainname.c: Include stdlib.h, for free().
106297 2004-07-19  Bruno Haible  <bruno@clisp.org>
106299         * MODULES.html.sh (func_all_modules): Add dummy.
106301 2004-07-16  Simon Josefsson  <jas@extundo.com>
106303         * modules/dummy: New file.
106305 2004-07-16  Simon Josefsson  <jas@extundo.com>
106307         * lib/dummy.c: New file.
106309 2004-07-16  Bruno Haible  <bruno@clisp.org>
106311         * lib/backupfile.h: Add extern "C" for C++.
106312         * lib/closeout.h: Likewise.
106313         * lib/copy-file.h: Likewise.
106314         * lib/findprog.h: Likewise.
106315         * lib/full-write.h: Likewise.
106316         * lib/pathname.h: Likewise.
106317         * lib/progname.h: Likewise.
106318         * lib/stpcpy.h: Likewise.
106319         * lib/stpncpy.h: Likewise.
106320         * lib/strcase.h: Likewise.
106321         * lib/strstr.h: Likewise.
106322         * lib/xalloc.h: Likewise.
106324         * lib/mbswidth.h: Add extern "C" for C++.
106325         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
106327 2004-07-13  Robert Millan  <robertmh@gnu.org>
106329         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
106331 2004-07-09  Simon Josefsson  <jas@extundo.com>
106333         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
106334         failed without this.)
106336 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
106338         * modules/chown (Files): Add lib/fchown-stub.c, since
106339         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
106341 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
106343         * lib/fchown-stub.c: New file.
106345 2004-06-24  Jim Meyering  <jim@meyering.net>
106347         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
106349 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106351         * modules/argz: Omit "#include".
106353         * MODULES.html.sh (func_all_modules): Add calloc, to match
106354         2004-06-01 addition of calloc module.
106356 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106358         * m4/argz.m4: New file, which is autoupdated from libtool.
106360 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106362         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
106363         libtool.
106365 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106367         * config/srclist-update: Don't insist on "USA." before the
106368         close-comment, as libtool omits the period and puts the */ on a
106369         separate line.
106370         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
106371         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
106373 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
106375         * modules/argz: New file.
106376         * MODULES.html.sh (func_all_modules): Add argz.
106378 2004-06-12  Jim Meyering  <jim@meyering.net>
106379         and  Paul Eggert  <eggert@cs.ucla.edu>
106381         * modules/hash (Files): Add lib/xalloc.h.
106382         * modules/pipe (Depends-on): Add wait-process.
106383         * modules/stat (Depends-on): Add xalloc.
106384         * modules/userspec (Files): Add lib/userspec.h.
106385         * modules/xstrto
106387         Upgrade from gettext-0.13.
106388         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
106389         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
106390         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
106392 2004-06-10  Jim Meyering  <jim@meyering.net>
106394         * lib/calloc.c: New file.
106396 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
106398         * lib/getdate.y (yylex): Allow space between sign and number.
106399         Problem reported by Dan Jacobson.
106401 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
106403         Merge from coreutils CVS.
106405         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
106406         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
106407         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
106408         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
106409         xstrtol.m4: Fix copyright date and/or serial number.
106411         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
106412         See if we need an fchown replacement.
106413         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
106414         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
106415         and use the replacement function if we detect either defect.
106417         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
106418         gl_UTIMECMP.
106420 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
106421         and  Jim Meyering  <jim@meyering.net>
106423         Merge from coreutils CVS.
106425         * lib/stat-macros.h: New file, with contents from file-type.h
106426         and coreutils' system.h.
106427         * lib/file-type.c: Include "stat-macros.h".
106428         * lib/file-type.h (file_type): Move all macro definitions to new file,
106429         stat-macros.h.
106431         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
106432         Wrap old code with this conditional.
106433         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
106434         function that does not dereference symlinks.
106435         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
106437         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
106438         dependency problems.
106439         (xreadlink): Accept new arg SIZE, for efficiency.
106440         All decls and uses changed.
106441         * lib/xreadlink.h: Include <stddef.h>, for size_t.
106443         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
106444         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
106446         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
106447         sysexits.h.
106449 2004-06-01  Jim Meyering  <jim@meyering.net>
106451         * m4/calloc.m4: New file.
106453 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
106455         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
106456         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
106457         Also, fix a typo in a diagnostic.
106459 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
106461         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
106462         or AC_FUNC_REALLOC.
106464 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
106466         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
106467         macros to be defined.
106468         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
106469         the allocator returns NULL because the requested size is zero.
106471 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106473         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
106474         var.  Add comment explaining why libc still defines it.  This
106475         merges the following patch from glibc:
106476         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
106478 2004-05-20  Andreas Schwab  <schwab@suse.de>
106480         * m4/free.m4: Replace free if it not known to work, not the other
106481         way round.
106483 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
106485         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
106486         present in glibc since revision 1.1 of this file.
106487         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
106488         obstack_alignment_mask, obstack_alloc, obstack_base,
106489         obstack_blank, obstack_blank_fast, obstack_chunk_size,
106490         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
106491         obstack_grow0, obstack_init, obstack_int_grow,
106492         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
106493         obstack_next_free, obstack_object_size, obstack_ptr_grow,
106494         obstack_ptr_grow_fast, obstack_room): Remove declarations of
106495         nonexistent functions.
106497 2004-05-18  Karl Berry  <karl@gnu.org>
106499         * config/srclist.txt: break link for vasnprintf.c.
106501 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
106503         Port obstack to the AS/400, where pointers are 16 bytes wide and
106504         you cannot cast an integer to a valid pointer.  This patch is
106505         currently waiting to be integrated into glibc; see
106506         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
106508         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
106509         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
106510         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
106511         (struct obstack): temp member is now a union of a pointer and
106512         an integer, instead of an integer.  All integer uses changed.
106513         This does not affect the physical layout of struct obstack,
106514         except on hosts (like the AS/400) where the size or alignment of
106515         void * is greater than that of ptrdiff_t.
106516         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
106517         __STDC__)]: Store temporary in pointer member of union, not
106518         integer member.
106519         * lib/obstack.c: Include <stddef.h>, for offsetof.
106520         (struct fooalign): Remove; it doesn't need a name.
106521         (union fooround): Change double to long double, and add void *.
106522         (DEFAULT_ALIGNMENT): Use offsetof to compute.
106523         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
106524         not a macro.  Hence the values are always int; so remove all
106525         casts-to-int in uses.
106527 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
106529         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
106530         we can get this patch merged into glibc.
106532 2004-05-17  Derek R. Price  <derek@ximbiot.com>
106533             Paul Eggert  <eggert@cs.ucla.edu>
106535         * m4/argp: Depend on alloca.
106537 2004-05-17  Derek R. Price  <derek@ximbiot.com>
106538             Paul Eggert  <eggert@cs.ucla.edu>
106540         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
106541         freecoding.
106543 2004-05-17  Bruno Haible  <bruno@clisp.org>
106545         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
106546         precision that consists of a '.' followed by an empty digit string.
106547         Patch by Tor Lillqvist <tml@iki.fi>.
106549 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
106551         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
106552         for backward compatibility with older code.  We need our own
106553         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
106554         it under some other name, and our alloca.h will define it.
106556 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
106557             Derek Price  <derek@ximbiot.com>
106559         * lib/alloca.c: Include <alloca.h>, to get our interface.
106560         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
106561         include <alloca.h> first.  Use C89 prototype for alloca; this
106562         requires including <stddef.h> for size_t.  Use extern "C" if C++.
106563         Use #elif for simplicity, since we can assume C89 now.
106564         Don't try to source the system alloca.h since it will not be found
106565         and to prevent recursively including its replacement.
106566         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
106567         * lib/regex.c: Likewise.
106569 2004-05-16  Derek Price  <derek@ximbiot.com>
106570             Paul Eggert  <eggert@cs.ucla.edu>
106572         getline cleanup.  This changes the getndelim2 API: both order of
106573         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
106574         no delimiter).
106576         * lib/getline.c: Don't include stddef.h or stdio.h, since our
106577         interface does that.
106578         (getline): Always use getdelim, so that we don't have two
106579         copies of this code.
106580         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
106581         if available.
106582         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
106583         (GETNDELIM2_MAXIMUM): New macro.
106584         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
106585         instead of the old practice of delim2==0.  All callers changed.
106586         Return -1 on overflow, instead of returning junk.
106587         Do not set *linesize unless allocation succeeds.
106588         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
106589         that we include sys/types.h.
106590         * lib/getnline.h: Likewise.
106591         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
106592         (getndelim2): Reorder arguments.
106593         * lib/getnline.c (getnline, getndelim):
106594         Don't discard the NMAX argument.
106595         (getnline): Invoke getndelim, to avoid code duplication.
106596         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
106597         of (size_t) -1 by callers of the getnline family.
106599 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106601         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
106602         Check for gettimeofday.
106603         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
106604         Check for settimeofday, stime.
106606 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106608         * lib/nanosleep.c (suspended): Change its type from int to
106609         sig_atomic_t volatile.
106610         (first_call): Make it private to rpl_nanosleep, and have it
106611         be zero initially as that's a bit faster.
106612         (my_usleep): Round up fractional times instead of truncating them,
106613         as this is the usual meaning for 'sleep'.
106615         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
106616         doesn't work.
106617         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
106618         (ENOSYS): Define if not defined.
106619         (settime): Fall back on stime if it exists and settimeofday fails.
106620         But don't bother with fallbacks if a method fails with errno == EPERM.
106622 2004-05-11  Jim Meyering  <jim@meyering.net>
106624         Prior to this change, the save_cwd caller required read access to the
106625         current directory on most systems (ones with the fchdir function).
106627         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
106628         fails, try write-only, and finally, resort to using xgetcwd.
106630 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
106632         * lib/obstack.c, obstack.h: Import changes from libc.
106634 2004-04-28  Bruno Haible  <bruno@clisp.org>
106636         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
106637         also implicitly appends .exe to executables.
106638         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
106639         accepts Windows pathnames.
106640         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
106641         Treat Cygwin like Windows, since it now accepts Windows pathnames.
106642         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
106643         Treat Cygwin like Windows, since it now accepts Windows pathnames.
106644         Reported by Derek Robert Price <derek@ximbiot.com>.
106646 2004-04-21  Karl Berry  <karl@gnu.org>
106648         * config/srclist.txt (localcharset.c): break sync.
106650 2004-04-20  Paul Eggert  <eggert@twinsun.com>
106652         * m4/host-os.m4: Add a copyright notice.
106654 2004-04-20  Jim Meyering  <jim@meyering.net>
106656         Change UTILS_ to gl_ in AC_DEFINE'd names.
106657         Change utils_- and jm_-prefixed variables, too.
106658         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
106659         UTILS_FUNC_MKDIR_TRAILING_SLASH.
106660         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
106662         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
106663         Don't emit trailing blanks.
106664         Also rename jm_-prefixed variables to have gl_ prefix.
106666         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
106667         Also rename jm_-prefixed variables to have gl_ prefix.
106669         * m4/jm-macros.m4: Reflect the renamings.
106670         * m4/prereq.m4: Likewise.
106672 2004-04-20  Jim Meyering  <jim@meyering.net>
106674         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
106675         memory.
106677 2004-04-20  Jim Meyering  <jim@meyering.net>
106678             Bruno Haible  <bruno@clisp.org>
106680         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
106681         memory when realloc fails.
106683 2004-04-19  Jim Meyering  <jim@meyering.net>
106685         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
106686         now that readutmp.c may call `free (0)'.
106688 2004-04-19  Bruno Haible  <bruno@clisp.org>
106690         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
106691         * m4/inttypes_h.m4: Likewise.
106692         * m4/stdint_h.m4: Likewise.
106693         * m4/intmax_t.m4: Likewise.
106694         * m4/uintmax_t.m4: Likewise.
106696 2004-04-18  Jim Meyering  <jim@meyering.net>
106698         * m4/prereq.m4: Don't forbid jm_ prefix.
106700         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
106701         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
106702         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
106703         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
106704         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
106705         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
106706         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
106707         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
106708         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
106709         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
106710         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
106711         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
106712         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
106713         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
106714         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
106715         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
106716         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
106717         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
106718         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
106720 2004-04-18  Jim Meyering  <jim@meyering.net>
106722         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
106723         failure, don't leak memory and do call END_UTMP_ENT.
106725 2004-04-16  Jim Meyering  <jim@meyering.net>
106727         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
106728         coreutils' stat program.
106729         (gl_PREREQ): Don't require jm_PREREQ_STAT.
106731 2004-04-11  Paul Eggert  <eggert@twinsun.com>
106733         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
106734         C89.
106735         (CHAR_BIT): Remove, since we assume C89.
106736         Include <stdint.h> if available, as per current Autoconf CVS advice.
106738 2004-03-31  Jim Meyering  <jim@meyering.net>
106740         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
106741         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
106742         * m4/xalloc.m4: Likewise.
106744 2004-03-30  Paul Eggert  <eggert@twinsun.com>
106746         Merge from coreutils.
106748         * m4/inttostr.m4: New file.
106749         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
106750         Require AM_STDBOOL_H and gl_TIMESPEC instead.
106751         Require gl_CLOCK_TIME.
106752         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
106754 2004-03-30  Paul Eggert  <eggert@twinsun.com>
106756         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
106757         not bool, to be more consistent with Unix conventions.
106758         Suggested by Bruno Haible.
106760         Merge from coreutils.
106762         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
106763         * lib/umaxtostr.c: New files.
106765         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
106766         the usual <time.h> dance.
106767         (get_date): Change signature to support fractional time stamps.
106768         All callers changed.
106769         * lib/getdate.y: Include "getdate.h" first, as we can now
106770         assume C89 and don't need to worry about 'const'.
106771         Similarly, include "unlocked-io.h" near start, not in middle.
106772         Include <limits.h>.
106773         (textint.value): Use long int rather than int.
106774         (textint.digits): Use size_t rather than int.
106775         (BILLION, LOG10_BILLION): New constants.
106776         (parser_control): New member rel_ns.  Members day_ordinal,
106777         time_zone, month, day, hour, minutes, rel_year, rel_month,
106778         rel_day, rel_hour, rel_minutes, rel_seconds
106779         are now long int, not int.  Member seconds is now struct timespec,
106780         not int.  New member timespec_seen.  Members dates_seen, days_seen,
106781         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
106782         not int.
106783         (%union.intval): Now long int, not int.
106784         New member timespec.
106785         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
106786         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
106787         (spec): Now is a timespec or an item list.
106788         (timespec, items): New nonterminals.
106789         (time, rel, relunit, number, get_date):
106790         Add support for fractional seconds.
106791         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
106792         (gmtime, localtime, mktime): Remove decls; not needed with C89.
106793         (to_hour): First arg is now long int, not int.
106794         (to_year): Returns long int, not int.
106795         Don't treat year -70 like 70.
106796         (tm_diff): Returns long int, not int.
106797         (lookup_word): Use bool instead of int when appropriate.
106798         (yylex): Use size_t for count, not int.
106799         Detect overflow when parsing large integer constants.
106800         Add support for fractions.
106801         (get_date): Make pointers 'const' if possible.
106802         Use more-portable code to detect integer overflow.
106803         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
106804         Don't use ctime; it's not reliable if the year has >4 digits.
106806         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
106807         This is for compatibility with BSD.
106809         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
106810         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
106811         From coreutils' system.h.
106813         * lib/userspec.c: Don't include "posixver.h".
106814         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
106815         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
106816         compatible extension.  Simplify code by removing a boolean int
106817         that was always nonzero if a string was nonnull.
106819 2004-03-30  Jim Meyering  <jim@meyering.net>
106821         Merge from coreutils.
106823         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
106824         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
106825         on some systems one must include <grp.h> before it.
106826         Reported by Christian Krackowizer.
106828 2004-03-30  Jim Meyering  <jim@meyering.net>
106830         Merge from coreutils.
106832         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
106834         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
106835         an empty input stream.
106837         * lib/readtokens.c: Include <stdbool.h>.
106838         (readtoken): Use `size_t' rather than int/long.
106839         All callers adjusted.
106840         Use `bool' rather than `int' where appropriate.
106841         Use memset rather than an explicit loop.
106842         Use x2nrealloc rather than xrealloc.
106843         Allow the use of `\0' as a delimiter.
106844         (readtokens): Likewise.
106845         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
106847 2004-03-30  Jim Meyering  <jim@meyering.net>
106849         * m4/realloc.m4: Remove file, since now it does no more than
106850         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
106851         the `configure.ac' section of module/realloc.
106852         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
106854 2004-03-30  Bruno Haible  <bruno@clisp.org>
106856         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
106857         nonnull.
106859 2004-03-29  Paul Eggert  <eggert@twinsun.com>
106861         Merge changes to getloadavg.c from coreutils and Emacs.
106863         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
106864         Define to an expression, not to the empty string.
106865         Include cloexec.h and xalloc.h.
106866         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
106867         Use set_cloexec_flag rather than rolling our own.
106868         * lib/cloexec.c, lib/cloexec.h: New files.
106870 2004-03-29  Paul Eggert  <eggert@twinsun.com>
106872         * m4/cloexec.m4: New file.
106874 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106876         * lib/getopt.h: Sync with libc CVS.
106878 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106879             Bruno Haible  <bruno@clisp.org>
106881         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
106882         mbswidth.
106884 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106885             Bruno Haible  <bruno@clisp.org>
106887         * lib/mbswidth.h: Include <wchar.h> only if
106888         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
106889         <wchar.h>.
106890         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
106892 2004-03-09  Paul Eggert  <eggert@twinsun.com>
106894         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
106895         Sync with libc CVS.
106896         * lib/getopt_int.h: New file, also synced from libc.
106898 2004-03-09  Paul Eggert  <eggert@twinsun.com>
106900         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
106901         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
106902         Bring back getopt.c, getopt.h, getopt1.c.
106904 2004-03-07  Paul Eggert  <eggert@twinsun.com>
106906         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
106907         All uses changed.  Check for sa_sigaction member; this fixes
106908         a bug first reported by Jason Andrade in
106909         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
106911 2004-03-07  Paul Eggert  <eggert@twinsun.com>
106913         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
106914         '#if' expressions.  Unlike the code it replaces, it does not
106915         depend on (defined _SC_PAGESIZE).  However, it does depend on
106916         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
106917         first reported by Jason Andrade in
106918         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
106920 2004-02-25  Simon Josefsson  <jas@extundo.com>
106922         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
106924 2004-02-25  Simon Josefsson  <jas@extundo.com>
106926         * lib/strdup.h: New file.
106927         * lib/strdup.c: Include it.
106928         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
106929         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
106931 2004-02-23  Karl Berry  <karl@gnu.org>
106933         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
106934         (from fencepost.gnu.org:/gd/gnuorg).
106936 2004-02-23  Karl Berry  <karl@gnu.org>
106938         * config/srclistvars.sh (GNUORG) [karl]: redefine.
106939         * config/srclist.txt: add maintain/standards documents.
106941 2004-02-18  Bruno Haible  <bruno@clisp.org>
106943         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
106944         Reported by Derek Robert Price <derek@ximbiot.com>.
106946 2004-02-16  Karl Berry  <karl@gnu.org>
106948         * config/mkinstalldirs, install-sh: update from automake.
106950 2004-02-06  Karl Berry  <karl@gnu.org>
106952         * m4/po.m4: update from gettext 0.14.1.
106954 2004-02-06  Karl Berry  <karl@gnu.org>
106956         * lib/config.charset: update from gettext 0.14.1.
106958 2004-02-05  Paul Eggert  <eggert@twinsun.com>
106960         Add comments and code, prompted by suggestions from Bruno Haible
106961         for sh-quote.
106962         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
106963         describing the enum quoting_style values.
106964         * lib/quotearg.c (quotearg_alloc): New function.
106965         (quotearg_buffer_restyled): Treat lone { and } as special.
106966         Treat = as special.  Work around bug with older shells
106967         that "see" a '\' that is really the 2nd byte of a multibyte char.
106968         Quote empty string with shell_quoting_style.
106970 2004-02-03  Bruno Haible  <bruno@clisp.org>
106972         * m4/pipe.m4: New file, from GNU gettext.
106974 2004-02-03  Bruno Haible  <bruno@clisp.org>
106976         * lib/pipe.h: New file, from GNU gettext.
106977         * lib/pipe.c: New file, from GNU gettext.
106979 2004-01-27  Bruno Haible  <bruno@clisp.org>
106981         * m4/execute.m4: New file, from GNU gettext.
106983 2004-01-27  Bruno Haible  <bruno@clisp.org>
106985         * lib/execute.h: New file, from GNU gettext.
106986         * lib/execute.c: New file, from GNU gettext.
106987         * lib/w32spawn.h: New file, from GNU gettext.
106989 2004-01-24  Paul Eggert  <eggert@twinsun.com>
106991         Merge from diffutils.
106993         * lib/file-type.c (file_type): Add typed memory objects.
106994         * lib/file-type.h (S_TYPEISTMO): New macro.
106996         * lib/c-stack.h (c_stack_action): Remove argv argument.
106997         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
106998         (die): Don't calculate message unless segv_action returns.
106999         (get_stack_location, min_address_from_argv, max_address_from_argv,
107000         volatile stack_base, volatile_stack_size): Remove.
107001         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
107002         that every segmentation violation is a stack overflow.  (Ouch!)
107003         See Debian bug 136249 (still outstanding) for more info about why
107004         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
107006 2004-01-24  Paul Eggert  <eggert@twinsun.com>
107008         Exit-status fix from coreutils.
107010         Use exit_failure consistently in place of EXIT_FAILURE,
107011         so that program exit statuses are consistent on failure.
107013         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
107014         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
107015         * lib/argmatch.h: Comment fix to match the above.
107016         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
107017         Now a macro referring to exit_failure, instead of a separate
107018         variable.  Include "exitfail.h" to get it.
107019         * lib/xstrtol.h: Include "exitfail.h".
107020         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
107022         * lib/long-options.c (parse_long_options): Use prototype
107023         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
107024         for clarity.
107026 2004-01-21  Jim Meyering  <jim@meyering.net>
107028         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
107029         so as not to conflict with a different-sized __mktime_internal
107030         function in GNU libc.
107031         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
107032         Problem building statically-linked `ls' reported by Michael Brunnbauer.
107034 2004-01-20  Karl Berry  <karl@gnu.org>
107036         * config/config.guess: update from config.
107038         * config/srclistvars.sh: GNUWWWLICENSES for karl.
107040 2004-01-20  Bruno Haible  <bruno@clisp.org>
107042         Safer stack allocation.
107043         * lib/setenv.c: Include allocsa.h.
107044         (alloca): Remove fallback definition.
107045         (freea): Remove macro.
107046         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
107047         instead of freea.
107049 2004-01-20  Bruno Haible  <bruno@clisp.org>
107051         * m4/eealloc.m4: New file, from GNU gettext.
107053 2004-01-20  Bruno Haible  <bruno@clisp.org>
107055         * m4/allocsa.m4: New file, from GNU gettext.
107057 2004-01-20  Bruno Haible  <bruno@clisp.org>
107059         * lib/xallocsa.h: New file, from GNU gettext.
107060         * lib/xallocsa.c: New file, from GNU gettext.
107062 2004-01-20  Bruno Haible  <bruno@clisp.org>
107064         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
107066 2004-01-20  Bruno Haible  <bruno@clisp.org>
107068         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
107069         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
107070         specially.
107072 2004-01-20  Bruno Haible  <bruno@clisp.org>
107074         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
107075         patch.
107077 2004-01-20  Bruno Haible  <bruno@clisp.org>
107079         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
107081 2004-01-20  Bruno Haible  <bruno@clisp.org>
107083         * lib/eealloc.h: New file.
107085 2004-01-20  Bruno Haible  <bruno@clisp.org>
107087         * lib/binary-io.h: Avoid warnings on Cygwin.
107089 2004-01-20  Bruno Haible  <bruno@clisp.org>
107091         * lib/allocsa.h: New file, from GNU gettext.
107092         * lib/allocsa.c: New file, from GNU gettext.
107094 2004-01-18  Karl Berry  <karl@gnu.org>
107096         * doc/gpl.texi, doc/lgpl.texi: new files.
107098 2004-01-18  Karl Berry  <karl@gnu.org>
107100         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
107101         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
107103 2004-01-15  Paul Eggert  <eggert@twinsun.com>
107105         Merge from coreutils.
107107         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
107108         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
107109         (gl_DEFAULT_POSIX2_VERSION): Move
107110         the documentation from 'configure' into 'config.hin',
107111         so that 'configure --help' isn't burdened by it and
107112         we don't have to worry about its formatting there.
107113         Reword the documentation so that it's more succinct
107114         and can be run together into a single paragraph.
107115         * m4/same.m4 (gl_SAME): Check for pathconf.
107117 2004-01-15  Paul Eggert  <eggert@twinsun.com>
107119         Merge from coreutils.
107121         * lib/posixver.c: Include posixver.h.
107123         * lib/same.c: Include <stdbool.h>, <limits.h>.
107124         (_POSIX_NAME_MAX): Define if not defined.
107125         (MIN): New macro.
107126         (same_name): If file names are silently truncated, report
107127         that the file names are the same if they are the same after
107128         the silent truncation.
107130         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
107131         conversion function.
107132         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
107133         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
107134         longer needed.
107136 2004-01-15  Jim Meyering  <jim@meyering.net>
107138         Merge from coreutils.
107140         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
107141         if no library is required.
107142         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
107143         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
107144         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
107145         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
107146         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
107147         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
107148         value, $ac_cv_search_crypt, if it's "none required".
107149         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
107150         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
107151         not gl_FUNC_GETLOADAVG.
107152         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
107153         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
107155 2004-01-15  Jim Meyering  <jim@meyering.net>
107157         Merge from coreutils.
107159         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
107160         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
107161         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
107163         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
107164         optional configure-time default.
107166         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107168         * lib/xreadlink.c (xreadlink): Correct outdated comment.
107170 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
107172         Merge from coreutils.
107174         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
107175         value, $ac_cv_search_nanosleep, if it's "none required".
107177 2004-01-14  Paul Eggert  <eggert@twinsun.com>
107179         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
107180         with like-named macro in fnmatch.c.
107181         (EXT): Use an internal constant instead.
107183         Merge fnmatch patches from glibc.
107184         * lib/fnmatch.c (mbsinit): Remove define.
107185         Add libc_hidden_ver (__fnmatch, fnmatch).
107186         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
107187         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
107189 2004-01-14  Karl Berry  <karl@gnu.org>
107191         * config/install-sh: update from automake.
107193 2004-01-13  Karl Berry  <karl@gnu.org>
107195         * config/install-sh: update from automake.
107197 2004-01-09  Karl Berry  <karl@gnu.org>
107199         * config/install-sh: update from automake.
107201 2004-01-05  Karl Berry  <karl@gnu.org>
107203         * config/config.{sub,guess}: update from config.
107205 2003-12-31  Karl Berry  <karl@gnu.org>
107207         * config/depcomp: update from automake.
107209 2003-12-14  Karl Berry  <karl@gnu.org>
107211         * lib/config.charset: update from gettext-runtime.
107213 2003-12-03  Paul Eggert  <eggert@twinsun.com>
107215         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
107216         Bug reported by Alfred M. Szmidt.
107218 2003-12-03  Bruno Haible  <bruno@clisp.org>
107220         * m4/gettext.m4: Upgrade from gettext-0.13.
107221         * m4/po.m4: Upgrade from gettext-0.13.
107222         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
107223         * m4/intmax.m4: New file, from gettext-0.13.
107224         * m4/printf-posix.m4: New file, from gettext-0.13.
107226 2003-11-29  Karl Berry  <karl@gnu.org>
107228         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
107230 2003-11-25  Paul Eggert  <eggert@twinsun.com>
107231             Bruno Haible  <bruno@clisp.org>
107233         * lib/printf-parse.h: Don't include sys/types.h.
107234         (ARG_NONE): New macro.
107235         (char_directive): Change type of *arg_index fields to size_t.
107236         * lib/printf-parse.c: Don't include sys/types.h.
107237         (SSIZE_MAX): Remove macro.
107238         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
107239         Remove unnecessary overflow check.
107240         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
107241         fields.
107243 2003-11-25  Bruno Haible  <bruno@clisp.org>
107245         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
107247 2003-11-25  Bruno Haible  <bruno@clisp.org>
107249         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
107250         gt_TYPE_SSIZE_T.
107252 2003-11-24  Paul Eggert  <eggert@twinsun.com>
107254         * modules/alloca: Remove dependency on xalloc.
107256 2003-11-24  Paul Eggert  <eggert@twinsun.com>
107258         * lib/alloca.c: Remove dependency on xalloc module.
107259         (xalloc_die): Remove.
107260         (memory_full) [!defined emacs]: New macro.
107261         [!defined emacs]: Don't include xalloc.h.
107262         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
107263         address arithmetic overflows.  Change datatypes a bit to avoid
107264         unnecessary casts.
107266 2003-11-22  Jim Meyering  <jim@meyering.net>
107268         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
107269         s/size/size_t/.
107271 2003-11-21  Karl Berry  <karl@gnu.org>
107273         * config/config.{sub,guess}: update from config.
107275 2003-11-18  Karl Berry  <karl@gnu.org>
107277         * config/config.{sub,guess}: update from config.
107279         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
107281 2003-11-17  Paul Eggert  <eggert@twinsun.com>
107283         * README: Mention that S+T cannot overflow if S is the size of
107284         an existing object and T is sufficiently small.
107286 2003-11-17  Jim Meyering  <jim@meyering.net>
107288         On systems without utime and without a utimes function capable of
107289         dealing with a NULL struct utimbuf* argument, this utime replacement
107290         could -- in unusual circumstances -- leak a file descriptor.
107291         * lib/utime.c: Include <unistd.h> and <errno.h>.
107292         (utime_null): Be sure to close `fd' and to preserve errno.
107293         Reported by Geoff Collyer via Arnold Robbins.
107295 2003-11-17  Bruno Haible  <bruno@clisp.org>
107297         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
107298         (Depends-on): Add xsize.
107300 2003-11-17  Bruno Haible  <bruno@clisp.org>
107302         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
107304 2003-11-17  Bruno Haible  <bruno@clisp.org>
107306         * lib/vasnprintf.c (alloca): Remove fallback definition.
107307         (freea): Remove definition.
107308         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
107309         Reported by Paul Eggert.
107311 2003-11-16  Paul Eggert  <eggert@twinsun.com>
107312             Bruno Haible  <bruno@clisp.org>
107314         Protect against address arithmetic overflow.
107315         * lib/printf-args.h: Include stddef.h.
107316         (arguments): Change type of field 'count' to size_t.
107317         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
107318         'unsigned int' where appropriate.
107319         * lib/printf-parse.h: Include sys/types.h.
107320         (char_directive): Change type of *arg_index fields to ssize_t.
107321         (char_directives): Change type of fields 'count', max_*_length to
107322         size_t.
107323         * lib/printf-parse.c: Include sys/types.h and xsize.h.
107324         (SSIZE_MAX): Define fallback value.
107325         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
107326         instead of 'int' where appropriate. Check a_allocated, d_allocated
107327         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
107328         * lib/vasnprintf.c: Include xsize.h.
107329         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
107330         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
107331         overflow. Avoid wraparound when converting a width or precision from
107332         decimal to binary.
107334 2003-11-16  Bruno Haible  <bruno@clisp.org>
107336         Update from GNU gettext.
107337         * lib/printf-parse.c: Generalize to it can be compiled for wide
107338         strings.
107339         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
107340         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
107341         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
107342         SNPRINTF): New macros.
107343         Don't include <alloca.h> if the file is used inside libintl.
107344         (local_wcslen): New function, for Solaris 2.5.1.
107345         (VASNPRINTF): Use it instead of wcslen.
107347 2003-11-16  Bruno Haible  <bruno@clisp.org>
107349         * lib/xsize.h (xmax): New function.
107350         (xsum, xsum3, xsum4): Declare as "pure" functions.
107352 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107354         * modules/xalloc (Files): Undo latest change, since xalloc.h
107355         no longer needs SIZE_MAX or PTRDIFF_MAX.
107357 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107359         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
107360         gl_PTRDIFF_MAX.
107362 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107364         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
107365         "return", to pacify some unknown compiler.  Problem reported
107366         by Joerg Schilling.
107368 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107370         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
107371         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
107372         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
107373         heuristic is just as accurate as far as we know, and it removes a
107374         dependency on size_max.m4 and ptrdiff_max.m4.
107376 2003-11-11  Bruno Haible  <bruno@clisp.org>
107378         * modules/xsize (Files): Add m4/size_max.m4.
107379         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
107381 2003-11-11  Bruno Haible  <bruno@clisp.org>
107383         * m4/size_max.m4: New file.
107384         * m4/ptrdiff_max.m4: New file.
107385         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
107386         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
107387         (gl_XALLOC): Invoke it.
107389 2003-11-11  Bruno Haible  <bruno@clisp.org>
107391         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
107392         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
107393         defined.
107395 2003-11-10  Paul Eggert  <eggert@twinsun.com>
107397         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
107398         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
107399         rejected some allocations of exactly SIZE_MAX - 2 bytes.
107400         From Bruno Haible.
107401         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
107402         not (size_t) -1, since it's defined here.
107404 2003-11-09  Karl Berry  <karl@gnu.org>
107406         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
107408 2003-11-06  Paul Eggert  <eggert@twinsun.com>
107410         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
107411         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
107412         Reject sizes of exactly SIZE_MAX bytes.
107413         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
107414         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
107416 2003-11-05  Bruno Haible  <bruno@clisp.org>
107418         * lib/xsize.h: Include limits.h, to avoid a possible collision with
107419         SIZE_MAX defined in <limits.h> on Solaris.
107421 2003-11-04  Jim Meyering  <jim@meyering.net>
107423         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
107424         variable names, rather than @VAR@.
107425         * modules/poll: Likewise.
107427 2003-11-04  Bruno Haible  <bruno@clisp.org>
107429         * modules/xsize: New file.
107430         * modules/linebreak: Depend on xsize.
107431         * MODULES.html.sh (func_all_modules): Add xsize.
107433 2003-11-04  Bruno Haible  <bruno@clisp.org>
107435         * m4/xsize.m4: New file.
107437 2003-11-04  Bruno Haible  <bruno@clisp.org>
107439         * lib/xsize.h: New file.
107440         * lib/linebreak.c: Include xsize.h.
107441         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
107442         argument for overflow.
107443         Suggested by Paul Eggert.
107445 2003-11-03  Karl Berry  <karl@gnu.org>
107447         * config/config.{guess,sub}: update from config.
107449 2003-11-03  Jim Meyering  <jim@meyering.net>
107451         * modules/userspec (lib_SOURCES): Add userspec.h.
107452         (Include): Add "userspec.h".
107453         Improve description.
107455 2003-11-03  Jim Meyering  <jim@meyering.net>
107457         * lib/userspec.c: Include "userspec.h".
107458         * lib/userspec.h: New file.
107460 2003-11-03  Bruno Haible  <bruno@clisp.org>
107462         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
107464 2003-11-03  Bruno Haible  <bruno@clisp.org>
107466         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
107467         available, to avoid (extremely rare) race condition.
107468         Suggested by Paul Eggert.
107470 2003-11-02  Karl Berry  <karl@gnu.org>
107472         * config/srclist.txt (vasprintf.c): sync broken, sigh.
107474 2003-10-31  Paul Eggert  <eggert@twinsun.com>
107476         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
107477         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
107478         (read_filesystem_list): Set and use me_type_malloced.
107479         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
107480         whatever the type happens to be), for brevity and consistency.
107481         Check for size calculation overflow on Alphas running OSF/1.
107483 2003-10-31  Jim Meyering  <jim@meyering.net>
107485         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
107487         * lib/linebuffer.c: Include <string.h> for declaration of memset.
107489 2003-10-30  Paul Eggert  <eggert@twinsun.com>
107490             Bruno Haible  <bruno@clisp.org>
107492         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
107493         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
107495 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
107497         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
107498         netbsd*-gnu*.  Suggested by Robert Millan.
107500 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107502         * modules/group-member: Depend on stdbool.
107504 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107506         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
107508 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107510         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
107511         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
107512         after the 'gnu' in these cases.  This fixes some bugs in the
107513         previous change, and is based on suggestions by Robert Millan.
107515 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107517         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
107518         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
107519         no longer needed.
107520         * lib/quotearg.c (quotearg_n_options): Use it.
107521         * lib/group-member.c: Include <stdbool.h>.
107522         (free_group_info): Arg is now const *; don't free arg.
107523         (get_group_info): Now returns bool and accepts struct group_info *,
107524         rather than returning a malloc'ed struct group_info *.
107525         All uses changed.  Check for overflow in internal size calculation.
107527         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
107528         rather than xmalloc/xrealloc.
107529         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
107530         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
107531         conformance bug: the old code used a pointer after freeing the
107532         storage that it addressed.
107533         * lib/hash.c (hash_initialize): Simplify the code by using
107534         xalloc_oversized rather than doing it by hand.
107535         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
107536         the buffer preserved.  Use free and xmalloc instead.
107537         * lib/quotearg.c (quotearg_n_options): Likewise.
107538         Use a simpler test for size overflow.  Don't use xalloc_oversized
107539         because unsigned int might be wider than size_t (!); this suggests
107540         that we should switch from unsigned int to size_t for slot numbers.
107542 2003-10-28  Paul Eggert  <eggert@twinsun.com>
107544         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
107545         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
107546         NetBSD kernels.  Requested by Richard Stallman.
107548 2003-10-27  Paul Eggert  <eggert@twinsun.com>
107550         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
107551         to allocate the returned structure.  Do not allocate a subarray,
107552         as x2nrealloc will do that.
107553         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
107554         instead of xnrealloc.
107555         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
107557 2003-10-27  Bruno Haible  <bruno@clisp.org>
107559         * lib/stdbool_.h: Better support for BeOS.
107561 2003-10-26  Paul Eggert  <eggert@twinsun.com>
107563         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
107564         now uses inline.
107566 2003-10-26  Paul Eggert  <eggert@twinsun.com>
107568         * lib/xalloc.h (xalloc_oversized): New static inline function, for
107569         callers that want to do their own size-overflow checking.  Include
107570         <stdbool.h>, since xalloc_oversized returns bool.
107571         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
107572         to use xalloc_oversized.
107574         Add two functions x2realloc, x2nrealloc, for programs that grow
107575         arrays dynamically by doubling their sizes.
107576         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
107577         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
107578         New functions.
107580         Port to C99 semantics for 'inline' of external functions.
107581         Bug reported by Bruno Haible.
107582         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
107583         with the old contents of xnmalloc.
107584         (xnmalloc, xmalloc): Use it.
107585         (xnrealloc_inline): New static inline function,
107586         with the old contents of xnrealloc.
107587         (xnrealloc, xrealloc): Use it.
107589         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
107590         that.
107592 2003-10-26  Karl Berry  <karl@gnu.org>
107594         * config/srclist.txt (COPYING.DOC): no longer available from
107595         /gd/gnuorg; don't know where the ultimate source is.
107597 2003-10-25  Paul Eggert  <eggert@twinsun.com>
107599         Fix several address-calculation bugs in the hash modules,
107600         plus some minor code cleanup.
107602         * lib/hash.h: Include <stdbool.h>, for bool.
107603         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
107604         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
107605         hash_get_n_entries, hash_get_max_bucket_length,
107606         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
107607         hash_rehash): Use size_t rather than unsigned.
107608         * lib/hash.c (struct hash_table, hash_get_n_buckets,
107609         hash_get_n_buckets_used, hash_get_n_entries,
107610         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
107611         hash_get_entries, hash_do_for_each, hash_string, is_prime,
107612         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
107613         Likewise.
107614         (SIZE_MAX): Define if not defined.
107615         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
107616         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
107617         hash_print):
107618         Use const * when possible.
107619         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
107620         (check_tuning): Fix bug: if tuning parameters were very close to
107621         0 or 1, rounding errors could have caused subscript violations.
107622         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
107623         (hash_initialize): Add 'fail:' label
107624         to free table and return NULL, and use it to simplify code.
107625         Use calloc rather than clearing the storage ourself.
107626         (hash_initialize, hash_rehash): Check for arithmetic overflow in
107627         buffer size calculations.
107628         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
107629         Include <stddef.h>, for size_t.
107630         * lib/hash-pjw.c (hash_pjw): Likewise.
107631         Switch to method described by Bruno Haible.
107632         Include <limits.h>, for CHAR_BIT.
107633         (SIZE_BITS): New macro.
107635 2003-10-23  Paul Eggert  <eggert@twinsun.com>
107637         * m4/getline.m4 (AM_FUNC_GETLINE):
107638         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
107639         hosts.  Problem reported by Derek Robert Price in
107640         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
107641         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
107642         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
107644 2003-10-21  Paul Eggert  <eggert@twinsun.com>
107646         * lib/getndelim2.c (getndelim2): When size calculation overflows,
107647         ceiling the allocation at NMAX bytes rather than silently
107648         discarding input bytes before NMAX is reached.  This makes
107649         a difference only if NMAX exceeds SIZE_MAX / 2.
107651         * lib/obstack.c: Merge from glibc.
107652         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
107653         Add libc_hidden_def (_obstack_newchunk).
107654         (_obstack_free) [! defined _LIBC]: Remove.
107655         [defined _LIBC]: Make a strong alias from obstack_free, rather than
107656         a clone of the function body.
107657         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
107658         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
107660         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
107661         glibc.
107662         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
107663         arg to memcpy.
107665         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
107666         (obstack_ptr_grow_fast, obstack_int_grow_fast):
107667         Don't use lvalue casts, as GCC plans to remove support for them
107668         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
107669         was also present in the non-GCC version, indicating that this
107670         code had always been buggy and had never been widely used.
107671         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
107672         Use the fast variant of each macro, rather than copying the
107673         definiens of the fast variant; that way, we'll be more likely to
107674         catch future bugs in the fast variants.
107676 2003-10-20  Bruno Haible  <bruno@clisp.org>
107678         * modules/wait-process: New file.
107679         * MODULES.html.sh (func_all_modules): Add wait-process.
107681 2003-10-20  Bruno Haible  <bruno@clisp.org>
107683         * m4/wait-process.m4: New file.
107685 2003-10-20  Bruno Haible  <bruno@clisp.org>
107687         * lib/wait-process.h: New file, from GNU gettext.
107688         * lib/wait-process.c: New file, from GNU gettext.
107690 2003-10-19  Jim Meyering  <jim@meyering.net>
107692         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
107693         HPUX 10.20.
107695 2003-10-18  Karl Berry  <karl@gnu.org>
107697         * config/config.guess: update from config.
107699 2003-10-16  Paul Eggert  <eggert@twinsun.com>
107701         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
107702         (getgroups): First arg is int, not size_t.
107703         Don't let 'free' mangle errno.
107705 2003-10-16  Paul Eggert  <eggert@twinsun.com>
107707         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
107709 2003-10-16  Karl Berry  <karl@gnu.org>
107711         * config/config.{guess,sub}: update from config.
107713 2003-10-16  Jim Meyering  <jim@meyering.net>
107715         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
107716         memcpy.
107718 2003-10-15  Paul Eggert  <eggert@twinsun.com>
107720         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
107721         (SIZE_MAX): Remove.
107722         (new_exclude, add_exclude_file): Initial size no longer needs to
107723         be a power of 2.
107724         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
107725         our own address arithmetic overflow checking.
107727         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
107728         (fnmatch): Do not alloca more than 2000 wide characters;
107729         instead, use malloc for large buffers.
107730         Check for address arithmetic overflow, and return -1
107731         with errno set to ENOMEM in that case.
107732         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
107733         (NEW_PATTERN): Do not alloca more than 8000 bytes;
107734         instead, return -1.  Check for address arithmetic overflow.
107736 2003-10-14  Paul Eggert  <eggert@twinsun.com>
107738         Handle invalid suffixes and overflow independently, so that
107739         callers can treat them independently as needed.  Fix some bugs in
107740         suffix handling, e.g., "100k@" was not diagnosed as an invalid
107741         suffix for a human-readable blocksize.  The major caller-visible
107742         change is the addition of a new
107743         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
107744         that both overflow and suffix chars were found.
107746         * lib/human.c (humblock): Don't check separately for invalid suffix
107747         char; that is xstrtoumax's job (now that its bug is fixed).
107748         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
107749         INTMAX_MAX]: New macros.
107750         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
107751         TYPE_MAXIMUM): New macros.
107752         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
107753         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
107754         if overflow occurs, as it's what __strtol does and it's more useful
107755         in practice.
107756         (__xstrtol): If __strtol reports some error other than ERANGE,
107757         reflect it to the caller as LONGINT_INVALID.  If it reports
107758         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
107759         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
107760         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
107761         value.
107762         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
107763         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
107764         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
107765         [defined UINTMAX_MAX]: New macros.
107767 2003-10-14  Bruno Haible  <bruno@clisp.org>
107769         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
107771 2003-10-14  Bruno Haible  <bruno@clisp.org>
107773         * m4/sig_atomic_t: New file, from GNU gettext.
107774         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
107776 2003-10-14  Bruno Haible  <bruno@clisp.org>
107778         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
107779         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
107780         Also use volatile where needed.
107782 2003-10-12  Paul Eggert  <eggert@twinsun.com>
107784         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
107785         Change maintainer from Bruno Haible to 'all'.
107787 2003-10-12  Paul Eggert  <eggert@twinsun.com>
107789         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
107791 2003-10-12  Paul Eggert  <eggert@twinsun.com>
107793         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
107794         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
107795         and define in terms of the other primitives.
107796         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
107797         (SIZE_MAX): Define if not already defined.
107798         (array_size_overflow): New function.
107799         (xalloc_die): Abort instead of exiting if 'error' returns.
107800         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
107801         (xmalloc, xrealloc): Use them.
107802         (xcalloc): Check for address arithmetic overflow.
107803         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
107804         a bit faster than strcpy.
107806 2003-10-10  Simon Josefsson  <jas@extundo.com>
107808         * modules/argp (Depends-on): Add restrict and strcase.
107810 2003-10-10  Simon Josefsson  <jas@extundo.com>
107812         * m4/argp.m4: Add AC_C_INLINE.
107814 2003-10-08  Paul Eggert  <eggert@twinsun.com>
107816         Merge getpass from libc, plus a few fixes.
107818         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
107819         Include <stdbool.h>.
107820         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
107821         __fsetlocking to empty.
107822         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
107823         do include <bits/libc-lock.h>.
107824         Do not include <fcntl.h>; not needed.
107825         [_LIBC]: Include <wchar.h>.
107826         (NOTCANCEL_MODE): New macro.
107827         (flockfile, funlockfile) [_LIBC]: New macros.
107828         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
107829         [!_LIBC]: New macros.
107830         (call_fclose): New function.
107831         (getpass): Use it.  Save tty stream separately; this simplifies the
107832         code and makes it more reliable if stdin happens to equal stdout.
107833         Invoke __fsetlocking on tty.
107834         Handle thread cancellation if needed.
107835         Namespace cleanup (use __tcgetattr, __getline).
107836         Use bool for Booleans.
107837         [USE_IN_LIBIO]: Handle wide streams.
107838         [!_LIBC]: Unconditionally do the fseek, since we don't know what
107839         stream might go where.
107841         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
107842         doesn't have to include <stdio.h> before us.
107843         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
107844         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
107845         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
107846         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
107847         if not declared, so that we can use getpass.c code from libc without
107848         rewriting it.
107849         (flockfile, ftrylockfile, funlockfile): New macros.
107851 2003-10-08  Paul Eggert  <eggert@twinsun.com>
107853         * modules/getpass: Depend on stdbool.
107855 2003-10-08  Paul Eggert  <eggert@twinsun.com>
107857         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
107859 2003-10-07  Karl Berry  <karl@gnu.org>
107861         * config/config.{guess,sub}: update from config.
107863 2003-10-06  Jim Meyering  <jim@meyering.net>
107864             Bruno Haible  <bruno@clisp.org>
107866         This lets translators provide better translations for the
107867         "Written by ..." part of --version output.
107868         * lib/version-etc.h: Include stdarg.h.
107869         (version_etc_copyright): Declare as readonly.
107870         (version_etc): Make this function variadic with a NULL-terminated list
107871         of author name strings.
107872         (version_etc_va): New declaration.
107873         * lib/version-etc.c: Include stdarg.h, stdlib.h.
107874         (version_etc_copyright): Declare as readonly.
107875         (version_etc_va): New function. Provide a different translatable string
107876         for each possible number of authors < 10. Abbreviate when there are 10
107877         authors or more.
107878         (version_etc): Make this function variadic. Call version_etc_va.
107879         Suggestion from Gary V. Vaughan.
107881         * lib/long-options.h (parse_long_options): Change prototype: the
107882         authors string is moved to the end and becomes variadic.
107883         * lib/long-options.c: Include stdarg.h.
107884         (parse_long_options): Make this function variadic, too.
107885         Call version_etc_va, not version_etc.
107887 2003-10-06  Bruno Haible  <bruno@clisp.org>
107889         * modules/version-etc-2: Remove file.
107890         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
107892 2003-10-06  Bruno Haible  <bruno@clisp.org>
107894         * modules/fatal-signal: New file.
107895         * MODULES.html.sh (func_all_modules): Add fatal-signal.
107897 2003-10-06  Bruno Haible  <bruno@clisp.org>
107899         * m4/fatal-signal.m4: New file.
107900         * m4/signalblocking.m4: New file, from GNU gettext.
107902 2003-10-06  Bruno Haible  <bruno@clisp.org>
107904         * lib/version-etc-2.h: Remove file.
107905         * lib/version-etc-2.c: Remove file.
107907 2003-10-06  Bruno Haible  <bruno@clisp.org>
107909         * lib/fatal-signal.h: New file, from GNU gettext.
107910         * lib/fatal-signal.c: New file, from GNU gettext.
107912 2003-10-05  Paul Eggert  <eggert@twinsun.com>
107914         * README: Rework advice for preventing empty .o files.
107915         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
107916         not <sys/types.h>.
107918 2003-10-04  Karl Berry  <karl@gnu.org>
107920         * lib/argp*: update from libc.
107922 2003-10-04  Karl Berry  <karl@gnu.org>
107924         * config/config.{guess,sub}: update from config.
107926 2003-10-02  Bruno Haible  <bruno@clisp.org>
107928         * modules/lchown (Include): Add lchown.h.
107929         * modules/time_r (Include): Use "..." syntax.
107930         * modules/xgetdomainname (Include): Add xgetdomainname.h.
107932 2003-10-01  Simon Josefsson  <jas@extundo.com>
107934         * MODULES.html.sh (func_all_modules): Move gethostname from section
107935         'based on' to section 'lacking' POSIX:2001.
107937 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
107939         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
107940         to output mode on the same stream.
107942 2003-09-29  Paul Eggert  <eggert@twinsun.com>
107944         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
107945         Fix arg typo in previous patch.
107947 2003-09-28  Jim Meyering  <jim@meyering.net>
107949         * lib/error.c: Correct cpp indentation.
107951 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107953         * modules/free: New file.
107955 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107957         * m4/free.m4: New file.
107959 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107961         * lib/minmax.h (MIN, MAX)
107962         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
107963         Omit the special code that used __typeof__, since we worry that
107964         it could be more trouble than it's worth.  See:
107965         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
107966         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
107968         * lib/free.c: New file.
107970 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
107972         Trivial fixes to Makefile.am parts of module listings.
107973         * modules/strstr: Append strstr.h to lib_SOURCES.
107974         * modules/strcase: Likewise, for strcase.h.
107976 2003-09-27  Karl Berry  <karl@gnu.org>
107978         * config/mkinstalldirs: update from automake.
107980 2003-09-26  Paul Eggert  <eggert@twinsun.com>
107982         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
107983         (error_tail): Do not loop, reallocating temporary buffer, since
107984         the output cannot contain more wide characters than the input
107985         contains bytes, the size must be big enough already.  This avoids
107986         one potential size overflow calculation.  Check for size overflow
107987         when calculating temporary buffer size.  Free temporary buffer
107988         when done, if it was allocated with malloc; this plugs a memory
107989         leak.  Remove casts from void * to pointers, that are no longer
107990         needed now that we're assuming C89 or better.
107992         Merge error changes from glibc.
107994         * lib/error.c, error.h: Update copyright notice header to match glibc.
107995         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
107996         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
107997         Disable cancellation while printing error.
107998         * lib/error.h: Prepend __ to parameter names.
108000 2003-09-26  Jim Meyering  <jim@meyering.net>
108002         * lib/error.c (error_tail): Move some declarations
108003         into inner scope where the local variables are used.
108005 2003-09-26  Bruno Haible  <bruno@clisp.org>
108007         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
108008         stpncpy().
108009         Don't define stpncpy through config.h; it's now done through stpncpy.h.
108011 2003-09-26  Bruno Haible  <bruno@clisp.org>
108013         * lib/stpncpy.h (gnu_stpncpy): New declaration.
108014         (stpncpy): Define as alias for gnu_stpncpy.
108015         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
108017 2003-09-25  Simon Josefsson  <jas@extundo.com>
108019         * lib/xgetdomainname.h: New file.
108020         * lib/xgetdomainname.c: New file.
108022 2003-09-25  Simon Josefsson  <jas@extundo.com>
108023             Bruno Haible  <bruno@clisp.org>
108025         * modules/getdomainname: New file.
108026         * modules/xgetdomainname: New file.
108027         * MODULES.html.sh (func_all_modules): Add getdomainname,
108028         xgetdomainname.
108030 2003-09-25  Simon Josefsson  <jas@extundo.com>
108031             Bruno Haible  <bruno@clisp.org>
108033         * m4/getdomainname.m4: New file.
108035 2003-09-25  Simon Josefsson  <jas@extundo.com>
108036             Bruno Haible  <bruno@clisp.org>
108038         * lib/getdomainname.h: New file.
108039         * lib/getdomainname.c: New file.
108041 2003-09-25  Karl Berry  <karl@gnu.org>
108043         * lib/argp-fmtstream.c, argp-help.c: update from libc.
108045 2003-09-25  Karl Berry  <karl@gnu.org>
108047         * config/install-sh: update from automake.
108049 2003-09-25  Bruno Haible  <bruno@clisp.org>
108051         * modules/version-etc-2: New file, from modules/version-etc with
108052         modifications.
108053         * MODULES.html.sh (func_all_modules): Add version-etc-2.
108055 2003-09-25  Bruno Haible  <bruno@clisp.org>
108057         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
108058         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
108060 2003-09-24  Simon Josefsson  <jas@extundo.com>
108062         * modules/xgethostname: Add xgethostname.h.
108064 2003-09-24  Paul Eggert  <eggert@twinsun.com>
108066         * lib/linebuffer.c (freebuffer): Don't free the argument, just
108067         the buffer associated with the argument.  Bug reported by
108068         Simon Josefsson.
108070 2003-09-24  Paul Eggert  <eggert@twinsun.com>
108072         * README: Document assumptions that 'int' is at least 32 bits
108073         wide, that integer arithmetic is 2's complement without overflow,
108074         that there are no holes in integer values, that adding sizes of
108075         two nonoverlapping objects can't overflow, and that all-bits-zero
108076         yields scalar zero.  Fix spelling and capitalization typos.
108078 2003-09-19  Karl Berry  <karl@gnu.org>
108080         * lib/argp.h: update from libc.
108082 2003-09-17  Paul Eggert  <eggert@twinsun.com>
108084         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
108085         to avoid spurious warnings like "AC_RUN_IFELSE was called before
108086         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
108088 2003-09-17  Paul Eggert  <eggert@twinsun.com>
108090         * gnulib-tool: Use "test -h", not "test -L", for portability
108091         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
108092         (tags_regexp): Remove, since \| doesn't conform to POSIX.
108093         (sed_extract_prog): Issue s commands one-by-one, rather than
108094         using \| in one s command.
108096 2003-09-16  Paul Eggert  <eggert@twinsun.com>
108098         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
108099         input error, instead of returning NULL the next time we are called
108100         (and therefore losing track of errno).
108102 2003-09-16  Bruno Haible  <bruno@clisp.org>
108104         * gnulib-tool (func_create_testdir): Warn about duplicated
108105         dependencies.
108107 2003-09-15  Paul Eggert  <eggert@twinsun.com>
108109         * modules/argmatch, modules/fatal, modules/obstack,
108110         modules/xalloc, modules/xgethostname: Sort dependencies by
108111         importance, not alphabetically.
108113 2003-09-15  Paul Eggert  <eggert@twinsun.com>
108115         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
108116         fails, so that the caller gets the proper errno.
108118         * lib/readutmp.c (read_utmp): Likewise.
108119         Check for fstat error.  Close stream and free storage
108120         when failing.
108122 2003-09-14  Karl Berry  <karl@gnu.org>
108124         * config/srclist.txt (strdup.c): disable for c89 changes.
108126 2003-09-14  Jim Meyering  <jim@meyering.net>
108128         * lib/getloadavg.c: Correct cpp indentation.
108129         * lib/strdup.c: Likewise.
108130         * lib/vasnprintf.c: Likewise.
108132 2003-09-14  Bruno Haible  <bruno@clisp.org>
108134         * modules/fwriteerror: New file.
108135         * MODULES.html.sh (func_all_modules): Add fwriteerror.
108137 2003-09-14  Bruno Haible  <bruno@clisp.org>
108139         * lib/fwriteerror.h: New file.
108140         * lib/fwriteerror.c: New file.
108142 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108144         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
108145         modules/xgethostname, modules/xalloc: Depend on exit.
108147 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108149         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
108151         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
108152         and AC_MINIX, too, so that their extensions are available.
108154         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
108155         This macro has been superseded by gl_BACKUPFILE.
108157         More patches to assume C89 or better.
108159         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
108161         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
108162         unconditionally.
108163         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
108164         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
108165         Include <string.h>, <stdlib.h> unconditionally.
108166         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
108167         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
108168         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
108169         headers or for string.h.
108170         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
108171         or strtoul.
108173         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
108174         headers.
108175         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
108176         * m4/userspec.m4 (gl_USERSPEC): Likewise.
108177         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
108178         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
108179         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
108180         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
108181         memcpy, memset.
108182         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
108183         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
108184         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
108185         strtol.
108186         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
108187         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
108188         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
108189         strtoul.
108191 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108193         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
108194         * lib/obstack.c [!defined _LIBC]: Likewise.
108195         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
108196         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
108197         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
108199         More changes to assume C89 or better.
108201         * lib/error.c (error_tail): Assume vprintf.
108203         * lib/argmatch.c (getenv): Remove decl.
108204         * lib/progreloc.c (get_full_program_name): Define via prototype.
108205         * lib/setenv.c (clearenv): Likewise.
108206         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
108207         needed.
108208         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
108209         (malloc, memcpy): Remove decls.
108210         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
108211         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
108212         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
108213         (memcpy): Remove macro.
108214         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
108215         (__P): Remove.  All uses removed.
108216         (PTR): Remove.  All uses changed to void *.
108217         (CHAR_BIT, NULL): Remove.
108218         (spaces, zeros, memset_space, memset_zero)
108219         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
108220         Remove.
108221         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
108222         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
108223         Define with prototype.
108224         Remove now-unnecessary prototype decl.
108225         (extra_args_spec): Assume ANSI C.  All uses changed.
108226         (extra_args_spec_iso): Remove.
108227         (my_strftime, emacs_strftimeu): Define via prototype.
108228         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
108229         unconditionally.
108230         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
108231         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
108232         (strtoul, strtol): Remove decls.
108233         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
108234         LONG_MAX): Remove.
108235         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
108236         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
108237         (LOCALE_PARAM_PROTO): New macro.
108238         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
108239         (INTERNAL (strtol), strtol): Define with a prototype.
108240         (PARAMS): Remove.  All uses removed.
108241         * lib/tempname.c: Include <string.h> unconditionally.
108242         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
108243         * lib/xgethostname.c (main): Define with a prototype.
108244         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
108245         Include <stdlib.h> unconditionally.
108246         (calloc, malloc, realloc, free): Remove decls.
108247         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
108248         Include <stdlib.h> unconditionally.  Sort include file names.
108249         (strtod): Remove.
108250         (xstrtod): Define with a prototype.
108251         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
108252         (strtol, strtoul): Remove decls.
108254 2003-09-11  Paul Eggert  <eggert@twinsun.com>
108256         More patches to assume C89 or better.
108257         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
108258         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
108259         string.h, memchr, STDC_HEADERS.
108261 2003-09-11  Paul Eggert  <eggert@twinsun.com>
108263         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
108264         Include <stdlib.h>, <string.h> unconditionally.
108265         Remove now-unnecessary cast to char *.
108266         * lib/strnlen.c: Include <string.h> unconditionally.
108267         * lib/yesno.c (yesno): Define with a prototype.
108269 2003-09-11  Bruno Haible  <bruno@clisp.org>
108271         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
108273 2003-09-10  Jim Meyering  <jim@meyering.net>
108275         * lib/error.c: Correct indentation of cpp directives.
108277 2003-09-10  Bruno Haible  <bruno@clisp.org>
108279         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
108280         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
108281         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
108282         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
108283         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
108284         <stdlib.h> and <string.h> checks.
108285         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
108286         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
108288 2003-09-10  Bruno Haible  <bruno@clisp.org>
108290         * lib/strcspn.c: Include <string.h> unconditionally.
108291         * lib/strpbrk.c: Include <string.h> unconditionally.
108292         * lib/strstr.c: Include <string.h> unconditionally.
108293         * lib/unicodeio.c: Include <string.h> unconditionally.
108294         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
108295         * lib/unsetenv.c: Likewise.
108296         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
108297         * lib/yesno.c: Include <stdlib.h> unconditionally.
108298         (rpmatch): Add prototype.
108300 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108302         More patches to assume C89 or better.
108303         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
108304         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
108305         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
108306         or for string.h.
108307         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
108308         stdlib.h.
108309         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
108310         C headers.
108311         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
108312         string.h.
108313         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
108314         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
108315         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
108316         or for string.h.
108317         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
108318         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
108319         C headers.
108320         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
108321         memcpy.
108322         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
108323         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
108324         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
108325         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
108326         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
108327         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
108328         string.h, free.
108329         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
108330         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
108331         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
108332         C headers, or for string.h.
108333         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
108334         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
108335         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
108336         headers, memory.h, stdlib.h, string.h, strings.h.
108337         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
108338         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
108339         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
108340         strchr.
108341         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
108342         headers, memory.h, string.h.
108343         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
108344         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
108345         free.
108346         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
108347         headers.
108348         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
108349         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
108350         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
108351         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
108352         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
108354 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108356         More K&R removal.
108358         * lib/acosl.c (main): Use a prototype.
108359         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
108360         tanl.c: Likewise.
108362         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
108364         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
108365         (getopt, etopt_long, getopt_long_only, _getopt_internal)
108366         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
108367         with a prototype.
108368         * lib/getopt.c (const): Remove macro.
108369         Include <string.h> unconditionally.
108370         (my_index): Remove; all uses changed to strchr.
108371         (strlen): Remove decl.
108372         (exchange): Remove forward decl; no longer needed.
108373         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
108374         Define with prototype.
108375         * lib/getopt1.c (const): Remove macro.
108376         (getopt_long, getopt_long_only, main): Define with prototype.
108378         * lib/getugroups.c: Include <string.h> unconditionally.
108380         * lib/getusershell.c: Include <stdlib.h> unconditionally.
108381         (getusershell, setusershell, endusershell, readname, main):
108382         Define with prototypes.
108384         * lib/group-member.c: Include group-member.h first.
108385         Include <stdlib.h> unconditionally.
108387         * lib/hard-locale.c: Include hard-locale.h first.
108388         Include <stdlib.h>, <string.h> unconditionally.
108390         * lib/hash.c (free, malloc): Remove decls.
108391         Include <stdlib.h> unconditionally.
108393         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
108394         (getenv): Do not declare.
108396         * lib/idcache.c: Include <string.h> unconditionally.
108398         * lib/long-options.c: Include long-options.h first, to test interface.
108399         Include <stdlib.h> unconditionally.
108401         * lib/makepath.c: Include makepath.h first, to test interface.
108402         Include <stdlib.h> and <string.h> unconditionally.
108404         * lib/linebuffer.c: Include <stdlib.h>.
108405         (free): Remove decl.
108407         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
108408         stddef.h. rpl_malloc returns void *, not char *.
108409         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
108410         prototype.
108412         * lib/md5.h: Include <limits.h> unconditionally.
108413         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
108414         (__P): Remove; all uses removed.
108415         * lib/md5.c: Include "md5.h" first.
108416         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
108417         md5_buffer, md5_process_bytes, md5_process_block):
108418         Define with prototypes.
108419         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
108420         * lib/sha.c: Include "sha.h" first.
108421         Include <stdlib.h>, <string.h> unconditionally.
108423         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
108424         * lib/memcmp.c (__ptr_t): Likewise.
108425         * lib/memrchr.c (__ptr_t): Likewise.
108426         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
108427         Include <string.h> unconditionally.
108428         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
108429         * lib/memchr.c: Include <stdlib.h> unconditionally.
108430         * lib/memchr.c (LONG_MAX): Remove.
108431         * lib/memrchr.c (LONG_MAX): Likewise.
108432         * lib/memchr.c (__memchr): Define via a prototype.
108433         * lib/memrchr.c (__memrchr): Likewise.
108434         * lib/memcmp.c (__P): Remove, and remove all uses.
108435         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
108436         Remove forward decls; no longer needed.
108437         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
108438         Use types required by C89 in prototype.
108440         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
108441         * lib/savedir.c: Likewise.
108442         * lib/mkdir.c (free): Remove decl.
108443         * lib/rmdir.c (rmdir): Define with a prototype.
108444         * lib/savedir.c: Include savedir.h first, to test interface.
108446         * lib/mktime.c (STDC_HEADERS): Remove.
108447         Include <stdlib.h>, <string.h> unconditionally.
108449         * lib/modechange.c: Include <stdlib.h> unconditionally.
108450         (malloc): Remove decl.
108452         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
108453         (free): Remove decl.
108455         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
108456         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
108457         (This type really should be intptr_t, but that's a C99ism.)
108458         (_obstack_memcpy): Remove: all uses changed to memcpy.
108459         Include <string.h> unconditionally.
108460         (struct obstack): Assume __STDC__ for types of members
108461         chunkfun, freefun, extra_arg.
108462         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
108463         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
108464         obstack_begin, obstack_specify_allocation,
108465         obstack_specify_allocation_with_arg, obstack_chunkfun,
108466         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
108467         Remove unprototyped decls and the macros that use them.
108468         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
108469         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
108470         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
108471         (defined __STDC__ && __STDC__)]:
108472         Remove nonprototyped code.
108473         Include <stdlib.h> unconditionally.
108474         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
108475         _obstack_allocated_p, _obstack_free, obstack_free,
108476         _obstack_memory_used, print_and_abort):
108477         Define using prototypes.
108478         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
108479         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
108480         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
108481         obstack_next_free, obstack_object_size, obstack_room) [0]:
108482         Remove unused, unprototyped code.
108484         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
108486         * lib/physmem.c (physmem_total, physmem_available, main): Define
108487         with prototypes.
108489         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
108490         (main): Define with a prototype.
108492         * lib/posixver.c (getenv): Remove decl.
108494         * lib/putenv.c (malloc): Returns void *, not char *.
108495         Include <string.h> unconditionally.
108496         (strchr, memcpy, NULL): Do not define.
108498         * lib/readtokens.c: Include readtokens.h first, to test interface.
108499         Include <stdlib.h>, <string.h> unconditionally.
108500         (init_tokenbuffer): Define with a prototype.
108502         * lib/regex.c (PARAMS): Remove.  All uses removed.
108503         All uses of _RE_ARGS removed, too.
108504         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
108505         unconditionally.
108506         (bzero): Assume memset exists.
108507         (memcmp, memcpy, NULL): Remove.
108508         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
108509         char, or assignments to local vars of type signed char.
108510         (init_syntax_once, PREFIX(extract_number_and_incr),
108511         PREFIX(print_partial_compiled_pattern),
108512         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
108513         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
108514         PREFIX(regex_grow_registers), PREFIX(regex_compile),
108515         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
108516         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
108517         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
108518         wcs_compile_range, byte_compile_range, truncate_wchar,
108519         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
108520         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
108521         count_mbs_length, wcs_re_match_2_internal,
108522         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
108523         PREFIX(alt_match_null_string_p),
108524         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
108525         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
108526         regfree, PREFIX(extract_number)): Define with prototype.  Remove
108527         now-unnecessary declaration, if any.
108528         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
108529         regcomp, regexec):
108530         Remove now-unnecessary casts among pointer types.
108531         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
108533         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
108534         (free): Remove decl.
108536         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
108538         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
108539         (free): Remove decl.
108541         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
108542         * lib/xgetcwd.c: Likewise.
108544         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
108545         (free): Remove decl.
108547         * lib/strchrnul.c (strchrnul): Define with a prototype.
108548         Fix bug: c_in was not converted to char before searching.
108550         The following changes are not K&R related:
108552         * lib/group-member.h: Include <sys/types.h>, so that this file is
108553         self-contained.
108554         * lib/makepath.h: Likewise.
108556         * lib/getusershell.c (readname, default_index, line_size, readname):
108557         Use size_t, not int, for sizes.
108558         (readname): If the size overflows, report an error instead of
108559         looping forever.
108561 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108563         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
108564         libc.
108566 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108568         * README: New section: portability guidelines.
108570 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
108572         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
108573         C89 spec.
108575 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
108577         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
108579 2003-09-08  Paul Eggert  <eggert@twinsun.com>
108581         Assume C89 or better; remove K&R cruft.
108582         A few of these changes were first proposed by Derek Robert Price
108583         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
108585         * lib/addext.c: Include <string.h> unconditionally.
108586         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
108587         Don't declare getenv or malloc.
108589         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
108590         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
108591         (NULL): Remove.
108592         (find_stack_direction, alloca): Use prototypes.
108594         * lib/atexit.c (atexit): Define using a prototype.
108596         * lib/basename.c, dirname.c, stripslash.c:
108597         Include <string.h> unconditionally.
108599         * lib/bcopy.c: Include <stddef.h>.
108600         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
108602         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
108604         * lib/error.h (error, error_at_line, error_print_progname)
108605         [! (defined (__STDC__) && __STDC__)]: Remove decls.
108606         * lib/error.c: Include error.h first, to check interface.
108607         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
108608         (VA_START): Remove; all uses changeed to va_start.
108609         (exit, strerror): Remove decls.
108610         (error_print_progname): Prototype uncondionally.
108611         Don't include <errno.h>; no longer needed.
108612         (private_strerror): Remove.
108613         (error_tail): Always define.
108614         (error, error_at_line): Assume C89 or better; always use prototypes.
108615         * lib/fatal.c: Include "fatal.h" first, to test interface.
108616         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
108617         (VA_START): Remove; all uses changed to va_start.
108618         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
108619         this case.
108620         (exit): Remove decl.
108621         (fatal): Prototype unconditionally.  Assume va_start works.
108622         Abort at end, to pacify gcc.
108624         * lib/euidaccess.c (main): Define with a prototype.
108626         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
108628         * lib/exitfail.c: Include <stdlib.h> unconditionally.
108630         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
108631         prototypes.
108632         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
108633         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
108634         (getenv): Remove decl.
108635         (fnmatch): Define using a prototype.
108636         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
108637         (FCT): Define using a prototype.
108639         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
108641         * lib/gethostname.c: Include <stddef.h>.
108642         (gethostname): Define with prototype.  Length is size_t, not int.
108644 2003-09-08  Paul Eggert  <eggert@twinsun.com>
108646         Assume C89 or better; remove K&R cruft.
108647         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
108648         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
108649         string.h, getenv, malloc.
108650         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
108651         headers.
108652         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
108653         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
108654         do not check for strerror.
108655         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
108656         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
108657         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
108658         do not check for doprnt or vprintf.
108659         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
108660         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
108662 2003-09-08  Paul Eggert  <eggert@twinsun.com>
108664         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
108665         getversion.c should have been removed then, but was accidentally
108666         preserved.
108668         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
108669         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
108671 2003-09-08  Karl Berry  <karl@gnu.org>
108673         * config/config.sub, config.guess, srclistvars.sh: update from savannah
108674                 config, forget about prep.
108676         * config/depcomp, missing: update from automake.
108678 2003-09-07  Paul Eggert  <eggert@twinsun.com>
108680         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
108681         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
108683 2003-09-07  Paul Eggert  <eggert@twinsun.com>
108685         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
108686         copy_tm_result.  Bug reported by Simon Josefsson in
108687         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
108689 2003-09-06  Paul Eggert  <eggert@twinsun.com>
108691         * m4/time_r.m4: New file.
108692         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
108693         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
108694         is. Check for timegm declaration.
108695         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
108696         Do not check for gmtime_r.
108697         Replace mktime if __mktime_internal does not exist and if mktime
108698         hasn't been replaced already.
108700 2003-09-06  Paul Eggert  <eggert@twinsun.com>
108702         * lib/time_r.c, lib/time_r.h: New files.
108704         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
108705         __localtime_r.
108706         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
108707         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
108709         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
108710         __gmtime_r.
108711         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
108712         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
108713         Include <time_r.h>.
108715         * lib/timegm.c: Switch to glibc implementation, with the following
108716         changes:
108717         [defined HAVE_CONFIG_H]: Include <config.h>.
108718         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
108719         (__mktime_internal) [!defined _LIBC]: New decl.
108720         (__gmtime_r) [!defined _LIBC]: New macro and function.
108721         (timegm): Use a prototype, since gnulib assumes C89.
108722         Do not bother declaring tmp to be const, as it's not really usefu.
108723         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
108724         (timegm): Declare only if HAVE_DECL_TIMEGM.
108726 2003-09-06  Paul Eggert  <eggert@twinsun.com>
108728         * MODULES.html.sh (func_all_modules): Add time_r.
108729         * modules/time_r: New file.
108730         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
108731         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
108733 2003-09-03  Paul Eggert  <eggert@twinsun.com>
108735         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
108736         Bug reported by Lute Kamstra in
108737         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
108739         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
108740         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
108741         course with correspondingly smaller numbers for tomorrow and
108742         yesterday.  From Tadayoshi Funaba.  Originally installed into
108743         sh-utils on 1999-08-07, but the patch got lost (I guess during the
108744         coreutils merge?).
108746 2003-08-31  Simon Josefsson  <jas@extundo.com>
108748         * modules/timegm: New file.
108749         * MODULES.html.sh (func_all_modules): Add timegm.
108751 2003-08-31  Simon Josefsson  <jas@extundo.com>
108753         * m4/timegm.m4: New file.
108755 2003-08-31  Simon Josefsson  <jas@extundo.com>
108757         * lib/timegm.h: New file.
108758         * lib/timegm.c: New file.  Based on
108759         wget-1.8.2/src/http.c:mktime_from_utc.
108761 2003-08-31  Karl Berry  <karl@gnu.org>
108763         * lib/argp.h: update from libc.
108765 2003-08-28  Bruno Haible  <bruno@clisp.org>
108767         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
108768         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
108769         followed by '#define fnmatch fnmatch_posix' gives an error.
108771 2003-08-28  Bruno Haible  <bruno@clisp.org>
108773         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
108774         warning on QNX, which defines O_BINARY to 000000.
108776 2003-08-27  Jim Meyering  <jim@meyering.net>
108778         * m4/mkstemp.m4: Require that the system mkstemp be able to create
108779         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
108780         would fail after 32.  Reported by Danny Levinson.  Details here:
108781         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
108783 2003-08-24  Bruno Haible  <bruno@clisp.org>
108785         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
108786         MSVC7 <stdio.h> is included later.
108788 2003-08-22  Simon Josefsson  <jas@extundo.com>
108790         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
108792 2003-08-20  Karl Berry  <karl@gnu.org>
108794         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
108796 2003-08-20  Bruno Haible  <bruno@clisp.org>
108798         * modules/progname: New file.
108799         * MODULES.html.sh (func_all_modules): Add progname.
108801 2003-08-20  Bruno Haible  <bruno@clisp.org>
108803         * lib/progname.h: New file, from GNU gettext.
108804         * lib/progname.c: New file, from GNU gettext.
108805         * lib/progreloc.c: New file, from GNU gettext.
108807 2003-08-19  Jim Meyering  <jim@meyering.net>
108809         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
108810         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
108812 2003-08-19  Bruno Haible  <bruno@clisp.org>
108814         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
108815         more.
108817 2003-08-19  Bruno Haible  <bruno@clisp.org>
108819         * lib/xstrdup.c: Assume <string.h> exists.
108821 2003-08-18  Paul Eggert  <eggert@twinsun.com>
108823         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
108824         in makefile rules.
108826 2003-08-18  Jim Meyering  <jim@meyering.net>
108828         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
108829         * m4/lib-ld.m4: Likewise.
108831 2003-08-18  Jim Meyering  <jim@meyering.net>
108833         * lib/setenv.h: Indent nested cpp directive.
108834         * lib/vasnprintf.c: Remove trailing blanks.
108836 2003-08-17  Simon Josefsson  <jas@extundo.com>
108838         * modules/xstrndup: New file.
108839         * MODULES.html.sh (func_all_modules): Add xstrndup.
108841 2003-08-17  Simon Josefsson  <jas@extundo.com>
108843         * modules/argp: Fix autoconf macro name. Add more dependencies.
108845 2003-08-17  Simon Josefsson  <jas@extundo.com>
108847         * m4/xstrndup.m4: New file.
108849 2003-08-17  Simon Josefsson  <jas@extundo.com>
108851         * m4/argp.m4: New file.
108853 2003-08-17  Simon Josefsson  <jas@extundo.com>
108854             Bruno Haible  <bruno@clisp.org>
108856         * lib/xstrndup.h: New file.
108857         * lib/xstrndup.c: New file.
108859 2003-08-17  Bruno Haible  <bruno@clisp.org>
108861         * modules/strndup (Files, Include): Add lib/strndup.h.
108863 2003-08-17  Bruno Haible  <bruno@clisp.org>
108865         * modules/euidaccess (Files): Add lib/euidaccess.h.
108867 2003-08-17  Bruno Haible  <bruno@clisp.org>
108869         * lib/strndup.h: New file.
108871 2003-08-17  Bruno Haible  <bruno@clisp.org>
108873         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
108874         like AC_GNU_SOURCE.
108875         * modules/extensions (configure.ac): Comment out the invocation of
108876         gl_USE_SYSTEM_EXTENSIONS.
108878 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108880         Merges from coreutils, etc.
108881         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
108882         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
108883         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
108884         fixing a typo.
108885         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
108886         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
108888 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108890         Document merge from coreutils.
108891         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
108892         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
108893         * modules/utime: Add m4/utimes-null.m4.
108895 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108897         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
108898         space, undoing this 2003-08-12 change:
108899         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
108901 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108903         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
108904         strtoul.c from libc, undoing this 2003-08-12 change:
108905         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
108907 2003-08-16  Jim Meyering  <jim@meyering.net>
108909         Merges from coreutils.
108910         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
108911         prefix.  Adjust cache variables similarly.  Create 500 rather than
108912         just 300 files, to exercise bug on Darwin6.5, too.
108913         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
108914         $missing_dir.
108915         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
108916         AM_SYS_POSIX_TERMIOS.
108917         Reported by mkc@mathdogs.com.
108918         Also change use of $am_cv_sys_posix_termios
108919         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
108920         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
108921         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
108922         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
108923         in /proc/mounts until it finds one with matching device number.  This
108924         is unnecessary when the FILE argument *is* a mount point.  No stat call
108925         is necessary in that case.  So, disable the statvfs-testing code on
108926         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
108927         as RedHat bug# 84846.
108928         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
108929         to 1MB, so as not to render systems with no stack size limit (e.g.,
108930         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
108931         Include <unistd.h>.  On some systems,
108932         it is required for the definition of _SC_PAGESIZE.
108934 2003-08-16  Jim Meyering  <jim@meyering.net>
108936         Merge from coreutils.
108937         * lib/xstrtoimax.c: #else #if -> #elif.
108938         * lib/xstrtoumax.c: Likewise.
108940 2003-08-16  Jim Meyering  <jim@meyering.net>
108942         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
108943         * m4/utimes.m4: Removed.
108944         * m4/utimes-null.m4: Renamed from utimes.m4.
108946         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
108947         to 1MB, so as not to render systems with no stack size limit (e.g.,
108948         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
108949         Include <unistd.h>.  On some systems,
108950         it is required for the definition of _SC_PAGESIZE.
108952 2003-08-16  Jim Meyering  <jim@meyering.net>
108953         and Paul Eggert  <eggert@cs.ucla.edu>
108955         Merges from coreutils, etc.
108957         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
108958         using the latest version from cvs.  This avoids problems with #line
108959         directives using a vendor (Sun) compiler.
108960         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
108961         Don't set GETGROUPS_LIB here; now it's
108962         done via getgroups.m4's wrapper function.
108963         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
108964         rather than just in sh-util/configure.in, so that the
108965         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
108966         same.
108967         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
108968         AC_FUNC_GETLOADAVG where to find getloadavg.c.
108969         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
108970         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
108971         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
108972         Remove code that is now done by the newly-required macros.
108973         Append $(EXEEXT) to DF_PROG.
108974         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
108975         Do not invoke or require the following here,
108976         since prereq.m4 or some gnulib .m4 now does this for us:
108977         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
108978         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
108979         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
108980         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
108981         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
108982         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
108983         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
108984         AC_FUNC_OBSTACK.
108985         Do not replace the following functions, as this is now the job
108986         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
108987         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
108988         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
108989         atexit getpass, strdup, getpagesize.
108990         Replace 'raise'.
108991         Do not check for the following functions, as this is now the job
108992         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
108993         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
108994         setregid.
108995         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
108996         Check for sys/sysctl.h.
108997         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
108998         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
108999         of checking for ssize_t ourselves.
109001         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
109002         Require every macro that gnulib/modules/* suggests for us.
109003         (jm_PREREQ_ADDEXT): New macro.
109004         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
109005         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
109007         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
109008         (gl_PHYSMEM): Use it.
109009         Also check for `table' function.
109010         Check for new headers and functions.
109011         Add check for sys/sysmp.h.
109012         With suggestions from Kaveh Ghazi.
109013         Ignore headers that are present but cannot be compiled.  This
109014         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
109015         C 5.4.
109017 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109019         Document merge from coreutils.
109020         * modules/userspec: Depend on posixver.
109021         * modules/strftime: Depend on tzset.
109023 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109025         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
109026         rather than tab, after '#' in shell-script copyright notices.
109027         Suggested by Bruno Haible.
109029 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109031         * config/srclist-update: Use three spaces, rather than tab, after '#'
109032         in shell-script copyright notices.  Suggested by Bruno Haible.
109033         Remove unnecessary parenthesization in regular expression.
109035 2003-08-15  Jim Meyering  <jim@meyering.net>
109037         Merge from coreutils.
109038         * lib/xgethostname.c: Include <stdlib.h>.
109039         (xghostname): Don't exit for anything other than memory-related
109040         failure; just return NULL.
109041         * lib/userspec.c: Include "posixver.h".
109042         (parse_user_spec): Accept `.' as a separator only
109043         in pre-POSIX-200112 mode.
109044         * lib/strtoimax.c: Use #elif rather than #else #if.
109045         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
109046         Remove function, now that we can rely on a working tzset function.
109047         [!_LIBC]: Ensure that the required autoconf test has been run.
109048         [!defined _NL_CURRENT && HAVE_STRFTIME]:
109049         Use underlying_strftime for %r.
109050         * lib/sha.c: Merge in some clean-up and optimization changes from
109051         glibc.
109052         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
109053         Ensure that it is a multiple of 64.
109054         Rearrange loop exit tests so as to avoid performing an
109055         additional fread after encountering an error or EOF.
109056         * lib/realloc.c: Update copyright date.
109058 2003-08-15  Jim Meyering  <jim@meyering.net>
109059         and Paul Eggert  <eggert@twinsun.com>
109061         Merge from coreutils.
109062         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
109063         member but strut utmpx does not.  Needed for AIX 4.3.3.
109064         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
109066 2003-08-15  Jim Meyering  <jim@meyering.net>
109067         and Paul Eggert  <eggert@cs.ucla.edu>
109069         Merges from coreutils, etc.
109070         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
109071         Require gl_FUNC_TZSET_CLOBBER.
109072         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
109073         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
109074         members.
109076 2003-08-14  Paul Eggert  <eggert@twinsun.com>
109078         Help the merge from coreutils.
109079         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
109080         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
109081         * m4/tzset.m4: Use it too.
109083 2003-08-14  Paul Eggert  <eggert@twinsun.com>
109085         * modules/tzset: New file.
109087 2003-08-14  Jim Meyering  <jim@meyering.net>
109089         Merges from coreutils.
109090         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
109091         variable names, rather than @FNMATCH_H@.
109092         * modules/alloca: Likewise for $(ALLOCA_H).
109094         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
109095         the three copies of the literal target, `fnmatch.h'.
109096         * modules/alloca (alloca.h): Likewise.
109098 2003-08-14  Jim Meyering  <jim@meyering.net>
109100         Merge from coreutils.
109101         * m4/tzset.m4: New file.
109102         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
109103         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
109104         otherwise, AIX 5.1 systems would end up using the latter.
109105         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
109106         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
109107         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
109108         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
109110 2003-08-14  Jim Meyering  <jim@meyering.net>
109112         Merge from coreutils.
109113         * lib/obstack.h: Whitespace changes.
109114         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
109115         and xcalloc return values.
109116         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
109117         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
109118         hang on OSF/1 5.1 for DIR on both local and remote file systems.
109119         Reported by (and fix confirmed by) Nelson H. F. Beebe.
109120         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
109121         error from mntctl.
109122         Use mntctl's return value to drive the entry-processing loop, since
109123         we can't rely on the value of the vmt_length member in the last
109124         entry.  On some systems doing so could result in exhausting
109125         virtual memory.  Based in part on a patch from Mike Jetzer.
109127 2003-08-14  Jim Meyering  <jim@meyering.net>
109128         and Paul Eggert  <eggert@twinsun.com>
109130         Merges from coreutils, plus other fixes.
109131         * lib/physmem.c: Merge in portability changes from gcc/libiberty
109132         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
109133         for credits and details.  Thanks to Kaveh Ghazi for helping
109134         to keep these files in sync.
109135         (ARRAY_SIZE): Define it.
109136         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
109137         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
109138         (memcasecmp): Don't assume size_t fits in unsigned int.
109139         Remove casts and duplicate code.
109140         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
109141         (memcpy): Remove definition.
109142         Merge in some clean-up and optimization changes from glibc.
109143         [BLOCKSIZE]: Move definition to top of file.
109144         Ensure that it is a multiple of 64.
109145         Rearrange loop exit tests so as to avoid performing an
109146         additional fread after encountering an error or EOF.
109147         * lib/md5.h (md5_uintptr): Define.
109148         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
109149         return to the initial working directory.  Preserve errno
109150         for caller.
109151         * lib/idcache.c: Include "xalloc.h".
109152         (xmalloc, xrealloc): Remove decls.
109153         (getuser): Remove casts no longer required in C89.
109154         * lib/human.c: Include stdio.h, for sprintf.
109155         * lib/group-member.c: Include "xalloc.h".
109156         (xmalloc, xrealloc): Remove decls.
109157         (get_group_info): Remove casts no longer required in C89.
109158         * lib/getusershell.c (readname): Remove casts no longer required in
109159         C89.
109160         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
109161         * lib/getline.c: Whitespace fix, from coreutils.
109163 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109165         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
109166         Check for isascii.
109168         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
109169         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
109170         Undo previous (whitespace-only) change.
109172 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109174         * lib/exclude.c: Include <ctype.h>
109175         (IN_CTYPE_DOMAIN): New macro.
109176         (is_space): New fn.
109177         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
109178         and empty lines.
109180         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
109181         Undo previous (whitespace-only) change.
109183 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109185         * config/srclist-update: Change update back to the old behavior,
109186         leaving whitespace alone.  Use one 'sed' command rather than a
109187         pipeline.
109188         (fixlicense): Now a variable, not a function.
109189         (remove_trailing_blanks): Remove.
109190         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
109191         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
109192         Undo previous (whitespace-only) change.
109194 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109196         Merge from coreutils.
109197         * modules/euidaccess: Add lib_SOURCES, include for new
109198         file euidaccess.h
109200 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109202         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
109203         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
109204         Normalize leading white space and remove trailing white space.
109206         Merge from coreutils
109207         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
109209         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
109210         0.12.1.  These files are now being upgraded automatically by
109211         ../config/srclist-update.
109213 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109215         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
109216         Normalize leading white space and remove trailing white space.
109217         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
109218         notice, as per ../config/srclist-update.
109220         Merge from coreutils.
109221         * lib/euidaccess.h: New file.
109222         * lib/euidaccess.c: Include it.
109223         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
109224         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
109225         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
109227 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109229         * config/srclist-update: Add copyright notice.
109230         (remove_id_lines, remove_trailing_blanks): New constants.
109231         (fixfile): Use them to normalize spacing a bit in copied files.
109232         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
109233         Normalize leading white space and remove trailing white space.
109235         * config/texinfo.tex: Sync with texinfo.
109237         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
109238         strtoul.c from libc, to merge coreutils whitespace changes.
109240         * config/srclist.txt: Get the following m4 files from gettext:
109241         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
109242         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
109243         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
109244         wint_t.m4.
109246 2003-08-12  Karl Berry  <karl@gnu.org>
109248         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
109249         been made.
109251 2003-08-11  Paul Eggert  <eggert@twinsun.com>
109253         * modules/gnu-source, m4/gnu-source.m4:
109254         Remove; we're assuming Autoconf 2.54 or later now.
109255         Suggested by Bruno Haible.
109256         * MODULES.html.sh (func_all_modules): Remove gnu-source.
109258 2003-08-11  Bruno Haible  <bruno@clisp.org>
109260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
109262 2003-08-11  Bruno Haible  <bruno@clisp.org>
109264         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
109265         (vasnprintf): Use it instead of wcslen.
109267 2003-08-11  Bruno Haible  <bruno@clisp.org>
109269         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
109270         value to ensure that _Bool promotes to int. Use #define for _Bool when
109271         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
109273 2003-08-10  Karl Berry  <karl@gnu.org>
109275         * lib/regex.h: update from libc (whitespace fix).
109277 2003-08-09  Paul Eggert  <eggert@twinsun.com>
109279         Merge some files from coreutils.  These changes were
109280         originally made by Jim Meyering.
109281         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
109282         many older Unixes require this.
109283         * lib/alloca.c (alloca): Remove cast to argument of free;
109284         no longer needed in C89.
109285         * lib/alloca_.h, regex.h: Fix white space to match
109286         what GNU indent does.
109288 2003-08-09  Paul Eggert  <eggert@twinsun.com>
109290         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
109291         apparently Emacs's Unicode mode got confused before my 2003-08-05
109292         checkin.
109294 2003-08-08  Paul Eggert  <eggert@twinsun.com>
109296         * m4/extensions.m4: New file.
109297         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
109298         Require gl_USE_SYSTEM_EXTENSIONS.
109299         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
109300         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
109302 2003-08-08  Paul Eggert  <eggert@twinsun.com>
109304         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
109305         * modules/extensions, modules/gnu-source: New files.
109306         * modules/timespec, modules/unlocked-io: Depend on extensions.
109308 2003-08-07  Paul Eggert  <eggert@twinsun.com>
109310         * modules/restrict: New file.
109311         * MODULES.html.sh (func_all_modules): Add restrict.
109312         * modules/regex: Depend on restrict.
109314 2003-08-07  Paul Eggert  <eggert@twinsun.com>
109316         * m4/restrict.m4: New file.
109317         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
109319 2003-08-07  Bruno Haible  <bruno@clisp.org>
109321         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
109322         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
109324 2003-08-07  Bruno Haible  <bruno@clisp.org>
109326         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
109327         makes the module 'getndelim2' compatible with the module 'getline'.
109329 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109331         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
109332         byte with "\201" to avoid glitches when editing that source file
109333         with multi-gnome-terminal.
109335 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109337         * lib/bumpalloc.h: Remove.
109339 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109341         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
109342         * modules/bumpalloc: Remove.
109344 2003-08-04  Paul Eggert  <eggert@twinsun.com>
109346         * lib/getloadavg.c: Change copyright notice and spacing to conform to
109347         GNU coding style.
109349         Merge from coreutils.
109350         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
109351         1. From glibc.
109352         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
109353         from Karl Berry, implemented by Jim Meyering.
109354         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
109355         from Dmitry V. Levin.
109356         Remove anachronistic cast of xrealloc.
109357         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
109358         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
109359         type. Otherwise, it wouldn't compile with at least /bin/cc on
109360         ymp-cray-unicos9.0.2.X.
109361         Combine two mostly-identical uses of alloca into one.
109362         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
109364 2003-08-04  Dave Love  <d.love@dl.ac.uk>
109366         [From Emacs.]
109368         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
109369         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
109370         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
109371         obsolete NLIST_NAME_UNION.
109372         [__GNU__]: Undef BSD and FSCALE.
109373         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
109375 2003-08-03  Paul Eggert  <eggert@twinsun.com>
109377         * lib/stdbool_.h (_Bool): Make it signed char, instead of
109378         an enum type, so that it's guaranteed to promote to int.  See:
109379         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
109381 2003-08-03  Karl Berry  <karl@gnu.org>
109383         * config/depcomp: update from automake.
109385 2003-07-31  Paul Eggert  <eggert@twinsun.com>
109387         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
109388         (strerror): Don't assume that a printable int fits in 14 bytes.
109390 2003-07-31  Bruno Haible  <bruno@clisp.org>
109392         * modules/getpass-gnu: New file.
109393         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
109395 2003-07-31  Bruno Haible  <bruno@clisp.org>
109397         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
109399 2003-07-24  Karl Berry  <karl@gnu.org>
109401         * config/missing: update from automake.
109403 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
109404             Bruno Haible  <bruno@clisp.org>
109406         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
109407         * lib/getline.c (getline, getdelim): Likewise.
109408         Remove _GNU_SOURCE define; now it's defined in config.h through
109409         m4/getline.m4.
109411 2003-07-23  Karl Berry  <karl@gnu.org>
109413         * config/config.sub: update from prep.
109415 2003-07-22  Paul Eggert  <eggert@twinsun.com>
109417         * modules/xalloc (Depends-on): Add exitfail.
109418         * modules/xmemcoll: Likewise.
109420 2003-07-22  Paul Eggert  <eggert@twinsun.com>
109422         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
109423         over-parenthesization in macros.
109425         Sync with coreutils.
109427         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
109428         required by C99.
109430         Use `exit_failure' for xalloc and xmemcoll instead of their own
109431         private exit-failure variables.
109432         * lib/xalloc.h (xalloc_exit_failure): Remove.
109433         * lib/xmalloc.c: Likewise.  Include exitfail.h.
109434         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
109435         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
109436         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
109437         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
109439 2003-07-20  Jim Meyering  <jim@meyering.net>
109441         * modules/closeout (Depends-on): Add exitfail.
109442         Suggestion from Bruno Haible.
109444 2003-07-19  Karl Berry  <karl@gnu.org>
109446         * config/config.sub: update from prep.
109448 2003-07-18  Paul Eggert  <eggert@twinsun.com>
109450         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
109451         Remove.
109452         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
109453         to test that it can stand by itself.  Include "exitfail.h".
109454         Clients should set exit_failure instead.
109455         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
109457 2003-07-18  Bruno Haible  <bruno@clisp.org>
109459         * modules/getndelim2: New file.
109460         * modules/getline: Share files with module getndelim2.
109461         * modules/getnline: Depend on getndelim2 instead of sharing files with
109462         it. Add getnline.c to lib_SOURCES.
109463         * MODULES.html.sh (func_all_modules): Add getndelim2.
109465 2003-07-18  Bruno Haible  <bruno@clisp.org>
109467         * m4/getndelim2.m4: New file.
109468         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
109469         invoke gl_PREREQ_GETNDELIM2.
109470         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
109471         gl_PREREQ_GETNDELIM2.
109472         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
109473         gl_GETNDELIM2.
109475 2003-07-18  Bruno Haible  <bruno@clisp.org>
109477         * lib/getndelim2.h: New file.
109478         * lib/getndelim2.c: Make into a module of its own. Include config.h,
109479         getndelim2.h.
109480         (getndelim2): Make non-static. Change return type to ssize_t.
109481         * lib/getline.h: Change argument names.
109482         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
109483         * lib/getnline.c: Include getndelim2.h.
109485 2003-07-18  Andreas Schwab  <schwab@suse.de>
109487         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
109489 2003-07-17  Karl Berry  <karl@gnu.org>
109491         * config/config.sub: update from prep.
109493 2003-07-17  Bruno Haible  <bruno@clisp.org>
109495         * modules/getnline: New file.
109496         * modules/getline: Add lib/getndelim2.c to source file list.
109497         * MODULES.html.sh (func_all_modules): Add getnline.
109499 2003-07-17  Bruno Haible  <bruno@clisp.org>
109501         * m4/getnline.m4: New file.
109503 2003-07-17  Bruno Haible  <bruno@clisp.org>
109505         * m4/Makefile.am.in: Remove file.
109506         * m4/Makefile.am: Remove file.
109507         * m4/Makefile.in: Remove file.
109509 2003-07-17  Bruno Haible  <bruno@clisp.org>
109511         * lib/getnline.h: New file.
109512         * lib/getnline.c: New file.
109513         * lib/getndelim2.c: New file, extracted from getline.c.
109514         (getndelim2): Renamed from getdelim2, with added nmax argument.
109515         * lib/getline.c: Include getndelim2.c.
109516         (getdelim2): Moved out to getndelim2.c.
109517         (getline, getdelim): Update.
109519 2003-07-17  Bruno Haible  <bruno@clisp.org>
109521         * lib/Makefile.am: Remove file.
109522         * lib/Makefile.in: Remove file.
109524 2003-07-17  Bruno Haible  <bruno@clisp.org>
109526         * configure.in: Remove file.
109527         * Makefile.in: Remove file.
109529 2003-07-17  Bruno Haible  <bruno@clisp.org>
109531         * MODULES.html.sh: Put the </BODY> right before </HTML>.
109533 2003-07-16  Karl Berry  <karl@gnu.org>
109535         * config/srclist-update: was running fixlicense twice, which caused
109536                 texinfo.tex to be nullified for some reason.  Simplify,
109537                 $gplsrc is no longer needed as far as I can see?
109539 2003-07-16  Jim Meyering  <jim@meyering.net>
109541         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
109543 2003-07-15  Paul Eggert  <eggert@twinsun.com>
109545         * config/srclist.txt: Get the following files from gettext-runtime/intl
109546         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
109547         ref-del.sin.  From Bruno Haible.
109548         * config/srclist-update (fixfile): Change grep pattern again, since the
109549         previous fix didn't work (there was another trailing $).  Use
109550         '[$]' to escape the $s.
109552 2003-07-15  Karl Berry  <karl@gnu.org>
109554         * lib/vasnprintf.c: update from gettext.
109556 2003-07-15  Karl Berry  <karl@gnu.org>
109558         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
109559         gets expanded when surrounded by '$'.
109561 2003-07-15  Jim Meyering  <jim@meyering.net>
109563         * modules/save-cwd: Don't depend on error.  From Derek Price.
109565 2003-07-15  Jim Meyering  <jim@meyering.net>
109567         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
109569 2003-07-14  Simon Josefsson  <jas@extundo.com>
109571         * modules/mempcpy: New file.
109572         * MODULES.html.sh (func_all_modules): Add mempcpy.
109574 2003-07-14  Simon Josefsson  <jas@extundo.com>
109576         * m4/mempcpy.m4: New file.
109578 2003-07-14  Simon Josefsson  <jas@extundo.com>
109580         * lib/mempcpy.h: New file.
109581         * lib/mempcpy.c: New file.
109583 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109585         * modules/getdate, modules/posixtm: Depend on mktime.
109587 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109589         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
109590         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
109591         unicodeio.c, unicodeio.h, unlocked-io.h:
109592         Switch from LGPL to GPL.
109594 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109596         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
109597         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
109598         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
109599         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
109600         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
109601         updated automatically by ../config/srclist-update.  This changes
109602         their license from LPGL to GPL.
109604 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109606         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
109607         assumed to refer to the root of the most recent stable gettext version.
109608         * config/srclistvars.sh: Add defaults for eggert.
109609         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
109610         Match "This program" as well as "The program".  This is needed
109611         for gettext.
109613 2003-07-14  Jim Meyering  <jim@meyering.net>
109615         Don't emit diagnostics.  Let callers do that.
109616         * lib/save-cwd.c: Don't include "error.h".
109617         (save_cwd): Don't call error.  Ensure that errno is valid
109618         when returning nonzero.
109620         * lib/save-cwd.h (restore_cwd): Update prototype.
109621         * lib/save-cwd.c (restore_cwd): Remove two parameters.
109622         Simplify.  Don't call error upon failure.  Let callers do that.
109623         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
109624         when auditing is enabled.  But don't bother updating the #if.
109626 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
109628         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
109629         it breaks C++ compilation.
109630         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
109632 2003-07-10  Simon Josefsson  <jas@extundo.com>
109634         * modules/strchrnul (Makefile.am): Add strchrnul.h.
109636 2003-07-10  Jim Meyering  <jim@meyering.net>
109638         * m4/clock_time.m4: Remove trailing blank.
109639         * m4/intmax_t.m4: Likewise.
109641 2003-07-10  Jim Meyering  <jim@meyering.net>
109643         * lib/vasnprintf.c: Remove trailing blanks.
109644         Make cpp indentation consistent.
109646 2003-07-09  Paul Eggert  <eggert@twinsun.com>
109648         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
109649         posixver.c, strftime.c, strnlen.c, strverscmp.c:
109650         Switch from LGPL to GPL.
109652 2003-07-09  Paul Eggert  <eggert@twinsun.com>
109654         * config/srclist.txt: Sort sublists.  Add
109655         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
109656         that differ from gnulib for one reason or another; we'd like this list
109657         to be smaller but for now let's document what we have.
109659 2003-07-08  Paul Eggert  <eggert@twinsun.com>
109661         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
109662         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
109663         and sweeter "eval x=$x".
109664         * config/srclist.txt: Get lib/argp* from glibc.
109666 2003-07-07  Paul Eggert  <eggert@twinsun.com>
109668         * lib/mktime.c: Fix some boundary cases and remove need for floating
109669         point.
109671         Issue a compile-time diagnostic if time_t is floating point, or if
109672         two's complement arithmetic is not in effect, or if arithmetic
109673         right shift does not propagate the sign.  These assumptions were
109674         all in the original code but they weren't checked.
109676         (TIME_T_MIDPOINT, verify): New macros.
109677         (__isleap): Remove; it has integer overflow problems.
109678         (leapyear): New function, without those problems.
109679         (ydhms_tm_diff): Remove; splitting into two parts.
109680         (ydhms_diff): New function, containing the arithmetic part of
109681         the old ydhms_tm_diff function.  Issue a compile-time
109682         diagnostic if we are not using C99 integer division.
109683         Avoid casts when possible.
109684         (guess_time_tm): New function, containing the checking part of
109685         the old ydhms_tm_diff function.  Return the new value, rather than
109686         the difference between it and the old.  Accept a new argument T
109687         so that *T specifies the old value.  Check for overflow in the result.
109689         (__mktime_internal): Use a time_t offset, not a long int offset.
109690         This undoes the 2003-06-04 change, which is no longer needed now
109691         that we have better overflow checking.
109692         (localtime_offset): Likewise.
109694         (__mktime_internal): Avoid harmful overflow on hosts where time_t
109695         and long are 64-bit but int is only 32-bit.
109696         (ydhms_diff): Use long int to store year1 and yday1.
109697         Issue a compile-time diagnostic if long int is not wide enough.
109699         (__mktime_internal): Use long int to store adjusted year and yday.
109700         Use plain C rather than preprocessor commands, if that doesn't
109701         affect efficiency.
109702         Check for overflow (and try to repair) after each probe
109703         rather than checking only at the very end.  This avoids some bugs
109704         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
109705         does not equal GMT offset at maximum time).
109706         Use integer to check for overflow rather than floating point; this
109707         is more portable to non-IEEE hosts, and is a tad faster.
109708         When we detect that we are oscillating between two values,
109709         don't check whether tm_isdst has the requested value, since
109710         we already know the answer.  When tm_isdst has the wrong value,
109711         use a different heuristic to find the right one, based on the
109712         extreme values actually observed in practice in tz2003a,
109713         rather than the (overly optimistic) "previous 3 calendar quarters".
109715         (not_equal_tm, print_tm, check_result): Use "const T" rather than
109716         "T const" to accommodate glibc style.
109717         (check_result): Use less-confusing report format.  "long" -> "long int.
109718         (main): Likewise.
109719         Don't loop if the iteration overflows time_t.
109720         Allow a negative step in the iteration.
109722 2003-07-06  Karl Berry  <karl@gnu.org>
109724         * config/depcomp: update from automake.
109725         * config/config.sub: update from prep.
109727 2003-07-03  Karl Berry  <karl@gnu.org>
109729         * config/config.guess: update from prep.
109731 2003-07-01  Paul Eggert  <eggert@twinsun.com>
109733         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
109734         xreadlink.c now includes it unconditionally.
109736 2003-07-01  Paul Eggert  <eggert@twinsun.com>
109738         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
109739         having it depend on HAVE_SYS_TYPES_H.
109741 2003-07-01  Bruno Haible  <bruno@clisp.org>
109743         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
109744         <sys/types.h> should be sufficient.
109745         Reported by Paul Eggert.
109747 2003-06-26  Karl Berry  <karl@gnu.org>
109749         * config/depcomp: update from automake.
109751 2003-06-26  Bruno Haible  <bruno@clisp.org>
109753         * modules/human: Depend on module stdbool.
109755 2003-06-25  Bruno Haible  <bruno@clisp.org>
109757         * modules/readlink: New file.
109758         * modules/xreadlink: Depend on it.
109759         * MODULES.html.sh (func_all_modules): Add readlink.
109761 2003-06-25  Bruno Haible  <bruno@clisp.org>
109763         * m4/readlink.m4: New file.
109765 2003-06-25  Bruno Haible  <bruno@clisp.org>
109767         * lib/readlink.c: New file.
109769 2003-06-22  Karl Berry  <karl@gnu.org>
109771         * config/srclist.txt: update mkinstalldirs from automake.
109772         * config/mkinstalldirs: update.
109774 2003-06-22  Bruno Haible  <bruno@clisp.org>
109776         Portability to mingw32.
109777         * m4/ssize_t.m4: New file, from GNU gettext.
109778         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
109779         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
109781 2003-06-22  Bruno Haible  <bruno@clisp.org>
109783         * modules/safe-read: Add m4/ssize_t.m4.
109784         * modules/xreadlink: Add m4/ssize_t.m4.
109786 2003-06-20  Bruno Haible  <bruno@clisp.org>
109788         Assume C89, so PARAMS isn't needed.
109789         * lib/unicodeio.h (PARAMS): Remove.
109790         * lib/unicodeio.c: Don't use PARAMS.
109792 2003-06-18  Karl Berry  <karl@gnu.org>
109794         * config/config.{guess,sub}: update from prep.
109796 2003-06-18  Jim Meyering  <jim@meyering.net>
109798         Merge changes from coreutils.
109799         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
109800         Remove explicit declarations of xmalloc and realloc.
109801         Include xalloc.h.
109802         (read_utmp): Remove anachronistic cast of xmalloc.
109804 2003-06-17  Paul Eggert  <eggert@twinsun.com>
109806         Assume C89, so PARAMS isn't needed.
109807         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
109808         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
109809         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
109810         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
109811         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
109812         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
109813         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
109814         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
109815         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
109816         lib/xstrtod.h, lib/xstrtol.h: Likewise.
109817         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
109818         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
109819         no longer needed. Anyway, config.h should always be included before any
109820         other file.
109822 2003-06-11  Simon Josefsson  <jas@extundo.com>
109824         * modules/sysexits: New file.
109825         * MODULES.html.sh (func_all_modules): Add sysexits.
109827 2003-06-11  Simon Josefsson  <jas@extundo.com>
109829         * lib/sysexit_.h: New file.
109831 2003-06-11  Derek Price  <derek@ximbiot.com>
109833         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
109834         necessary.
109836 2003-06-11  Bruno Haible  <bruno@clisp.org>
109838         * m4/sysexits.m4: New file.
109840 2003-06-10  Simon Josefsson  <jas@extundo.com>
109842         * lib/argp.h: New file, from glibc.
109843         * lib/argp-ba.c: New file, from glibc.
109844         * lib/argp-eexst.c: New file, from glibc.
109845         * lib/argp-fmtstream.c: New file, from glibc.
109846         * lib/argp-fmtstream.h: New file, from glibc.
109847         * lib/argp-fs-xinl.c: New file, from glibc.
109848         * lib/argp-help.c: New file, from glibc.
109849         * lib/argp-namefrob.h: New file, from glibc.
109850         * lib/argp-parse.c: New file, from glibc.
109851         * lib/argp-pv.c: New file, from glibc.
109852         * lib/argp-pvh.c: New file, from glibc.
109853         * lib/argp-xinl.c: New file, from glibc.
109855 2003-06-10  Simon Josefsson  <jas@extundo.com>
109857         * modules/strchrnul: New file.
109859 2003-06-10  Simon Josefsson  <jas@extundo.com>
109861         * modules/argp: New file.
109863 2003-06-10  Simon Josefsson  <jas@extundo.com>
109865         * m4/strchrnul.m4: New file.
109867 2003-06-10  Simon Josefsson  <jas@extundo.com>
109869         * lib/strchrnul.h: New file.
109870         * lib/strchrnul.c: New file.
109872 2003-06-10  Bruno Haible  <bruno@clisp.org>
109874         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
109876 2003-06-07  Karl Berry  <karl@gnu.org>
109878         * config/config.{guess,sub}: update from prep.
109880 2003-06-07  Jim Meyering  <jim@meyering.net>
109882         * modules/strtod: Use $(...) notation, not @...@ for
109883         AC_REPLACE'd variables.
109884         * modules/localcharset: Likewise.
109886 2003-06-07  Jim Meyering  <jim@meyering.net>
109888         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
109889         in place of my name in the copyright comment.
109890         Remove definition and uses of __P.
109892         From coreutils.
109893         * lib/stat.c: Don't declare xmalloc explicitly.
109894         Instead, include "xalloc.h".
109895         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
109896         xrealloc, and xcalloc return values.
109897         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
109898         Improve comment.
109899         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
109901 2003-06-07  Bruno Haible  <bruno@clisp.org>
109903         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
109904         avoid AC_CONFIG_LINKS.
109905         * modules/fnmatch (Makefile.am): Use explicit creation rule for
109906         fnmatch.h, to avoid AC_CONFIG_LINKS.
109907         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
109909 2003-06-07  Bruno Haible  <bruno@clisp.org>
109911         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
109912         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
109913         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
109914         directory.
109915         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
109916         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
109917         directory.
109919 2003-06-06  Jim Meyering  <jim@meyering.net>
109921         Merge from coreutils.
109922         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
109923         Consolidate declarations and initializations of *_base* locals.
109925         Merge from coreutils.
109926         This avoids a core dump on systems without GNU putenv,
109927         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
109928         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
109929         (unsetenv): New static function, from GNU libc.
109930         (rpl_putenv): Use it.
109932         * lib/modechange.c: Remove trailing blanks.
109934         Merge from coreutils.
109935         * lib/fsusage.c: Remove declaration of statfs.
109936         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
109938         * lib/posixtm.c: Include <stdbool.h> unconditionally.
109940 2003-06-06  Jim Meyering  <jim@meyering.net>
109942         * lib/stdbool_.h: Renamed from stdbool.h.in.
109944 2003-06-06  Jim Meyering  <jim@meyering.net>
109945             Bruno Haible  <bruno@clisp.org>
109947         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
109948         Adjust Makefile.am snippet not to redirect directly to target.
109949         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
109951 2003-06-05  Paul Eggert  <eggert@twinsun.com>
109953         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
109954         mismatch, look in future quarters as well as past.  This fixes a
109955         bug when processing fall-backwards gaps immediately after a long
109956         period of daylight-saving time.
109958         * lib/mktime.c: Assume freestanding C89 or better.
109959         (HAVE_LIMITS_H): Remove.  Assume it's 1.
109960         (__P): Remove; not used.
109961         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
109962         (mktime, not_equal_tm, print_tm, check_result,
109963         main): Use prototypes.  Use const * where appropriate.
109964         (main): Fix typo in testing code that uncovered by above changes.
109965         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
109967 2003-06-04  Paul Eggert  <eggert@twinsun.com>
109969         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
109970         locale.h, localeconv.  This merges changes from coreutils.
109972         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
109973         It can be removed after the next Autoconf is released.
109974         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
109975         needed.
109977 2003-06-04  Paul Eggert  <eggert@twinsun.com>
109979         * lib/mktime.c: Fix Debian bug 177940
109980         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
109981         (localtime_offset): Now long int, not time_t, because we want it
109982         to be guaranteed to be signed.  All uses changed.
109983         (__mktime_internal): If overflow would occur when adding offset,
109984         don't add it.
109986         Merge 'human' changes from coreutils.  Rewrite to support
109987         locale-specific notations like thousands separators.
109988         * lib/human.c: Simplify authorship notice.
109989         Include human.h immediately after config.h.
109990         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
109991         <limits.h>: Do not include, since human.h does.
109992         (SIZE_MAX, UINTMAX_MAX): New macros.
109993         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
109994         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
109995         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
109996         (power_letter): Renamed from suffixes.
109997         (generate_suffix_backwards): Remove.
109998         (adjust_value): Now takes int style (because of human.h changes)
109999         and long double value (for greater precision on some platforms).
110000         (group_number): New function.
110001         (human_readable): Use it.  Use integer options, not enum.
110002         Put the options before the sizes in the arg list.
110003         Support all the new options.
110004         The old human_readable function has been removed;
110005         use inttostr.h instead.
110006         (human_readable, default_block_size, humblock):
110007         Use uintmax_t, not int, for block sizes.
110008         (human_readable_inexact, block_size_types): Remove.
110009         (block_size_opts): New constant.
110010         (human_options): Renamed from human_block_size, with new signature
110011         that allows block sizes up to UINTMAX_MAX.  All callers changed.
110012         * lib/human.h: Add copyright and authorship notice.
110013         Include <limits.h> and <stdbool.h> unconditionally.
110014         (PARAMS): Remove.  All uses removed.
110015         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
110016         (enum human_inexact_style): Remove tag; now a nameless enum.
110017         (human_floor, human_ceiling, human_round_to_even): Now have
110018         values 2, 0, 1 rather than -1, 1, 0.
110019         (human_group_digits, human_suppress_point_zero, human_autoscale,
110020         human_base_1024, human_SI, human_B): New constants.
110021         (human_readable_inexact, human_block_size): Remove.
110022         (human_readable): Size args are now uintmax_t, not int.
110023         (human_options): New decl.
110025         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
110026         unnecessary now that we assume C89 or better.  This change
110027         imported from coreutils.
110029         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
110030         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
110031         in the 2003-05-30 sync from glibc.
110033         .h files should stand alone, but we shouldn't include <sys/types.h>
110034         if we can get away with just <stddef.h>.
110036         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
110037         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
110038         rather than <sys/types.h>, as we merely need size_t.
110039         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
110040         to get size_t.
110041         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
110042         Include <stdio.h>, to get FILE.
110043         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
110044         memcasecmp.h has included <stddef.h> and all we need is size_t.
110045         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
110046         our interface, instead of including <sys/types.h>
110048 2003-06-04  Paul Eggert  <eggert@twinsun.com>
110050         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
110051         now, as glibc mktime is buggy on non-glibc systems.
110053 2003-06-03  Karl Berry  <karl@gnu.org>
110055         * config/config.sub: update from prep.
110057 2003-06-02  Paul Eggert  <eggert@twinsun.com>
110059         [from coreutils]
110060         Fix some minor time-related bugs with POSIX time arguments.
110061         Some valid time stamps were being rejected (notably -1, and
110062         time stamps before 1900 on 64-bit hosts).  And some invalid
110063         time stamps were being accepted, e.g. September 31.
110065         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
110066         that we can return (time_t) -1 successfully.
110067         * lib/posixtm.c: Likewise.
110068         [HAVE_STDBOOL_H]: Include <stdbool.h>.
110069         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
110070         (t): Remove static var.
110071         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
110072         of static var.  All uses changed.
110073         (year): Do not reject years before 1900; they can occur with
110074         64-bit time_t.
110075         (posix_time_parse): Do not check for out-of-range components;
110076         that is now the caller's responsibility, since our checks were
110077         only approximations.
110078         (posixtime): Use mktime to check for out-of-range components,
110079         since it knows them exactly.
110080         If mktime returns (time_t) -1, check whether an error actually occurred
110081         by invoking localtime on -1.
110082         (main) [TEST_POSIXTIME]: Check for input data errors, and report
110083         posixtime failures better.
110084         Improve the test data (in comments only).
110086 2003-06-02  Karl Berry  <karl@gnu.org>
110088         * config/mkinstalldirs (version): new variable.
110089         (--version): new option.
110090         (usage): improve message.
110092 2003-05-30  Karl Berry  <karl@gnu.org>
110094         * lib/mktime.c: update from libc.
110096 2003-05-30  Bruno Haible  <bruno@clisp.org>
110098         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
110099         * config/config.rpath: Upgrade to gettext-0.12.1.
110101 2003-05-30  Bruno Haible  <bruno@clisp.org>
110103         * m4/gettext.m4: Upgrade to gettext-0.12.1.
110104         * m4/nls.m4: New file, from gettext-0.12.1.
110105         * m4/po.m4: New file, from gettext-0.12.1.
110106         * m4/progtest.m4: Upgrade to gettext-0.12.1.
110108 2003-05-30  Bruno Haible  <bruno@clisp.org>
110110         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
110111         * lib/localcharset.h: Likewise.
110112         * lib/localcharset.c: Likewise.
110114 2003-05-29  Karl Berry  <karl@gnu.org>
110116         * config/config.rpath: update from gettext.
110118 2003-05-28  Paul Eggert  <eggert@twinsun.com>
110120         Assume the headers required for C89 freestanding compilers.
110121         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
110122         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
110123         * m4/human.m4 (gl_HUMAN): Likewise.
110124         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
110125         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
110126         * m4/userspec.m4 (gl_USERSPEC): Likewise.
110127         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
110128         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110129         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
110131 2003-05-28  Paul Eggert  <eggert@twinsun.com>
110133         Assume the headers required for C89 freestanding compilers.
110134         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
110135         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
110136         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
110137         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
110138         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
110139         define, since <limits.h> is guaranteed to do that.
110140         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
110141         * lib/exclude.c: Include <stdbool.h> unconditionally.
110142         * lib/tempname.c: Include <stddef.h> unconditionally.
110143         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
110144         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
110145         <stddef.h> does that.
110146         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
110147         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
110148         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
110149         needed.
110150         * lib/xstrtol.c: Likewise.
110151         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
110152         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
110154         * lib/addext.c (addext): Use assignment rather than cast, to avoid
110155         warnings on some platforms.
110157         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
110158         arbitrarily.
110160 2003-05-26  Jim Meyering  <jim@meyering.net>
110162         Merge in a change from coreutils:
110163         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
110164         that is guaranteed to be `no'.  Use `no_such_member' to indicate
110165         that condition, rather than `-1' which is slightly misleading.
110166         Change the name of the cache variable to have the gl_ prefix.
110167         Prompted by a patch from Richard Dawe for DJGPP.
110169 2003-05-24  Karl Berry  <karl@gnu.org>
110171         * config/config.guess: update from prep.
110173 2003-05-22  Karl Berry  <karl@gnu.org>
110175         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
110177 2003-05-20  Karl Berry  <karl@gnu.org>
110179         * config/config.guess: update from prep.
110181 2003-05-18  Karl Berry  <karl@gnu.org>
110183         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
110184         might actually be set by the user.
110186         * config/depcomp, install-sh, mdate-sh: update from automake.
110188 2003-05-17  Bruno Haible  <bruno@clisp.org>
110190         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
110191         invalid expansion for AC_EGREP_CPP.
110192         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
110193         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
110194         Suggested by Akim Demaille <akim@epita.fr> in
110195         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
110197 2003-05-12  Jim Meyering  <jim@meyering.net>
110199         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
110200         the space-padded-by-default conversion specifiers, %e, %k, %l.
110202 2003-05-12  Bruno Haible  <bruno@clisp.org>
110204         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
110205         the string is longer than 4 KB.
110207 2003-05-11  Karl Berry  <karl@gnu.org>
110209         * config/config.{guess,sub}: update from prep.
110211 2003-05-09  Bruno Haible  <bruno@clisp.org>
110213         * modules/error: Add m4/strerror_r.m4 to file list.
110215 2003-05-03  Bruno Haible  <bruno@clisp.org>
110217         Upgrade to Unicode-4.0.
110218         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
110219         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
110220         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
110221         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
110222         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
110223         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
110224         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
110225         Change width of U+E0100..U+E01EF from 1 to 0.
110227 2003-04-25  Jim Meyering  <jim@meyering.net>
110229         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
110230         of type size_t, not int.
110232 2003-04-25  Bruno Haible  <bruno@clisp.org>
110234         * lib/copy-file.c: Include <stddef.h>, for size_t.
110236 2003-04-21  Paul Eggert  <eggert@twinsun.com>
110238         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
110239         code which expansion is under static control.  Patch imported from
110240         Akim Demaille's patch to Bison; see
110241         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
110243 2003-04-14  Bruno Haible  <bruno@clisp.org>
110245         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
110247 2003-04-11  Jim Meyering  <jim@meyering.net>
110249         Merge changes from Coreutils.
110251         2003-03-22  Jim Meyering  <jim@meyering.net>
110253         * lib/strftime.c (widen): Cast alloca return value to proper type.
110255         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
110257         From GNU libc.
110258         * lib/strftime.c (my_strftime): Handle very large width
110259         specifications for numeric values correctly.  Improve checks for
110260         overflow.
110262         2003-01-19  Jim Meyering  <jim@meyering.net>
110264         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
110265         definitions.
110266         (nl_get_alt_digit) [! defined my_strftime]: Define.
110267         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
110268         _nl_get_alt_digit and _nl_get_walt_digit.
110270         * lib/strftime.c (my_strftime): Merge in locale-related changes from
110271         libc. These changes have no effect outside of _LIBC.
110273 2003-04-10  Bruno Haible  <bruno@clisp.org>
110275         * modules/findprog: New file.
110276         * MODULES.html.sh (func_all_modules): Add it.
110278 2003-04-10  Bruno Haible  <bruno@clisp.org>
110280         * m4/findprog.m4: New file.
110281         * m4/eaccess.m4: New file.
110283 2003-04-10  Bruno Haible  <bruno@clisp.org>
110285         * lib/findprog.h: New file, from GNU gettext.
110286         * lib/findprog.c: New file, from GNU gettext.
110288 2003-04-05  Jim Meyering  <jim@meyering.net>
110290         Merge changes from Coreutils.
110292         * lib/exclude.h (PARAMS): Remove definition and uses.
110293         * lib/exclude.c: Remove uses of `PARAMS'.
110295         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
110296         Add test-cases for DOS filenames. Declare program_name.
110297         (main): Set up program_name.  Patch by Rich Dawe.
110299         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
110300         error from mntctl.
110301         Use mntctl's return value to drive the entry-processing loop, since
110302         we can't rely on the value of the vmt_length member in the last
110303         entry.  On some systems doing so could result in exhausting
110304         virtual memory.  Based in part on a patch from Mike Jetzer.
110306 2003-04-04  Bruno Haible  <bruno@clisp.org>
110308         * modules/linebreak: New file.
110309         * MODULES.html.sh (func_all_modules): Add it.
110311 2003-04-04  Bruno Haible  <bruno@clisp.org>
110313         * m4/linebreak.m4: New file.
110315 2003-04-04  Bruno Haible  <bruno@clisp.org>
110317         * lib/linebreak.h: New file, from GNU gettext.
110318         * lib/linebreak.c: New file, from GNU gettext with slight
110319         modifications.
110320         * lib/lbrkprop.h: New file, from GNU gettext.
110322 2003-04-03  Bruno Haible  <bruno@clisp.org>
110324         * modules/utf8-ucs4: New file.
110325         * modules/utf16-ucs4: New file.
110326         * modules/ucs4-utf8: New file.
110327         * modules/ucs4-utf16: New file.
110328         * MODULES.html.sh (func_all_modules): Add them.
110330 2003-04-03  Bruno Haible  <bruno@clisp.org>
110332         * m4/utf-ucs4.m4: New file.
110333         * m4/ucs4-utf.m4: New file.
110335 2003-04-03  Bruno Haible  <bruno@clisp.org>
110337         * lib/utf8-ucs4.h: New file, from GNU gettext.
110338         * lib/utf16-ucs4.h: New file, from GNU gettext.
110339         * lib/ucs4-utf8.h: New file, from GNU gettext.
110340         * lib/ucs4-utf16.h: New file, from GNU gettext.
110342 2003-04-02  Bruno Haible  <bruno@clisp.org>
110344         * modules/binary-io: New file.
110345         * MODULES.html.sh (func_all_modules): Add it.
110347 2003-04-02  Bruno Haible  <bruno@clisp.org>
110349         * lib/binary-io.h: New file, from GNU gettext.
110351 2003-04-01  Bruno Haible  <bruno@clisp.org>
110353         * modules/pathname: New file.
110354         * MODULES.html.sh (func_all_modules): Add it.
110356 2003-04-01  Bruno Haible  <bruno@clisp.org>
110358         * lib/pathname.h: New file, from GNU gettext.
110359         * lib/concatpath.c: New file, from GNU gettext.
110361 2003-03-30  Bruno Haible  <bruno@clisp.org>
110363         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
110365 2003-03-30  Bruno Haible  <bruno@clisp.org>
110367         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
110368         function chown() doesn't exist.
110370 2003-03-28  Bruno Haible  <bruno@clisp.org>
110372         * modules/copy-file: New file.
110373         * MODULES.html.sh (func_all_modules): Add it.
110375 2003-03-28  Bruno Haible  <bruno@clisp.org>
110377         * m4/copy-file.m4: New file.
110379 2003-03-28  Bruno Haible  <bruno@clisp.org>
110381         * lib/copy-file.h: New file, from GNU gettext.
110382         * lib/copy-file.c: New file, from GNU gettext.
110384 2003-03-18  Jim Meyering  <jim@meyering.net>
110386         * lib/quote.c (quote_n): Fix typo in comment.
110388 2003-03-18  Bruno Haible  <bruno@clisp.org>
110390         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
110391         checking.
110392         * m4/onceonly_2_57.m4: Likewise.
110394 2003-03-17  Bruno Haible  <bruno@clisp.org>
110396         * m4/onceonly.m4: Require autoconf 2.54 or newer.
110397         (m4_quote): Remove macro.
110398         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
110400 2003-03-14  Jim Meyering  <jim@meyering.net>
110402         Merge changes from Coreutils.
110403         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
110404         to be const, in order to avoid warnings.
110405         (obstack_room): Likewise.
110406         (obstack_empty_p): Likewise.
110408 2003-03-14  Bruno Haible  <bruno@clisp.org>
110410         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
110411         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
110413 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110415         Merge changes from Bison.
110416         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
110417         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
110418         when compiling Bison 1.875's `bitset bset = obstack_alloc
110419         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
110420         * lib/hash.c: Include <stdbool.h> unconditionally.
110422 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110424         * m4/onceonly.m4 (m4_quote): New macro.
110425         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
110426         Quote AC_FOREACH variable-expansions properly.
110428 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110430         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
110432 2003-03-09  Paul Eggert  <eggert@twinsun.com>
110434         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
110435         Reported by Bruce Becker; see:
110436         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
110438 2003-03-03  Paul Eggert  <eggert@twinsun.com>
110439             Bruno Haible  <bruno@clisp.org>
110441         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
110442         Reported by John Hughes, see
110443         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
110445 2003-02-20  Bruno Haible  <bruno@clisp.org>
110447         * MODULES.html.sh (func_all_modules): Add poll.
110449 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110451         * modules/poll: New file.
110453 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110455         * lib/poll_.h: New file.
110456         * lib/poll.c: New file.
110458 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110460         * m4/poll.m4: New file.
110462 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
110464         * modules/mathl: New file.
110466 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
110468         * lib/mathl.h: New file.
110469         * lib/acosl.c: New file.
110470         * lib/asinl.c: New file.
110471         * lib/atanl.c: New file.
110472         * lib/ceill.c: New file.
110473         * lib/cosl.c: New file.
110474         * lib/expl.c: New file.
110475         * lib/floorl.c: New file.
110476         * lib/frexpl.c: New file.
110477         * lib/ldexpl.c: New file.
110478         * lib/logl.c: New file.
110479         * lib/sincosl.c: New file.
110480         * lib/sinl.c: New file.
110481         * lib/sqrtl.c: New file.
110482         * lib/tanl.c: New file.
110483         * lib/trigl.c: New file.
110484         * lib/trigl.h: New file.
110486 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
110488         * m4/mathl.m4: New file.
110490 2003-02-18  Bruno Haible  <bruno@clisp.org>
110492         * MODULES.html.sh (func_all_modules): Add mathl.
110494 2003-02-17  Bruno Haible  <bruno@clisp.org>
110496         * modules/mkdtemp: New module.
110497         * MODULES.html.sh (func_all_modules): Add it.
110499 2003-02-17  Bruno Haible  <bruno@clisp.org>
110501         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
110503 2003-02-17  Bruno Haible  <bruno@clisp.org>
110505         * lib/mkdtemp.h: New file, from GNU gettext.
110506         * lib/mkdtemp.c: New file, from GNU gettext.
110508 2003-02-02  Jim Meyering  <jim@meyering.net>
110510         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
110511         e.g. glibc-2.2.93.
110513 2003-01-31  Bruno Haible  <bruno@clisp.org>
110515         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
110516         'rpl_rename'.
110517         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
110518         'rpl_strnlen'.
110519         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
110520         'rpl_strtod'.
110521         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
110522         'rpl_utime'.
110524 2003-01-31  Bruno Haible  <bruno@clisp.org>
110526         * lib/rename.c: #undef rename before defining rpl_rename.
110527         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
110529 2003-01-30  Bruno Haible  <bruno@clisp.org>
110531         * modules/vasnprintf, modules/vasprintf: New modules.
110532         * MODULES.html.sh (func_all_modules): Add them.
110534 2003-01-30  Bruno Haible  <bruno@clisp.org>
110536         * m4/signed.m4: New file, from GNU gettext.
110537         * m4/longdouble.m4: New file, from GNU gettext.
110538         * m4/wchar_t.m4: New file, from GNU gettext.
110539         * m4/wint_t.m4: New file, from GNU gettext.
110540         * m4/vasnprintf.m4: New file.
110541         * m4/vasprintf.m4: New file.
110543 2003-01-30  Bruno Haible  <bruno@clisp.org>
110545         * lib/printf-args.h: New file, from GNU gettext.
110546         * lib/printf-args.c: New file, from GNU gettext.
110547         * lib/printf-parse.h: New file, from GNU gettext.
110548         * lib/printf-parse.c: New file, from GNU gettext.
110549         * lib/vasnprintf.h: New file, from GNU gettext.
110550         * lib/vasnprintf.c: New file, from GNU gettext.
110551         * lib/asnprintf.c: New file, from GNU gettext.
110552         * lib/vasprintf.h: New file, from GNU gettext with modifications.
110553         * lib/vasprintf.c: New file, from GNU gettext.
110554         * lib/asprintf.c: New file, from GNU gettext.
110556 2003-01-29  Bruno Haible  <bruno@clisp.org>
110558         * modules/stpncpy: New module.
110559         * MODULES.html.sh (func_all_modules): Add it.
110561 2003-01-29  Bruno Haible  <bruno@clisp.org>
110563         * m4/stpncpy.m4: New file.
110565 2003-01-29  Bruno Haible  <bruno@clisp.org>
110567         * lib/stpncpy.h: New file, from GNU gettext with modifications.
110568         * lib/stpncpy.c: New file, from GNU gettext with modifications.
110570 2003-01-28  Bruno Haible  <bruno@clisp.org>
110572         * modules/c-ctype: New module.
110573         * MODULES.html.sh (func_all_modules): Add it.
110575 2003-01-28  Bruno Haible  <bruno@clisp.org>
110577         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
110578         Paul Eggert.
110579         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
110580         Paul Eggert.
110582 2003-01-27  Bruno Haible  <bruno@clisp.org>
110584         * modules/xsetenv: New module.
110585         * MODULES.html.sh (func_all_modules): Add it.
110587 2003-01-27  Bruno Haible  <bruno@clisp.org>
110589         * lib/xsetenv.h: New file, from GNU gettext.
110590         * lib/xsetenv.c: New file, from GNU gettext.
110592 2003-01-23  Jim Meyering  <jim@meyering.net>
110594         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
110595         from working on systems without dirfd (at least Irix and OSF1/Tru64).
110597 2003-01-23  Bruno Haible  <bruno@clisp.org>
110599         * modules/minmax: New module.
110600         * MODULES.html.sh (func_all_modules): Add it.
110602 2003-01-23  Bruno Haible  <bruno@clisp.org>
110604         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
110605         Eggert.
110607 2003-01-22  Bruno Haible  <bruno@clisp.org>
110609         * modules/exit: New module.
110610         * MODULES.html.sh (func_all_modules): Add it.
110612 2003-01-22  Bruno Haible  <bruno@clisp.org>
110614         * lib/exit.h: New file, from GNU gettext.
110616 2003-01-19  Bruno Haible  <bruno@clisp.org>
110618         * gnulib-tool: Recognize option --extract-maintainer.
110619         (func_get_maintainer): New function.
110620         * modules/*: Add Maintainer entry.
110622 2003-01-16  Jim Meyering  <jim@meyering.net>
110624         * m4/regex.m4: The `regex' struct is both input and output.
110625         Initialize it before each use.  Patch by Tim Waugh.
110627 2003-01-16  Bruno Haible  <bruno@clisp.org>
110629         * MODULES.html.sh: Add a table of contents. Add the module name as
110630         leftmost column. Add hyperlinks.
110632 2003-01-15  Bruno Haible  <bruno@clisp.org>
110634         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
110636 2003-01-15  Bruno Haible  <bruno@clisp.org>
110638         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
110639         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
110640         suffix.
110642 2003-01-15  Bruno Haible  <bruno@clisp.org>
110644         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
110646 2003-01-15  Bruno Haible  <bruno@clisp.org>
110648         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
110649         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
110651 2003-01-14  Jim Meyering  <jim@meyering.net>
110653         * lib/same.c (same_name): Tweak a comment.
110655 2003-01-14  Bruno Haible  <bruno@clisp.org>
110657         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
110658         when a string comparison is sufficient.
110660 2003-01-14  Bruno Haible  <bruno@clisp.org>
110662         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
110663         'unsigned int'.
110665 2003-01-14  Bruno Haible  <bruno@clisp.org>
110667         * lib/hash-pjw.c: Add comment about low quality of this function.
110669 2003-01-13  Bruno Haible  <bruno@clisp.org>
110671         * modules/stpcpy: Distribute lib/stpcpy.h.
110672         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
110674 2003-01-13  Bruno Haible  <bruno@clisp.org>
110676         * modules/*: Add a description.
110677         * modules/strpbrk: Fix Makefile.am snippet.
110678         * modules/strtoimax: Fix dependencies.
110679         * modules/strtoumax: Likewise.
110681 2003-01-13  Bruno Haible  <bruno@clisp.org>
110683         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
110684         * modules/alloca (Makefile.am): All object files depend on alloca.h.
110685         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
110687 2003-01-13  Bruno Haible  <bruno@clisp.org>
110689         * gnulib-tool (func_create_testdir): Store config/* files in the main
110690         directory.
110691         * config.rpath: Move to ...
110692         * config/config.rpath: ... here.
110693         * modules/gettext: Contains config/config.rpath, not config.rpath.
110694         * modules/iconv: Likewise.
110696 2003-01-12  Paul Eggert  <eggert@twinsun.com>
110698         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
110699         to avoid collisions with libcurses and libreadline.
110701         * m4/getstr.m4: Remove.
110702         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
110704 2003-01-12  Paul Eggert  <eggert@twinsun.com>
110706         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
110707         to avoid collisions with libcurses and libreadline.
110709         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
110710         * lib/getstr.h, getstr.c: Remove.
110711         * lib/getline.c: Include "getline.h", to check interface.
110712         Move body of old getstr.c here: this defines MIN_CHUNK and
110713         declares getdelim2, which is renamed from getstr.
110714         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
110716         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
110717         All uses changed.
110718         * lib/linebuffer.h: Likewise.
110719         (readline): Remove backward-compatibility macro.
110721 2003-01-12  Paul Eggert  <eggert@twinsun.com>
110723         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
110724         to avoid collisions with libcurses and libreadline.
110725         * getstr: Remove.
110726         * MODULES.html.sh: Remove getstr.
110727         * modules/getline: Depend on unlocked-io, not getstr.
110729 2003-01-12  Jim Meyering  <jim@meyering.net>
110731         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
110733 2003-01-10  Bruno Haible  <bruno@clisp.org>
110735         * modules/alloca: Change Makefile.am requirements. Simplify Include
110736         requirements. Add lib/alloca_.h to file list.
110738 2003-01-10  Bruno Haible  <bruno@clisp.org>
110740         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
110742 2003-01-10  Bruno Haible  <bruno@clisp.org>
110744         * lib/alloca_.h: New file.
110745         * lib/getdate.y: Unconditionally include alloca.h.
110746         * lib/makepath.c: Likewise.
110747         * lib/setenv.c: Likewise.
110748         * lib/userspec.c: Likewise.
110750 2003-01-09  Karl Berry  <karl@gnu.org>
110752         * MODULES.html.sh: include `dirname $0` in PATH, to find
110753         gnulib-tool.
110755 2003-01-09  Bruno Haible  <bruno@clisp.org>
110757         * modules/stdbool: Change configure.ac, Makefile.am requirements.
110758         Simplify Include requirements. Add lib/stdbool.h.in to file list.
110760 2003-01-09  Bruno Haible  <bruno@clisp.org>
110762         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
110764 2003-01-09  Bruno Haible  <bruno@clisp.org>
110766         * lib/stdbool.h.in: New file.
110768 2003-01-09  Bruno Haible  <bruno@clisp.org>
110770         * gnulib-tool (func_all_modules): Ignore files ending in ~.
110771         * MODULES.html.sh: Likewise.
110773 2003-01-08  Jim Meyering  <jim@meyering.net>
110775         * lib/full-write.c: Undefine and define-away `const' after inclusion
110776         of errno.h, not before.  Suggestion from Bruno Haible.
110778 2003-01-08  Bruno Haible  <bruno@clisp.org>
110780         * modules/full-read: Depend on full-write.
110782 2003-01-08  Bruno Haible  <bruno@clisp.org>
110784         * lib/safe-read.c: Include specification header first, to ensure its
110785         selfcontainedness.
110786         * lib/full-write.c: Likewise.
110788 2003-01-07  Jim Meyering  <jim@meyering.net>
110790         * lib/full-write.c: Rework so that it may serve to define full_read,
110791         too.
110792         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
110794 2003-01-07  Bruno Haible  <bruno@clisp.org>
110796         * lib/strtoimax.c: Include <stdint.h> as an alternative to
110797         <inttypes.h>.
110798         * lib/xstrtol.h: Likewise.
110799         * lib/xstrtoimax.c: Likewise.
110800         * lib/xstrtoumax.c: Likewise.
110801         * lib/human.h: Likewise.
110803         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
110804         on systems that have <inttypes.h> but not <stdint.h>.
110806 2003-01-07  Bruno Haible  <bruno@clisp.org>
110808         * MODULES.html.sh: Add copyright notice.
110809         (missed_files): Omit CVS directory entries.
110810         (func_module): Make it work with sed-3.02.
110811         * MODULES.txt: Remove file.
110813 2003-01-06  Jim Meyering  <jim@meyering.net>
110815         * lib/version-etc.c: Update year in translatable copyright string.
110817 2003-01-03  Karl Berry  <karl@gnu.org>
110819         * config/config.{guess,sub}: update from prep.
110821 2003-01-02  Karl Berry  <karl@gnu.org>
110823         * doc/COPYING.DOC: belatedly updated to 1.2.
110825 2003-01-01  Karl Berry  <karl@gnu.org>
110827         * gnulib-tool (func_verify_module): report module name $module in
110828         error message, not $1.
110829         * gnulib-tool (create-testdir): don't complain if destdir couldn't
110830         be created, only if it doesn't exist.
110831         * gnulib-tool (last_checkin_date): don't expand the $Date here.
110833 2002-12-31  Paul Eggert  <eggert@twinsun.com>
110835         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
110837 2002-12-31  Paul Eggert  <eggert@twinsun.com>
110839         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
110840         memcmp if strcoll doesn't work.
110842 2002-12-31  Bruno Haible  <bruno@clisp.org>
110844         * lib/utime.c (utime_null): No need to call ftruncate if the file was
110845         nonempty.
110847 2002-12-31  Bruno Haible  <bruno@clisp.org>
110849         * lib/memcoll.c (STRCOLL): New macro.
110850         (memcoll): Use it.
110852 2002-12-31  Bruno Haible  <bruno@clisp.org>
110854         * lib/localcharset.h: New file.
110855         * lib/localcharset.c: Include it.
110856         * lib/unicodeio.c: Likewise.
110858 2002-12-31  Bruno Haible  <bruno@clisp.org>
110860         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
110861         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
110863 2002-12-31  Bruno Haible  <bruno@clisp.org>
110865         * lib/getline.h: Include <stddef.h>, for size_t.
110867         * lib/unicodeio.h: Include <stddef.h>, for size_t.
110868         * lib/unicodeio.c: Don't include <stddef.h>.
110870 2002-12-31  Bruno Haible  <bruno@clisp.org>
110872         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
110873         HAVE_TM_ZONE.
110875 2002-12-24  Karl Berry  <karl@gnu.org>
110877         * config/config.guess: update from prep.
110879 2002-12-24  Bruno Haible  <bruno@clisp.org>
110881         General infrasructure.
110882         * m4/README: Rewritten.
110883         * m4/onceonly.m4: New file.
110884         * m4/onceonly_2_57.m4: New file.
110886         Module atexit.
110887         * m4/atexit.m4: New file.
110889         Module strtod.
110890         * m4/strtod.m4: New file.
110892         Module strtol.
110893         * m4/strtol.m4: New file.
110895         Module strtoul.
110896         * m4/strtoul.m4: New file.
110898         Module memchr.
110899         * m4/memchr.m4: New file.
110901         Module memcmp.
110902         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
110903         (jm_FUNC_MEMCMP): Invoke it.
110905         Module memcpy.
110906         * m4/memcpy.m4: New file.
110908         Module memmove.
110909         * m4/memmove.m4: New file.
110911         Module memset.
110912         * m4/memset.m4: New file.
110914         Module strcspn.
110915         * m4/strcspn.m4: New file.
110917         Module strpbrk.
110918         * m4/strpbrk.m4: New file.
110920         Module strstr.
110921         * m4/strstr.m4: New file.
110923         Module strerror.
110924         * m4/strerror.m4: New file.
110926         Module mktime.
110927         * m4/mktime.m4: Renamed from jm-mktime.m4.
110928         (gl_PREREQ_MKTIME): New macro.
110929         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
110931         Module malloc.
110932         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
110933         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
110934         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
110936         Module realloc.
110937         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
110938         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
110939         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
110941         Module strftime.
110942         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
110943         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
110944         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
110945         gl_TM_GMTOFF.
110946         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
110948         Module xalloc.
110949         * m4/xalloc.m4: New file.
110951         Module alloca.
110952         * m4/alloca.m4: New file.
110954         Module putenv.
110955         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
110956         (jm_FUNC_PUTENV): Invoke it.
110958         Module setenv.
110959         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
110960         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
110961         when invoked twice.
110962         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
110963         gt_FUNC_SETENV.
110965         Module memrchr.
110966         * m4/memrchr.m4: New file.
110968         Module stpcpy.
110969         * m4/stpcpy.m4: New file.
110971         Module strcase.
110972         * m4/strcase.m4: New file.
110974         Module strdup.
110975         * m4/strdup.m4: New file.
110977         Module strnlen.
110978         * m4/strnlen.m4: New file.
110980         Module strndup.
110981         * m4/strndup.m4: New file.
110983         Module xstrtod.
110984         * m4/xstrtod.m4: New file.
110986         Module xstrtol.
110987         * m4/xstrtol.m4: New file.
110989         Module getdate.
110990         * m4/getdate.m4: New file.
110992         Module unlocked-io.
110993         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
110994         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
110995         * m4/jm-glibc-io.m4n: Remove file.
110997         Module long-options.
110998         * m4/long-options.m4: New file.
111000         Module md5.
111001         * m4/md5.m4: New file.
111003         Module sha.
111004         * m4/sha.m4: New file.
111006         Module getstr.
111007         * m4/getstr.m4: New file.
111009         Module getline.
111010         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
111011         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
111012         <sys/types.h>, for size_t. Use the function name gnu_getline, not
111013         simply getline. Infoke gl_PREREQ_GETLINE.
111015         Module obstack.
111016         * m4/obstack.m4: New file.
111018         Module hash.
111019         * m4/hash.m4: New file.
111021         Module readtokens.
111022         * m4/readtokens.m4: New file.
111024         Module strverscmp.
111025         * m4/strverscmp.m4: New file.
111027         Module stdbool.
111028         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
111029         OSF/1.
111031         Module strtoll.
111032         * m4/strtoll.m4: New file.
111034         Module strtoull.
111035         * m4/strtoull.m4: New file.
111037         Module strtoimax.
111038         * m4/strtoimax.m4: New file.
111040         Module strtoumax.
111041         * m4/strtoumax.m4: New file.
111043         Module xstrtoimax.
111044         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
111045         jm_AC_PREREQ_XSTRTOIMAX.
111046         Moved the strtol prerequisites to strtol.m4.
111047         Moved the strtoll prerequisites to strtoll.m4.
111048         Moved the strtoimax prerequisites to strtoimax.m4.
111050         Module xstrtoumax.
111051         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
111052         jm_AC_PREREQ_XSTRTOUMAX.
111053         Moved the strtoul prerequisites to strtoul.m4.
111054         Moved the strtoull prerequisites to strtoull.m4.
111055         Moved the strtoumax prerequisites to strtoumax.m4.
111057         Module chown.
111058         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
111059         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
111061         Module dup2.
111062         * m4/dup2.m4: New file.
111064         Module ftruncate.
111065         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
111066         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
111068         Module getgroups.
111069         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
111070         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
111072         Module gettimeofday.
111073         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
111074         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
111075         gl_PREREQ_GETTIMEOFDAY.
111077         Module mkdir.
111078         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
111079         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
111081         Module mkstemp.
111082         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
111083         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
111084         jm_AC_TYPE_UINTMAX_T.
111085         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
111087         Module stat.
111088         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
111089         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
111091         Module lstat.
111092         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
111093         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
111095         Module timespec.
111096         * m4/timespec.m4 (gl_TIMESPEC): New macro.
111097         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
111098         * m4/st_mtim.m4: Indentation.
111100         Module nanosleep.
111101         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
111102         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
111103         gl_PREREQ_NANOSLEEP.
111105         Module regex.
111106         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
111107         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
111108         (gl_REGEX): New macro.
111110         Module rename.
111111         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
111112         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
111114         Module rmdir.
111115         * m4/rmdir.m4: New file.
111117         Module utime.
111118         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
111119         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
111120         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
111122         Module dirname.
111123         * m4/dirname.m4: New file.
111125         Module getopt.
111126         * m4/getopt.m4: New file.
111128         Module unistd-safer.
111129         * m4/unistd-safer.m4: New file.
111131         Module fnmatch.
111132         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
111133         declaration.
111134         (gl_PREREQ_FNMATCH_EXTRA): New macro.
111135         (gl_FUNC_FNMATCH_POSIX): New macro.
111136         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
111137         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
111138         simply fnmatch.
111140         Module exclude.
111141         * m4/exclude.m4: New file.
111143         Module human.
111144         * m4/human.m4: New file.
111146         Module acl.
111147         * m4/acl.m4: Nop.
111149         Module backupfile.
111150         * m4/backupfile.m4: New file.
111151         * m4/d-ino.m4: Indentation.
111153         Module fsusage.
111154         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
111155         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
111156         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
111158         Module dirfd.
111159         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
111160         requirements.
111162         Module euidaccess.
111163         * m4/euidaccess.m4: New file.
111165         Module file-type.
111166         * m4/file-type.m4: New file.
111168         Module fileblocks.
111169         * m4/fileblocks.m4: New file.
111171         Module filemode.
111172         * m4/filemode.m4: New file.
111174         Module isdir.
111175         * m4/isdir.m4: New file.
111177         Module lchown.
111178         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
111179         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
111181         Module makepath.
111182         * m4/makepath.m4: New file.
111184         Module modechange.
111185         * m4/modechange.m4: New file.
111187         Module mountlist.
111188         * m4/mountlist.m4: New file.
111189         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
111190         Indentation.
111192         Module path-concat.
111193         * m4/path-concat.m4: New file.
111195         Module pathmax.
111196         * m4/pathmax.m4: New file.
111198         Module same.
111199         * m4/same.m4: New file.
111201         Module save-cwd.
111202         * m4/save-cwd.m4: New file.
111204         Module savedir.
111205         * m4/savedir.m4: New file.
111207         Module xgetcwd.
111208         * m4/xgetcwd.m4: New file.
111209         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
111211         Module xreadlink.
111212         * m4/xreadlink.m4: New file.
111214         Module safe-read.
111215         * m4/safe-read.m4: New file.
111217         Module safe-write.
111218         * m4/safe-write.m4: New file.
111220         Module closeout.
111221         * m4/closeout.m4: New file.
111223         Module stdio-safer.
111224         * m4/stdio-safer.m4: New file.
111226         Module getpass.
111227         * m4/getpass.m4: New file.
111229         Module getugroups.
111230         * m4/getugroups.m4: New file.
111232         Module group-member.
111233         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
111234         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
111236         Module idcache.
111237         * m4/idcache.m4: New file.
111239         Module userspec.
111240         * m4/userspec.m4: New file.
111242         Module gettime.
111243         * m4/clock_time.m4: New file.
111244         * m4/gettime.m4: New file.
111246         Module settime.
111247         * m4/settime.m4: New file.
111249         Module posixtm.
111250         * m4/posixtm.m4: New file.
111252         Module gethostname.
111253         * m4/gethostname.m4: New file.
111255         Module canon-host.
111256         * m4/canon-host.m4: New file.
111258         Module gettext.
111259         * m4/codeset.m4: New file, from gettext-0.11.5.
111260         * m4/gettext.m4: New file, from gettext-0.11.5.
111261         * m4/glibc21.m4: New file, from gettext-0.11.5.
111262         * m4/iconv.m4: New file, from gettext-0.11.5.
111263         * m4/intdiv0.m4: New file, from gettext-0.11.5.
111264         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
111265         * m4/inttypes.m4: New file, from gettext-0.11.5.
111266         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
111267         * m4/isc-posix.m4: New file, from gettext-0.11.5.
111268         * m4/lcmessage.m4: New file, from gettext-0.11.5.
111269         * m4/lib-ld.m4: New file, from gettext-0.11.5.
111270         * m4/lib-link.m4: New file, from gettext-0.11.5.
111271         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
111272         * m4/progtest.m4: New file, from gettext-0.11.5.
111273         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
111274         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
111275         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
111277         Module localcharset.
111278         * m4/localcharset.m4: New file.
111280         Module hard-locale.
111281         * m4/hard-locale.m4: New file.
111283         Module mbswidth.
111284         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
111285         onceonly macros.
111286         * m4/mbrtowc.m4: Add comment.
111288         Module memcasecmp.
111289         * m4/memcasecmp.m4: New file.
111291         Module memcoll.
111292         * m4/memcoll.m4: New file.
111294         Module unicodeio.
111295         * m4/unicodeio.m4: New file.
111297         Module rpmatch.
111298         * m4/rpmatch.m4: New file.
111300         Module yesno.
111301         * m4/yesno.m4: New file.
111303         Module exitfail.
111304         * m4/exitfail.m4: New file.
111306         Module c-stack.
111307         * m4/c-stack.m4 (gl_C_STACK): New macro.
111308         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
111310         Module error.
111311         * m4/error.m4 (gl_ERROR): New macro.
111312         (jm_PREREQ_ERROR): Use onceonly macros.
111314         Module fatal.
111315         * m4/fatal.m4: New file.
111317         Module getloadavg.
111318         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
111319         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
111321         Module getpagesize.
111322         * m4/getpagesize.m4: New file.
111324         Module getusershell.
111325         * m4/getusershell.m4: New file.
111327         Module physmem.
111328         * m4/physmem.m4: New file.
111330         Module posixver.
111331         * m4/posixver.m4: New file.
111333         Module quotearg.
111334         * m4/quotearg.m4: New file.
111336         Module quote.
111337         * m4/quote.m4: New file.
111339         Module readutmp.
111340         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
111342         Module sig2str.
111343         * m4/sig2str.m4: New file.
111345         Other.
111346         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
111347         ulonglong.m4.
111348         * m4/intmax_t.m4: New file.
111349         * m4/d-type.m4: Indentation.
111350         * m4/jm-macros.m4: Update.
111351         * m4/prereq.m4 (jm_PREREQ): Update.
111352         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
111353         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
111354         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
111355         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
111356         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
111357         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
111358         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
111359         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
111360         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
111361         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
111362         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
111363         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
111364         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
111365         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
111366         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
111367         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
111368         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
111369         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
111370         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
111372 2002-12-24  Bruno Haible  <bruno@clisp.org>
111374         * MODULES.txt: Update according to m4/ changes.
111376         Module gettext.
111377         * config.rpath: New file, from gettext-0.11.5.
111379         * modules/*: New module descriptions.
111380         * gnulib-tool: New file.
111381         * MODULES.html.sh: New file.
111383 2002-12-21  Karl Berry  <karl@gnu.org>
111385         * doc/fdl.texi: update to version 1.2.
111387 2002-12-19  Karl Berry  <karl@gnu.org>
111389         * config/config.guess: update from prep.
111391 2002-12-18  Bruno Haible  <bruno@clisp.org>
111393         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
111394         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
111396 2002-12-17  Bruno Haible  <bruno@clisp.org>
111398         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
111399         stdlib.h, string.h.
111401 2002-12-17  Bruno Haible  <bruno@clisp.org>
111403         * lib/canon-host.c (strdup): Remove unused declaration.
111405         * lib/fsusage.c: Include full_read.h.
111406         (get_fs_usage): Use full_read instead of safe_read.
111408         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
111410 2002-12-12  Karl Berry  <karl@gnu.org>
111412         * config/config.guess: update from prep.
111414 2002-12-11  Bruno Haible  <bruno@clisp.org>
111416         * m4/setenv.m4: New file, from gettext-0.11.5.
111418 2002-12-11  Bruno Haible  <bruno@clisp.org>
111420         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
111421         not unsetenv().
111422         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
111423         modifications:
111425         2002-12-11  Bruno Haible  <bruno@clisp.org>
111427                 * setenv.c (alloca): Fall back to malloc.
111428                 (freea): New macro.
111429                 (setenv): Use freea() to free memory allocated with alloca().
111431         2002-11-13  Bruno Haible  <bruno@clisp.org>
111433                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
111434                 function declarations.
111435                 * unsetenv.c (unsetenv): Likewise.
111437         2002-03-04  Bruno Haible  <bruno@clisp.org>
111439                 Portability to AIX 4.3.3.
111440                 * unsetenv.c: New file, extracted from setenv.c.
111441                 * setenv.c: Move the unsetenv() function to unsetenv.c.
111443         2001-12-20  Bruno Haible  <bruno@clisp.org>
111445                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
111446                 use malloc instead. For SunOS 4.
111448         2001-12-11  Bruno Haible  <bruno@clisp.org>
111450                 * setenv.c: Declare alloca.
111451                 (compar_fn_t): New typedef.
111452                 (KNOWN_VALUE, STORE_VALUE): Use it.
111454         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
111455         setenv.h.
111457 2002-12-10  Paul Eggert  <eggert@twinsun.com>
111459         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
111460         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
111461         Choose values that are less likely to collide with system fnmatch
111462         options.
111463         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
111464         defined (e.g., a pure POSIX system).
111465         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
111466         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
111468 2002-12-06  Paul Eggert  <eggert@twinsun.com>
111470         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
111471         a pain in practice to deal with generated m4 files.  This change
111472         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
111474         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
111475         and jm-glibc-io.m4, as they are no longer a special case.
111476         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
111477         kludge and the auto-generation stuff.  Check only whether the
111478         functions are declared, not whether they exist, since older hosts
111479         that don't declare the functions can't use the optimization anyway.
111481 2002-12-06  Jim Meyering  <jim@meyering.net>
111483         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
111485         Merge in changes from libc's misc/error.c, in preparation
111486         for the merge of gnulib's changes back into libc.
111488         * lib/error.c (_): Define only if not already defined.
111489         Move definition to follow all #include directives.
111490         Include unlocked-io.h only if !_LIBC.
111491         [_LIBC]: Include <libio/libioP.h>.
111492         [USE_IN_LIBIO]: Include <libio/iolibio.h>
111493         (fflush): Tweak definition to use INTUSE.
111494         (putc): Define.
111496 2002-12-05  Paul Eggert  <eggert@twinsun.com>
111498         * lib/alloca.c [defined emacs]: Include "lisp.h".
111499         (xalloc_die) [defined emacs]: New macro.
111500         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
111501         [! defined emacs]: Include <xalloc.h>.
111502         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
111503         (pointer): Typedef to POINTER_TYPE *.
111504         (malloc): Remove decl; we now always use xmalloc.
111505         (alloca): Use old-style definition, since Emacs needs this.
111506         Check for arithmetic overflow when computing combined size.
111508 2002-12-04  Paul Eggert  <eggert@twinsun.com>
111510         Do not generate unlocked-io.h automatically, since it's easier to
111511         maintain it by hand.
111513         * lib/unlocked-io.h: New file, from GNU diffutils,
111514         but with proper copyright notice and attribution.
111515         * lib/gen-uio: Remove.
111516         * lib/Makefile.am: Add copyright notice.
111517         (libfetish_a_SOURCES): Add unlocked-io.h.
111518         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
111519         (DISTCLEANFILES, io_functions): Remove macros.
111520         (EXTRA_DIST): Remove gen_uio.
111521         (unlocked-io.h): Remove rule.
111523 2002-12-04  Jim Meyering  <jim@meyering.net>
111525         Reflect the fact that stat.c and lstat.c are no longer generated.
111526         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
111527         (DISTCLEANFILES): Likewise.
111528         (EXTRA_DIST): Likewise.
111529         (all_local): Don't depend on stat.c or lstat.c.
111530         (stat.c, lstat.c): Remove rules.
111531         (EXTRA_DIST): Remove xstat.in.
111533         * lib/xstat.in: Remove file.  Contents moved into stat.c.
111534         * lib/stat.c: New file.  Contents mostly from xstat.in.
111535         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
111536         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
111538         * lib/safe-read.c: Rework so that it may serve to define safe_write,
111539         too.
111540         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
111542 2002-12-03  Jim Meyering  <jim@meyering.net>
111544         * lib/safe-read.c, safe-write.c: Change variable names and comments,
111545         but not semantics, to minimize the differences between these two files.
111546         (safe_read): Change comment to mention SAFE_READ_ERROR.
111548         * lib/safe-read.c (IS_EINTR): Define.
111549         (safe_read): Use IS_EINTR in place of in-function cpp directives.
111551 2002-12-02  Jim Meyering  <jim@meyering.net>
111553         * lib/safe-read.c (EINTR): Define.
111554         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
111555         (INT_MAX): Provide fallback.
111556         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
111558         * lib/safe-read.h (SAFE_READ_ERROR): Define.
111560 2002-12-02  Bruno Haible  <bruno@clisp.org>
111562         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
111563         Define, taken from safe-read.c.
111564         (INT_MAX): Provide fallback.
111565         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
111566         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
111568         * lib/safe-read.c (EINTR): Remove definition.
111569         (safe_read): Don't use EINTR if it is absent.
111571 2002-12-01  Jim Meyering  <jim@meyering.net>
111573         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
111574         zero.
111575         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
111577 2002-11-27  Paul Eggert  <eggert@twinsun.com>
111579         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
111580         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
111581         with `if (! (value < limit)) abort ();', for readability.
111583 2002-11-26  Karl Berry  <karl@gnu.org>
111585         * lib/strdup.c: copy from libc again, with jim's ok.
111586         * lib/.cppi-disable: re-add strdup.c
111588 2002-11-25  Karl Berry  <karl@gnu.org>
111590         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
111591         instead of "strtol.c".
111593 2002-11-25  Karl Berry  <karl@gnu.org>
111595         * config/install-sh: update from automake for variable quoting, $0 in
111596         error msgs, etc.
111598         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
111599         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
111600         entry.
111602 2002-11-25  Jim Meyering  <jim@meyering.net>
111604         * lib/mktime.c: Sync from libc, now that it has the latest fix.
111606 2002-11-24  Karl Berry  <karl@gnu.org>
111608         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
111609         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
111611 2002-11-24  Jim Meyering  <jim@meyering.net>
111613         Update from coreutils:
111615         * lib/mktime.c: Merge in changes from libc.
111617         Avoid a link-time failure on some Linux systems.
111618         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
111619         (otherwise).
111620         (__mon_yday): Declare with the STATIC attribute.
111621         (__mktime_internal): Likewise.
111622         Based on a report from Greg Schafer.
111624 2002-11-23  Jim Meyering  <jim@meyering.net>
111626         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
111627         Use `unsigned', not `int', as type of index.
111629         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
111631         * lib/fsusage.c: Remove unneeded parentheses around operands of
111632         `defined'.
111634 2002-11-22  Paul Eggert  <eggert@twinsun.com>
111636         * lib/quotearg.h: Allow multiple inclusion by surrounding with
111637         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
111638         so that we can be included first.
111639         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
111640         * lib/quotearg.c: Include quotearg.h immediately after config.h.
111641         No need to include stddef.h or sys/types.h any more.
111642         Surround local include files with "", not "<>".
111643         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
111644         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
111645         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
111646         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
111647         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
111648         (ISPRINT): Remove; no longer needed now that we assume C89.
111650         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
111651         Preserve errno.
111653         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
111654         quotearg_char): Use SIZE_MAX rather than
111655         (size_t) -1 when we are talking about "infinity".
111657         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
111659 2002-11-22  Paul Eggert  <eggert@twinsun.com>
111661         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
111662         hint that one should use `if (! x) abort ();' rather than `assert
111663         (x);', and anyway it's one less thing to worry about configuring.
111664         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
111665         hash_rehash, hash_insert): Use abort rather than assert.
111667 2002-11-22  Bruno Haible  <bruno@clisp.org>
111669         * lib/safe-read.h: Assume C89. Add comments.
111670         (safe_read): Change return type to size_t.
111671         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
111672         byte counts > SSIZE_MAX correctly.
111673         * lib/safe-write.h: New file.
111674         * lib/safe-write.c: New file.
111675         * lib/full-read.h: New file.
111676         * lib/full-read.c: New file.
111677         * lib/full-write.h: Assume C89. Add comments.
111678         * lib/full-write.c: Include safe-write.h.
111679         (full_write): Rewritten to use safe_write.
111680         Suggested by Jim Meyering and Paul Eggert.
111682 2002-11-21  Jim Meyering  <jim@meyering.net>
111684         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
111686         Merge in changes from the coreutils.
111688         2002-09-25  Paul Eggert  <eggert@twinsun.com>
111689         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
111690         <stdint.h>.
111691         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
111692         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
111693         int.  Work more efficiently if X is the same width as uintmax_t.
111694         Do not compare X to -1, to avoid bogus compiler warning.
111695         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
111696         Don't assume that f_frsize and f_bsize are the same type.
111698         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
111699         warning on FreeBSD.
111701         * lib/makepath.c (make_path): Restore umask *before* creating the final
111702         component.
111703         (make_path): Minor reformatting.
111705         * lib/xmalloc.c: Adjust to work with new autoconf macros,
111706         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
111707         HAVE_MALLOC/HAVE_REALLOC.
111709         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
111710         dummy ones.  At least on GNU/Linux systems, `auto' means something
111711         else.
111712         From Michael Stone.
111714 2002-11-21  Bruno Haible  <bruno@clisp.org>
111716         Remove case insensitive option matching.
111717         * lib/argmatch.h (argcasematch): Remove declaration.
111718         (ARGCASEMATCH): Remove macro.
111719         (__xargmatch_internal): Remove case_sensitive argument.
111720         (XARGMATCH): Update.
111721         (XARGCASEMATCH): Remove macro.
111722         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
111723         case_sensitive argument.
111724         (argcasematch): Remove function.
111725         (__xargmatch_internal): Remove case_sensitive argument.
111726         (main): Use XARGMATCH instead of XARGCASEMATCH.
111728         * lib/xmalloc.c: Change compile-time error message. Add comment about
111729         required autoconf version.
111731 2002-11-20  Paul Eggert  <eggert@twinsun.com>
111733         Merge argmatch cleanups from Bison.  Assume C89.
111735         * lib/argmatch.c: Include config.h here, not in argmatch.h.
111736         Include stdlib.h, for EXIT_FAILURE.
111737         Always include <string.h>, since we assume C89.
111738         (EXIT_FAILURE): Remove pre-C89 bug workaround.
111739         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
111740         Include <stddef.h> instead, since it's all we need for size_t.
111741         (PARAMS): Remove.  All uses removed.
111742         (ARRAY_CARDINALITY): Do not bother to #undef.
111743         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
111744         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
111745         Remove unnecessary parentheses.
111746         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
111747         Insert necessary parentheses.
111748         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
111749         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
111751 2002-11-19  Bruno Haible  <bruno@clisp.org>
111753         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
111754         * lib/mbswidth.h: Include <stddef.h>, for size_t.
111756         * lib/mbswidth.h (PARAMS): Remove macro.
111757         (mbswidth, mbsnwidth): Use ANSI C function declarations.
111758         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
111760         * lib/gcd.h (PARAMS): Remove macro.
111761         (gcd): Use ANSI C function declarations.
111762         * lib/gcd.c (gcd): Likewise.
111764 2002-11-15  Bruno Haible  <bruno@clisp.org>
111766         * lib/strcspn.c: Include <stddef.h>.
111767         (strcspn): Use ANSI C function declaration. Change return type to
111768         size_t. Use NULL.
111769         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
111770         (strpbrk): Use NULL.
111771         * lib/strpbrk.h (PARAMS): Remove macro.
111772         (strpbrk): Use ANSI C function declaration.
111773         * lib/strstr.c: Don't include <sys/types.h>.
111774         * lib/strstr.h (PARAMS): Remove macro.
111775         (strstr): Use ANSI C function declarations.
111777 2002-11-14  Karl Berry  <karl@gnu.org>
111779         * config/mkinstalldirs: `do' on separate line, instead of
111780         `for var; do'.
111782 2002-11-06  Bruno Haible  <bruno@clisp.org>
111784         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
111785         * lib/gcd.c (gcd): Likewise.
111787 2002-11-05  Bruno Haible  <bruno@clisp.org>
111789         * lib/gcd.h: New file, from gettext-0.11.5.
111790         * lib/gcd.c: New file, from gettext-0.11.5.
111792 2002-11-05  Bruno Haible  <bruno@clisp.org>
111794         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111795         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111796         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111797         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111799         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
111800         <libintl.h>.
111801         * lib/makepath.c: Include gettext.h instead of <locale.h> and
111802         <libintl.h>.
111804         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
111805         * lib/human.c: Include gettext.h instead of <libintl.h>.
111806         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
111807         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
111808         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
111809         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
111810         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
111811         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
111812         (textdomain): Remove definition.
111813         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
111815         * lib/long-options.c: Remove include of <libintl.h> and definition of
111816         _.
111817         * lib/same.c: Remove include of <libintl.h> and definition of _.
111819 2002-11-04  Owen Taylor  <otaylor@redhat.com>
111821         * lib/config.charset: A few additions for Solaris.
111823 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
111825         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
111826         * lib/localcharset.c (locale_charset): Declare as extern "C".
111828 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
111830         * lib/config.charset: msdos in uk_UA uses CP1125.
111832 2002-11-04  Bruno Haible  <bruno@clisp.org>
111834         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
111835         * lib/strcase.h: New file, from GNU gettext-0.11.5.
111836         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
111837         * lib/strstr.h: New file, from GNU gettext-0.11.5.
111838         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
111840 2002-11-04  Bruno Haible  <bruno@clisp.org>
111842         * lib/localcharset.c (locale_charset): Don't return an empty string.
111844 2002-11-04  Bruno Haible  <bruno@clisp.org>
111846         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
111847         aliases.
111849 2002-11-04  Bruno Haible  <bruno@clisp.org>
111851         * lib/config.charset: Update for newest glibc. Add canonical names
111852         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
111854 2002-11-04  Bruno Haible  <bruno@clisp.org>
111856         * lib/config.charset: Add support for NetBSD.
111858 2002-11-04  Bruno Haible  <bruno@clisp.org>
111860         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
111862 2002-11-01  Bruno Haible  <bruno@clisp.org>
111864         * configure.in: Add AC_CONFIG_AUX_DIR call.
111865         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
111866         test/Makefile.
111867         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
111869 2002-09-28  Karl Berry  <karl@gnu.org>
111871         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
111872         installed automake until the next release, since changes have been
111873         made.
111875 2002-09-25  Karl Berry  <karl@gnu.org>
111877         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
111878         * lib/getopt*: copy from libc/posix.
111879         * lib/gettext.h: copy from gettext.
111880         * lib/.cppi-disable: add strdup.c, gettext.h.
111882 2002-09-25  Karl Berry  <karl@gnu.org>
111884         * config/srclist.txt: enable gettext.h check.
111885         * config/config.{guess,sub}: update from prep.
111886         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
111887                 from automake 1.6.3.
111888         See srclist*.
111890 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
111892         * regex.c (PATFETCH): Remove the translating fetch.
111893         (PATFETCH_RAW): Rename to PATFETCH.
111894         (set_image_of_range): New fun.
111895         (SET_RANGE_TABLE_WORK_AREA): Use it.
111896         (regex_compile): Don't translate the pattern chars so eagerly.
111897         Only do it when inserting an `exactn' bytecode or when handling
111898         a char-range.
111899         (mutually_exclusive_p): Avoid empty statement.
111901 2002-07-06  Jim Meyering  <meyering@lucent.com>
111903         * m4/README: Don't mention Makefile.am.in.
111904         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
111906 2002-07-01  Jim Meyering  <meyering@lucent.com>
111908         * lib/c-stack.c: Include sys/time.h.
111909         From Volker Borchert.
111911 2002-06-26  Paul Eggert  <eggert@twinsun.com>
111913         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
111915 2002-06-26  Paul Eggert  <eggert@twinsun.com>
111917         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
111918         New macro.  Use it uniformly instead of
111919         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
111920         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
111921         reported by Vin Shelton.
111923 2002-06-22  Paul Eggert  <eggert@twinsun.com>
111925         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
111926         Do not assume SA_SIGINFO behavior.
111927         Bug reported by Jim Meyering on NetBSD 1.5.2.
111929 2002-06-22  Jim Meyering  <meyering@lucent.com>
111931         * m4/c-stack.m4: New file, from diffutils-2.8.2.
111932         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
111934         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
111935         now that configure.ac uses AC_GNU_SOURCE.
111936         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
111937         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
111939         Update to latest tools.  Suggestions from Paul Eggert.
111940         * m4/stdbool.m4: New file, from diffutils-2.8.2.
111941         * m4/gnu-source.m4: Update from diffutils-2.8.2.
111942         * m4/fnmatch.m4: Likewise.
111943         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
111944         to AC_HEADER_STDBOOL
111946 2002-06-22  Jim Meyering  <meyering@lucent.com>
111948         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
111949         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
111951 2002-06-22  Jim Meyering  <meyering@lucent.com>
111953         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
111955         * lib/exitfail.c, exitfail.h: Likewise.
111956         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
111958         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
111959         of fnmatch.h.
111960         (EXTRA_DIST): Add fnmatch_loop.c.
111961         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
111963         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
111964         * lib/fnmatch.c: Update from diffutils-2.8.2.
111965         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
111966         * lib/fnmatch.h: Remove file.
111968 2002-06-21  Jim Meyering  <meyering@lucent.com>
111970         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
111971         * m4/mbrtowc.m4: Likewise.
111973         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
111974         * m4/mbswidth.m4: Reflect name change:
111975         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
111976         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
111978         * m4/lib-link.m4: Update from gettext-0.11.2.
111979         * m4/gettext.m4: Likewise.
111981         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
111982         From Alfred M. Szmidt.
111984 2002-06-18  Paul Eggert  <eggert@twinsun.com>
111986         * lib/file-type.h: Report an error if neither S_ISREG nor
111987         S_IFREG is defined, instead of using a test specific to glibc
111988         2.2.  This should be safe, since POSIX requires S_ISREG and
111989         Unix Version 7 had S_IFREG.  We don't need to check for
111990         <sys/types.h> since we don't use any symbols that it defines.
111992 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
111994         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
111995         $@-t, so that each temporary file name is unique and valid in the first
111996         8 characters, for operation under DOS.
111998 2002-06-15  Paul Eggert  <eggert@twinsun.com>
112000         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
112002 2002-06-15  Jim Meyering  <meyering@lucent.com>
112004         Work even with DJGPP 2.03, which lacks support for symlinks.
112005         From Richard Dawe.
112006         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
112007         is defined.
112008         * lib/lchown.c (S_ISLNK): Likewise.
112010 2002-06-15  Jim Meyering  <meyering@lucent.com>
112012         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
112013         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
112014         have been included before this file.
112016 2002-06-14  Jim Meyering  <meyering@lucent.com>
112018         * lib/file-type.h: Use the version from diffutils-2.8.2.
112019         * lib/file-type.c: Likewise.
112021 2002-06-07  Jim Meyering  <meyering@lucent.com>
112023         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
112024         They're needed at least for NetBSD 1.5.2.
112025         ($statxfs_includes): Include those same headers.
112026         ($statxfs_includes): Include sys/vfs.h if available.
112027         ($statxfs_includes): Likewise for sys/statvfs.h.
112028         Check for the following members in both structs statfs and statvfs:
112029         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
112031 2002-06-01  Jim Meyering  <meyering@lucent.com>
112033         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
112034         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
112036 2002-05-28  Jim Meyering  <meyering@lucent.com>
112038         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
112039         Reported by Volker Borchert.
112041 2002-05-27  Jim Meyering  <meyering@lucent.com>
112043         Fix a problem seen only on nonconforming systems whereby ls.c's
112044         use of localtime, and then of gettimeofday would cause trouble:
112045         the localtime call used to initialize rpl_gettimeofday's save
112046         mechanism would clobber ls's current local time information so
112047         that in any long listing the first file would always be listed
112048         with date 1970-01-01.  Analysis by Volker Borchert.
112050         * lib/gettimeofday.c (localtime): Undefine.
112051         (rpl_localtime): New function.
112053 2002-05-27  Jim Meyering  <meyering@lucent.com>
112055         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
112056         localtime.
112058         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
112059         use the replacement function; it wouldn't resolve at link time.
112060         Reported by Volker Borchert.
112062 2002-05-22  Jim Meyering  <meyering@lucent.com>
112064         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
112065         file-type.h.
112066         * lib/file-type.h: New file.
112067         * lib/file-type.c (file_type): New file/function.  Extracted from
112068         diffutils.
112070 2002-04-30  Jim Meyering  <meyering@lucent.com>
112072         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
112074 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112076         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
112078 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112080         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
112081         Do not check for alloca.h (no longer used) or stdbool.h (was never
112082         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
112084 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112086         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
112088 2002-04-29  Jim Meyering  <meyering@lucent.com>
112090         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
112091         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
112092         Use AC_FUNC_STRNLEN here instead.
112094         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
112095         With autoconf-2.53a, it's part of AC_PROG_CC.
112097 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112099         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
112100         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
112102 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112104         * lib/sig2str.h, lib/sig2str.c: New files.
112105         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
112107 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112109         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
112110         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
112111         of 127, since 64 is the largest conceivable number for ancient
112112         nonstandard hosts.
112113         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
112115 2002-04-28  Jim Meyering  <meyering@lucent.com>
112117         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
112119 2002-04-24  Jim Meyering  <meyering@lucent.com>
112121         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
112122         (jm_PREREQ): Use it.
112124         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
112125         mach/mach.h fcntl.h.
112126         Check for this function: setlocale.
112128 2002-04-24  Jim Meyering  <meyering@lucent.com>
112130         * lib/gettext.h: New file, from Gettext.
112131         * lib/Makefile.am (INCLUDES): Remove -I../intl.
112132         (libfetish_a_SOURCES): Add gettext.h.
112134 2002-04-16  Jim Meyering  <meyering@lucent.com>
112136         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
112137         ut_pid, ut_id, ut_exit.
112139 2002-04-16  Jim Meyering  <meyering@lucent.com>
112141         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
112142         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
112143         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
112145 2002-04-12  Jim Meyering  <meyering@lucent.com>
112147         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
112148         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
112149         existence of the getmntinfo function.  Needed for Darwin 5.3.
112151         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
112152         This is necessary at least on Darwin 5.3.
112154         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
112155         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
112156         strnlen.o in the library, and that makes some versions of ranlib
112157         object.
112159 2002-04-12  Jim Meyering  <meyering@lucent.com>
112161         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
112163 2002-04-09  Jim Meyering  <meyering@lucent.com>
112165         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
112166         to be more precise.  Rather than saying we're checking whether the
112167         function `works', say what we're testing.
112168         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
112169         Reported by Bruno Haible.
112171 2002-03-10  Jim Meyering  <meyering@lucent.com>
112173         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
112174         Suggestion from Santiago Vila.
112176 2002-03-08  Jim Meyering  <meyering@lucent.com>
112178         * lib/rename.c: Mention that this wrapper is needed also on
112179         mips-dec-ultrix4.4 systems.
112181 2002-03-02  Jim Meyering  <meyering@lucent.com>
112183         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
112184         not HAVE_CLOCK_SETTIME.
112186 2002-02-27  Paul Eggert  <eggert@twinsun.com>
112188         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
112189         Check for clock_settime.
112191 2002-02-27  Paul Eggert  <eggert@twinsun.com>
112193         * lib/nanosleep.h: Rename to....
112194         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
112196         * lib/gettime.c: New file.
112197         * lib/settime.c: New file.
112198         * lib/stime.c: Remove.
112200         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
112201         timespec.h.  Remove nanosleep.h.
112203 2002-02-25  Paul Eggert  <eggert@twinsun.com>
112205         * m4/acl.m4: New file.
112206         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
112207         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
112209 2002-02-25  Paul Eggert  <eggert@twinsun.com>
112211         * lib/acl.c, lib/acl.h: New files.
112212         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
112214 2002-02-24  Jim Meyering  <meyering@lucent.com>
112216         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
112217         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
112218         cause trouble.  Reported by Nelson Beebe.
112220 2002-02-23  Paul Eggert  <eggert@twinsun.com>
112222         * lib/path-concat.c (xpath_concat): Reorder code to pacify
112223         compilers that don't know that xalloc_die never returns.
112225 2002-02-20  Jim Meyering  <meyering@lucent.com>
112227         * lib/getdate.c: Regenerate using bison-1.33.
112229 2002-02-17  Jim Meyering  <meyering@lucent.com>
112231         * config/config.guess (main): Don't use `head -1'; it's no longer
112232         portable. Use `sed 1q' instead.
112234 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
112236         * m4/codeset.m4: Upgrade to gettext-0.11.
112237         * m4/gettext.m4: Upgrade to gettext-0.11.
112238         * m4/glibc21.m4: Upgrade to gettext-0.11.
112239         * m4/iconv.m4: Upgrade to gettext-0.11.
112240         * m4/isc-posix.m4: Upgrade to gettext-0.11.
112241         * m4/lcmessage.m4: Upgrade to gettext-0.11.
112242         * m4/lib-ld.m4: New file, from gettext-0.11.
112243         * m4/lib-link.m4: New file, from gettext-0.11.
112244         * m4/lib-prefix.m4: New file, from gettext-0.11.
112245         * m4/progtest.m4: Upgrade to gettext-0.11.
112247 2002-02-15  Paul Eggert  <eggert@twinsun.com>
112249         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
112250         (jm_PREREQ): Use it.
112252 2002-02-15  Paul Eggert  <eggert@twinsun.com>
112254         * lib/posixver.c, lib/posixver.h: New files.
112255         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
112257 2002-02-02  Paul Eggert  <eggert@twinsun.com>
112258             Bruno Haible  <bruno@clisp.org>
112260         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
112261         (fwrite_success_callback): New declaration.
112262         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
112263         print_unicode_char. Call failure callback instead of error.
112264         (fwrite_success_callback): New function.
112265         (exit_failure_callback): New function.
112266         (fallback_failure_callback): New function.
112267         (print_unicode_char): Call unicode_to_mb.
112269 2002-01-26  Jim Meyering  <meyering@lucent.com>
112271         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
112272         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
112274 2002-01-26  Jim Meyering  <meyering@lucent.com>
112276         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
112278 2002-01-22  Paul Eggert  <eggert@twinsun.com>
112280         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
112282 2002-01-22  Jim Meyering  <meyering@lucent.com>
112284         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
112285         Otherwise, some versions of automake would omit the rule that makes
112286         Makefile from Makefile.in.
112288 2002-01-21  Paul Eggert  <eggert@twinsun.com>
112290         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
112291         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
112292         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
112293         (memcoll): Set errno to zero if there is no error.
112295         * lib/quotearg.c (quotearg_buffer_restyled):
112296         Fix bug with quoting buffers containing NUL when backslashing escapes.
112297         This bug was exposed by the other changes in this patch.
112298         (quotearg_n_options): New arg ARGSIZE.
112299         All callers changed.
112300         (quoting_options_from_style): New function.
112301         (quotearg_n_style): Use it.
112302         (quotearg_n_style_mem): New function.
112304         * lib/quotearg.h (quotearg_n_style_mem): New function.
112306 2002-01-19  Jim Meyering  <meyering@lucent.com>
112308         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
112309         Remove useless quotes: DF_PROG="df".
112310         * m4/strnlen.m4: New file.
112312 2002-01-16  Paul Eggert  <eggert@twinsun.com>
112314         * lib/backupfile.c (ISDIGIT): Comment fix.
112315         * lib/getdate.y (ISDIGIT): Likewise.
112316         * lib/posixtm.c (ISDIGIT, year): Likewise.
112317         * lib/strverscmp.c (ISDIGIT): Likewise.
112318         * lib/userspec.c (ISDIGIT): Likewise.
112320 2002-01-16  Jim Meyering  <meyering@lucent.com>
112322         * lib/getdate.y: Add three semicolons, each just before a closing
112323         brace. Bison (as of version 1.31) no longer papers over that mistake.
112325 2002-01-05  Jim Meyering  <meyering@lucent.com>
112327         * lib/version-etc.c (version_etc_copyright): Update copyright year.
112329 2001-12-19  Paul Eggert  <eggert@twinsun.com>
112331         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
112332         not silently exit merely because the output buffer happens to
112333         have nothing pending.
112335 2001-12-18  Paul Eggert  <eggert@twinsun.com>
112337         See the big note in ../ChangeLog.
112338         * lib/human.c (suffixes): Prefer K to k for 1024.
112339         (generate_suffix_backwards): New function.
112340         (human_readable_inexact): Use it.
112341         * lib/xstrtol.c (__xstrtol): If there is no number but there
112342         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
112343         Accept 'K' as well as 'k'.
112345 2001-12-15  Jim Meyering  <meyering@lucent.com>
112347         * lib/regex.h (__restrict_arr): Update from libc.
112349         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
112350         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
112351         (STREQ): Define.
112353 2001-12-14  Jim Meyering  <meyering@lucent.com>
112355         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
112356         Suggestion from Bruno Haible.
112358 2001-12-10  Jim Meyering  <meyering@lucent.com>
112360         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
112361         xrealloc, Instead, include "xalloc.h".
112362         (initbuffer): Don't cast xmalloc return value to char*.
112363         (readline): Reword comment.
112364         Don't cast xrealloc return value to char*
112365         Return NULL, not 0.
112367 2001-12-09  Jim Meyering  <meyering@lucent.com>
112369         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
112370         about `signed and unsigned type in conditional expression'.
112371         * lib/posixtm.c (posix_time_parse): Likewise.
112373         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
112375         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
112376         to avoid a pedantic warning.
112378         * lib/getstr.c: Don't include assert.h.
112379         (getstr): Remove warning-evoking assertions.
112380         Return -1 if offset parameter is out of bounds.
112381         Change the type of a local from int to size_t.
112383         * lib/strftime.c (my_strftime_localtime_r): Include this function
112384         definition in the `#if ! HAVE_TM_GMTOFF' block.
112386         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
112387         Include xalloc.h instead.
112389 2001-12-02  Jim Meyering  <meyering@lucent.com>
112391         * lib/tempname.c: Don't declare getenv, thus reverting the change of
112392         2001-11-18.  It's no longer necessary, now that stdlib.h is always
112393         included.
112395         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
112396         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
112398 2001-11-30  Akim Demaille  <akim@epita.fr>
112400         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
112401         before being defined.
112403 2001-11-27  Paul Eggert  <eggert@twinsun.com>
112405         * lib/quotearg.h (quotearg_n, quotearg_n_style):
112406         First arg is int, not unsigned.
112407         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
112408         (SIZE_MAX, UINT_MAX): New macros.
112409         (quotearg_n_options): Abort if N is negative.
112410         Avoid overflow check on hosts where size_t is 64 bits and int
112411         is 32 bits, as overflow is impossible there.
112412         Fix off-by-one typo that caused unnecessary reallocation.
112414 2001-11-27  Jim Meyering  <meyering@lucent.com>
112416         * lib/tempname.c: Merge with version from libc.
112417         * lib/regex.c: Likewise.
112419         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
112420         systems for which STDC_HEADERS is 0, it was not included, resulting in
112421         a warning about an integer-to-pointer conversion problem with getenv.
112422         Reported by Volker Borchert.
112424 2001-11-26  Jim Meyering  <meyering@lucent.com>
112426         * lib/gtod.h: Remove file.
112427         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
112428         * lib/gettimeofday.c: Don't include gtod.h.
112429         (GTOD_init): Remove function.
112430         (rpl_gettimeofday): Do its job here instead, rather than aborting.
112431         Suggestion from Volker Borchert.
112433 2001-11-23  Jim Meyering  <meyering@lucent.com>
112435         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
112436         it.
112437         * lib/hash.c (struct hash_table): Define it here instead.
112439 2001-11-22  Jim Meyering  <meyering@lucent.com>
112441         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
112443 2001-11-20  Jim Meyering  <meyering@lucent.com>
112445         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
112446         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
112448 2001-11-19  Jim Meyering  <meyering@lucent.com>
112450         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
112451         directory.  Use "conftestXXXXXX" as the template.
112452         Suggestion from Paul Eggert.
112454         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
112455         immediately, so the test doesn't mistakenly hit the max-open-files
112456         limit.
112458 2001-11-18  Paul Eggert  <eggert@twinsun.com>
112460         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
112461         (TEMPORARIES): New macro.
112462         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
112463         removes an artificial limitation (e.g. HP-UX 10.20, where
112464         TMP_MAX is 17576).
112466 2001-11-18  Jim Meyering  <meyering@lucent.com>
112468         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
112470 2001-11-18  Jim Meyering  <meyering@lucent.com>
112472         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
112473         on SunOS 4.
112475         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
112476         files will be created before anything else.
112478 2001-11-17  Paul Eggert  <eggert@twinsun.com>
112480         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
112481         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
112483 2001-11-17  Jim Meyering  <meyering@lucent.com>
112485         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
112486         Prompted by a report from Bob Proulx.
112488         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
112489         Instead, require UTILS_FUNC_MKSTEMP.
112491 2001-11-17  Jim Meyering  <meyering@lucent.com>
112493         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
112494         Now, that's done as part of AC_FUNC_STRTOD.
112496 2001-11-17  Jim Meyering  <meyering@lucent.com>
112498         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
112499         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
112500         rather than group writable.  Patch by Juan F. Codagnone.
112502         * lib/readtokens.c: Remove explicit declarations of xmalloc and
112503         xrealloc, Instead, include "xalloc.h".
112505         * lib/mountlist.c: Include unlocked-io.h after all system headers.
112506         Remove explicit declarations of xmalloc, xrealloc,
112507         and xstrdup.  Instead, include "xalloc.h".
112509         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
112510         unlocked-io.h.
112511         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
112512         Likewise.
112513         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
112515         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
112516         Reported by Padraig Brady.
112518         * lib/mkstemp.c: #undef mkstemp.
112519         Include config.h.
112520         (rpl_mkstemp): Rename from mkstemp.
112521         Protoize.
112523 2001-11-16  Jim Meyering  <meyering@lucent.com>
112525         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
112526         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
112527         determine the amount of total physical memory, use pstat_getstatic.
112528         HPUX-11 doesn't define _SC_PHYS_PAGES.
112529         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
112530         If sysconf couldn't be used to determine the amount of available
112531         physical memory, use both pstat_getstatic and pstat_getdynamic.
112532         Based on a patch from Bob Proulx.
112534 2001-11-10  Jim Meyering  <meyering@lucent.com>
112536         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
112537         (jm_PREREQ): Use it.
112539 2001-11-09  Jim Meyering  <meyering@lucent.com>
112541         * m4/jm-macros.m4: Require autoconf-2.52f.
112542         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
112543         Use these AC_-prefixed names, not the AM_-prefixed ones.
112545         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
112547 2001-11-05  Jim Meyering  <meyering@lucent.com>
112549         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
112551 2001-11-04  Jim Meyering  <meyering@lucent.com>
112553         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
112554         $DEFS.
112556 2001-11-03  Jim Meyering  <meyering@lucent.com>
112558         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
112559         of AC_DEFUN.
112561         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
112562         know the name of the variable in the macro definition.
112564 2001-11-03  Jim Meyering  <meyering@lucent.com>
112566         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
112567         in argmatch_to_argument call.
112569         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
112570         argument.
112572         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
112573         e.g., a fault due to an attempt to free a NULL pointer.
112575 2001-11-01  Jim Meyering  <meyering@lucent.com>
112577         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
112578         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
112580 2001-11-01  Jim Meyering  <meyering@lucent.com>
112582         * lib/dirfd.c, lib/dirfd.h: New files.
112583         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
112585         * lib/hash.c (hash_print) [TESTING]: Clean up.
112587 2001-10-22  Paul Eggert  <eggert@twinsun.com>
112589         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
112590         to avoid a warning if -Wall.
112592 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
112594         * README: New file
112595         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
112596         (per RMS's instructions, this is now the canonical source)
112597         * lgpl/, gpl/: New directories.
112599 2001-10-21  Paul Eggert  <eggert@twinsun.com>
112601         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
112603 2001-10-21  Jim Meyering  <meyering@lucent.com>
112605         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
112606         this code would end up calling gettext even in packages built
112607         with --disable-nls.
112608         * lib/getopt.c (_): Likewise.
112609         * lib/regex.c (_): Likewise.
112611 2001-10-20  Paul Eggert  <eggert@twinsun.com>
112613         * m4/error.m4 (jm_PREREQ_ERROR):
112614         Do not invoke AC_CHECK_FUNCS with strerror_r, as
112615         AC_FUNC_STRERROR_R does that.
112616         Check for strerror declaration.
112618         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
112619         are supposed to have them these days.
112620         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
112621         Merge changes from latest Autoconf CVS.
112622         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
112623         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
112624         POSIX decided to standardize on the int flavor of strerror_r.
112626 2001-10-20  Paul Eggert  <eggert@twinsun.com>
112628         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
112629         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
112630         Use strerror_r that is only a macro, even if it is not a function.
112631         (strerror): Check for HAVE_DECL_STRERROR before declaring.
112632         (private_strerror): Use prototypes, not old-style function definition.
112633         (print_errno_message): New function.
112634         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
112635         char*-flavored one.
112636         (error_tail, error, error_at_line): Use it.
112638 2001-10-11  Jim Meyering  <meyering@lucent.com>
112640         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
112641         and quote_n (1, ... to avoid clobbering a buffer.
112643 2001-10-05  Jim Meyering  <meyering@lucent.com>
112645         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
112646         hash-pjw.h.
112647         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
112648         * lib/hash-pjw.h: New file.
112650 2001-09-30  Jim Meyering  <meyering@lucent.com>
112652         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
112653         `struct fsstat' has the `f_fstypename' member.
112654         Use that to define FS_TYPE, which is now used to make
112655         the getfsstat link test tighter.
112657 2001-09-30  Jim Meyering  <meyering@lucent.com>
112659         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
112660         Include <sys/ucred.h>, for Apple Darwin.
112661         Include sys/mount.h and sys/fs_types.h only if available.
112662         (FS_TYPE): Define.
112663         (read_filesystem_list): Use FS_TYPE.
112665 2001-09-29  Paul Eggert  <eggert@twinsun.com>
112667         * lib/exclude.c (excluded_filename): 0 -> false, since it's
112668         a boolean context.
112670 2001-09-29  Jim Meyering  <meyering@lucent.com>
112672         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
112673         [one-argument getmntent function]): Include stdio.h before mntent.h.
112674         SunOS 4.1.x needs it for the declaration of `FILE'.
112675         Patch by Volker Borchert.
112677         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
112678         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
112679         sys/fs_types.h, and make the link-test for getfsstat guard #include
112680         directives with appropriate #if HAVE_*_H tests so that we can
112681         detect getfsstat on Apple Darwin1.3.7 systems.
112682         Reported by Nelson Beebe.
112683         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
112685 2001-09-28  Paul Eggert  <eggert@twinsun.com>
112687         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
112688         #defines strtoimax.  Also treat the other strto* functions
112689         like strtoimax.
112691         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
112692         Check for strtoul and strtoumax,
112693         as those declarations are made even in the signed case.
112694         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
112695         Likewise, for strtol and strtoimax.
112697 2001-09-28  Paul Eggert  <eggert@twinsun.com>
112699         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
112700         #defines strtoimax.  Also treat the other strto* functions
112701         like strtoimax.
112703         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
112704         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
112705         (strtoimax, strtoumax): Do not declare if already defined as a macro.
112707 2001-09-26  Jim Meyering  <meyering@lucent.com>
112709         Most macros in unlocked-io.h had the wrong number of arguments.
112710         * lib/gen-uio: New script.
112711         (USE_UNLOCKED_IO): Define to 1 if not already defined.
112712         * lib/unlocked-io.hin: Remove file.
112713         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
112714         rather than trying to embed it here.
112715         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
112716         Reported by Padraig Brady.
112718 2001-09-25  Volker Borchert  <bt@teknon.de>
112720         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
112721         `result'.
112723 2001-09-24  Jim Meyering  <meyering@lucent.com>
112725         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
112727 2001-09-23  Jim Meyering  <meyering@lucent.com>
112729         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
112730         instead of the mere test for existence of mntent.h.  The latter
112731         would get a false-positive on AIX 3.4 systems.
112732         In the outer getmntent if-block, don't die if neither of the getmntent
112733         tests succeeds.  Instead, just fall through and continue with the
112734         remaining tests.
112736 2001-09-23  Jim Meyering  <meyering@lucent.com>
112738         * lib/mountlist.c: Remove useless parentheses in #if directives.
112739         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
112740         the deprecated MOUNTED symbol is no longer defined in mntent.h.
112742 2001-09-22  Jim Meyering  <meyering@lucent.com>
112744         * m4/gettext.m4: New file.  From gettext.
112745         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
112746         * m4/progtest.m4: Likewise
112747         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
112748         * m4/glibc21.m4: Likewise.
112750         * m4/libintl.m4: Remove.  No longer used.
112752 2001-09-22  Jim Meyering  <meyering@lucent.com>
112754         * lib/localcharset.c: Update from latest gettext.
112755         * lib/config.charset: Likewise.
112757 2001-09-20  Jim Meyering  <meyering@lucent.com>
112759         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
112760         strtoimax.
112761         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
112762         strtoumax.
112764 2001-09-20  Jim Meyering  <meyering@lucent.com>
112766         * lib/xstrtol.c (strtoimax): Guard declaration with
112767         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
112768         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
112769         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
112770         (strtoumax): Likewise, for completeness (it wasn't necessary).
112772 2001-09-17  Paul Eggert  <eggert@twinsun.com>
112774         * lib/strtoimax.c (HAVE_LONG_LONG):
112775         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
112776         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
112777         to work around bug in IBM C compiler.
112779 2001-09-17  Jim Meyering  <meyering@lucent.com>
112781         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
112782         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
112783         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
112784         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
112785         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
112786         whenever the right hand side need not be expanded by the shell.
112788 2001-09-16  Paul Eggert  <eggert@twinsun.com>
112790         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
112791         library.  It's not correct, as some older glibcs are buggy.
112792         fnmatch wasn't fixed until glibc 2.2.
112794         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
112795         special shell magic here.
112797 2001-09-16  Jim Meyering  <meyering@lucent.com>
112799         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
112800         * m4/jm-macros.m4: Require it.
112802 2001-09-16  Jim Meyering  <meyering@lucent.com>
112804         * lib/mkdir.c: New file.
112806 2001-09-15  Jim Meyering  <meyering@lucent.com>
112808         * m4/jm-macros.m4: Check for help2man.
112810 2001-09-11  Jim Meyering  <meyering@lucent.com>
112812         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
112813         The body, by Paul Eggert, was moved here from configure.in.
112814         * m4/jm-macros.m4: Require UTILS_HOST_OS.
112816 2001-09-04  Paul Eggert  <eggert@twinsun.com>
112818         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
112819         (jm_PREREQ): Use it.
112821 2001-09-04  Paul Eggert  <eggert@twinsun.com>
112823         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
112824         Use ssize_t, not int, to store result of readlink.
112825         Check for ssize_t overflow as well as size_t overflow,
112826         as POSIX says the result of readlink is implementation-defined
112827         when ssize_t overflows.
112828         Remove unnecessary cast to char*.
112829         Use free+malloc instead of realloc, as the storage doesn't need
112830         to be preserved and it's clearer and can be more efficient that way.
112831         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
112832         * lib/xreadlink.h (xreadlink): Update prototype.
112834 2001-09-04  Paul Eggert  <eggert@twinsun.com>
112836         * lib/xgetcwd.c: Revert some of the previous change; intead,
112837         fix the HAVE_GETCWD_NULL code to behave more like the
112838         !HAVE_GETCWD_NULL code used to.
112840         Include "xalloc.h".
112841         (xgetcwd): Do not return NULL when memory is exhausted; instead,
112842         invoke xalloc_die.
112844 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112846         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
112847         sys/param.h, as pathmax.h includes them.
112849 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112851         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
112852         (jm_PREREQ_XGETCWD): New macro.
112854         * m4/getcwd.m4: New file.
112856 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112858         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
112859         like the HAVE_GETCWD_NULL code.
112860         Include pathmax.h if not HAVE_GETCWD.
112861         Do not include xalloc.h.
112862         (INITIAL_BUFFER_SIZE): New symbol.
112863         Do not use xmalloc / xrealloc, since the caller is responsible for
112864         handling errors.  Preserve errno around `free' during failure.
112865         Do not overrun buffer when using getwd.
112867 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112869         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
112870         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
112871         getcwd (NULL, 0).
112873 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112875         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
112876         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
112877         spotted by Jim Meyering.
112879 2001-09-03  Jim Meyering  <meyering@lucent.com>
112881         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
112882         failure.
112884 2001-09-02  Jim Meyering  <meyering@lucent.com>
112886         * lib/error.c: Update from GNU libc.
112888 2001-09-01  Jim Meyering  <meyering@lucent.com>
112890         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
112891         Used by df.
112893 2001-09-01  Jim Meyering  <meyering@lucent.com>
112895         * lib/xreadlink.c: New file.
112896         * lib/xreadlink.h: New file.
112897         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
112898         xreadlink.h.
112900         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
112901         doesn't conflict with sparc Solaris 7's definition in
112902         /usr/include/sys/int_types.h.
112904         * lib/exclude.c: Use `""', not `<>' to #include non-system header
112905         files.
112906         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
112907         and strncasecmp as r-values.  Unixware didn't have declarations.
112909 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112911         * lib/xstrtol.h: Add copyright notice.
112912         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
112913         LONGINT_INVALID_SUFFIX_CHAR.
112915 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112917         * lib/xstrtol.c (strtoimax): New decl.
112919 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112921         * lib/xgetcwd.c: Don't include pathmax.h.
112922         Include stdlib.h and unistd.h if available.
112923         Include xalloc.h.
112924         (xmalloc, xstrdup, free): Remove decls.
112925         (xgetcwd): Don't assume sizes fit in unsigned.
112926         Check for overflow when computing sizes.
112927         Simplify reallocation code.
112929 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112931         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
112932         a directory's st_size can have an arbitrary value, so the old
112933         usage could waste an arbitrary amount of memory.  All uses
112934         changed.
112935         * lib/savedir.h: Update prototype.
112937 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112939         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
112941         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
112942         old strtoimax.c.
112944         Also, make the following further changes to make this file's
112945         configuration more similar to that of strtol.c:
112946         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
112947         (strtoumax, uintmax_t, strtoull, strtol): Remove.
112948         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
112949         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
112950         changed to signed values.
112952         And make the following changes as well:
112953         Fix copyright notice, as 1999 was missing.
112954         (verify): New macro.
112955         (strtoimax): Check sizes at compile-time, not run-time.
112956         Prefer strtol to strtoll if both work.
112957         (main): Remove; it was not that useful and was a pain to maintain.
112959         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
112961 2001-08-31  Jim Meyering  <meyering@lucent.com>
112963         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
112964         Use an initial, malloc'd, buffer of length 128 rather than
112965         a statically allocated one of length 1024.
112967 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112969         Simplify code, partly by assuming autoconf 2.52 semantics.
112971         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
112973         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
112974         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
112975         All uses removed.
112976         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
112977         Move AC_REQUIRE to next-to-top level, to avoid confusion.
112978         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
112979         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
112980         jm_AC_HEADER_INTTYPES_H.
112981         * m4/jm-macros.m4 (jm_MACROS): Likewise.
112983         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
112985         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
112986         Quote first arg of AC_DEFUN.
112987         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
112988         since they are needed to parse the include file even if we need
112989         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
112990         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
112991         but with opposite signedness.
112993 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112995         Merge 'exclude' changes from tar 1.13.22.
112996         This fixes one or two unlikely storage allocation overflow bugs,
112997         but doesn't change user-visible behavior otherwise.
112999 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113001         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
113002         (jm_PREREQ_EXCLUDE): New macro.
113004 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113006         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
113007         tm to be declared.
113009 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113011         * lib/hash.c: Remove '2001' from copyright notice.
113013 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113015         * lib/full-write.h: New file.
113016         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
113017         * lib/full-write.c: Correct credits, as cccp.c no longer
113018         exists and anyway it was so heavily changed from the old cccp
113019         code as to be unrecognizable.  Include full-write.h.
113020         (full_write): Return size_t, with short writes meaning failure.
113021         All callers changed.  This fixes a bug with large buffers
113022         on 64-bit hosts.
113023         * lib/utime.c: Include full-write.h.
113025 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113027         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
113028         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
113029         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
113030         Include if available.
113031         (<xalloc.h>): Include
113032         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
113033         (verify): New macro.  Use it to verify that EXCLUDE macros do not
113034         collide with FNM macros.
113035         (struct patopts): New struct.
113036         (struct exclude): Use it, as exclude patterns now come with options.
113037         (new_exclude): Support above changes.
113038         (new_exclude, add_exclude_file):
113039         Initial size must now be a power of two to simplify overflow checking.
113040         (free_exclude, fnmatch_no_wildcards): New function.
113041         (excluded_filename): No longer requires options arg, as the options
113042         are determined by add_exclude.  Now returns bool, not int.
113043         (excluded_filename, add_exclude):
113044         Add support for the fancy new exclusion options.
113045         (add_exclude, add_exclude_file): Now takes int options arg.
113046         Check for arithmetic overflow when computing sizes.
113047         (add_exclude_file): xrealloc might modify errno, so don't
113048         realloc until after errno might be used.
113050         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
113051         New macros.
113052         (free_exclude): New decl.
113053         (add_exclude, add_exclude_file): Now takes int options arg.
113054         (excluded_filename): No longer requires options arg, as the options
113055         are determined by add_exclude.  Now returns bool, not int.
113057 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113059         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
113061 2001-08-27  Jim Meyering  <meyering@lucent.com>
113063         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
113065         * lib/version-etc.c (N_): Remove definition.
113066         Revert most of last change.
113067         Instead, simply don't mark the `Copyright...' string for translation.
113068         Based on advice from Paul Eggert.
113070         * lib/strtoxmax.c: Tweak comment.
113072 2001-08-26  Jim Meyering  <meyering@lucent.com>
113074         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
113076         * m4/xstrtoimax.m4: New file.
113077         * m4/xstrtoumax.m4: Add comments explaining why we
113078         AC_REPLACE_FUNCS(strtol).
113080 2001-08-26  Jim Meyering  <meyering@lucent.com>
113082         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
113083         of copyright with `%s' so translators don't get an untranslated
113084         message in 2002.
113085         (COPYRIGHT_YEAR): Define.
113086         (version_etc): Use fprintf rather than fputs.
113087         Suggestion from Ulrich Drepper.
113089         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
113091         * lib/strtoll.c: New file, from GNU libc.
113092         * lib/xstrtoimax.c: New file.
113094         * lib/xstrtol.h: Add xstrtoimax.
113095         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
113096         * lib/strtoimax.c: New file.  Likewise, but first define
113097         STRTOUXMAX_SIGNED.
113099         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
113100         ...
113101         * lib/strtoxmax.c: ... then renamed to this.
113103 2001-08-18  Paul Eggert  <eggert@twinsun.com>
113105         * m4/inttypes.m4: Add AC_PREREQ(2.13).
113106         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
113107         (jm_AC_TYPE_INTMAX_T): New macro.
113108         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
113110         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
113112         * m4/longlong.m4: Renamed from ulonglong.m4.
113113         * m4/inttypes.m4: Renamed from inttypes_h.m4.
113114         * m4/uintmax_t.m4: Removed.
113116 2001-08-13  Paul Eggert  <eggert@twinsun.com>
113118         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
113119         Port to Solaris 8, where 'sed' requires a space after the 'r'
113120         command, and where sh dislikes "$/".  Clean up the spacing a bit.
113121         Redirect output to $tmp just once.
113123 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
113125         * lib/addext.c (<errno.h>): Include.
113126         (errno): Declare if not defined.
113127         (addext): Work correctly when pathconf returns -1 and leaves
113128         errno alone because there is no limit.  Also, work even if
113129         pathconf returns a value greater than SIZE_MAX.
113131 2001-08-12  Jim Meyering  <meyering@lucent.com>
113133         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
113134         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
113135         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
113136         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
113137         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
113138         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
113139         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
113140         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
113141         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
113142         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
113143         utime.m4, utimes.m4, xstrtoumax.m4:
113144         Quote the first argument in each use of AC_DEFUN.
113146 2001-08-12  Jim Meyering  <meyering@lucent.com>
113148         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
113149         Simply `return getcwd (NULL, 0);'.
113150         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
113151         Use 1300 as initial value for length, not PATH_MAX.
113153         * lib/pathmax.h: Clean up cpp syntax.
113155 2001-08-12  Jim Meyering  <meyering@lucent.com>
113157         * lib/gettimeofday.c: New file.
113158         * lib/gtod.h: New file.
113159         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
113161 2001-08-05  Jim Meyering  <meyering@lucent.com>
113163         * m4/jm-macros.m4: Require autoconf-2.52.
113165 2001-08-04  Jim Meyering  <meyering@lucent.com>
113167         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
113168         stmt, to get in sync with glibc.
113170 2001-08-03  Paul Eggert  <eggert@twinsun.com>
113172         The following changes are from gettext 0.10.39 as maintained by
113173         Bruno Haible.
113175         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
113176         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
113177         with inverted sense.  All uses changed.
113179         * lib/mbswidth.c: Don't include <limits.h>.
113180         Include <stdlib.h> and <string.h> unconditionally.
113181         (iswcntrl, mbsinit, ISCNTRL): New macros.
113182         (mbsnwidth): Use K&R style function declarations.
113183         Don't bother checking for MB_LEN_MAX == 1, since the compiler
113184         can optimize it when MB_CUR_MAX == 1.
113185         The width of control characters is zero, not 1.
113187 2001-08-03  Paul Eggert  <eggert@twinsun.com>
113189         The following changes are from gettext 0.10.39 as maintained by
113190         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
113192         * m4/codeset.m4: Upgrade to serial AM1.
113193         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
113194         all uses changed.  Quote first arg of AC_DEFUN.
113195         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
113197         * m4/iconv.m4: Upgrade to serial AM2.
113198         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
113199         Add --with-libconv-prefix.
113200         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
113201         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
113202         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
113203         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
113204         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
113206         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
113207         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
113208         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
113209         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
113210         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
113211         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
113212         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
113213         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
113214         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
113216         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
113217         string.h any more.
113219         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
113220         not the default value.
113222         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
113223         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
113224         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
113225         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
113226         Also check for iswcntrl, used for wcwidth fallback.
113227         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
113228         to Autoconf 2.13.
113230 2001-08-03  Jim Meyering  <meyering@lucent.com>
113232         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
113233         as it was in the original.  Reported by Paul Eggert.
113235 2001-07-16  Jim Meyering  <meyering@lucent.com>
113237         * m4/gettimeofday.m4: New file.
113238         Prompted by a report from Bernhard Baehr.
113240 2001-07-15  Jim Meyering  <meyering@lucent.com>
113242         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
113243         stuff. Now it's in ../Makefile.cfg.
113245 2001-07-15  Jim Meyering  <meyering@lucent.com>
113247         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
113248         (BUILT_SOURCES): Add unlocked-io.h.
113249         (io_functions): Define.
113250         (unlocked-io.h): New rule.
113251         (DISTCLEANFILES): Add unlocked-io.h.
113252         (all-local): Depend on unlocked-io.h, to ensure it is created.
113254         * lib/unlocked-io.hin: New file
113256         * lib/regex.c: Update from glibc.
113258 2001-07-05  Jim Meyering  <meyering@lucent.com>
113260         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
113261         recommendation.
113262         (libfetish_a_SOURCES): Put all .h files here instead.
113263         Remove a thus-exposed (better checks in automake) duplicate and
113264         two unnecessary .h files.
113266 2001-07-04  Jim Meyering  <meyering@lucent.com>
113268         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
113269         that generates jm-glibc-io.m4 so that it doesn't trigger any make
113270         distcheck failure.
113272 2001-07-02  Jim Meyering  <meyering@lucent.com>
113274         The following changes were prompted by suggestions from Bruno Haible.
113276         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
113277         is now generated.
113278         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
113279         definition of EXTRA_DIST.
113280         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
113281         ensure that the generated file is created/updated whenever the list
113282         of $(unlocked_functions) is changed.
113283         (jm-glibc-io.m4): New rule.
113284         (unlocked-io.h): New rule -- currently unused.
113286 2001-06-24  Jim Meyering  <meyering@lucent.com>
113288         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
113289         unmatched right bracket, rather than kludging it with an extra,
113290         falsely-matching quote in a comment.  Patch by Akim Demaille.
113292 2001-06-11  Jim Meyering  <meyering@lucent.com>
113294         * lib/regex.c: Update from GNU libc.
113296 2001-05-27  Jim Meyering  <meyering@lucent.com>
113298         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
113299         Check for ut_type in struct utmp.
113301 2001-05-27  Jim Meyering  <meyering@lucent.com>
113303         * lib/readutmp.h (UT_TYPE): Define.
113305 2001-05-24  Jim Meyering  <meyering@lucent.com>
113307         * lib/argmatch.c: Include "quote.h".
113308         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
113309         quote function.  Reported by Göran Uddeborg.
113311 2001-05-22  Jim Meyering  <meyering@lucent.com>
113313         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
113314         now that we use the package-supplied version unconditionally.
113315         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
113317 2001-05-21  Jim Meyering  <meyering@lucent.com>
113319         * m4/regex.m4: Change a couple backticks to single quotes to avoid
113320         shell syntax errors.
113322 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
113324         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
113326 2001-05-20  Paul Eggert  <eggert@twinsun.com>
113328         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
113329         Don't bother to check library strftime, since
113330         we'll be using our own my_strftime function anyway.
113331         Define my_strftime instead of strftime.
113333 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
113335         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
113336         which is not yet declared.
113338 2001-05-15  Jim Meyering  <meyering@lucent.com>
113340         * m4/regex.m4: Use proper quoting so brackets appear in the test
113341         program.
113342         Reported by, and with help from, Bruno Haible.
113344 2001-05-13  Jim Meyering  <meyering@lucent.com>
113346         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
113347         undefined.
113349 2001-05-11  Paul Eggert  <eggert@twinsun.com>
113351         dirname code cleanup.  base_name now behaves more compatibly
113352         with POSIX basename when given file names that have trailing
113353         slashes, and similarly for dir_name.  Add new primitives
113354         base_len and dir_len.  Put the directory-name-related decls
113355         into dirname.h.
113357         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
113358         * lib/backupfile.c (base_name): Likewise.
113359         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
113360         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
113361         * lib/makepath.c (strip_trailing_slashes): Likewise.
113362         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
113363         ISSLASH): Likewise.
113364         * lib/rename.c (strip_trailing_slashes): Likewise.
113365         * lib/same.c (base_name): Likewise.
113366         * lib/stripslash.c (ISSLASH): Likewise.
113368         * lib/addext.c: Include <dirname.h> after size_t is defined.
113369         * lib/backupfile.c: Likewise.
113371         * lib/addext.c (addext): Use base_len to trim redundant
113372         trailing slashes instead of doing it ourselves.
113373         But do not trim the last slash if it is not redundant.
113375         * lib/backupfile.c (find_backup_file_name,
113376         max_backup_version): Use base_len instead of rolling it ourselves.
113377         Handle the case of "" and (on DOS) "C:" correctly.
113379         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
113380         needed. Include <string.h>, <dirname.h>.
113381         (base_name): Allow file names ending in slashes, other than names
113382         that are all slashes.  In this case, return the basename followed
113383         by the slashes.  This is more general, and can be used in places
113384         where the original base_name purposely had an assertion failure.
113385         (base_len): New function.
113387         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
113388         Do not include <assert.h>; no longer needed.
113389         Include xalloc.h.
113390         (memrchr): Remove decl.
113391         (dir_name_r): Remove.
113392         (dir_len): Renamed from dirlen.  All callers changed.
113393         Rewrite in terms of base_name, for simplicity and consistency.
113394         (dir_name): Never return NULL.  All callers changed.
113395         Do not include <stdlib.h> in test program; no longer needed.
113396         return 0; is fine for test program.
113398         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
113399         New macros.
113400         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
113402         * lib/path-concat.c (path_concat): Use base_len to compute
113403         base length, not strlen; this means we cannot rely on memcpy
113404         to null-terminate.
113406         * lib/same.c (STREQ): Remove.
113407         (same_name): Handle the case where the basename ends in trailing '/'.
113409         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
113410         a slash was stripped.  Do not strip the last slash after a
113411         file system prefix.
113413 2001-05-11  Paul Eggert  <eggert@twinsun.com>
113415         * lib/Makefile.am (libfetish_a_SOURCES):
113416         Add strftime.c, since we now compile it on all hosts.
113418         * lib/strftime.c (my_strftime):
113419         Define to nstrftime if emacs, but only if my_strftime is not defined.
113420         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
113421         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
113422         Add one more extra argument: a nanoseconds value.
113423         All uses changed.
113424         (ns): New macro.
113425         (my_strftime function): Add %N format.
113426         (emacs_strftimeu): Renamed from emacs_strftime,
113427         with extra ut argument.
113429 2001-05-09  Paul Eggert  <eggert@twinsun.com>
113431         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
113433 2001-04-21  Jim Meyering  <meyering@lucent.com>
113435         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
113436         doesn't interfere.
113438 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
113440         * m4/ftruncate.m4: Check for chsize.
113441         Link with ftruncate.o unconditionally if ftruncate is missing.
113442         This was required when cross-compiling to i586-mingw32msvc.
113444 2001-04-08  Jim Meyering  <meyering@lucent.com>
113446         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
113447         recomputed; that's necessary when the offset spans a DST transition.
113448         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
113450 2001-04-02  Jim Meyering  <meyering@lucent.com>
113452         * lib/regex.h, regex.c: Update from GNU libc.
113454 2001-03-24  Jim Meyering  <meyering@lucent.com>
113456         * m4/jm-macros.m4: Require autoconf-2.49d.
113458 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
113460         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
113462 2001-03-19  Paul Eggert  <eggert@twinsun.com>
113464         * lib/version-etc.c (version_etc_copyright): Update to 2001.
113466 2001-03-17  Jim Meyering  <meyering@lucent.com>
113468         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
113469         now that the version in autoconf is equivalent.
113470         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
113472         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
113473         Suggestion from Akim Demaille.
113475         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
113476         (jm_PREREQ_TEMPNAME): New function.
113478 2001-03-16  Paul Eggert  <eggert@twinsun.com>
113480         * lib/tempname.c (uint64_t): Define to uintmax_t if
113481         not defined, and if UINT64_MAX is not defined.
113482         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
113483         Reported by John David Anglin.
113485 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
113487         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
113488         resolve alias if codeset is empty.
113489         * lib/config.charset (BeOS): Use wildcard syntax.
113491 2001-03-13  Jim Meyering  <meyering@lucent.com>
113493         * lib/path-concat.c (path_concat)
113494         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
113495         concatenating e.g., `C:' and `foo'.
113496         From Bruno Haible.
113498 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
113500         * lib/localcharset.c (locale_charset): Don't use
113501         setlocale(LC_CTYPE,NULL). Don't return NULL.
113502         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
113504 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
113506         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
113507         support for DOS/DJGPP.
113509 2001-03-01  Paul Eggert  <eggert@twinsun.com>
113511         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
113512         lacks mkstemp.  Compile our own tempname.c if we compile our own
113513         mkstemp.c, as mkstemp relies on tempname.
113515 2001-03-01  Jim Meyering  <meyering@lucent.com>
113517         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
113518         AH_VERBATIM really does output its argument verbatim.
113520 2001-02-28  Paul Eggert  <eggert@twinsun.com>
113522         * lib/Makefile.am (libfetish_a_SOURCES):
113523         Add dup-safer.c, fopen-safer.c.
113524         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
113526         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
113527         * lib/unistd-safer.h: New files.
113529 2001-02-25  Paul Eggert  <eggert@twinsun.com>
113531         The mkstemp replacement is taken from glibc 2.2.2, with some
113532         portability fixes for use outside glibc, as follows:
113534         * lib/tempname.c (struct_stat64): New macro.
113535         (direxists, __gen_tempname): Use it.
113536         This avoids a portability problem with Solaris 8.
113538         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
113539         (<stddef.h>, <stdint.h>, <string.h>):
113540         Include only if STDC_HEADERS || _LIBC.
113541         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
113542         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
113543         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
113544         (__set_errno): Define this macro if <errno.h> doesn't.
113545         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
113546         Define these macros if <stdio.h> doesn't.
113547         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
113548         Define these macros if <sys/stat.h>
113549         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
113550         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
113551         __xstat64): Define if not _LIBC.
113552         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
113553         (__gen_tempname): Invoke gettimeofday only if
113554         HAVE_GETTIMEOFDAY || _LIBC;
113555         otherwise, fall back on plain "time".
113556         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
113558         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
113560         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
113562 2001-02-18  Paul Eggert  <eggert@twinsun.com>
113564         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
113566 2001-02-17  Paul Eggert  <eggert@twinsun.com>
113568         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
113569         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
113570         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
113571         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
113573 2001-02-17  Paul Eggert  <eggert@twinsun.com>
113575         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
113576         Remove workaround macros for hosts that have mbrtowc but not
113577         mbstate_t, as we now insist on proper declarations for both
113578         before using mbrtowc.
113580 2001-02-17  Jim Meyering  <meyering@lucent.com>
113582         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
113583         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
113584         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
113585         UnixWare 7.1.1.
113587         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
113588         rather than AC_CACHE_VAL.
113590 2001-02-17  Jim Meyering  <meyering@lucent.com>
113592         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
113593         around included file name.
113595         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
113597         * lib/strftime.c: Update from GNU libc (the only changes were to
113598         comments).
113600 2001-02-17  Jim Meyering  <meyering@lucent.com>
113602         * lib/regex.c: Update from libc.
113604 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
113606         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
113607         clash.
113609 2001-02-16  Paul Eggert  <eggert@twinsun.com>
113611         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
113612         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
113613         Reported by Mark Hounschell via Paul Eggert.
113615 2001-02-07  Jim Meyering  <meyering@lucent.com>
113617         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
113619 2001-02-05  Jim Meyering  <meyering@lucent.com>
113621         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
113622         it includes the patch required for `large file' support with at least
113623         HP-UX's 10.20 /bin/cc.
113625 2001-02-03  Jim Meyering  <meyering@lucent.com>
113627         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
113628         AS_IF, now that it works once again (mysteriously).
113629         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
113631 2001-01-30  Jim Meyering  <meyering@lucent.com>
113633         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
113634         * m4/chown.m4: Rename conftestchown to conftest.chown.
113635         * m4/rename.m4: s/conftestdir/conftest.d1/ and
113636         s/conftestdir2/conftest.d2/.
113637         * m4/utimes.m4: s/conftestdata/conftest.data/
113638         Inspired by Pavel Roskin's change in autoconf.
113640 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
113642         * lib/config.charset: Update for FreeBSD 4.2.
113644 2001-01-27  Jim Meyering  <meyering@lucent.com>
113646         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
113647         a use of AS_IF.
113648         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
113650 2001-01-26  Jim Meyering  <meyering@lucent.com>
113652         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
113653         quotearg.c includes it.
113655 2001-01-26  Jim Meyering  <meyering@lucent.com>
113657         * lib/quotearg.c: Include stddef.h.
113658         * lib/quote.c: Include stddef.h.
113659         Reported by Axel Kittenberger.
113661         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
113662         line in double quotes so that it evokes a better diagnostic.
113663         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
113664         Reported by Axel Kittenberger.
113666 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
113668         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
113669         as if it was a `charset'.
113671 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
113673         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
113674         has const.
113676 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
113678         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
113679         to avoid a warning.  Add back 'const' to inptr.
113681 2001-01-20  Jim Meyering  <meyering@lucent.com>
113683         Be sure that headers are checked before used in code compiled
113684         for the type checks.
113685         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
113686         In place of that, invoke jm_CHECK_ALL_TYPES.
113687         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
113688         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
113689         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
113690         The check for ssize_t was mistakenly run before the test for unistd.h.
113692         The configure-time check for stdbool.h was missing.
113693         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
113694         (jm_PREREQ_HASH): New function.
113696 2001-01-17  Jim Meyering  <meyering@lucent.com>
113698         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
113699         for autoconf-2.49c.
113700         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
113702 2001-01-16  Jim Meyering  <meyering@lucent.com>
113704         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
113705         From Bruno Haible.
113707 2001-01-14  Jim Meyering  <meyering@lucent.com>
113709         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
113710         foo and bar.  Create conftestdir/ in the script, not in the C code.
113711         Remove directories in the script, not in the C code.
113712         Remove conftestdir{,2} before trying to create the directory.
113713         Make the entire configure script fail if the mkdir fails.
113715 2001-01-14  Jim Meyering  <meyering@lucent.com>
113717         * lib/rename.c: New file.  From Volker Borchert.
113718         Include stdlib.h, string.h or strings.h, and xalloc.h.
113719         Use strip_trailing_slashes rather than open-coding it.
113721 2001-01-03  Paul Eggert  <eggert@twinsun.com>
113723         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
113725 2001-01-03  Jim Meyering  <meyering@lucent.com>
113727         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
113728         of local `inptr' to avoid warning with some system declarations of
113729         iconv.
113731 2001-01-02  Volker Borchert  <bt@teknon.de>
113733         * m4/rename.m4: New file.
113734         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
113736 2001-01-01  Jim Meyering  <meyering@lucent.com>
113738         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
113739         even on systems with utmpx.h.  It's necessary for the declaration of
113740         utmp's ut_user member.  Reported by Andreas Jaeger.
113742         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
113743         available. They are required for the declarations of getgrgid and
113744         getpwuid resp.
113745         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
113746         Reported by Andreas Jaeger.
113748 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
113750         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
113751         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
113752         so `make install' also works in VPATH builds.
113754 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
113756         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
113757         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
113758         can be used in subdirectories.
113760 2000-12-29  Paul Eggert  <eggert@twinsun.com>
113762         * lib/modechange.c: Do not assume that mode_t uses the
113763         traditional octal encoding.  E.g. "chmod 1 FOO" should set
113764         the other-execute bit of FOO even if S_IXOTH != 1.
113766         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
113767         WOTH, XOTH, ALLM): New macros.
113768         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
113769          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
113770         Use them.
113771         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
113772         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
113773         (mode_compile):
113774         No need to use uintmax_t; unsigned long is long enough.
113775         Don't bother to get suffix since we don't use it.
113777 2000-12-26  Jim Meyering  <meyering@lucent.com>
113779         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
113780         better with autoheader.
113782 2000-12-24  Jim Meyering  <meyering@lucent.com>
113784         * lib/hash.c (is_prime): Return explicit boolean values.
113785         (hash_get_first): Return NULL to appease Irix5.6's 89.
113786         Reported by Nelson Beebe.
113788 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
113790         * lib/localcharset.c (locale_charset): Add support for Win32.
113792 2000-12-18  Paul Eggert  <eggert@twinsun.com>
113794         * lib/physmem.h, lib/physmem.c: New files.
113796         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
113797         (noinst_HEADERS): Add physmem.h.
113799         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
113800         't' for compatibility with Solaris 8 sort.
113802 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
113804         * lib/config.charset: Add support for BeOS.
113806 2000-12-17  Jim Meyering  <meyering@lucent.com>
113808         * m4/dos.m4 (jm_AC_DOS): New file and macro.
113809         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
113811 2000-12-16  Jim Meyering  <meyering@lucent.com>
113813         This bug had a serious impact on chown: `chown N:M FILE' (for integer
113814         N and M) would have treated it like `chown N:N FILE'.
113816         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
113818 2000-12-16  Jim Meyering  <meyering@lucent.com>
113820         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
113821         SHELLS_FILE to a file name that's useful on djgpp systems.
113822         Include stdlib.h.
113823         (ADDITIONAL_DEFAULT_SHELLS): Define.
113824         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
113825         Based mostly on a patch from Prashant TR.
113827 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
113829         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
113830         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
113831         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
113833 2000-12-08  Andreas Schwab  <schwab@suse.de>
113835         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
113836         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
113838 2000-12-07  Jim Meyering  <meyering@lucent.com>
113840         * lib/stripslash.c (ISSLASH): Define.
113841         (strip_trailing_slashes): Use ISSLASH rather than comparing against
113842         `/'.
113843         From Prashant TR.
113845         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
113846         (dir_name_r): Declare this function as static.
113847         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
113848         manifest itself on a name containing a mix of slashes and
113849         backslashes.
113850         Make this function work with names starting with a DOS-style
113851         drive letter and colon prefix.
113852         (dir_name): Append `.' if necessary.
113853         Based mostly on patches from Prashant TR and Eli Zaretskii.
113855         * lib/dirname.h (dir_name_r): Remove prototype.
113857 2000-12-06  Paul Eggert  <eggert@twinsun.com>
113859         * m4/off_t-format.m4: Remove this file.
113860         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
113862 2000-12-06  Jim Meyering  <meyering@lucent.com>
113864         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
113865         replacement strtoull, we may well need the replacement strtoul, too.
113866         Check for declarations of strtoul and strtoull.
113867         Check for strtol.  Mainly as a cue to cause automake to include
113868         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
113869         Check for limits.h -- strtol.c needs it.
113871 2000-12-05  Jim Meyering  <meyering@lucent.com>
113873         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
113875 2000-12-04  Jim Meyering  <meyering@lucent.com>
113877         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
113878         Also include memory.h, stdlib.h, unistd.h if appropriate.
113879         Reported by Andreas Jaeger (conflicting declaration of malloc).
113881 2000-12-02  Jim Meyering  <meyering@lucent.com>
113883         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
113884         * m4/jm-macros.m4 (jm_MACROS): require it.
113886 2000-12-02  Jim Meyering  <meyering@lucent.com>
113888         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
113890 2000-12-01  Paul Eggert  <eggert@twinsun.com>
113892         * lib/memrchr.c: Include <config.h> before any system include file.
113894 2000-11-30  Jim Meyering  <meyering@lucent.com>
113896         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
113898 2000-11-30  Jim Meyering  <meyering@lucent.com>
113900         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
113902 2000-11-29  Paul Eggert  <eggert@twinsun.com>
113904         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
113906 2000-11-26  Jim Meyering  <meyering@lucent.com>
113908         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
113910 2000-11-22  Paul Eggert  <eggert@twinsun.com>
113912         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
113913         size of (size_t) -1; it's not portable.
113915 2000-11-17  Jim Meyering  <meyering@lucent.com>
113917         * lib/strstr.c: Update from GNU libc.
113919 2000-11-17  Akim Demaille  <akim@epita.fr>
113921         * lib/obstack.h: Formatting changes.
113922         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
113923         prevent type checking.
113924         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
113925         cast the value to (void *): assigning a `foo *' to a `void *'
113926         variable is valid.
113927         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
113929 2000-11-16  Jim Meyering  <meyering@lucent.com>
113931         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
113933 2000-11-11  Jim Meyering  <meyering@lucent.com>
113935         * lib/error.c: Add a couple #includes, merging from GNU libc version.
113937 2000-11-10  Jim Meyering  <meyering@lucent.com>
113939         * lib/obstack.h: Update from GNU libc.
113940         * lib/obstack.c: Likewise.
113942 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
113944         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
113946 2000-11-06  Paul Eggert  <eggert@twinsun.com>
113948         * lib/getusershell.c (setusershell): Use rewind rather than
113949         fseek/fseeko, to avoid configuration hassles with fseeko.
113950         Don't bother opening SHELLS_FILE if shellstream is NULL;
113951         it's not necessary.
113953 2000-11-05  Jim Meyering  <meyering@lucent.com>
113955         * lib/makepath.h (make_dir): Declare.
113956         * lib/makepath.c (make_dir): Remove `static' attribute.
113957         Tweak a comment.
113959 2000-11-04  Jim Meyering  <meyering@lucent.com>
113961         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
113963 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
113965         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
113966         last one in a bucket, advance to the next bucket.
113968 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
113970         * lib/fnmatch.c: Do not comment out all the code if we are using
113971         the GNU C library, because in some cases we are replacing buggy
113972         code in the GNU C library itself.
113974 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
113976         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
113977         (regex_compile): Catch bogus \(\1\).
113979 2000-10-30  Paul Eggert  <eggert@twinsun.com>
113981         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
113982         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
113983         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
113985 2000-10-30  Paul Eggert  <eggert@twinsun.com>
113987         * lib/error.h, getline.h, modechange.h:
113988         Remove "2000" from Copyright line, as the file hasn't been
113989         changed this year other than in the copyright notice.
113991         * lib/xalloc.h: Add "2000" to Copyright line, as this file
113992         was changed this year.
113994 2000-10-29  Jim Meyering  <meyering@lucent.com>
113996         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
113997         renaming.
113998         * m4/ls-mntd-fs.m4: Likewise
114000 2000-10-29  Jim Meyering  <meyering@lucent.com>
114002         * lib/xstat.in: Fix grammar in comment.
114004 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
114006         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
114007         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
114008         doesn't define __restrict_arr.
114010 2000-10-28  Jim Meyering  <meyering@lucent.com>
114012         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
114013         (jm_PREREQ_MEMCHR): New function.
114015 2000-10-28  Jim Meyering  <meyering@lucent.com>
114017         * lib/memchr.c: Update from libc.
114018         Adjust for portability:
114019         [HAVE_STDLIB_H]: Include stdlib.h.
114020         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
114021         Undef __memchr, too.
114022         [!weak_alias]: Define __memchr to memchr.
114024         * lib/regex.c: Update from libc.
114025         * lib/regex.h: Likewise.
114026         * lib/getopt1.c: Likewise.
114027         * lib/memcmp.c: Likewise.
114029         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
114030         Avoid using fseek, when possible -- it's broken by design.
114031         Patch by Ulrich Drepper.
114033 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
114035         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
114036         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
114037         Giving in to popular pressure to shut up the compiler with casts.
114039 2000-10-26  Jim Meyering  <meyering@lucent.com>
114041         * lib/strftime.c: Update from libc.
114043 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
114045         * regex.c: More `unsigned char' -> `re_char' changes.
114046         Also change several `int' into `re_wchar_t'.
114047         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
114048         (PUSH_FAILURE_POINTER): Don't cast any more.
114049         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
114050         We want GCC to complain, since this piece of code makes
114051         re_match non-reentrant, which *should* be fixed.
114052         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
114053         (EXTEND_BUFFER): Use RETALLOC.
114054         (SET_LIST_BIT): Don't cast.
114055         (re_wchar_t): New type.
114056         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
114057         that those two functions will always properly return.
114058         (IMMEDIATE_QUIT_CHECK): Cast to void.
114059         (analyse_first): Use recursion rather than an explicit stack.
114060         (re_compile_fastmap): Can't fail anymore.
114061         (re_search_2): Don't check re_compile_fastmap for failure.
114062         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
114063         Now also sets the new value (passed in a new argument).
114064         (re_match_2_internal): Use it.
114065         Also, use a new var `reg' of type size_t when looping through regs
114066         rather than reuse the inappropriate `mcnt'.
114068 2000-10-25  Jim Meyering  <meyering@lucent.com>
114070         * lib/obstack.c: Update from libc.
114072 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
114074         * regex.c (regex_compile): Change the way of handling a range from
114075         a char less than 256 to a char not less than 256.
114077 2000-10-24  Andrew Innes  <andrewi@gnu.org>
114079         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
114080         NT-Emacs only.
114081         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
114082         so that re_search functions only quit when callers expect them to.
114084 2000-10-23  Jim Meyering  <meyering@lucent.com>
114086         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
114087         wrong.  That set_locale call must not have any side effects.
114088         From Paul Eggert.
114090 2000-10-22  Jim Meyering  <meyering@lucent.com>
114092         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
114093         [CYCLIC]: Remove now-unused definition.
114095         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
114096         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
114097         Suggestion from Ulrich Drepper.
114099 2000-10-21  Jim Meyering  <meyering@lucent.com>
114101         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
114102         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
114103         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
114105 2000-10-21  Jim Meyering  <meyering@lucent.com>
114107         * lib/dirname.c (memrchr): Declare if necessary.
114108         (dir_name): Remove the restriction that there be no
114109         trailing slashes.  Now, this code skips past them, effectively
114110         ignoring them.
114111         [TEST_DIRNAME] (main): New unit tests.
114113         * lib/memrchr.c: New file from GNU libc.
114114         Undef __memrchr, too.
114115         [!weak_alias]: Define __memrchr to memrchr.
114116         Guard weak_alias use with `#ifdef weak_alias'.
114118 2000-10-21  Jim Meyering  <meyering@lucent.com>
114120         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
114121         (dir_name): Use dir_name_r.
114122         * lib/dirname.h (dir_name_r): Declare it.
114124 2000-10-17  Jim Meyering  <meyering@lucent.com>
114126         * lib/quote.h (PARAMS): Define and use.
114127         Reported by Akim Demaille.
114129         * lib/getopt.c: Update from libc.
114131 2000-10-16  Jim Meyering  <meyering@lucent.com>
114133         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
114134         setlocale.
114135         From Jan Fedak.
114137 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
114139         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
114141 2000-09-25  Jim Meyering  <meyering@lucent.com>
114143         * lib/md5.h (rol): Define (from GnuPG).
114145         * lib/sha.c: Give credit (GnuPG) where due.
114146         (M): Use rol rather than open-coding it.
114147         Add a FIXME comment.
114149 2000-09-21  Jim Meyering  <meyering@lucent.com>
114151         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
114152         Reported by Michael Stone.
114154 2000-09-20  Jim Meyering  <meyering@lucent.com>
114156         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
114157         (noinst_HEADERS): Add sha.h.
114158         Based on code from Scott G. Miller and from GnuPG.
114160 2000-09-18  Jim Meyering  <meyering@lucent.com>
114162         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
114163         LIBS. Otherwise, everyone ends up linking with -lelf for some
114164         configurations.
114165         Reported by Mike Stone.
114167 2000-09-15  Jim Meyering  <meyering@lucent.com>
114169         * lib/regex.c: Update from libc.
114171 2000-09-10  Jim Meyering  <meyering@lucent.com>
114173         * lib/getopt.c (_getopt_internal): Update from glibc.
114175 2000-09-09  Jim Meyering  <meyering@lucent.com>
114177         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
114178         think it should be used as a general replacement for isascii.
114179         * lib/fnmatch.c: Likewise.
114180         * lib/mbswidth.c: Likewise
114181         * lib/regex.c: Likewise.
114183         Don't use atoi.
114184         * lib/userspec.c: Include sys/param.h and limits.h.
114185         Include xstrtol.h.
114186         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
114187         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
114188         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
114189         UID, GID.  Check range.
114191 2000-09-06  Jim Meyering  <meyering@lucent.com>
114193         * lib/getopt.c (_getopt_internal): Update from glibc.
114195 2000-08-30  Jim Meyering  <meyering@lucent.com>
114197         * lib/strftime.c: Merge in changes from GNU libc.
114199 2000-08-26  Jim Meyering  <meyering@lucent.com>
114201         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
114202         * m4/fpending.m4: New file.
114204 2000-08-26  Jim Meyering  <meyering@lucent.com>
114206         * lib/closeout.c: Include "__fpending.h".
114207         (close_stdout_status): Return right away if there's nothing to flush.
114209         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
114210         * lib/__fpending.c: New file.
114211         * lib/__fpending.h: New file.
114213 2000-08-20  Jim Meyering  <meyering@lucent.com>
114215         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
114216         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
114217         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
114219 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
114221         Improve fileutils installation on systems where running
114222         programs (like install) can't be unlinked.
114223         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
114224         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
114226 2000-08-07  Paul Eggert  <eggert@twinsun.com>
114228         Standardize on "memory exhausted" instead of "Memory exhausted"
114229         or "virtual memory exhausted".
114230         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
114231         "virtual memory exhausted".
114232         * lib/same.c (same_name): Invoke xalloc_die instead of printing
114233         our own message.
114234         * lib/userspec.c (parse_user_spec): Likewise.
114235         * lib/bumpalloc.h: comment fix
114236         * lib/same.c, userspec.c: Include xalloc.h.
114238         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
114239         not char *const and pointing to a constant array.
114240         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
114241         (xrealloc): Comment fix.
114243         * lib/userspec.c (parse_user_spec):
114244         Don't translate a message until just before returning,
114245         to avoid unnecessary translation.
114247 2000-08-07  Jim Meyering  <meyering@lucent.com>
114249         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
114250         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
114251         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
114252         getgroups.c, gethostname.c, getopt.h, group-member.c,
114253         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
114254         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
114255         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
114256         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
114257         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
114258         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
114259         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
114260         yesno.c: Back out Copyright date changes for each file with no change
114261         this year.  This eases coordination with other programs using the same
114262         source code modules.  From Paul Eggert.
114264 2000-08-06  Paul Eggert  <eggert@twinsun.com>
114266         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
114267         not char, for compatibility with glibc 2.1.3 strftime.c.
114269 2000-08-03  Greg McGary  <greg@mcgary.org>
114271         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
114272         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
114273         (EXTEND_BUFFER): Use them.
114275 2000-08-01  Jim Meyering  <meyering@lucent.com>
114277         * lib/dirname.c (ISSLASH): Define.
114278         (BACKSLASH_IS_PATH_SEPARATOR): Define.
114279         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
114280         both `\' and `/' may be use as path separators.
114281         Based on a patch from Prashant TR.
114283 2000-07-31  Paul Eggert  <eggert@twinsun.com>
114285         * lib/quotearg.c (quotearg_n_options): Don't make the initial
114286         slot vector a constant, since it might get modified.
114288 2000-07-31  Jim Meyering  <meyering@lucent.com>
114290         * lib/xmalloc.c: Use `virtual memory exhausted', not
114291         `Memory exhausted'.
114292         * lib/obstack.c (print_and_abort): Likewise.
114294 2000-07-30  Paul Eggert  <eggert@twinsun.com>
114296         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
114297         buffer, so that the caller can always quote one small
114298         component of a "memory exhausted" message in slot 0.
114299         From a suggestion by Jim Meyering.
114301 2000-07-30  Jim Meyering  <meyering@lucent.com>
114303         * lib/makepath.c (make_path): Quote the other instance, too.
114305         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
114306         (STATIC_BUF_SIZE): Define.
114307         (quotearg_n_options): Use only statically allocated storage when
114308         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
114309         than STATIC_BUF_SIZE.
114311 2000-07-29  Jim Meyering  <meyering@lucent.com>
114313         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
114314         * lib/dirname.c (dir_name): Likewise.
114316         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
114317         `/'.
114319         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
114320         (dir_name): Assert that there are no trailing slashes.
114322 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
114324         * lib/mbswidth.h (mbswidth): Add a flags argument.
114325         (mbswidth): New declaration.
114326         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
114327         * lib/mbswidth.c (mbswidth): Add a flags argument.
114328         (mbsnwidth): New function.
114330 2000-07-24  Jim Meyering  <meyering@lucent.com>
114332         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
114334 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114336         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
114338 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114340         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
114341         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
114342         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
114343         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
114344         invoke multibyte primitives.
114346 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114348         * lib/quotearg.c:
114349         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
114350         so that mbstate_t is always defined.
114352         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
114353         be 1 in at least one GCC installation, and this configuration
114354         error is likely to be common.  Ignoring MB_LEN_MAX hurts
114355         performance on hosts that have mbrtowc but have only unibyte
114356         locales, but I assume these hosts are rare.
114358 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114360         * lib/mbswidth.c (_XOPEN_SOURCE):
114361         Don't define; this causes problems on Solaris 7.
114362         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
114364 2000-07-23  Jim Meyering  <meyering@lucent.com>
114366         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
114367         too: getgrgid, getpwuid, getuid.
114369 2000-07-23  Jim Meyering  <meyering@lucent.com>
114371         * lib/basename.c (base_name): Add an assertion.
114373 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
114375         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
114376         shadow its mbsinit function.
114378 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
114380         * lib/mbswidth.h: New file.
114381         * lib/mbswidth.c: New file.
114382         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
114383         (noinst_HEADERS): Add mbswidth.h.
114385 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
114387         * lib/config.charset: Add support for FreeBSD. Improve support for
114388         HP-UX and IRIX 6.
114390 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
114392         * m4/mbswidth.m4: New file.
114393         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
114395 2000-07-15  Jim Meyering  <meyering@lucent.com>
114397         * lib/makepath.c: Include quote.h.
114398         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
114399         corresponding argument in a `quote (...)' call.
114400         Give better diagnostics.
114402         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
114403         (noinst_HEADERS): Add quote.h.
114405         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
114406         from tar's src/misc.c.
114407         * lib/quote.h: New file.  Prototypes for same.
114409 2000-07-14  Paul Eggert  <eggert@twinsun.com>
114411         From a suggestion by Bruno Haible.
114412         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
114413         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
114414         to decide whether to define the BeOS workaround macro;
114415         this adjusts to the change to AC_MBSTATE_T.
114417 2000-07-14  Jim Meyering  <meyering@lucent.com>
114419         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
114420         jm_AC_TYPE_UINTMAX_T.
114422 2000-07-13  Paul Eggert  <eggert@twinsun.com>
114424         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
114426         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
114427         quotearg_buffer_restyled): Add support for
114428         clocale_quoting_style.  Undo previous change to
114429         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
114430         and "{RIGHT QUOTATION MARK}" msgids.
114432 2000-07-10  Paul Eggert  <eggert@twinsun.com>
114434         From a suggestion by Bruno Haible.
114435         * m4/mbstate_t.m4 (AC_MBSTATE_T):
114436         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
114437         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
114438         and mbstate_t, to a single-part test that simply defines mbstate_t.
114439         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
114440         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
114442 2000-07-10  Jim Meyering  <meyering@lucent.com>
114444         * m4/strerror_r.m4: Mirror the correction made in autoconf.
114446         * m4/gnu-source.m4: Output to confdefs.h directly.
114447         Suggestion from Akim Demaille.
114449 2000-07-09  Paul Eggert  <eggert@twinsun.com>
114451         The old behavior of quoting `like this' doesn't look good with
114452         newer, ISO-style fonts.  See:
114453         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
114455         Instead, quote "like this" by default.  Let the translator
114456         tailor the locale-specific quoting behavior by providing
114457         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
114459         * lib/quotearg.c (N_): New macro.
114460         (gettext_default): New function.
114461         (quotearg_buffer_restyled): Use
114462         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
114463         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
114465 2000-07-09  Jim Meyering  <meyering@lucent.com>
114467         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
114468         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
114470         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
114471         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
114473 2000-07-09  Jim Meyering  <meyering@lucent.com>
114475         * lib/Most files: Update copyright dates to include 2000.
114477 2000-07-08  Jim Meyering  <meyering@lucent.com>
114479         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
114480         if not defined.
114481         (xgethostname): Remove now-unnecessary #ifdef.
114482         Move declaration of `err' into loop where it's used.
114484 2000-07-05  Paul Eggert  <eggert@twinsun.com>
114485         and Bruno Haible  <haible@clisp.cons.org>
114487         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
114488         only if the test for an object-type mbstate_t fails.  This
114489         prevents us from mistakenly reporting that mbstate_t is a
114490         system object type after we "#define mbstate_t int" to work
114491         around its lack.
114493 2000-07-05  Paul Eggert  <eggert@twinsun.com>
114494         and Bruno Haible  <haible@clisp.cons.org>
114496         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
114498 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
114500         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
114501         to strerror_r.
114502         Include <ctype.h> for use of isalpha.
114504 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
114506         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
114507         by allocating a larger buffer. Test the gethostname return value for
114508         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
114509         returns an error and ENAMETOOLONG isn't defined.
114511 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
114513         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
114514         dimension.
114516 2000-07-04  Jim Meyering  <meyering@lucent.com>
114518         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
114519         of the deprecated AC_CHECKING.
114521 2000-07-04  Jim Meyering  <meyering@lucent.com>
114523         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
114524         Reported by Bruno Haible.
114526 2000-07-04  Jim Meyering  <meyering@lucent.com>
114528         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
114529         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
114530         lacks mbrtowc.
114532 2000-07-03  Paul Eggert  <eggert@twinsun.com>
114534         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
114535         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
114537 2000-07-03  Paul Eggert  <eggert@twinsun.com>
114538         and Bruno Haible  <haible@clisp.cons.org>
114540         * lib/quotearg.c (mbrtowc):
114541         Assign to *pwc, and return 1 only if result is nonzero.
114542         (iswprint): Use ISPRINT when substituting our own mbrtowc.
114544 2000-07-03  Jim Meyering  <meyering@lucent.com>
114546         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
114548 2000-07-03  Jim Meyering  <meyering@lucent.com>
114550         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
114551         This is necessary to get a definition of e.g., UTMP_FILE on
114552         HP-UX 10.20.
114553         From Bob Proulx.
114555 2000-07-02  Jim Meyering  <meyering@lucent.com>
114557         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
114559         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
114560         AC_LIBOBJ(function_name).
114561         * m4/chown.m4: Likewise.
114562         * m4/fnmatch.m4: Likewise.
114563         * m4/ftruncate.m4: Likewise.
114564         * m4/getgroups.m4: Likewise.
114565         * m4/getline.m4: Likewise.
114566         * m4/group-member.m4: Likewise.
114567         * m4/jm-macros.m4: Likewise.
114568         * m4/lstat.m4: Likewise.
114569         * m4/malloc.m4: Likewise.
114570         * m4/memcmp.m4: Likewise.
114571         * m4/nanosleep.m4: Likewise.
114572         * m4/putenv.m4: Likewise.
114573         * m4/realloc.m4: Likewise.
114574         * m4/regex.m4: Likewise.
114575         * m4/stat.m4: Likewise.
114576         * m4/strftime.m4: Likewise.
114578 2000-07-02  Jim Meyering  <meyering@lucent.com>
114580         * lib/quotearg.c (mbstate_t): Don't define here.
114582 2000-07-02  Jim Meyering  <meyering@lucent.com>
114584         * lib/nanosleep.c (SIGCONT): Define if not already defined.
114586 2000-07-01  Jim Meyering  <meyering@lucent.com>
114588         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
114590 2000-07-01  Jim Meyering  <meyering@lucent.com>
114592         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
114593         problem.
114595 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
114597         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
114598         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
114600 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
114602         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
114603         per change in ../m4/ls-mntd-fs.m4.
114604         (read_filesystem_list): Ignore symbolic links.
114606 2000-06-29  Jim Meyering  <meyering@lucent.com>
114608         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
114609         for declaration of strcmp.
114611         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
114613         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
114614         Avoid warning by casting result to `char *' to remove `const'.
114616 2000-06-28  Jim Meyering  <meyering@lucent.com>
114618         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
114619         included by quotearg.c, for which we perform this test.  From
114620         Bruno Haible.
114622 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
114624         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
114625         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
114626         <utmpx.h> exists, put readutmp.o into LIBOBJS.
114628 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
114630         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
114632 2000-06-26  Paul Eggert  <eggert@twinsun.com>
114634         savedir now sets errno on failure and invokes xmalloc to get memory.
114635         Fix a couple of other minor bugs while we're at it.
114637         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
114638         (NAMLEN): Remove macro.
114639         (malloc, realloc): Remove decls.
114640         (stpcpy): Likewise.
114641         ("xalloc.h"): Include.
114642         (NAME_SIZE_DEFAULT): New macro.
114643         (savedir): Use xmalloc / xrealloc to allocate memory.
114644         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
114645         Skip "" directory entries.
114646         Use strlen to calculate directory entry length, since the old method
114647         is rarely used these days and isn't worth supporting.
114648         Don't use a pointer after freeing it.
114649         Check for integer overflow when calculating allocation size.
114650         Use memcpy to copy entries, instead of stpcpy.
114651         Set errno properly when returning NULL.
114652         Check for readdir error.
114654 2000-06-26  Jim Meyering  <meyering@lucent.com>
114656         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
114658 2000-06-25  Jim Meyering  <meyering@lucent.com>
114660         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
114661         Linux header bug when _XOPEN_SOURCE is defined to 500.
114663 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
114665         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
114666         deficiency.
114668 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
114670         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
114671         Include xalloc.h.
114672         Don't include <stdlib.h>.  Don't declare malloc, realloc.
114674 2000-06-24  Jim Meyering  <meyering@lucent.com>
114676         * m4/strerror_r.m4: Revive this file -- to try out an experimental
114677         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
114678         for which strerror does return char*, but which lacks a conveniently
114679         accessible declaration of the function.  If the compile-test says
114680         strerror_r doesn't work, then resort to a `run'-test that works on
114681         BeOS and segfaults on DEC Unix.
114683 2000-06-24  Jim Meyering  <meyering@lucent.com>
114685         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
114687 2000-06-23  Paul Eggert  <eggert@twinsun.com>
114689         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
114690         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
114692 2000-06-23  Paul Eggert  <eggert@twinsun.com>
114694         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
114695         (mbrtowc, mbstate_t): Define substitutes if
114696         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
114697         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
114698         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
114700 2000-06-23  Jim Meyering  <meyering@lucent.com>
114702         * m4/afs.m4: Add missing AC_MSG_RESULT.
114703         Reported by Bruno Haible.
114705         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
114706         Suggestion from Bruno Haible.
114708 2000-06-23  Jim Meyering  <meyering@lucent.com>
114710         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
114712 2000-06-21  Jim Meyering  <meyering@lucent.com>
114714         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
114716 2000-06-21  Jim Meyering  <meyering@lucent.com>
114718         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
114719         (noinst_HEADERS): Add getstr.h.
114721         * lib/getline.c (getstr): Move into a separate file.
114722         * lib/getstr.c (getstr): New file, extracted from getline.c, with
114723         the following changes: new parameter, delim2; both delim[12]
114724         parameters have type `int', not `char'.  The latter would lose
114725         with 8-bit delimiters.
114726         * lib/getstr.h: New file.
114728 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
114730         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
114731         than 1024, return a memory chunk of least possible size, instead
114732         of size PATH_MAX + 2. In the loop, increment the size proportionally.
114733         Use free/xmalloc instead of xrealloc to avoid copying for very long
114734         paths.
114736 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
114738         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
114739         the empty string.
114741 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
114743         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
114744         address, not strdup.  Include <stdlib.h> and don't declare free().
114746 2000-06-19  Jim Meyering  <meyering@lucent.com>
114748         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
114750 2000-06-18  Jim Meyering  <meyering@lucent.com>
114752         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
114754         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
114755         `checking whether...' message to be consistent with that of the
114756         lstat test.
114758 2000-06-18  Jim Meyering  <meyering@lucent.com>
114760         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
114761         Besides, these days every porting target provides a mkdir function.
114763         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
114764         needed. (this snippet comes from src/system.h).
114766 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
114768         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
114770 2000-06-15  Paul Eggert  <eggert@twinsun.com>
114772         * lib/human.c (adjust_value): New function.
114773         (human_readable_inexact): Apply rounding style even when
114774         printing approximate values.
114776 2000-06-14  Paul Eggert  <eggert@twinsun.com>
114778         * lib/human.c (human_readable_inexact): Allow an input block
114779         size that is not a multiple of the output block size, and vice versa.
114780         Reported by Piergiorgio Sartor.
114782 2000-06-14  Paul Eggert  <eggert@twinsun.com>
114784         * lib/getdate.y (get_date): Apply relative times after time
114785         zone indicator, not before.  Reported by Todd A. Jacobs.
114787 2000-06-13  Jim Meyering  <meyering@lucent.com>
114789         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
114791         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
114793 2000-06-12  Paul Eggert  <eggert@twinsun.com>
114795         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
114797 2000-06-12  Jim Meyering  <meyering@lucent.com>
114799         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
114800         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
114801         optional argument.
114802         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
114803         the optional argument, `lib'.
114805 2000-06-08  Jim Meyering  <meyering@lucent.com>
114807         * m4/largefile.m4: Remove file (now that it's part of autoconf).
114809 2000-06-04  Paul Eggert  <eggert@twinsun.com>
114811         Rewrite largefile configuration so that we don't need to run
114812         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
114813         AC_CANONICAL_HOST in configure.in -- jmm]
114815         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
114816         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
114817         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
114818         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
114819         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
114820         All uses changed.
114821         Instead of inspecting the output of getconf, try to compile the
114822         test program without and with the macro definition.
114823         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
114824         for getconf.  Instead, check for the needed flags by compiling
114825         test programs.
114827 2000-06-04  Paul Eggert  <eggert@twinsun.com>
114829         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
114831 2000-06-04  Jim Meyering  <meyering@lucent.com>
114833         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
114834         SunOS 4.1.4 for which gid_t is an unsigned type.
114836 2000-06-03  Jim Meyering  <meyering@lucent.com>
114838         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
114839         now that autoconf requires that.
114841         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
114842         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
114843         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
114845 2000-06-03  Jim Meyering  <meyering@lucent.com>
114847         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
114849 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
114851         * m4/glibc21.m4: New file.
114852         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
114854 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
114856         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
114857         newer, don't install charset.alias.
114858         * lib/config.charset: Change the Linux/glibc rules so they become empty
114859         on glibc-2.1 or newer.
114861 2000-06-02  Jim Meyering  <meyering@lucent.com>
114863         * lib/mountlist.c: Back out last change.  Instead, do this...
114864         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
114865         me_dummy member using the same `ignore'-testing code.
114866         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
114867         fs_type strings.
114868         From Mark D. Roth.
114870 2000-05-29  Jim Meyering  <meyering@lucent.com>
114872         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
114873         mounts with the `ignore' attribute.  Based on a patch from
114874         Mark D. Roth.
114876 2000-05-28  Jim Meyering  <meyering@lucent.com>
114878         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
114879         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
114880         * m4/stat.m4: Likewise.
114881         * m4/lstat.m4: Likewise.
114882         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
114884         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
114885         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
114887 2000-05-26  Jim Meyering  <meyering@lucent.com>
114889         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
114891 2000-05-24  Jim Meyering  <meyering@lucent.com>
114893         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
114894         autoconf requires that.
114895         * m4/lib-check.m4: Likewise.
114896         * m4/jm-macros.m4: Likewise.
114897         * m4/strftime.m4: Likewise.
114899         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
114900         AC_CHECK_DECLS, now that autoconf requires that.
114902 2000-05-22  Jim Meyering  <meyering@lucent.com>
114904         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
114905         * m4/lstat.m4: Likewise.
114907 2000-05-22  Jim Meyering  <meyering@lucent.com>
114909         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
114911 2000-05-20  Jim Meyering  <meyering@lucent.com>
114913         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
114914         (jm_PREREQ): Use it.
114916 2000-05-18  Jim Meyering  <meyering@lucent.com>
114918         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
114919         back, too, since it may have been modified by allocate_entry.
114920         (hash_delete): Rewrite to use neither the assignment operator
114921         nor the comma operator in an if-expression.
114923 2000-05-15  Paul Eggert  <eggert@twinsun.com>
114925         * lib/closeout.c:
114926         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
114927         Remove; no longer needed.
114928         "quotearg.h": Add include.
114929         (file_name): Do not bother to explicitly initialize to NULL; it's less
114930         efficient on some hosts.
114931         (close_stdout_status): Remove test as to whether stdout was already
114932         closed; it breaks for the case "echo x | sort >&-".
114933         Quote file name colons.
114934         Do not assume that _("write error") lacks format strings.
114936 2000-05-15  Jim Meyering  <meyering@lucent.com>
114938         * lib/version-etc.c (version_etc_copyright): Update the copyright
114939         string used in all --version output.
114941 2000-05-14  Jim Meyering  <meyering@lucent.com>
114943         * lib/closeout.c (close_stdout_set_file_name): New function.
114944         (close_stdout_status): Use new file-scoped global.
114945         Return right away if fstat says the stdout file descriptor is invalid.
114946         * lib/closeout.h (close_stdout_set_file_name): Declare.
114948 2000-05-10  Jim Meyering  <meyering@lucent.com>
114950         * lib/closeout.c [default_exit_status]: New file-scoped variable.
114951         (close_stdout_set_status): New function.
114952         * lib/closeout.h (close_stdout_set_status): Declare.
114954 2000-05-09  Jim Meyering  <meyering@lucent.com>
114956         * m4/gettext.m4: Rename this...
114957         * m4/libintl.m4: ...to this.
114959 2000-05-08  Jim Meyering  <meyering@lucent.com>
114961         * lib/long-options.c: Don't include closeout.h.
114962         (parse_long_options): Don't call close_stdout for --version.
114964 2000-05-06  Paul Eggert  <eggert@twinsun.com>
114966         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
114967         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
114968         2.1.3 bug.  This avoids a clash when files like regex.c define
114969         _GNU_SOURCE.
114971 2000-05-06  Jim Meyering  <meyering@lucent.com>
114973         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
114974         (AC_REPLACE_FUNCS): Add strnlen.
114976         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
114977         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
114979         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
114980         AC_SEARCH_LIBS call for nanosleep.
114981         (LIB_NANOSLEEP): Set and AC_SUBST.
114983 2000-05-06  Jim Meyering  <meyering@lucent.com>
114985         * lib/strnlen.c: Undefine __strnlen and strnlen.
114986         [!weak_alias]: Define __strnlen to strnlen.
114988         * lib/atexit.c: New file, from libiberty.
114990 2000-05-06  Jim Meyering  <meyering@lucent.com>
114992         * lib/closeout.c (close_stdout_status): Also check for errors on the
114993         stderr stream.
114995 2000-05-05  Jim Meyering  <meyering@lucent.com>
114997         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
114998         AC_SEARCH_LIBS call for clock_gettime.
114999         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
115001         * m4/search-libs.m4: Update from autoconf.
115003         su doesn't work on Solaris 2.6.
115004         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
115005         <shadow.h>.  Reported by Dragos Harabor.
115007 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
115009         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
115010         memcpy instead of xmalloc, xrealloc, path_concat.
115011         (locale_charset): Treat empty environment variables as absent.
115012         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
115014 2000-05-04  Jim Meyering  <meyering@lucent.com>
115016         * lib/getopt.c: Update from glibc.
115017         * lib/obstack.c: Likewise.
115018         * lib/obstack.h: Likewise.
115019         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
115020         file
115022         * lib/regex.h: Likewise.
115023         * lib/strndup.c: Likewise.
115024         * lib/strnlen.c: New file, from glibc.
115026 2000-05-03  Jim Meyering  <meyering@lucent.com>
115028         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
115030 2000-05-02  Paul Eggert  <eggert@twinsun.com>
115032         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
115033         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
115034         compile-time test, rather than inspecting host and OS, to
115035         decide whether to define _LARGEFILE_SOURCE.
115037 2000-05-01  Jim Meyering  <meyering@lucent.com>
115039         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
115041         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
115042         Based on a patch from Bruno Haible.
115044 2000-05-01  Jim Meyering  <meyering@lucent.com>
115046         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
115048 2000-04-29  Jim Meyering  <meyering@lucent.com>
115050         * lib/path-concat.c: Declare strdup only if it's not defined.
115051         * lib/canon-host.c: Likewise.
115053 2000-04-28  Jim Meyering  <meyering@lucent.com>
115055         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
115056         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
115057         is included first, then limits.h is included by locale.h by libintl.h.
115058         From John David Anglin.
115060 2000-04-25  Jim Meyering  <meyering@lucent.com>
115062         * lib/makepath.c (S_IRWXUGO): Define.
115063         (make_path): Always perform explicit chmod if MODE specifies any
115064         of the `special' permission bits.  Prompted by a bug report against
115065         install from Mate Wierdl and Joost van Baal.
115067 2000-04-18  Jim Meyering  <meyering@lucent.com>
115069         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
115070         (jm_PREREQ): Use it.
115072 2000-04-18  Jim Meyering  <meyering@lucent.com>
115074         * lib/README: New file.
115076         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
115077         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
115079 2000-04-17  Jim Meyering  <meyering@lucent.com>
115081         Get it right :-)
115082         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
115083         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
115084         Suggestion from Akim Demaille.
115086 2000-04-17  Jim Meyering  <meyering@lucent.com>
115088         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
115089         the definition of it to rpl_strftime also defined-away the system's
115090         declaration.
115092 2000-04-15  Jim Meyering  <meyering@lucent.com>
115094         Use `C' to denote so-called `contiguous' files, the same way
115095         that tar does.
115096         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
115097         (ftypelet): Use S_ISCTG.
115098         From Michael Deutschmann.
115100 2000-04-14  Jim Meyering  <meyering@lucent.com>
115102         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
115103         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
115104         clobbered.
115106 2000-04-14  Jim Meyering  <meyering@lucent.com>
115108         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
115110 2000-04-13  Jim Meyering  <meyering@lucent.com>
115112         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
115113         AH_VERBATIM to insert required #ifndef into config.h.in.
115114         Suggestion from Akim Demaille.
115116 2000-04-12  Jim Meyering  <meyering@lucent.com>
115118         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
115119         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
115120         Christian Krackowizer.
115122         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
115123         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
115124         (AC_SYS_LARGEFILE): Require.
115125         (AM_C_PROTOTYPES): Require.
115127 2000-04-08  Jim Meyering  <meyering@lucent.com>
115129         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
115130         names don't conflict.  Reported by Eli Zaretskii.
115132 2000-04-07  Jim Meyering  <meyering@lucent.com>
115134         * lib/putenv.c: Move inclusion of errno.h so it follows that of
115135         sys/types.h, to work around system header problems on AIX 3.2.5.
115136         From Bruno Haible.
115138 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
115140         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
115141         bug.  Deal with the different error behavior of Irix iconv.
115143 2000-04-05  Paul Eggert  <eggert@twinsun.com>
115145         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
115146         IRIX if the installer said otherwise.
115148 2000-04-05  Jim Meyering  <meyering@lucent.com>
115150         Portability tweaks required for ultrix4.3.
115151         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
115152         (jm_CHECK_DECLS): Add getutent to the list of functions.
115153         (_jm_DECL_HEADERS): Add utmpx.h.
115154         From John David Anglin.
115156         * m4/strftime.m4: Back out the 2000-04-02 change.
115157         Instead of that change, simply undefine putenv in the test program.
115159 2000-04-05  Jim Meyering  <meyering@lucent.com>
115161         Portability tweaks required for ultrix4.3.
115162         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
115163         getutent.
115164         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
115165         * lib/canon-host.c: Declare strdup.
115166         * lib/path-concat.c: Likewise.
115167         From John David Anglin.
115169 2000-04-04  Jim Meyering  <meyering@lucent.com>
115171         Be more DOS 8.3-friendly.
115172         * lib/ref-add.sin: Renamed from ref-add.sed.in.
115173         * lib/ref-del.sin: Renamed from ref-del.sed.in.
115174         * lib/Makefile.am: Reflect renaming.
115175         Reported by Eli Zaretskii.
115177         Use a temporary file name that won't clash with `charset.alias'
115178         in the DOS 8.3 name space.
115179         * lib/Makefile.am (charset_tmp): Define.
115180         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
115181         (uninstall-local): Likewise.
115182         Reported by Eli Zaretskii.
115184 2000-04-03  Jim Meyering  <meyering@lucent.com>
115186         * m4/gettext.m4: Fix typo in comment.
115188         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
115189         textutils/configure.in).  Suggestion from Paul Eggert.
115190         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
115192 2000-04-02  Paul Eggert  <eggert@twinsun.com>
115194         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
115195         variable in the shell rather than using putenv, which isn't
115196         portable.  This avoids the configure-time inter-test dependency
115197         on the potentially-renamed putenv function.
115199 2000-03-30  Paul Eggert  <eggert@twinsun.com>
115201         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
115202         before checking struct stat.st_blksize, so that
115203         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
115205 2000-03-29  Paul Eggert  <eggert@twinsun.com>
115207         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
115208         since strftime.c uses HAVE_STRFTIME to decide whether to use
115209         the underlying strftime.
115211 2000-03-29  Paul Eggert  <eggert@twinsun.com>
115213         * lib/time/strftime.c (my_strftime): Make sure we call the system
115214         strftime, not ourselves, when invoking the underlying strftime.
115216 2000-03-24  Jim Meyering  <meyering@lucent.com>
115218         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
115219         (charset_alias): Define.
115220         (install-exec-local): Factor out common code.
115221         (uninstall-local): Split lines longer than 80.
115222         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
115223         (SUFFIXES): Define.
115224         (.sed.in.sed): New rule.  Don't redirect directly to $@.
115225         (CLEANFILES): Add ref-add.sed and ref-del.sed.
115227 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
115229         * lib/config.charset: Output a line containing "Packages using this
115230         file".
115231         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
115232         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
115233         ref-del.sed): New rules.
115235 2000-03-17  Jim Meyering  <meyering@lucent.com>
115237         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
115238         Otherwise, include <strings.h>
115240 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
115242         * lib/unicodeio.c (utf8_wctomb): New function.
115243         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
115244         format instead of in UCS-4 with platform dependent endianness.
115246 2000-03-10  Jim Meyering  <meyering@lucent.com>
115248         * m4/lib-check.m4: Look for getspnam in -lgen, too.
115249         From Marco Franzen.
115251 2000-03-07  Paul Eggert  <eggert@twinsun.com>
115253         * lib/savedir.c (savedir): Work even if directory size is
115254         negative; this can happen with some screwy NFS configurations.
115256 2000-03-06  Jim Meyering  <meyering@lucent.com>
115258         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
115259         if it's NULL (because we ran out of memory).  From Bruno Haible.
115261 2000-03-05  Jim Meyering  <meyering@lucent.com>
115263         * lib/localcharset.c ("path-concat.h"): Include.
115264         (get_charset_aliases): Use path_concat instead of ANSI string
115265         concatenation.
115267         * lib/unicodeio.h (PARAMS): Define.
115268         Use it to guard prototype.
115270 2000-03-04  Jim Meyering  <meyering@lucent.com>
115272         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
115273         for lib/localcharset.c.
115275 2000-03-04  Jim Meyering  <meyering@lucent.com>
115277         * lib/Makefile.am (install-exec-local): Create $(libdir) before
115278         installing into it.
115279         (uninstall-local): Uncomment this rule so `make distcheck' works
115280         once again.
115282         * lib/unicodeio.c (<errno.h>): Include it.
115283         (errno): Declare if not defined.
115285         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
115287         * lib/config.charset: New version, incorporating remarks from a linux
115288         i18n mailing list.  From Bruno Haible.
115290 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
115292         * m4/codeset.m4: New file.
115293         * m4/iconv.m4: New file.
115294         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
115296 2000-03-03  Jim Meyering  <meyering@lucent.com>
115298         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
115300 2000-03-02  Jim Meyering  <meyering@lucent.com>
115302         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
115303         the messages come out on separate lines.
115305         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
115306         rather than jm_CHECK_DECLARATIONS.
115307         * m4/decl.m4: Remove now-unused file.
115309         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
115310         geteuid.
115312 2000-03-02  Jim Meyering  <meyering@lucent.com>
115314         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
115316 2000-03-01  Jim Meyering  <meyering@lucent.com>
115318         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
115319         * lib/unicodeio.c: Likewise.
115321 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
115323         * lib/config.charset: New file.
115324         * lib/localcharset.c: New file.
115325         * lib/unicodeio.h, lib/unicodeio.c: New files.
115326         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
115327         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
115328         (noinst_HEADERS): Add unicodeio.h.
115329         (all-local, install-exec-local, charset.alias): New targets.
115331 2000-02-28  Paul Eggert  <eggert@twinsun.com>
115333         * lib/quotearg.c (ALERT_CHAR): New macro.
115334         (quotearg_buffer_restyled): Use it.
115336 2000-02-27  Jim Meyering  <meyering@lucent.com>
115338         * m4/check-decl.m4: Add getenv to the list.
115340 2000-02-27  Jim Meyering  <meyering@lucent.com>
115342         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
115343         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
115345         * lib/backupfile.c: Guard inclusion of stdlib.h with
115346         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
115347         Declare malloc if needed.
115349         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
115350         `#ifndef HAVE_DECL..'
115351         now that autoconf always defines the HAVE_DECL_ symbols.
115352         * lib/human.c: Likewise.
115353         * lib/same.c: Likewise.
115354         * lib/strtoumax.c: Likewise.
115356         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
115357         declaration check was not run.
115358         * lib/hash.c: Likewise.
115359         * lib/human.c: Likewise.
115360         * lib/same.c: Likewise.
115361         * lib/strtoumax.c: Likewise.
115363         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
115364         `.', then first look up the entire `.'-containing string as a login
115365         name.
115367 2000-02-23  Jim Meyering  <meyering@lucent.com>
115369         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
115370         in place of my hack.
115372 2000-02-18  Paul Eggert  <eggert@twinsun.com>
115374         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
115375         (textint): New typedef.
115376         (parser_control): Member year changed from int to textint.
115377         All uses changed.
115378         (YYSTYPE): Removed; replaced by %union with int and textint members.
115379         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
115380         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
115381         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
115382         (tSNUMBER, tUNUMBER): Now of type <textintval>.
115383         (date, number, to_year): Use width of number in digits, not its value,
115384         to determine whether it's a 2-digit year, or a 2-digit time.
115385         (yylex): Store number of digits of numeric tokens.
115386         Reported by John Kendall.
115388         (parser_control): Changed from struct parser_control to typedef (for
115389         consistency).  All uses changed.
115391         (tID): Removed; not used.
115392         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
115394 2000-02-14  Paul Eggert  <eggert@twinsun.com>
115396         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
115397         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
115399 2000-02-12  Jim Meyering  <meyering@lucent.com>
115401         * lib/userspec.c (ISDIGIT): Define it.
115402         (isdigit): Remove definition.
115403         (is_number): Use ISDIGIT, not isdigit.
115404         <libintl.h>: Include.
115405         (_ and N_): Define.
115406         (parse_user_spec): Mark translatable strings.
115408 2000-02-10  Jim Meyering  <meyering@lucent.com>
115410         With these changes, nanosleep.[ch] are finally enough like the other
115411         lib/* replacement files to compile on a few more losing systems.
115413         * lib/nanosleep.h: Don't include config.h.
115414         Remove prototype from declaration of nanosleep.
115415         (PARAMS): Remove now-unneeded definition.
115416         * lib/nanosleep.c: #undef nanosleep.
115417         (rpl_nanosleep): Rename from nanosleep.
115419 2000-02-10  Jim Meyering  <meyering@lucent.com>
115421         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
115422         gnu_nanosleep to rpl_nanosleep.
115424 2000-02-09  Jim Meyering  <meyering@lucent.com>
115426         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
115427         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
115429 2000-02-08  Akim Demaille  <akim@epita.fr>
115431         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
115432         `[' and `]' and remove uses of `changequote'.
115433         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
115434         (AC_SYS_LARGEFILE): Likewise.
115435         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
115436         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
115437         of changequote.
115438         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
115439         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
115440         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
115441         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
115443 2000-02-05  Jim Meyering  <meyering@lucent.com>
115445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
115446         Remove explicit use of AC_HEADER_TIME.  It is required by
115447         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
115448         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
115449         in autoconf whereby the expansion of the latter ended up preceding
115450         the expansion of its prerequisite, AC_HEADER_TIME.
115451         Reported by Volker Borchert.
115453 2000-02-03  Jim Meyering  <meyering@lucent.com>
115455         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
115457 2000-02-03  Jim Meyering  <meyering@lucent.com>
115459         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
115460         rather than with `#if HAVE_UTMPNAME'.
115462 2000-02-02  Jim Meyering  <meyering@lucent.com>
115464         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
115465         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
115466         Reported by Eli Zaretskii.
115468 2000-02-01  Jim Meyering  <meyering@lucent.com>
115470         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
115472 2000-01-31  Jim Meyering  <meyering@lucent.com>
115474         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
115475         functions.  Add the time.h and sys/time.h headers along with the
115476         AC_REQUIRE'ment of AC_HEADER_TIME.
115478 2000-01-31  Jim Meyering  <meyering@lucent.com>
115480         * lib/nanosleep.h (nanosleep): Guard declaration with
115481         `#if ! HAVE_DECL_NANOSLEEP'.
115482         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
115483         the declaration in that vendor's sys/timers.h.
115484         Reported by Christian Krackowizer.
115486         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
115487         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
115488         (ISPRINT): Likewise.
115489         Reported by Tom Tromey.
115491 2000-01-30  Jim Meyering  <meyering@lucent.com>
115493         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
115495         * m4/prereq.m4 (utmp_includes): Define.
115496         Check for ut_user and ut_name members in both struct utmpx
115497         and struct utmp.
115499 2000-01-30  Jim Meyering  <meyering@lucent.com>
115501         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
115502         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
115503         header files where only utmpx.ut_user is declared.
115505         * lib/readutmp.h (UT_USER): Define.
115507 2000-01-29  Jim Meyering  <meyering@lucent.com>
115509         * m4/lib-check.m4: New file containing library-related checks from
115510         fileutils and sh-utils (textutils had none).
115512 2000-01-28  Jim Meyering  <meyering@lucent.com>
115514         * m4/perl.m4: Change format of warning message to look more like that
115515         from the missing script.  Suggestion from François Pinard.
115517 2000-01-25  Jim Meyering  <meyering@lucent.com>
115519         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
115520         well as time.h in the compile check.
115521         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
115522         Fix typo in cross-compiling case: s/yes/no/.
115524 2000-01-23  Jim Meyering  <meyering@lucent.com>
115526         * m4/jm-macros.m4: Move df-related tests here from
115527         fileutils/configure.in
115529         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
115530         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
115532         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
115533         s/space/ac_fsusage_space/.
115534         (jm_FILE_SYSTEM_USAGE): Take two parameters.
115536         * m4/ftruncate.m4: New file (derived from part of
115537         fileutils/configure.in).
115538         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
115539         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
115541         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
115542         AC_SUBST these here, rather than just in sh-util/configure.in, so
115543         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
115544         all the same.
115545         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
115546         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
115547         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
115548         (AC_SUBST(POW_LIBM)): Likewise.
115549         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
115551 2000-01-23  Jim Meyering  <meyering@lucent.com>
115553         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
115554         obstack.c.
115556 2000-01-22  Jim Meyering  <meyering@lucent.com>
115558         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
115560         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
115562         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
115563         configure.in
115564         (AC_CHECK_HEADERS): Likewise for sh-utils.
115565         (AC_CHECK_HEADERS): Likewise for textutils.
115566         Merge the three lists of headers.
115568         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
115569         from fileutils' configure.in.
115571         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
115572         code. Moved tests into their own function (_jm_DECL_HEADERS) in
115573         check-decl.m4.
115575         * m4/check-decl.m4: Use #if rather than #ifdef.
115576         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
115577         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
115578         (_jm_DECL_HEADERS): Define new function.
115579         (jm_CHECK_DECLARATIONS): Require it.
115581 2000-01-22  Jim Meyering  <meyering@lucent.com>
115583         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
115584         [! HAVE_DECL_STRTOULL]: Declare strtoull.
115585         Required for some AIX systems.  Reported by Christian Krackowizer.
115586         [TESTING] (main): New function.
115588         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
115589         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
115590         letters.
115592         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
115593         iswprint.
115595         * lib/strverscmp.c (ISDIGIT): Define.
115596         (strverscmp): Use ISDIGIT, not isdigit.
115598 2000-01-19  Jim Meyering  <meyering@lucent.com>
115600         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
115601         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
115602         defines `struct timespec' in <sys/time.h>
115604         * m4/c-bs-a.m4: Remove uses of changequote altogether.
115605         Thanks to Akim for explaining.
115607 2000-01-17  Paul Eggert  <eggert@twinsun.com>
115609         * lib/nanosleep.c (nanosleep):
115610         Don't use SA_INTERRUPT to decide whether to call sigaction, as
115611         POSIX.1 doesn't require SA_INTERRUPT and some systems
115612         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
115613         it's been part of POSIX.1 since day 1 (in 1988).
115615 2000-01-17  Jim Meyering  <meyering@lucent.com>
115617         * lib/interlock: Remove unused file.  Reported by François Pinard.
115619 2000-01-16  Paul Eggert  <eggert@twinsun.com>
115621         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
115622         alert, backslash, formfeed, and vertical tab unnecessarily in
115623         shell quoting style.
115625 2000-01-16  Jim Meyering  <meyering@lucent.com>
115627         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
115628         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
115629         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
115630         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
115632 2000-01-16  Jim Meyering  <meyering@lucent.com>
115634         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
115635         because the latter didn't work.
115637 2000-01-15  Jim Meyering  <meyering@lucent.com>
115639         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
115640         (AC_REPLACE_FUNCS): Add memcpy and memset.
115641         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
115642         Add strpbrk.
115643         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
115645 2000-01-12  Jim Meyering  <meyering@lucent.com>
115647         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
115648         (jm_PREREQ): Use it.
115649         (jm_PREREQ_READUTMP): New macro.
115650         (jm_PREREQ): Use it.
115652 2000-01-11  Paul Eggert  <eggert@twinsun.com>
115654         Quote multibyte characters correctly.
115655         * m4/c-bs-a.m4: New file.
115656         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
115657         (jm_PREREQ): Use it.
115659 2000-01-11  Paul Eggert  <eggert@twinsun.com>
115661         * m4/uintmax_t.m4: Port to autoconf 2.13.
115663 2000-01-08  Jim Meyering  <meyering@ascend.com>
115665         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
115666         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
115668 2000-01-04  Jim Meyering  <meyering@ascend.com>
115670         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
115671         jm_STRUCT_DIRENT_D_TYPE.
115672         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
115673         jm_STRUCT_DIRENT_D_INO.
115674         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
115675         jm_STRUCT_UTIMBUF.
115676         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
115677         renamings.
115678         * m4/utime.m4: Likewise.
115680         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
115681         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
115683 2000-01-03  Paul Eggert  <eggert@twinsun.com>
115685         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
115686         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
115688 2000-01-02  Jim Meyering  <meyering@ascend.com>
115690         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
115691         remember if this is necessary.
115693 1999-12-26  Jim Meyering  <meyering@ascend.com>
115695         * m4/jm-macros.m4: Use it here.
115696         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
115698 1999-12-23  Jim Meyering  <meyering@ascend.com>
115700         * m4/jm-macros.m4: Check for clock_gettime (moved from
115701         fileutils/configure.in)
115702         Check for gettimeofday.
115704 1999-12-20  Jim Meyering  <meyering@ascend.com>
115706         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
115707         autoconf-2.14a-1999-12-20.
115709 1999-12-19  Jim Meyering  <meyering@ascend.com>
115711         * m4/lstat-slash.m4: New file.
115712         * m4/jm-macros.m4: Use the new macro:
115713         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
115715 1999-12-07  Jim Meyering  <meyering@ascend.com>
115717         * m4/perl.m4: Require that File::Compare be available, too.
115718         Too many systems seem to lack it.
115720         * m4/strftime.m4: Add checks for most of the cpp macros tested in
115721         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
115723 1999-11-18  Paul Eggert  <eggert@twinsun.com>
115725         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
115726         problem with the QNX 4.25 shell, which doesn't propagate exit
115727         status of failed commands inside shell assignments.
115729 1999-11-17  Jim Meyering  <meyering@ascend.com>
115731         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
115733 1999-11-07  Jim Meyering  <meyering@ascend.com>
115735         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
115737 1999-11-06  Jim Meyering  <meyering@ascend.com>
115739         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
115740         * m4/jm-macros.m4 (jm_MACROS): Use it here.
115742 1999-11-05  Jim Meyering  <meyering@ascend.com>
115744         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
115745         configure.in of textutils, fileutils, and sh-utils into this one
115746         (shared between those packages) file.
115747         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
115748         AC_STRUCT_ST_BLKSIZE.
115750 1999-11-03  Jim Meyering  <meyering@ascend.com>
115752         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
115753         of AC_CHECK_TYPE checks includes unistd.h.
115754         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
115755         Suggestion from Akim Demaille.
115757 1999-10-30  Jim Meyering  <meyering@ascend.com>
115759         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
115760         m4-quoted string.
115761         * m4/ls-mntd-fs.m4: Likewise.
115762         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
115763         * m4/jm-winsz1.m4: Likewise.
115765         * m4/const.m4: Remove file, since the fix made it into the experimental
115766         version of autoconf.
115767         * m4/mktime.m4: Likewise.
115769         * m4/check-type.m4: Remove file, now that the latest version of
115770         AC_CHECK_TYPE takes a third arg to specify additional #includes.
115772         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
115773         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
115774         AC_CHECK_TYPE.
115776 1999-10-04  Jim Meyering  <meyering@ascend.com>
115778         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
115780 1999-09-22  Paul Eggert  <eggert@twinsun.com>
115782         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
115783         2.95.1 bug with HP-UX 10.20.
115785 1999-09-17  Jim Meyering  <meyering@ascend.com>
115787         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
115788         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
115789         due to missing strdup (against sh-utils-2.0).
115791 1999-08-29  Jim Meyering  <meyering@ascend.com>
115793         * m4/jm-macros.m4: Require jm_BISON.
115794         * m4/bison.m4: New file.
115796 1999-08-17  Paul Eggert  <eggert@twinsun.com>
115798         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
115799         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
115801 1999-08-05  Jim Meyering  <meyering@ascend.com>
115803         * m4/getline.m4: Rename test file from conftestdata to conftest.data
115804         to avoid conflicts with `conftest' on 8+3 filesystems.
115805         Suggestion from Eli Zaretskii.
115807 1999-08-04  Jim Meyering  <meyering@ascend.com>
115809         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
115810         fileutils and sh-utils (textutils's getline test was inadequate).
115811         (AM_FUNC_GETLINE): Run this test.
115812         (AC_CHECK_FUNCS): Check for getdelim.
115813         Reported by Bob Proulx.
115815 1999-08-02  Jim Meyering  <meyering@ascend.com>
115817         * m4/jm-macros.m4: Add a comment.
115819 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115821         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
115822         <inttypes.h> defines strtoumax as a macro (and not as a
115823         function).
115825 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115827         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
115828         that we can shift, multiply and divide unsigned long long
115829         values; Ultrix cc can't do it.
115831 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115833         * m4/mktime.m4: New file, which is a preview of what should appear
115834         in the next public autoconf release.
115836 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115838         * m4/lfs.m4: Remove this file.
115839         * m4/largefile.m4: New file.  It contains the old contents of
115840         lfs.m4, except that all names with prefix AC_LFS have been
115841         changed to use the prefix AC_SYS_LARGEFILE instead, to be
115842         compatible with future autoconf versions.  Also, some minor m4
115843         quoting problems have been fixed.
115845 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115847         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
115848         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
115849         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
115850         and simplify the shell code.
115852 1999-08-01  Jim Meyering  <meyering@ascend.com>
115854         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
115855         m4.
115857 1999-07-20  Jim Meyering  <meyering@ascend.com>
115859         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
115861 1999-07-15  Jim Meyering  <meyering@ascend.com>
115863         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
115865 1999-05-22  Jim Meyering  <meyering@ascend.com>
115867         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
115869 1999-05-20  Jim Meyering  <meyering@ascend.com>
115871         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
115872         Add a colon after each `then' in case $4 is empty.
115874 1999-05-16  Jim Meyering  <meyering@ascend.com>
115876         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
115878 1999-05-10  Jim Meyering  <meyering@ascend.com>
115880         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
115882         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
115883         AC_FUNC_MKTIME.
115885 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
115887         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
115889 1999-05-04  Paul Eggert  <eggert@twinsun.com>
115891         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
115892         not CPPFLAGS, so that linking works correctly in IRIX.
115894 1999-04-30  Paul Eggert  <eggert@twinsun.com>
115896         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
115898 1999-04-20  Paul Eggert  <eggert@twinsun.com>
115900         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
115901         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
115902         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
115903         jm_AC_TYPE_UNSIGNED_LONG_LONG.
115904         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
115906         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
115908 1999-04-20  Jim Meyering  <meyering@ascend.com>
115910         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
115911         AC_REPLACE xstroull if necessary.  From Paul Eggert.
115912         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
115914 1999-04-18  Jim Meyering  <meyering@ascend.com>
115916         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
115917         * m4/jm-macros.m4: Use it.
115919 1999-04-06  Jim Meyering  <meyering@ascend.com>
115921         * m4/strftime.m4: Remove test for %f.
115923 1999-03-29  Jim Meyering  <meyering@ascend.com>
115925         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
115926         superset of the AC_TYPE_* checks in the textutils, fileutils,
115927         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
115928         AC_TYPE_PID_T.
115930 1999-03-28  Jim Meyering  <meyering@ascend.com>
115932         * m4/jm-macros.m4: Define GNU_PACKAGE here.
115933         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
115934         replaced e.g., in the *.sh files of the sh-utils.
115936 1999-03-20  Jim Meyering  <meyering@ascend.com>
115938         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
115939         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
115940         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
115942 1999-03-19  Jim Meyering  <meyering@ascend.com>
115944         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
115946 1999-03-12  Jim Meyering  <meyering@ascend.com>
115948         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
115950 1999-03-07  Jim Meyering  <meyering@ascend.com>
115952         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
115953         declared.
115955 1999-02-17  Jim Meyering  <meyering@ascend.com>
115957         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
115958         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
115960 1999-02-07  Jim Meyering  <meyering@ascend.com>
115962         * m4/group-member.m4: New file -- extracted from sh-utils'
115963         configure.in.
115965         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
115966         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
115968 1999-02-06  Jim Meyering  <meyering@ascend.com>
115970         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
115971         * m4/fnmatch.m4: Likewise.
115972         * m4/getgroups.m4: Likewise.
115973         * m4/lstat.m4: Likewise.
115974         * m4/malloc.m4: Likewise.
115975         * m4/putenv.m4: Likewise.
115976         * m4/realloc.m4: Likewise.
115977         * m4/regex.m4: Likewise.
115978         * m4/stat.m4: Likewise.
115979         * m4/strftime.m4: Likewise.
115980         Suggestion from Alain Magloire.
115982         * m4/chown.m4: Use `.$ac_objext', not `.o'.
115983         * m4/fnmatch.m4: Likewise.
115984         * m4/getgroups.m4: Likewise.
115985         * m4/getline.m4: Likewise.
115986         * m4/lstat.m4: Likewise.
115987         * m4/malloc.m4: Likewise.
115988         * m4/memcmp.m4: Likewise.
115989         * m4/putenv.m4: Likewise.
115990         * m4/realloc.m4: Likewise.
115991         * m4/regex.m4: Likewise.
115992         * m4/stat.m4: Likewise.
115993         * m4/strftime.m4: Likewise.
115994         Suggestion from Alain Magloire.
115996         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
115997         an argument.
115999         * m4/regex.m4: Add a run-time Test for proper operation of
116000         re_compile_pattern.
116002 1999-01-31  Jim Meyering  <meyering@ascend.com>
116004         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
116006 1999-01-30  Jim Meyering  <meyering@ascend.com>
116008         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
116010         * m4/jm-mktime.m4: Make this a wrapper around the official
116011         AM_FUNC_MKTIME rather than my private copy, now that the official one
116012         is up to date.
116013         * m4/mktime.m4: Remove file.
116015         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
116016         * m4/uptime.m4: Likewise.
116017         * m4/uintmax_t.m4: Likewise.
116019 1999-01-28  Jim Meyering  <meyering@ascend.com>
116021         * m4/jm-macros.m4: Use jm_AFS.
116022         * m4/afs.m4: New file (from fileutils' configure.in).
116024         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
116025         * m4/chown.m4: Likewise.
116026         * m4/d-ino.m4: Likewise.
116027         * m4/d-type.m4: Likewise.
116028         * m4/fnmatch.m4: Likewise.
116029         * m4/getgroups.m4: Likewise.
116030         * m4/gettext.m4: Likewise.
116031         * m4/jm-mktime.m4: Likewise.
116032         * m4/jm-winsz2.m4: Likewise.
116033         * m4/lcmessage.m4: Likewise.
116034         * m4/ls-mntd-fs.m4: Likewise.
116035         * m4/malloc.m4: Likewise.
116036         * m4/memcmp.m4: Likewise.
116037         * m4/putenv.m4: Likewise.
116038         * m4/realloc.m4: Likewise.
116039         * m4/st_mtim.m4: Likewise.
116040         * m4/strftime.m4: Likewise.
116042 1999-01-16  Jim Meyering  <meyering@ascend.com>
116044         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
116045         (ARGMATCH_DIE_DECL): Define.
116047 1999-01-12  Jim Meyering  <meyering@ascend.com>
116049         * m4/Makefile.am.in: Rewrite to avoid using fmt.
116050         Reported by Lars Hecking.
116052 1999-01-10  Jim Meyering  <meyering@ascend.com>
116054         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
116055         gross kludge.
116056         * m4/inttypes_h.m4: Likewise.
116057         * m4/lstat.m4: Likewise.
116058         * m4/malloc.m4: Likewise.
116059         * m4/readdir.m4: Likewise.
116060         * m4/realloc.m4: Likewise.
116061         * m4/st_dm_mode.m4: Likewise.
116062         * m4/stat.m4: Likewise.
116063         * m4/utimbuf.m4: Likewise.
116064         * m4/utimes.m4: Likewise.
116066         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
116067         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
116068         comments in config.h.in are meaningful.
116070         * m4/jm-macros.m4: Require autoconf-2.13 here.
116072         * m4/regex.m4: By default, don't use the included regex.c on systems
116073         with glibc 2.  Suggestion from Uli Drepper.
116075 1999-01-02  Jim Meyering  <meyering@ascend.com>
116077         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
116079 1998-12-18  Jim Meyering  <meyering@ascend.com>
116081         * m4/Makefile.am.in (Makefile.am): Simplify rule.
116082         Based on a suggestion from Lars Hecking.
116084 1998-11-16  Paul Eggert  <eggert@twinsun.com>
116086         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
116088 1998-11-16  Jim Meyering  <meyering@ascend.com>
116090         * m4/lfs.m4: Double-quote the `uname...` expression.
116092 1998-11-14  Jim Meyering  <meyering@ascend.com>
116094         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
116095         * m4/stat.m4: Likewise.
116097 1998-11-03  Jim Meyering  <meyering@ascend.com>
116099         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
116100         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
116102 1998-10-18  Jim Meyering  <meyering@ascend.com>
116104         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
116106 1998-10-17  Jim Meyering  <meyering@ascend.com>
116108         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
116109         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
116110         calls for those previously hard-coded headers.  Instead, take a new
116111         parameter.
116112         (jm_CHECK_DECLARATIONS): Reflect interface change.
116113         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
116114         (jm_CHECK_DECL_LOCALTIME_R): New macro.
116116         * m4/mktime.m4: Test for spring-forward gap before long-running test.
116118 1998-10-14  Jim Meyering  <meyering@ascend.com>
116120         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
116121         instead of "TZ=America/Vancouver".  From Paul Eggert.
116123 1998-10-11  Jim Meyering  <meyering@ascend.com>
116125         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
116126         This adds a test for a recently added compatibility fix for mktime.c.
116127         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
116129 1998-09-27  Jim Meyering  <meyering@ascend.com>
116131         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
116133         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
116134         ../configure.in, including a change from Gordon Matzigkeit to allow
116135         cross-compiling for the Hurd.
116137         * m4/glibc.m4: New file/macro to test for the GNU C Library
116138         versions 1 and 2.  From Gordon Matzigkeit.
116139         Indent.
116141 1998-09-21  Jim Meyering  <meyering@ascend.com>
116143         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
116145 1998-08-18  Paul Eggert  <eggert@twinsun.com>
116147         Port nanosecond-resolution times to UnixWare 2.1.2 and
116148         pedantic Solaris 2.6.
116150         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
116151         AC_STRUCT_ST_MTIM.
116152         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
116153         Generate name of ns member, instead of just 1 or undef.
116154         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
116156 1998-08-15  Jim Meyering  <meyering@ascend.com>
116158         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
116159         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
116160         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
116161         instead of jm_TYPE_SSIZE_T.
116163 1998-08-12  Jim Meyering  <meyering@ascend.com>
116165         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
116167 1998-08-02  Jim Meyering  <meyering@ascend.com>
116169         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
116170         in acconfig.h manually.
116172 1998-07-31  Paul Eggert  <eggert@twinsun.com>
116174         * m4/st_mtim.m4: New file.
116176 1998-07-28  Jim Meyering  <meyering@ascend.com>
116178         * m4/utimes.m4: Undef stat.
116180 1998-07-25  Jim Meyering  <meyering@ascend.com>
116182         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
116183         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
116185 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
116187         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
116188         uid and gid actually remain unchanged.
116190 1998-07-07  Jim Meyering  <meyering@ascend.com>
116192         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
116194 1998-07-04  Jim Meyering  <meyering@ascend.com>
116196         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
116197         to prove that this macro can be used in packages without regex.c.
116199 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
116201         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
116202         is to be used.
116204 1998-07-03  Jim Meyering  <meyering@ascend.com>
116206         * m4/gettext.m4: Add -lintl if it's found to be necessary.
116208         * m4/gettext.m4: New file -- from gettext-0.10.35.
116209         * m4/lcmessage.m4: Likewise.
116210         * m4/progtest.m4: Likewise.
116212         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
116213         * m4/jm-macros.m4: Require the new macro.
116215 1998-06-29  Jim Meyering  <meyering@ascend.com>
116217         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
116218         for the definition of NGROUPS (used in a system header included
116219         by sys/mount.h).
116221 1998-06-28  Jim Meyering  <meyering@ascend.com>
116223         * m4/ls-mntd-fs.m4: New file.
116224         * m4/fstypename.m4: New file.
116226         * m4/jm-macros.m4: Require the new macro.
116227         * m4/jm-glibc-io.m4: New file.
116229 1998-05-19  Jim Meyering  <meyering@ascend.com>
116231         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
116232         * m4/lchown.m4: New file.
116234         * m4/Makefile.am.in: New file.
116235         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
116237 1998-05-14  Jim Meyering  <meyering@ascend.com>
116239         * m4/Makefile.am (EXTRA_DIST): Add them.
116240         * m4/jm-macros.m4: New file.
116241         * m4/utimbuf.m4: New file.
116243 1998-05-12  Jim Meyering  <meyering@ascend.com>
116245         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
116247 1998-05-11  Jim Meyering  <meyering@ascend.com>
116249         * m4/isc-posix.m4: New file.
116251 1998-05-10  Jim Meyering  <meyering@ascend.com>
116253         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
116255 1998-05-09  Jim Meyering  <meyering@ascend.com>
116257         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
116258         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
116259         with automake.
116261         * m4/ssize_t.m4: New file.
116262         * m4/mktime.m4: Remove file -- the new automake has this now.
116264 1998-04-26  Jim Meyering  <meyering@ascend.com>
116266         * m4/assert.m4: New file.
116267         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
116269 1998-04-05  Jim Meyering  <meyering@ascend.com>
116271         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
116272         (jm_PREREQ): Use it here.
116274 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
116276         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
116277         in acconfig.h.
116279 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
116281         * m4/prereq.m4: New file.
116282         * m4/error.m4: New file.
116283         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
116285 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
116287         * m4/getline.m4: Don't set am_cv_func_working_getline before the
116288         cache-check for the same variable -- that defeated the purpose of
116289         the test; the test program was never run.  This was a problem only
116290         on systems with losing getline functions -- HP-UX 10.20 is one.
116291         Reported by Bjorn Helgaas.
116293 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
116295         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
116297 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
116299         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
116301         * m4/const.m4: New file.  Use an initializer in this declaration
116302         typedef int charset[2]; const charset x;
116303         Reported by Bob Glickstein.
116305 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
116307         * m4/chown.m4: Fix reversed types on -1 args to chown.
116308         From Kaveh Ghazi.
116310 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
116312         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
116313         Add lseek and memchr.
116315         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
116316         T.E.Dickey <dickey@clark.net> said that some older preprocessors
116317         have a 20-character limit on names.
116319 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
116321         * m4/inttypes_h.m4: New file.
116322         * m4/uintmax_t.m4: New file.
116323         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
116326         -----
116328         Local Variables:
116329         coding: utf-8
116330         End:
116332         Copyright (C) 1997-2018 Free Software Foundation, Inc.
116334         Copying and distribution of this file, with or without
116335         modification, are permitted provided the copyright notice
116336         and this notice are preserved.